/* ==========================================================================
   Applicant · public pages — home, notices, find & register, sign-in,
   help desk, document check and the standalone error pages.
   Tokens/components: common/base.css · theme: applicant/app.css.
   Every class here starts with "pub-" so it never collides with portal.css.
   No inline styles anywhere: the CSP allows style-src 'self' only.
   ========================================================================== */

/* ---------- Home: hero + lifted first row ---------- */
.hero .hero-kicker { margin-bottom: 1.1rem; }
.hero .pub-hero-actions .big-btn { min-width: 11.5rem; }
.hero .hero-facts .fact span { display: block; line-height: 1.35; }
@media (max-width: 575.98px) {
  .hero .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .hero .pub-hero-actions .big-btn { flex: 1 1 100%; }
  .hero .hero-kicker { font-size: .66rem; letter-spacing: .03em; }
}
.pub-hero-card { padding: 1.5rem; }
.pub-hero-card .step-list li.current .fw-semibold { color: var(--brand-700); }
.pub-hero-card .step-list li.done .small { color: var(--brand-600) !important; }
.lift.pub-lift { margin-top: -3rem; }
@media (min-width: 992px) { .lift.pub-lift { margin-top: -5.25rem; } }
/* A flash message sits above the row: do not pull the cards over it. */
.alert + .lift.pub-lift { margin-top: 0; }

/* ---------- Card header with an icon chip ---------- */
.card-header.pub-head { display: flex; align-items: center; gap: .75rem; padding: .95rem 1.15rem; }
.card-header.pub-head .icon-chip { width: 2.15rem; height: 2.15rem; flex: 0 0 2.15rem; font-size: 1rem; border-radius: 10px; }
.pub-head .icon-chip .bi, .pub-title .icon-chip .bi, .pub-done .bi { margin-right: 0; }
.card-header .icon-chip.accent .bi { color: var(--accent); }
.pub-head-text { min-width: 0; line-height: 1.3; }
.pub-head-title { display: block; font-weight: 700; color: var(--ink); }
.pub-head-sub { display: block; font-weight: 500; font-size: .78rem; color: var(--muted); margin-top: .1rem; }
.pub-head > .ms-auto { flex-shrink: 0; }

.list-group-item.empty-state { padding: 2.2rem 1rem; }
.empty-state .pub-empty-hint { display: block; font-size: .8rem; margin-top: .2rem; }

/* ---------- Units and centres ---------- */
.list-group-item.pub-unit { display: flex; gap: .75rem; align-items: flex-start; }
.pub-unit-ico {
  flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 9px; margin-top: .1rem;
  display: inline-flex; align-items: center; justify-content: center; font-size: .95rem;
  background: var(--accent-50); color: var(--accent);
}
.pub-centre { display: inline-flex; align-items: center; gap: .45rem; min-width: 0; }
.pub-centre .bi { color: var(--brand); }
.pub-fee {
  flex: 0 0 auto; white-space: nowrap; font-size: .84rem; color: var(--brand-700);
  background: var(--brand-50); border-radius: var(--r-pill); padding: .16rem .65rem;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .16);
}

/* ---------- Section heading + "how it works" ---------- */
.pub-section-head { text-align: center; max-width: 38rem; margin: 3.25rem auto 1.5rem; }
.pub-section-head h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; margin: .4rem 0; }
.pub-section-head p { color: var(--muted); margin: 0; }
.pub-how { position: relative; height: 100%; padding: 1.35rem 1.25rem 1.25rem; }
.pub-how-no { position: absolute; top: .9rem; right: 1.1rem; font-size: 2.1rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--line); }
.pub-how h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.pub-how p { color: var(--muted); font-size: .86rem; margin: 0; }

/* ---------- Page heads (notices, help desk, ticket) ---------- */
.ap-head .kicker { margin-bottom: .3rem; }
.pub-back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .84rem; text-decoration: none; margin-bottom: .9rem; }
.pub-back:hover { text-decoration: underline; }

/* ---------- Single notice ---------- */
.pub-article > .card-body { padding: 2rem 2.25rem; }
.pub-article h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin: .45rem 0 .5rem; overflow-wrap: anywhere; }
.pub-article .pub-meta { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .84rem; }
.pub-article .pub-body { font-size: 1rem; line-height: 1.75; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 1.25rem; margin-top: 1.25rem; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .pub-article > .card-body { padding: 1.35rem 1.2rem; }
  .pub-article h1 { font-size: 1.3rem; }
}

/* ---------- Centred form cards (find, register, sign in, password) ---------- */
.card.pub-form-card { border-radius: var(--r-xl); box-shadow: var(--shadow); }
.pub-form-card > .card-body, .pub-form-card .pub-pad { padding: 2rem; }
.pub-form-card > .card-footer { padding: 1.1rem 2rem; }
@media (max-width: 575.98px) {
  .pub-form-card > .card-body, .pub-form-card .pub-pad { padding: 1.35rem 1.15rem; }
  .pub-form-card > .card-footer { padding: 1rem 1.15rem; }
}
.pub-title { text-align: center; margin-bottom: 1.6rem; }
.pub-title .icon-chip {
  width: 3.3rem; height: 3.3rem; flex-basis: 3.3rem; border-radius: 16px; font-size: 1.45rem; margin-bottom: .9rem;
  color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  box-shadow: 0 12px 24px -10px rgba(var(--brand-rgb), .65), inset 0 1px 0 rgba(255,255,255,.18);
}
.pub-title .icon-chip.accent { color: #fff; background: linear-gradient(135deg, #d9a92c 0%, #a87a10 100%); box-shadow: 0 12px 24px -10px rgba(168, 122, 16, .6); }
.pub-title h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; margin: .3rem 0 .45rem; }
.pub-title p { color: var(--muted); margin: 0 auto; max-width: 34rem; }
@media (max-width: 575.98px) { .pub-title h1 { font-size: 1.35rem; } }
.pub-subhead { display: flex; align-items: center; gap: .5rem; }
.pub-subhead .bi { color: var(--brand); font-size: .95rem; }
.pub-input .input-group-text { min-width: 2.9rem; justify-content: center; color: var(--muted); }
.pub-input .input-group-text .bi { margin: 0; }
.pub-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); font-size: .84rem; font-weight: 600; }
.pub-links a { text-decoration: none; }
.pub-links a:hover { text-decoration: underline; }
.pub-note { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); font-size: .8rem; margin-top: 1rem; }
.pub-note .bi { color: var(--brand); flex: 0 0 auto; margin-top: .05rem; }

/* Sign-in: brand side panel on large screens */
.pub-split { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: 2.25rem 2rem; color: #fff;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(201, 151, 28, .38), transparent 65%),
    radial-gradient(380px 300px at 0% 100%, rgba(52, 211, 153, .22), transparent 60%),
    linear-gradient(150deg, #064234 0%, #0b6b52 60%, #0f8a69 100%);
}
.pub-split .hero-kicker { align-self: flex-start; margin-bottom: 1.25rem; }
.pub-split h2 { color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; margin-bottom: .6rem; }
.pub-split p { color: rgba(255,255,255,.8); font-size: .9rem; }
.pub-split ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.pub-split li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; color: rgba(255,255,255,.9); font-size: .88rem; }
.pub-split li .bi { color: #fcd34d; margin-top: .05rem; }
.pub-split .pub-split-foot { font-size: .76rem; color: rgba(255,255,255,.6); margin-top: 1.5rem; }

/* ---------- Step hints: Find → Register → Sign in ---------- */
.pub-steps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; }
.pub-steps li {
  display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .8rem .28rem .3rem;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--muted); box-shadow: var(--shadow-xs);
}
.pub-steps .pub-step-no {
  width: 1.55rem; height: 1.55rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
}
.pub-steps li.done { color: var(--brand-700); background: var(--brand-50); border-color: rgba(var(--brand-rgb), .28); }
.pub-steps li.done .pub-step-no { background: var(--brand); color: #fff; box-shadow: none; }
.pub-steps li.current { color: var(--ink); border-color: rgba(201, 151, 28, .55); box-shadow: 0 0 0 3px rgba(201, 151, 28, .13); }
.pub-steps li.current .pub-step-no { background: var(--accent); color: #fff; box-shadow: none; }

/* ---------- CAPTCHA block ---------- */
.pub-captcha { background: var(--surface-2); border: 1px dashed #d3dae3; border-radius: var(--r); padding: .85rem .9rem .75rem; }
.card-footer .pub-captcha { background: var(--surface); }
.pub-captcha .form-label { display: flex; align-items: center; gap: .4rem; }
.pub-captcha .form-label .bi { color: var(--brand); }
.pub-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.pub-captcha-pic { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-xs); }
.pub-captcha-pic .captcha-img { border: 0; display: block; }
.pub-captcha-pic .btn-icon { width: 2.2rem; height: 2.2rem; }
.pub-captcha-pic .btn-icon .bi { margin: 0; }
.form-control.pub-captcha-input { flex: 1 1 9rem; min-width: 0; min-height: 3.3rem; font-size: 1.1rem; font-weight: 700; letter-spacing: .32em; }
.form-control.pub-captcha-input::placeholder { letter-spacing: normal; font-weight: 500; font-size: .9rem; text-transform: none; }
.pub-captcha .form-text { margin-top: .45rem; }

/* ---------- Results of a lookup ---------- */
.pub-found-chip { width: 3rem; height: 3rem; flex: 0 0 3rem; border-radius: 14px; font-size: 1.35rem; background: var(--success-bg); color: var(--success); box-shadow: inset 0 0 0 1px var(--success-line); }
.pub-found-chip .bi { margin: 0; }
.pub-found-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pub-tile { height: 100%; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: .7rem .85rem; overflow-wrap: anywhere; }
.pub-tile .text-muted { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .1rem; }
.pub-elig { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.pub-elig .pub-unit-ico { margin-top: 0; }
.pub-action { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.pub-action .big-btn { box-shadow: 0 12px 24px -12px rgba(var(--brand-rgb), .7); }
@media (max-width: 575.98px) { .pub-action .big-btn { width: 100%; } }

/* ---------- Success states ---------- */
.pub-done {
  width: 4.25rem; height: 4.25rem; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  background: var(--success-bg); color: var(--success);
  box-shadow: 0 0 0 8px rgba(21, 128, 61, .07), inset 0 0 0 1px var(--success-line);
}
.pub-appno-box { display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem 1.4rem; margin: .4rem 0 1.1rem; border-radius: var(--r); background: var(--brand-50); border: 1px dashed rgba(var(--brand-rgb), .35); }
.pub-link-box .input-group-text .bi { margin: 0; color: var(--brand); }
.pub-link-box .form-control[readonly] { background: var(--surface); color: var(--ink); }

/* ---------- Help desk ---------- */
.pub-tips p { display: flex; gap: .6rem; align-items: flex-start; }
.pub-tips p .bi { color: var(--accent); flex: 0 0 auto; margin-top: .1rem; }
@media (min-width: 992px) { .pub-aside { position: sticky; top: 5.5rem; } }
.pub-ticket-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pub-ticket-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin: .35rem 0 0; overflow-wrap: anywhere; }
.pub-ticket-no { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--brand-700); background: var(--brand-50); border-radius: var(--r-pill); padding: .2rem .65rem; }
.pub-ticket-head .badge { font-size: .8rem; }

/* ---------- Document verification ---------- */
.pub-verify .dl-grid { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1rem 1.1rem; }
.pub-verify .alert { font-size: .95rem; }

/* ---------- bKash simulator (development only) ---------- */
.pub-bkash .card-header.text-bg-danger { background: linear-gradient(135deg, #e2136e 0%, #b80f59 100%) !important; border-bottom: 0; display: flex; align-items: center; gap: .5rem; letter-spacing: .02em; }
.pub-bkash .card-header .bi { color: #fff; }
.pub-bkash .pub-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.pub-bkash .btn { --bs-btn-padding-y: .62rem; }

/* ---------- Standalone error pages ---------- */
.pub-error-page {
  min-height: 100vh; margin: 0;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(11, 107, 82, .08), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(201, 151, 28, .08), transparent 60%),
    var(--canvas);
}
.pub-error { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.card.pub-error-card { display: block; }
.pub-error-card { width: 100%; max-width: 30rem; text-align: center; padding: 2.25rem 1.75rem 2rem; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.pub-error-brand { display: inline-flex; justify-content: center; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 1.6rem; }
.pub-error-code {
  display: inline-block; font-size: 4.75rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; margin-bottom: .6rem;
  color: var(--brand); background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pub-error-code.pub-error-word { font-size: 3.4rem; }
.pub-error-card .lead { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 1.5rem; }
.pub-error-foot { margin-top: 1.25rem; font-size: .78rem; color: var(--muted); }
@media (max-width: 575.98px) { .pub-error-code { font-size: 3.75rem; } .pub-error-card { padding: 1.85rem 1.2rem 1.6rem; } }

/* ==========================================================================
   Notice board (/notices) and notice page (/notices/{id})
   ========================================================================== */
.hero.nb-hero { padding: 2.4rem 0 3.6rem; }
.nb-hero h1 { margin-top: .9rem; }
.nb-search {
  display: flex; align-items: center; gap: .5rem; padding: .4rem .4rem .4rem 1rem;
  background: rgba(255,255,255,.97); border-radius: var(--r-pill);
  box-shadow: 0 18px 40px -18px rgba(2, 44, 34, .6); border: 1px solid rgba(255,255,255,.8);
}
.nb-search > .bi { color: var(--muted); }
.nb-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--ink); padding: .35rem 0; }
.nb-search .btn { border-radius: var(--r-pill); padding: .4rem 1rem; font-weight: 700; --bs-btn-bg: var(--brand); --bs-btn-color: #fff; --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--brand-600); }

.nb-wrap { max-width: 64rem; margin: -2.4rem auto 0; position: relative; }

.nb-result-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .4rem 0 1rem; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.nb-clear { font-size: .84rem; text-decoration: none; white-space: nowrap; }

/* Notice table */
.nb-table-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.nb-table-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem;
  background: linear-gradient(135deg, var(--brand-50), #fff 70%); border-bottom: 1px solid var(--line); }
.nb-table-title { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.nb-table-title .bi { width: 2rem; height: 2rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 6px 14px -8px rgba(var(--brand-rgb), .8); }
.nb-table-count { font-size: .76rem; font-weight: 700; padding: .2rem .7rem; border-radius: var(--r-pill); background: var(--accent-50); color: #8a6512; }
.nb-table { width: 100%; border-collapse: collapse; }
.nb-table thead th { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: var(--surface-2); padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.nb-table tbody td { padding: .95rem 1rem; border-bottom: 1px solid var(--line-2, var(--line)); vertical-align: middle; }
.nb-table tbody tr:last-child td { border-bottom: 0; }
.nb-table tbody tr { transition: background .15s var(--ease); }
.nb-table tbody tr:hover { background: rgba(var(--brand-rgb), .035); }
.nb-table tbody tr:hover .nb-ttl { color: var(--brand-700); }
.nb-c-no { width: 3.2rem; text-align: center !important; color: var(--muted); font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nb-c-date { width: 7.5rem; }
.nb-c-act { width: 6.5rem; text-align: right !important; }
.nb-tdate { display: inline-flex; align-items: center; gap: .5rem; line-height: 1; }
.nb-tday { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800;
  color: var(--brand-700); background: linear-gradient(160deg, var(--brand-50), #fff); border: 1px solid var(--brand-100); }
.nb-tmy { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.nb-ttl { font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; line-height: 1.4; overflow-wrap: anywhere; }
a.nb-ttl:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb-more summary { list-style: none; cursor: pointer; }
.nb-more summary::-webkit-details-marker { display: none; }
.nb-more summary .nb-ttl { display: block; }
.nb-more-btn { display: inline-flex; align-items: center; gap: .3rem; margin-top: .3rem; font-size: .8rem; font-weight: 700; color: var(--brand); }
.nb-more-btn .bi { transition: transform .15s var(--ease); }
.nb-more[open] .nb-more-btn .bi { transform: rotate(180deg); }
.nb-full { margin-top: .5rem; font-size: .9rem; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.nb-pdf-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .85rem; border-radius: 10px; font-size: .8rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand), var(--brand-700)); box-shadow: 0 8px 16px -10px rgba(var(--brand-rgb), .9); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.nb-pdf-btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 20px -10px rgba(var(--brand-rgb), .9); }
.nb-none { color: var(--muted); }
.nb-pager .pagination { justify-content: center; }
@media (max-width: 767.98px) {
  .nb-wrap { margin-top: -2rem; }
  .nb-search input { font-size: 16px; }
  .nb-table-head { padding: .9rem 1rem; }
  .nb-table thead { display: none; }
  .nb-table, .nb-table tbody, .nb-table tr { display: block; width: 100%; }
  .nb-table tbody tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "date title title" "date . act"; gap: .55rem .8rem; padding: .95rem 1rem; border-bottom: 1px solid var(--line); }
  .nb-table tbody tr:last-child { border-bottom: 0; }
  .nb-table tbody td { display: block; padding: 0; border: 0; width: auto; }
  .nb-c-no { display: none !important; }
  .nb-c-date { grid-area: date; }
  .nb-c-title { grid-area: title; }
  .nb-c-act { grid-area: act; align-self: center; }
  .nb-tdate { flex-direction: column; gap: .3rem; text-align: center; }
  .nb-none { display: none; }
}

/* Home: eligibility table */
.el-card { overflow: hidden; }
.el-table { --bs-table-bg: transparent; font-size: .9rem; }
.el-table thead th { font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); padding: .7rem .8rem; white-space: nowrap; }
.el-table tbody th, .el-table tbody td { padding: 1rem .8rem; vertical-align: top; border-bottom: 1px solid var(--line-2, var(--line)); }
.el-table thead th:first-child, .el-table tbody th { padding-left: 1.1rem; }
.el-table thead th:last-child, .el-table tbody td:last-child { padding-right: 1.1rem; }
.el-table tbody tr:last-child > * { border-bottom: 0; }
.el-table tbody tr:hover > * { background: rgba(var(--brand-rgb), .025); }
.el-unit { display: flex; gap: .8rem; align-items: flex-start; font-weight: 400; min-width: 12.5rem; }
.el-unit-code {
  flex: 0 0 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  color: #fff; background: linear-gradient(140deg, var(--brand) 0%, var(--brand-700) 100%); box-shadow: 0 8px 18px -10px rgba(var(--brand-rgb), .8);
}
.el-unit-name { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.el-depts { margin-top: .25rem; }
.el-depts summary { list-style: none; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.el-depts summary::-webkit-details-marker { display: none; }
.el-depts summary .bi { font-size: .7rem; transition: transform .15s var(--ease); }
.el-depts[open] summary .bi { transform: rotate(180deg); }
.el-depts ul { list-style: none; margin: .5rem 0 0; padding: .5rem .65rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; }
.el-depts li { display: flex; justify-content: space-between; gap: .75rem; padding: .18rem 0; color: var(--ink-2); }
.el-seat { font-weight: 700; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.el-groups { display: flex; flex-wrap: wrap; gap: .3rem; }
.el-group { padding: .16rem .55rem; border-radius: var(--r-pill); background: var(--brand-50); color: var(--brand-700); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.el-gpas { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; }
.el-gpa { display: inline-flex; align-items: baseline; gap: .35rem; padding: .18rem .55rem; border-radius: 9px; background: var(--accent-50); color: #7a5a10; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.el-gpa small { font-size: .66rem; font-weight: 700; letter-spacing: .04em; color: #a07a22; }
.el-total { display: block; margin-top: .3rem; font-size: .72rem; color: var(--muted); font-weight: 600; }
.el-years-v > span { display: block; white-space: nowrap; font-size: .84rem; color: var(--ink-2); }
.el-years-v > span + span { margin-top: .15rem; }
.el-foot { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.el-foot .bi { color: var(--brand); margin-top: .1rem; }
@media (max-width: 767.98px) {
  /* One card per unit on phones */
  .el-table thead { display: none; }
  .el-table, .el-table tbody, .el-table tr, .el-table th, .el-table td { display: block; width: 100%; }
  .el-table tbody tr { padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
  .el-table tbody tr:last-child { border-bottom: 0; }
  .el-table tbody th, .el-table tbody td { padding: 0; border: 0; text-align: left !important; }
  .el-table tbody td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem 0 0 3.2rem; }
  .el-table tbody td::before { content: attr(data-label); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .el-groups { justify-content: flex-end; }
  .el-gpas { flex-direction: row; align-items: center; }
  .el-years-v { text-align: right; }
  .el-table tbody th.el-unit { display: flex; min-width: 0; }
}
.el-table tbody td.el-apply { vertical-align: middle; white-space: nowrap; }
.el-apply .btn { padding: .3rem .8rem; }
@media (max-width: 767.98px) {
  .el-table tbody td.el-apply { padding-top: .7rem; }
  .el-table tbody td.el-apply::before { content: none; }
  .el-apply .btn { width: 100%; }
}
.pub-login-alt { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--line); text-align: center; font-size: .84rem; font-weight: 600; }
.pub-login-alt a { text-decoration: none; }
.pub-login-alt .bi { margin-right: .25rem; }

/* Find result: SSC/HSC table */
.pub-result-table { font-size: .9rem; }
.pub-result-table thead th { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #64748b); background: transparent; border-bottom-width: 1px; }
.pub-result-table tbody th { font-weight: 700; }

/* Equivalence */
.eq-level { border: 1px solid var(--line, #e2e8f0); border-radius: 14px; padding: 1rem; background: linear-gradient(180deg, rgba(var(--brand-rgb), .03), transparent 60%); }
.eq-level-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.eq-level-badge { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.1rem; padding: 0 .5rem; border-radius: 10px; font-weight: 800; font-size: .78rem; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-700)); }
.eq-level-title { display: block; font-weight: 700; }
.eq-level-sub { display: block; font-size: .8rem; color: var(--muted, #64748b); }
.eq-gpa { margin-left: auto; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; padding: .3rem .7rem; border-radius: 10px; background: rgba(var(--brand-rgb), .08); }
.eq-gpa-n { font-weight: 800; font-size: 1.15rem; color: var(--brand-700); }
.eq-gpa-l { font-size: .68rem; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: .06em; }
.eq-subject-head, .eq-subject-row { display: grid; grid-template-columns: 1fr 5.5rem; gap: .5rem; }
.eq-subject-head { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #64748b); margin-bottom: .3rem; }
.eq-subject-row { margin-bottom: .4rem; }
.eq-scale { display: flex; flex-wrap: wrap; gap: .35rem; }
.eq-scale span { display: inline-flex; gap: .35rem; align-items: center; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-2, #f1f5f9); font-size: .8rem; }
.eq-scale b { color: var(--brand-700); }
.eq-status { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.eq-status .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.eq-submitted, .eq-under_review { background: #eef3ff; color: #2f5be8; }
.eq-more_info { background: #fff7e6; color: #b45309; }
.eq-approved { background: #e7f8ef; color: #0f8a4f; }
.eq-rejected { background: #fdf2f2; color: #b42318; }
.eq-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.eq-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; border-radius: 12px; background: var(--surface-2, #f1f5f9); font-weight: 600; font-size: .85rem; color: var(--muted, #64748b); }
.eq-step-dot { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line, #e2e8f0); font-size: .8rem; }
.eq-steps li.done, .eq-steps li.now { color: #0f172a; background: #eef3ff; }
.eq-steps li.done .eq-step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.eq-steps li.now .eq-step-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15); }
.eq-steps li.bad { background: #fdf2f2; color: #b42318; }
.eq-notes { display: flex; flex-direction: column; gap: .6rem; max-height: 26rem; overflow-y: auto; }
.eq-note { padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2, #f1f5f9); font-size: .9rem; }
.eq-note-applicant { background: #eef3ff; margin-left: 1.5rem; }
.eq-note-system { background: transparent; border: 1px dashed var(--line, #e2e8f0); font-size: .82rem; color: var(--muted, #64748b); }
.eq-note-meta { font-size: .72rem; font-weight: 700; color: var(--muted, #64748b); margin-bottom: .2rem; }
.pub-done.is-bad { background: #fdf2f2; color: #b42318; }
@media (max-width: 575.98px) { .eq-steps { flex-direction: column; } .eq-level-head { flex-wrap: wrap; } }

/* Help desk (public form) */
.hd-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 1.75rem 2rem; color: #fff;
  background: radial-gradient(520px 260px at 100% 0%, rgba(214, 164, 42, .30), transparent 60%), linear-gradient(135deg, var(--brand-700, #084c3a), var(--brand, #0b6b52) 60%, #13896a);
  box-shadow: 0 20px 40px -24px rgba(8, 76, 58, .8); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.hd-hero-main { display: flex; gap: 1.1rem; align-items: flex-start; max-width: 40rem; }
.hd-hero-icon { flex: 0 0 3.4rem; width: 3.4rem; height: 3.4rem; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.hd-hero-kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #cdeee2; }
.hd-hero-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin: .15rem 0 .35rem; color: #fff; }
.hd-hero-sub { color: #dff3eb; max-width: 34rem; }
.hd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.hd-steps li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem .45rem .45rem; border-radius: 999px; background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); font-size: .82rem; font-weight: 600; }
.hd-steps span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--brand-700, #084c3a); font-weight: 800; font-size: .78rem; }
.hd-steps li.is-current { background: #fff; color: var(--brand-700, #084c3a); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .45); }
.hd-steps li.is-current span { background: linear-gradient(135deg, #d9a92c, #a87a10); color: #fff; }
.hd-form { border-radius: 20px; overflow: hidden; }
.hd-section { padding: 1.6rem 2rem; border-bottom: 1px solid var(--line, #e2e8f0); }
.hd-section-head { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.1rem; }
.hd-num { flex: 0 0 2.1rem; width: 2.1rem; height: 2.1rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-700, #084c3a)); box-shadow: 0 6px 14px -8px rgba(var(--brand-rgb), .8); }
.hd-section-title { display: block; font-weight: 700; font-size: 1.02rem; color: var(--ink, #0f172a); }
.hd-section-sub { display: block; font-size: .8rem; color: var(--muted, #64748b); }
.hd-form .input-group-text { background: var(--surface-2, #f6f8f7); color: var(--muted, #64748b); }
.hd-attach { padding: .9rem 1rem; border-radius: 12px; border: 1px dashed var(--line, #cbd5e1); background: var(--surface-2, #f8faf9); }
.hd-section .pub-captcha { margin-bottom: 0 !important; }
.hd-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 2rem; background: var(--surface-2, #f8faf9); }
.hd-contact { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #1f2937, #0f172a); box-shadow: 0 16px 30px -22px rgba(15, 23, 42, .9); }
.hd-contact-icon { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(214, 164, 42, .2); color: #f5c451; font-size: 1.2rem; }
.hd-contact-title { font-weight: 700; margin-bottom: .2rem; }
.hd-contact-line { font-size: .88rem; color: #e2e8f0; }
.hd-contact-line a { color: #fff; }
@media (max-width: 575.98px) {
  .hd-hero { padding: 1.3rem 1.2rem; border-radius: 18px; }
  .hd-hero-title { font-size: 1.45rem; }
  .hd-section, .hd-form-foot { padding: 1.2rem 1.1rem; }
  .hd-form-foot .btn { width: 100%; }
  .hd-form .form-control, .hd-form .form-select { font-size: 16px; } /* iOS zooms into smaller fields */
}

.eq-docs { padding: .9rem 1rem; border-radius: 12px; border: 1px dashed rgba(var(--brand-rgb), .35); background: #fff; }
.eq-docs .form-label .bi { color: var(--brand); }
.eq-doc-level { display: inline-block; margin-right: .35rem; padding: 0 .4rem; border-radius: 6px; font-size: .68rem; font-weight: 800; color: #fff; background: var(--brand); vertical-align: middle; }
.adm-pub-who { display: flex; align-items: center; gap: .9rem; }
.adm-pub-roll { flex: none; display: inline-flex; flex-direction: column; align-items: center; padding: .45rem .8rem; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.adm-pub-roll span { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.att-room { display: flex; gap: .9rem; align-items: center; }
.att-room-no { flex: none; display: inline-flex; flex-direction: column; align-items: center; padding: .45rem .9rem; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.35rem; }
.att-room-no span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.att-pub-num { font-size: 1.8rem; }
.att-saved { padding: .6rem .8rem; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: .9rem; }
.bare-page { min-height: 100vh; display: flex; align-items: flex-start; }
.bare-page main { max-width: 640px; }
@media (min-height: 700px) { .bare-page main { margin-top: 4vh; } }

/* Find your application */
.fd-exam-badge { flex: none; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--brand-700, #084c3a);
  background: rgba(var(--brand-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .22); }
.fd-miss { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: 18px; background: #fffaeb; border: 1px solid #f5d98a; color: #6b4e07; }
.fd-miss-icon { flex: 0 0 2.6rem; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  color: #fff; background: linear-gradient(135deg, #d9a92c, #a87a10); }
.fd-miss-title { font-weight: 800; color: #4a3605; margin-bottom: .15rem; }
.fd-sheet { border-radius: 14px; padding: .85rem 1rem; background: linear-gradient(180deg, #fbfdfc, #f1f7f4); border: 1px solid rgba(var(--brand-rgb), .2);
  box-shadow: 0 10px 22px -18px rgba(8, 76, 58, .7); font-size: .82rem; }
.fd-sheet-top { text-align: center; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700, #084c3a);
  padding-bottom: .5rem; margin-bottom: .45rem; border-bottom: 1px dashed rgba(var(--brand-rgb), .3); }
.fd-sheet-row { display: flex; justify-content: space-between; gap: .75rem; padding: .22rem 0; color: var(--muted, #64748b); }
.fd-sheet-row b { color: var(--ink, #0f172a); padding: 0 .4rem; border-radius: 6px; background: rgba(214, 164, 42, .22); }
.fd-links .list-group-item { display: flex; align-items: center; gap: .7rem; padding: .8rem 1.1rem; font-size: .88rem; color: var(--muted, #64748b); }
.fd-links .list-group-item strong { display: block; color: var(--ink, #0f172a); }
.fd-links .list-group-item > .bi:first-child { flex: none; width: 2rem; height: 2rem; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); background: rgba(var(--brand-rgb), .1); }
.fd-links .list-group-item .bi-chevron-right { color: #94a3b8; font-size: .8rem; }
@media (max-width: 575.98px) { .fd-exam-badge { display: none; } .fd-miss { flex-direction: column; } }

/* Find your application: the answer the page's own search writes in */
.fd-result { margin-bottom: 1rem; }

/* Your application: the board data laid out line by line for checking */
.pub-review dt { font-weight: 600; color: var(--muted, #64748b); padding-bottom: .35rem; }
.pub-review dd { margin-bottom: .35rem; color: var(--ink, #0f172a); overflow-wrap: anywhere; }

/* Development only: the page's data as it comes from the table */
.pub-raw { margin-top: 1rem; border: 1px solid var(--line, #e2e8f0); border-radius: 14px; background: #0f172a; overflow: hidden; }
.pub-raw-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase; color: #cbd5e1; background: #1e293b; }
.pub-raw-tag { font-weight: 500; text-transform: none; letter-spacing: 0; color: #94a3b8; }
.pub-raw-body { margin: 0; padding: .9rem 1rem; max-height: 26rem; overflow: auto; font-size: .8rem; line-height: 1.5; color: #e2e8f0; }
