/* =====================================================================
   APPLYSPARK — styles
   Type: Be Vietnam Pro (made for Vietnamese diacritics), one family throughout.
   Colour: brand navy #1A3054 + one accent, gold #FBAC19 (both from the logo), on neutral greys.
   Red is kept for form errors only. Plenty of space between lines, blocks and sections.
   ===================================================================== */
:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --surface-2: #f2efe7;
  --ink: #172033;
  --ink-2: #4d586b;
  --ink-3: #737d91;
  --line: #e6e0d3;
  --line-2: #ede9dd;
  --brand: #1a3054;          /* navy surfaces: buttons, footer, bands */
  --navy: #1a3054;           /* navy text and marks */
  --navy-2: #2a4671;
  --navy-soft: #edf1f7;      /* navy tint for quiet fills */
  --link: #1a3054;
  --hdr-bg: #ffffff;
  --gold: #fbac19;
  --gold-2: #ffbf45;
  --gold-ink: #2b1c00;
  --gold-soft: #fff5df;
  --btn-bg: #1a3054;
  --btn-fg: #ffffff;
  --btn-bg-hover: #2a4671;
  --ok: var(--navy);
  --ok-soft: var(--navy-soft);
  --warn: #8a5a00;
  --warn-soft: var(--gold-soft);
  --bad: #b42318;
  --bad-soft: #fdecea;
  --space: #040914;
  --shadow: 0 1px 2px rgba(23, 32, 51, 0.05), 0 8px 24px -14px rgba(23, 32, 51, 0.18);
  --shadow-lg: 0 24px 56px -24px rgba(10, 18, 36, 0.4);
  --radius: 4px;             /* cards, panels, dialogs: near-square like IDP */
  --r-sm: 3px;               /* buttons, inputs, badges, chips, icon tiles */
  --wrap: 1200px;
  --hdr-h: 72px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: var(--font);
  /* every account type shares the brand navy (roles are told apart by icon and name) */
  --c-student: var(--navy); --c-club_owner: var(--navy); --c-alumni: var(--navy);
  --c-organizer: var(--navy); --c-agency: var(--navy); --c-admin: var(--navy);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111d;
    --surface: #121a2a;
    --surface-2: #0f1624;
    --ink: #e7ecf4;
    --ink-2: #a6b1c3;
    --ink-3: #808b9f;
    --line: #253047;
    --line-2: #1a2335;
    --brand: #16284a;
    --navy: #b4c7ea;
    --navy-2: #cddbf3;
    --navy-soft: #1a2640;
    --link: #b4c7ea;
    --hdr-bg: #0f1624;
    --gold-soft: #33270d;
    --btn-bg: #3a5f9c;
    --btn-bg-hover: #4a6fae;
    --warn: #f3c262;
    --bad: #ff8f85;
    --bad-soft: #3a1818;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111d;
  --surface: #121a2a;
  --surface-2: #0f1624;
  --ink: #e7ecf4;
  --ink-2: #a6b1c3;
  --ink-3: #808b9f;
  --line: #253047;
  --line-2: #1a2335;
  --brand: #16284a;
  --navy: #b4c7ea;
  --navy-2: #cddbf3;
  --navy-soft: #1a2640;
  --link: #b4c7ea;
  --hdr-bg: #0f1624;
  --gold-soft: #33270d;
  --btn-bg: #3a5f9c;
  --btn-bg-hover: #4a6fae;
  --warn: #f3c262;
  --bad: #ff8f85;
  --bad-soft: #3a1818;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
body.has-dialog { overflow: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(24px, 2.4vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
img, svg, canvas { max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.center { text-align: center; display: flex; justify-content: center; }
.center-text { text-align: center; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.center { justify-content: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.span-2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.lede { font-size: clamp(16.5px, 1.5vw, 18.5px); font-weight: 400; line-height: 1.75; max-width: 62ch; }
.lede-sm { font-size: 16.5px; line-height: 1.7; }
.kicker { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); margin-bottom: 8px; }
.ok-text { color: var(--ok); }
.danger-text { color: var(--bad) !important; }
.code { font-weight: 700; letter-spacing: 0.06em; }
.num, .up-date, .stat-v { font-variant-numeric: tabular-nums; }
.sel { user-select: all; }
.ic { display: inline-flex; vertical-align: -0.2em; flex: none; }

/* ---------------------------------------------------------------- header */
#site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.hdr-bar { background: var(--hdr-bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { height: 28px; width: auto; }
.brand-word { font-weight: 700; font-size: 19px; letter-spacing: 0.03em; }
.brand-word em { font-style: normal; color: var(--gold); }
.brand .logo-on-dark { display: none; }
.hdr-bar { position: relative; }
.hdr-nav { flex: 1; min-width: 0; align-self: stretch; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 2px; height: 100%; }
.nav-top { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; color: var(--ink-2); text-decoration: none; font: inherit; font-size: 15px;
  font-weight: 500; line-height: 1.4; white-space: nowrap; background: none; border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.nav-link:hover, .has-mega.is-open > .nav-link { color: var(--ink); background: var(--surface-2); }
.nav-link.is-active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-group .ic { transition: transform 0.15s; }
.has-mega.is-open > .nav-group .ic { transform: rotate(180deg); }
/* the drop-down panel spans the whole header, like IDP's */
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-block: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 5; }
.has-mega.is-open > .mega { display: block; }
.mega-in { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr); gap: 48px; padding-block: 28px 34px; }
.mega-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.mega-title { font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: balance; }
.mega-text { color: var(--ink-2); font-size: 14.5px; margin-top: 8px; max-width: 34ch; }
.mega-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; align-content: start; }
.mega-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.mega-item:hover { background: var(--surface-2); }
.mega-item.is-active { box-shadow: inset 3px 0 0 var(--gold); }
.mega-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--navy); }
.mega-item:hover .mega-ic { background: var(--surface); }
.mega-txt { display: grid; gap: 2px; min-width: 0; }
.mega-name { font-weight: 600; font-size: 15px; line-height: 1.4; }
.mega-desc { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.nav-theme { display: none; }
.theme-seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.theme-seg button { background: none; border: 0; color: var(--ink-2); padding: 5px 9px; cursor: pointer; display: inline-grid; place-items: center; }
.theme-seg button:hover { color: var(--ink); }
.theme-seg button[aria-pressed="true"] { background: var(--btn-bg); color: #fff; }
.hdr-right { display: flex; align-items: center; gap: 12px; flex: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.lang button { background: none; border: 0; color: var(--ink-2); font-size: 13px; font-weight: 600; padding: 6px 12px; cursor: pointer; letter-spacing: 0.04em; }
.lang button[aria-pressed="true"] { background: var(--btn-bg); color: #fff; }
.hdr-signin { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15.5px; white-space: nowrap; }
.hdr-signin .ic { display: none; }
.hdr-signin:hover { text-decoration: underline; }
.hdr-account { display: flex; align-items: center; gap: 14px; }
.hdr-icon { position: relative; color: var(--ink); display: inline-flex; padding: 7px; border-radius: var(--r-sm); }
.hdr-icon:hover { background: var(--surface-2); }
.hdr-badge { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.hdr-me { display: inline-flex; align-items: center; gap: 6px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.hdr-menu { display: none; background: none; border: 0; color: var(--ink); padding: 7px; cursor: pointer; border-radius: var(--r-sm); }
.hdr-menu:hover { background: var(--surface-2); }
@media (max-width: 1100px) {
  .hdr-menu { display: inline-flex; }
  .hdr-in { gap: 16px; }
  .hdr-nav { position: absolute; left: 0; right: 0; top: var(--hdr-h); background: var(--hdr-bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none; max-height: calc(100vh - var(--hdr-h)); overflow-y: auto; align-self: auto; }
  #site-header.is-open .hdr-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 6px 16px 18px; gap: 0; height: auto; }
  .nav-top { display: block; }
  .nav-group { display: none; }
  .mega, .has-mega.is-open > .mega { display: block; position: static; border: 0; box-shadow: none; background: none; }
  .mega-in { display: block; width: auto; padding: 16px 0 2px; }
  .mega-title, .mega-text, .mega-desc { display: none; }
  .mega-kicker { margin: 0; padding: 0 8px 6px; font-size: 12px; border: 0; color: var(--ink-3); }
  .mega-list { display: block; }
  .mega-item { padding: 10px 8px; border-radius: 0; border-bottom: 1px solid var(--line-2); align-items: center; }
  .mega-item:hover { background: none; color: var(--navy); }
  .mega-item.is-active { padding-left: 14px; }
  .mega-ic { width: 34px; height: 34px; }
  .nav-top > .nav-link { display: flex; width: 100%; padding: 16px 8px 12px; font-size: 16px; font-weight: 600; border-radius: 0; border-bottom: 1px solid var(--line-2); }
  .nav-top > .nav-link:hover { background: none; color: var(--navy); }
  .nav-top > .nav-link.is-active { box-shadow: inset 3px 0 0 var(--gold); padding-left: 14px; }
  .nav-top > .nav-group { display: none; } /* on phones each section shows its pages under a small heading instead */
  .hdr-right { margin-left: auto; }
  .hdr-me span { display: none; }
}
@media (max-width: 560px) {
  .hdr-theme { display: none; }
  .nav-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 8px 4px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
  .hdr-in { gap: 10px; }
  .hdr-right { gap: 8px; }
  .hdr-signin span { display: none; }
  .hdr-signin .ic { display: inline-flex; }
  .hdr-signin { padding: 7px; border-radius: var(--r-sm); }
  .lang button { padding: 6px 9px; }
}
@media (max-width: 380px) { .brand-word { font-size: 16px; } .brand img { height: 23px; } }

.banner { font-size: 14.5px; }
.banner .wrap { display: flex; align-items: center; gap: 6px 10px; padding-block: 10px; flex-wrap: wrap; }
.banner .wrap > span { flex: 1 1 240px; min-width: 0; }
.banner .wrap > .btn { min-height: 0; padding: 2px 0; }
@media (min-width: 900px) { .banner .wrap > span { flex: 0 1 auto; } }
.banner-demo { background: var(--gold-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.banner-ann { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 600; font-size: 15px; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--btn-bg-hover); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--surface); }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline.is-on { border-color: var(--gold); background: var(--gold-soft); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-link { min-height: 0; padding: 4px 2px; border: 0; color: var(--link); text-decoration: underline; font-weight: 500; }
.btn-link:hover { color: var(--ink); }
/* long labels (e.g. the shortlist request) wrap instead of pushing past the screen */
.btn-wrap, .dlg-actions .btn { white-space: normal; text-align: center; max-width: 100%; }
.btn-wrap { line-height: 1.35; padding-block: 11px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-sm.btn-link { min-height: 0; padding: 2px; }
.btn-lg { min-height: 52px; padding: 0 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-in-list { background: var(--navy-soft); color: var(--navy); border-color: var(--navy); }
.btn-role { border-color: var(--line); color: var(--navy); background: var(--surface); }
.btn-role:hover { border-color: var(--navy); }
.btn.copied { border-color: var(--navy); }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.sm { width: 28px; height: 28px; border-radius: var(--r-sm); }
.link-strong { font-weight: 600; }
.link-ext { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- forms */
.form label, .label-like { display: block; font-size: 15px; font-weight: 500; margin-bottom: 8px; color: var(--ink); }
.field { display: flex; flex-direction: column; }
.field .opt { font-weight: 400; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="month"], input[type="datetime-local"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 14px; min-height: 48px;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--btn-bg); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn-bg) 18%, transparent); }
[aria-invalid] { border-color: var(--bad) !important; }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 8px; line-height: 1.6; }
.err { font-size: 14px; color: var(--bad); min-height: 0; margin-top: 6px; }
.err:empty { display: none; }
.form-msg { font-size: 15px; min-height: 20px; color: var(--ink-2); }
.form-msg.is-error { color: var(--bad); }
.form-msg.is-ok { color: var(--ok); }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--btn-bg); flex: none; }
.inline { display: flex; gap: 10px; }
.inline select { width: auto; flex: none; }
.fieldset { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px 20px 20px; margin: 0; }
.fieldset legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 16px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.chip-sm { padding: 5px 12px; font-size: 13.5px; }
.chip-n { font-size: 12.5px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.chip-star .ic { color: var(--gold); }
.chip[aria-pressed="true"] .ic { color: var(--gold); }
.tag-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 7px 9px; background: var(--surface); }
.tag-input:focus-within { border-color: var(--btn-bg); }
.tag-input input { border: 0; min-height: 34px; padding: 4px; flex: 1; min-width: 140px; box-shadow: none !important; }
.tags { display: contents; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--navy-soft); color: var(--ink); border-radius: var(--r-sm); padding: 4px 6px 4px 12px; font-size: 14px; }
.tag button { border: 0; background: none; cursor: pointer; color: var(--ink-3); display: inline-grid; place-items: center; padding: 2px; }
.tag-sugg { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tests { display: flex; flex-direction: column; gap: 10px; }
.test-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.test-row:last-child { border-bottom: 0; }
.test-name { font-weight: 600; min-width: 56px; }
.test-fields { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1; min-width: 240px; }
.test-fields select { width: auto; }
.test-fields input { flex: 1; min-width: 150px; }
.test-fields .hint { margin: 0; width: 100%; }
.seg { display: inline-flex; background: var(--line-2); border-radius: var(--r-sm); padding: 4px; gap: 4px; margin-block: 8px 20px; }
.seg button { border: 0; background: none; padding: 8px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- badges */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); vertical-align: 0.1em; margin-left: 6px; white-space: nowrap; }
.badge-ok { background: var(--navy-soft); color: var(--navy); }
.badge-warn { background: var(--gold-soft); color: var(--warn); }
.badge-muted { background: var(--line-2); color: var(--ink-3); }
.badge-gold { background: var(--gold-soft); color: var(--warn); }
.badge-sample { background: transparent; border: 1.5px dashed var(--ink-3); color: var(--ink-3); }
.cd { display: inline-flex; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cd.is-soon { background: var(--gold-soft); color: var(--warn); }
.cd.is-urgent { background: var(--gold); color: var(--gold-ink); }
.cd.is-closed { background: transparent; color: var(--ink-3); text-decoration: line-through; }
.role-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 3px 11px; border-radius: var(--r-sm); color: var(--navy); background: var(--navy-soft); }
[data-role] { --role: var(--navy); }
.plan-badge { font-size: 12.5px; font-weight: 600; padding: 3px 11px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); }
.plan-badge.plan-premium { background: var(--gold-soft); color: var(--warn); }
.plan-badge.plan-vip { background: var(--brand); color: var(--gold); }
.kind { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 13px; padding: 3px 11px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-2); }
.pill-soft { border-style: dashed; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); padding: 14px 16px; border-radius: var(--r-sm); font-size: 15px; }
.notice > .ic { margin-top: 3px; color: var(--ink-3); }
.notice.ok { border-left-color: var(--navy); }
.lock-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); border-radius: var(--radius); padding: 16px 18px; }
.lock-box > div { flex: 1; min-width: 200px; }
.lock-box p { font-size: 14.5px; color: var(--ink-2); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-2); border: 1.5px dashed var(--line); border-radius: var(--radius); background: var(--surface); grid-column: 1 / -1; }
.empty-title { font-weight: 600; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--ink-2); padding: 30px 0; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- section scaffolding */
.section { padding-block: 96px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-2); }
.section-head { margin-bottom: 40px; max-width: 70ch; }
.section-head.row-between { max-width: none; align-items: flex-end; }
.section-head .lede { margin-top: 12px; color: var(--ink-2); }
.page-body { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 28px; }
.filters { display: flex; flex-direction: column; gap: 14px; }
.filters input[type="search"] { max-width: 440px; }
.filters select { max-width: 280px; }
.page-hero { background: var(--surface); color: var(--ink); padding-block: 64px 52px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 600; color: var(--navy); max-width: 24ch; }
.page-hero .lede { color: var(--ink-2); margin-top: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 760px) {
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 28px; }
  .page-hero { padding-block: 40px 36px; }
  .page-body { padding-block: 32px 72px; }
}

/* ---------------------------------------------------------------- atlas (globe hero) */
.atlas {
  position: relative; color: #e8edf6; padding: 40px 16px 28px; overflow: hidden;
  background: radial-gradient(110% 85% at 50% 42%, #0f2148 0%, #081330 42%, var(--space) 78%);
}
.atlas-stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.atlas-frame { position: relative; max-width: 1240px; margin-inline: auto; display: grid; grid-template-rows: 1fr auto; gap: 20px; min-height: clamp(560px, 80vh, 820px); }
.atlas-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 32px; }
.atlas-left { align-self: center; display: flex; flex-direction: column; gap: 20px; max-width: 340px; }
.atlas-left h1 { font-size: clamp(30px, 3vw, 42px); font-weight: 600; color: #fff; line-height: 1.22; }
.atlas-lede { font-size: 16.5px; line-height: 1.75; color: rgba(232, 237, 246, 0.8); }
.atlas-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; cursor: pointer;
  color: #fff; font-size: 15px; font-weight: 500; border-bottom: 1.5px solid var(--gold); }
.atlas-link:hover { color: var(--gold); }
.atlas-stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 660px; justify-self: center; }
.globe-host { position: absolute; inset: 0; }
/* the globe is seen through a round window: zoomed in, the Earth fills it and fades softly at the rim */
.globe-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 88%, transparent 100%); mask-image: radial-gradient(closest-side, #000 88%, transparent 100%); }
.globe-host:has(.globe-canvas:focus-visible)::after { content: ""; position: absolute; inset: 7%; border-radius: 50%; border: 2px solid var(--gold); pointer-events: none; }
.globe-loading { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; color: rgba(232, 237, 246, 0.72); font-size: 14.5px; }
.globe-loading::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #1d4f8f, #0b2449 60%, #06122a); box-shadow: 0 0 60px rgba(80, 150, 255, 0.25); }
.globe-loading > * { position: relative; }
.globe-fallback { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; padding: 20px; }
.globe-markers { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.globe-marker { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 7px; background: none; border: 0; padding: 0; cursor: pointer; pointer-events: auto;
  transition: opacity 0.2s; will-change: transform; font-family: var(--font); }
.globe-marker .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 0 12px rgba(255, 255, 255, 0.55); margin-left: -4.5px; margin-top: -4.5px; }
.globe-marker .lbl { font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; color: #fff; background: rgba(6, 12, 26, 0.66);
  padding: 3px 9px; border-radius: var(--r-sm); margin-top: -4.5px; white-space: nowrap; transition: opacity 0.15s; }
.globe-marker.no-lbl .lbl { opacity: 0; }
.globe-marker.no-lbl:hover, .globe-marker.no-lbl:focus-visible { z-index: 2; }
.globe-marker.no-lbl:hover .lbl, .globe-marker.no-lbl:focus-visible .lbl { opacity: 1; }
.globe-marker:hover .dot, .globe-marker:focus-visible .dot { background: var(--gold); }
.globe-marker.is-home .dot { background: var(--gold); animation: pulse 2.4s ease-out infinite; }
.globe-marker.is-home .lbl { color: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251, 172, 25, 0.7); } 100% { box-shadow: 0 0 0 16px rgba(251, 172, 25, 0); } }
.atlas-right { justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 20px; max-width: 280px; min-height: 280px; justify-content: center; }
.atlas-stats { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.atlas-stat dt { font-size: 13.5px; font-weight: 500; color: rgba(232, 237, 246, 0.62); }
.atlas-stat dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: #fff; }
.atlas-stat .stat-strong { color: #fff; font-weight: 600; }
.atlas-stat .cd { background: rgba(255, 255, 255, 0.12); color: #fff; }
.atlas-stat .cd.is-urgent { background: var(--gold); color: var(--gold-ink); }
.atlas-open { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--gold-ink); border: 0; border-radius: var(--r-sm); padding: 11px 20px; font-weight: 600; cursor: pointer; }
.atlas-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.atlas-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(232, 237, 246, 0.6); text-align: center; }
.atlas-nav { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: rgba(232, 237, 246, 0.9); cursor: pointer; padding: 8px 4px; font-size: 15px; font-weight: 500; }
.atlas-nav:hover { color: var(--gold); }
.flatmap { width: 100%; height: 100%; }
.fm-country { fill: #25406e; stroke: #0b1731; stroke-width: 0.5; cursor: pointer; }
.fm-country.has-data { fill: #3b67a8; }
.fm-country:hover, .fm-country:focus { fill: var(--gold); outline: none; }
.fm-marker { fill: #fff; cursor: pointer; }
@media (max-width: 980px) {
  .atlas { padding: 20px 16px 20px; }
  .atlas-frame { min-height: 0; gap: 12px; }
  .atlas-body { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .atlas-stage { order: 1; max-width: 520px; }
  .atlas-left { order: 2; max-width: none; gap: 14px; }
  .atlas-right { order: 3; justify-self: stretch; text-align: left; align-items: flex-start; max-width: none; min-height: 0; }
  .atlas-stats { flex-direction: row; flex-wrap: wrap; gap: 16px 28px; }
  .atlas-hint { display: none; }
  .atlas-nav span:not(.ic) { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------------------------------------------------------------- quiz, strips, cards */
.quiz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; }
.quiz-steps { list-style: none; counter-reset: q; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 30px; }
.quiz-steps li { counter-increment: q; position: relative; padding-left: 48px; }
.quiz-steps li::before { content: counter(q); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.quiz-steps h3 { margin-bottom: 14px; font-size: 17.5px; }
.quiz-result { background: var(--surface-2); border-radius: var(--radius); padding: 24px; align-self: start; position: sticky; top: calc(var(--hdr-h) + 24px); }
.quiz-pick { display: flex; flex-direction: column; gap: 16px; }
.quiz-pick h3 { font-size: 26px; }
@media (max-width: 860px) { .quiz-card { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; gap: 28px; } .quiz-result { position: static; } }
.upcoming { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.up-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.up-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.up-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.up-kind { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.up-date { font-weight: 600; font-size: 22px; color: var(--navy); }
.up-title { font-weight: 500; line-height: 1.45; }
.up-sub { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.role-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.role-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.role-card .btn { margin-top: auto; align-self: flex-start; }
.role-card .ticks { margin-bottom: 8px; }
.role-icon { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; color: var(--navy); background: var(--navy-soft); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 24px; font-size: 15px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 9px; height: 5px; border-left: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); }
.gaps { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.6; }
.gaps li::marker { color: var(--gold); }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.tool { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.tool > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tool:hover { border-color: var(--navy); }
.tool-ic { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); flex: none; }
.tool-go { color: var(--ink-3); }
.plan-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-mini-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.plan-mini-card.plan-premium { border: 2px solid var(--gold); }
.plan-mini-card.plan-vip { background: var(--brand); color: #fff; border-color: var(--brand); }
.plan-mini-card.plan-vip .muted { color: rgba(255, 255, 255, 0.74); }
.plan-name { font-weight: 600; font-size: 18px; }
.plan-price { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .plan-mini { grid-template-columns: minmax(0, 1fr); } }
.cta-band { background: var(--brand); color: #fff; padding-block: 80px; }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.cta-inner img { height: 48px; width: auto; }
.cta-inner p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.cta-inner .row { margin-top: 8px; }

/* ---------------------------------------------------------------- listings */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; }
.listing, .person, .uni-card, .panel, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.listing, .person { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.listing.is-featured { border: 2px solid var(--gold); }
.listing.is-locked { background: var(--surface-2); }
.listing h3, .person h3 { font-size: 18px; }
.listing-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.listing-top .badge { margin-left: 0; }
.listing-links { margin-top: auto; padding-top: 8px; }
.person-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--navy-soft); font-weight: 700; flex: none; }
.person-uni { color: var(--navy); font-weight: 500; font-size: 15px; }
.person-bio { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.person-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tests-line { letter-spacing: 0.01em; }
.perk { background: var(--gold-soft); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.roles-row { display: flex; flex-wrap: wrap; gap: 8px; }
.role-need { font-size: 13.5px; padding: 4px 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--navy); color: var(--navy); }
.role-filled { font-size: 13.5px; padding: 4px 12px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-3); }
.checklist { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 30px; }
.checklist ol { columns: 2; column-gap: 40px; margin: 18px 0 0; padding-left: 20px; }
.checklist li { break-inside: avoid; margin-bottom: 14px; font-size: 15px; color: var(--ink-2); }
.checklist li strong { color: var(--ink); }
@media (max-width: 760px) { .checklist ol { columns: 1; } .checklist { padding: 22px; } }
.mini-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.mini-list li { padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.mini-list li:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- deadlines */
.dl-list { display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: var(--radius); }
.dl-item.is-soon, .dl-item.is-urgent { border-left-color: var(--gold); }
.dl-item.is-closed { opacity: 0.6; }
.dl-when { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dl-day { font-weight: 600; font-size: 18px; color: var(--navy); font-variant-numeric: tabular-nums; }
.dl-title { font-weight: 500; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
@media (min-width: 701px) { .dl-actions { flex-direction: column; align-items: flex-end; gap: 8px; } }
@media (max-width: 700px) { .dl-item { grid-template-columns: minmax(0, 1fr); gap: 12px; } .dl-when { flex-direction: row; align-items: center; } .dl-actions { justify-content: flex-start; } }

/* ---------------------------------------------------------------- country */
.country-hero { background: var(--brand); color: #fff; padding-block: 32px 44px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: rgba(232, 237, 246, 0.82); text-decoration: none; font-size: 15px; margin-bottom: 22px; }
.back-link:hover { color: #fff; }
.country-hero .atlas-tag { display: block; margin-bottom: 8px; font-size: 14px; color: rgba(232, 237, 246, 0.7); }
.country-name { font-weight: 600; font-size: clamp(38px, 6vw, 68px); line-height: 1.1; }
.country-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 28px; border-top: 1px solid rgba(232, 237, 246, 0.16); }
.cstat { display: flex; flex-direction: column; gap: 4px; padding: 16px 28px 0 0; margin-right: 28px; border-right: 1px solid rgba(232, 237, 246, 0.14); min-width: 0; max-width: 100%; }
.cstat:last-child { border-right: 0; }
.cstat-l { font-size: 13.5px; font-weight: 500; color: rgba(232, 237, 246, 0.7); }
.cstat-v { font-size: 17px; }
.cstat .cd { background: rgba(255, 255, 255, 0.14); color: #fff; }
.cstat .cd.is-urgent { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 640px) {
  .country-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .cstat { padding: 14px 0 0; margin: 0; border-right: 0; }
  .cstat:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .tabs { flex-wrap: wrap; }
}
.tabs { display: flex; gap: 10px; overflow-x: auto; padding-block: 20px 0; }
.tab { border: 1.5px solid var(--line); background: var(--surface); border-radius: var(--r-sm); padding: 9px 18px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tab:hover { border-color: var(--navy); }
.with-dock { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; width: min(var(--wrap), 100% - 32px); margin-inline: auto; align-items: start; }
.with-dock > .wrap { width: auto; margin: 0; }
.country-body { padding-block: 32px 72px; display: flex; flex-direction: column; gap: 56px; }
.c-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--hdr-h) + 24px); }
.uni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 20px; }
.uni-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.uni-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 14px; align-items: flex-start; }
.uni-top > div { flex: 1 1 170px; min-width: 0; }
.uni-top h3 { font-size: 19px; }
.uni-deadlines { display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; }
.dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; }
.dl-row .badge { margin-left: 0; }
.dl-row.is-past { opacity: 0.55; }
.dl-round { flex: 1; min-width: 150px; }
.dl-date { font-weight: 600; font-variant-numeric: tabular-nums; }
.uni-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.uni-facts dt { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.uni-facts dd { margin: 2px 0 0; line-height: 1.6; }
.uni-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.verify { display: inline-flex; gap: 5px; align-items: center; font-size: 13.5px; color: var(--ink-3); }
.verify.ok { color: var(--navy); }
.uni-more summary { cursor: pointer; font-weight: 500; color: var(--link); font-size: 15px; }
.uni-more[open] summary { margin-bottom: 12px; }
.uni-more h4 { font-size: 14px; color: var(--ink-3); margin-bottom: 8px; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; margin-top: 12px; line-height: 1.6; }
.tip .ic { color: var(--warn); margin-top: 3px; }
.sources { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.sources a { margin-right: 4px; }
.submit-band { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 28px; }
.submit-band > div { flex: 1; min-width: 260px; }
.list-dock { position: sticky; top: calc(var(--hdr-h) + 20px); margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.dock-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.dock-kicker { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.dock-count { font-weight: 600; font-size: 18px; }
.dock-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.dock-items li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.dock-empty { font-size: 14.5px; color: var(--ink-2); }
.dock-submit { width: 100%; white-space: normal; text-align: center; }
@media (max-width: 1020px) {
  .with-dock { grid-template-columns: minmax(0, 1fr); width: 100%; }
  .with-dock > .wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
  .list-dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); top: auto; margin: 0; z-index: 40; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
  .list-dock .dock-items, .list-dock .dock-empty { display: none; }
  .list-dock .dock-head { flex: 1; align-items: center; }
  .list-dock .dock-submit { width: auto; }
  body[data-route="country"] #app, body[data-route="deadlines"] #app { padding-bottom: 96px; }
}
.list-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-review li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table thead th { font-size: 13px; color: var(--ink-3); background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tr.is-past { opacity: 0.55; }
.table tbody th { font-weight: 500; }
.table.summary th { width: 36%; color: var(--ink-2); font-weight: 500; }
.table-compare td { min-width: 180px; }

/* ---------------------------------------------------------------- auth */
.auth-band { background: var(--surface); color: var(--ink); padding-block: 56px 112px; border-bottom: 1px solid var(--line); }
.auth-band h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 600; color: var(--navy); max-width: 20ch; }
.auth-band .lede { color: var(--ink-2); margin-top: 16px; }
.auth-card-wrap { margin-top: -72px; padding-bottom: 88px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(24px, 4vw, 48px); max-width: 580px; }
.auth-card.wide { max-width: 920px; }
.auth-card-title { font-size: 26px; }
.auth-divider { border-top: 1.5px dashed var(--line); margin-block: 8px; }
.demo-logins { display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.demo-logins .chip { border-color: var(--line); }
.demo-code { display: flex; gap: 8px; align-items: center; background: var(--gold-soft); border-radius: var(--r-sm); padding: 12px 16px; font-size: 15px; }
.steps { list-style: none; margin: 0 0 10px; padding: 0; display: flex; gap: 8px; }
.steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-3); border-top: 3px solid var(--line); padding-top: 10px; }
.steps li.done { border-top-color: var(--navy); color: var(--ink-2); }
.steps li.current { border-top-color: var(--gold); color: var(--ink); font-weight: 600; }
.step-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-weight: 700; font-size: 12px; }
.steps li.done .step-n { background: var(--brand); color: #fff; }
.steps li.current .step-n { background: var(--gold); color: var(--gold-ink); }
@media (max-width: 560px) { .step-l { display: none; } }
.step-count { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 8px; }
.role-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.role-option { position: relative; display: flex; gap: 14px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; background: var(--surface); }
.role-option > .ic { color: var(--navy); }
.role-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-option:hover { border-color: var(--navy); }
.role-option:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); background: var(--navy-soft); }
.role-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.role-text { display: flex; flex-direction: column; gap: 4px; }
.role-text span { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.terms { font-size: 15px; }
.otp-row { display: flex; gap: 10px; justify-content: center; }
.otp { width: 52px !important; height: 62px; text-align: center; font-size: 26px !important; font-weight: 700; padding: 0 !important; }
@media (max-width: 420px) { .otp { width: 42px !important; height: 54px; } .otp-row { gap: 6px; } }
.verify-head { display: flex; gap: 14px; align-items: flex-start; }
.verify-head .ic { color: var(--navy); }
.success-mark { width: 64px; height: 64px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
.next-steps { background: var(--surface-2); border-radius: var(--radius); padding: 18px; text-align: left; }
.next-steps h3 { margin-bottom: 8px; }

/* ---------------------------------------------------------------- dashboard */
.dash { width: min(1280px, 100% - 32px); margin-inline: auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-block: 36px 88px; align-items: start; }
.dash-nav { position: sticky; top: calc(var(--hdr-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.dash-who { display: flex; gap: 12px; align-items: center; padding: 0 6px 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 10px; }
.dash-avatar { width: 44px; height: 44px; border-radius: var(--radius); display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); flex: none; }
.dash-name { font-weight: 600; line-height: 1.3; margin-bottom: 6px; word-break: break-word; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.dash-nav a:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a.is-active { background: var(--navy-soft); color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
.dash-nav a.is-active .ic { color: var(--navy); }
.dash-logout { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); background: none; color: var(--ink-3); font: 500 15px/1.3 var(--font); cursor: pointer; text-align: left; }
.dash-logout:hover { color: var(--ink); }
@media (max-width: 900px) { .dash-logout { width: auto; margin-top: 6px; border-top: 0; } }
.dash-nav .count { margin-left: auto; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 700; border-radius: var(--r-sm); padding: 1px 8px; }
.dash-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dash-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--navy); }
.dash-head .muted { margin-top: 8px; max-width: 70ch; }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 20px; }
  .dash-nav { position: static; padding: 12px; }
  .dash-who { padding-bottom: 12px; }
  .dash-nav ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dash-nav a { white-space: nowrap; }
  .dash-nav a.is-active { box-shadow: inset 0 -3px 0 var(--gold); }
}
.panel { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 20px; }
.card-pad { padding: 30px; }
.center-card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 580px; margin-inline: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--navy); }
.stat-l { font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.stat-v { font-size: 28px; font-weight: 600; line-height: 1.2; color: var(--navy); }
.stat-f { font-size: 14px; }
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.quick-link:hover { background: var(--line-2); }
.quick-link .ic { color: var(--navy); }
.req-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.req { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.req.is-done { opacity: 0.65; }
blockquote { margin: 0; padding: 12px 16px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15px; white-space: pre-wrap; }
.kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 18px; font-size: 15px; }
.kv > div { display: contents; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; word-break: break-word; }
.copy-chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 2px 2px 2px 10px; max-width: 100%; }
.copy-val { font-variant-numeric: tabular-nums; font-weight: 500; overflow-wrap: anywhere; }
.saved-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.saved-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.saved-list li a { font-weight: 500; }
.timeline { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; line-height: 1.65; }
.timeline li::marker { font-weight: 700; color: var(--navy); }

/* CV analyzer */
.cv-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cv-out:empty { display: none; }
.cv-score { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.cv-score > div { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.cv-level { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: var(--r-sm); background: var(--gold-soft); color: var(--warn); }
.ring { width: 120px; height: 120px; flex: none; }
.ring-bg { fill: none; stroke: var(--line-2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 10; stroke-linecap: round; }
.ring-v { font: 700 32px var(--font); fill: var(--ink); }
.ring-l { font: 500 13px var(--font); fill: var(--ink-3); }
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 40px; gap: 14px; align-items: center; font-size: 15px; }
.bar { height: 8px; background: var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); border-radius: var(--r-sm); }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
@media (max-width: 560px) { .bar-row { grid-template-columns: minmax(0, 1fr) 40px; } .bar-row .bar { grid-column: 1 / -1; grid-row: 2; } }
.ai-note { display: flex; gap: 14px; align-items: flex-start; background: var(--navy-soft); border: 1px solid color-mix(in srgb, var(--navy) 16%, transparent); border-radius: var(--radius); padding: 18px 20px; }
.ai-note > .ic { color: var(--gold); margin-top: 3px; }
.ai-note > .spin { margin-top: 4px; color: var(--navy); }
.ai-note strong { display: block; color: var(--navy); margin-bottom: 2px; }
.ai-note p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.ai-note-sm { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.ai-note-sm .ic { color: var(--gold); margin-top: 3px; }
.school-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.school { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.school-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.school-head h3 { font-size: 17px; }
.school-head p { font-size: 14px; color: var(--ink-3); }
.school-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.school-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.school-lines li > .ic { margin-top: 2px; color: var(--ink-3); }
.school-lines li.is-ok > .ic { color: var(--navy); }
.school-lines li.is-gap > .ic { color: var(--warn); }
.school-head h3 a { color: inherit; text-decoration: none; }
.school-head h3 a:hover { text-decoration: underline; }
.school-why { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.school-why .ic { color: var(--gold); }
.fit { flex: none; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-sm); background: var(--line-2); color: var(--ink-2); white-space: nowrap; border: 1.5px solid transparent; }
.fit-reach { background: var(--gold-soft); color: var(--warn); }
.fit-match { background: var(--navy-soft); color: var(--navy); }
.fit-likely { background: var(--btn-bg); color: var(--btn-fg); }
.fit-needs { background: transparent; border-color: var(--gold); color: var(--warn); }
.fit-closed { background: var(--line-2); color: var(--ink-3); }
.ai-schools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ai-schools li { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.ai-schools li:last-child { border-bottom: 0; padding-bottom: 0; }
.ai-schools .row { gap: 10px; }

/* ---------------------------------------------------------------- inbox */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 520px; }
.inbox-col { border-right: 1px solid var(--line); max-height: 72vh; overflow-y: auto; }
.inbox-list { list-style: none; margin: 0; padding: 0; }
.inbox-list li { border-bottom: 1px solid var(--line-2); }
.msg-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: none; border: 0; padding: 16px 18px; cursor: pointer; }
.msg-row:hover { background: var(--surface-2); }
.inbox-list li.is-open .msg-row { background: var(--navy-soft); }
.msg-ic { width: 36px; height: 36px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--line-2); color: var(--navy); }
.msg-main { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.msg-title { font-size: 15px; line-height: 1.4; }
.is-unread .msg-title { font-weight: 700; }
.msg-time { font-size: 13px; color: var(--ink-3); }
.msg-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); margin-top: 7px; flex: none; }
.inbox-detail { padding: 26px 30px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; max-height: 72vh; }
.msg-head { display: flex; gap: 12px; align-items: flex-start; }
.msg-head h2 { font-size: 21px; }
.msg-foot { border-top: 1px solid var(--line-2); padding-top: 12px; }
.inbox-back { display: none; align-self: flex-start; }
.report-uni { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.report-dl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.report-dl li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 15px; }
.report-alumni { background: var(--surface-2); border-radius: var(--radius); padding: 16px; }
.report-alumni h3 { margin-bottom: 8px; }
@media (max-width: 900px) {
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox-col { border-right: 0; max-height: none; }
  .inbox-detail { display: none; max-height: none; padding: 22px 20px; }
  .inbox.show-detail .inbox-col { display: none; }
  .inbox.show-detail .inbox-detail { display: flex; }
  .inbox-back { display: inline-flex; }
}

/* ---------------------------------------------------------------- dialogs + toasts */
.dlg-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(6, 11, 24, 0.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 16px; }
.dlg { background: var(--surface); color: var(--ink); width: min(580px, 100%); max-height: calc(100vh - 32px); border-radius: var(--radius); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.dlg-wide { width: min(920px, 100%); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 22px 12px 28px; }
.dlg-head h2 { font-size: 21px; }
.dlg-body { padding: 6px 28px 22px; overflow-y: auto; }
.dlg-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 16px 22px 20px; border-top: 1px solid var(--line-2); }
.skip-link { position: absolute; left: 16px; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 200; padding: 10px 16px; border-radius: var(--r-sm); border: 0; background: var(--gold); color: var(--gold-ink); font: 600 14px/1 var(--font); }
.skip-link:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; padding: 0; overflow: hidden; white-space: nowrap; }
.skip-link:focus { outline: 3px solid var(--brand); outline-offset: 2px; }
#toasts { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 120; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #14213a; color: #e8edf6; padding: 13px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 15px; animation: toastIn 0.2s ease-out; border-left: 4px solid var(--gold); }
.toast-ok { border-left-color: #b4c7ea; }
.toast-error { border-left-color: #ff8f85; }
.toast.out { opacity: 0; transform: translateY(6px); transition: 0.25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1020px) { body[data-route="country"] #toasts, body[data-route="deadlines"] #toasts { bottom: 100px; } }

/* ---------------------------------------------------------------- pricing + pay */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-card.is-popular { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan-card.plan-vip { background: var(--brand); color: #e8edf6; border-color: var(--brand); }
.plan-card.plan-vip .muted { color: rgba(232, 237, 246, 0.74); }
.plan-card.plan-vip .btn-primary { background: var(--gold); color: var(--gold-ink); }
.plan-card.plan-vip .ticks li::before { border-color: var(--gold); }
.plan-card .plan-price { font-size: 38px; line-height: 1.1; }
.plan-card .plan-price span { font-size: 15px; font-weight: 400; margin-left: 6px; opacity: 0.75; }
.plan-flag { position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--gold-ink); font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: var(--r-sm); }
.plan-card .ticks { margin-top: 6px; }
.is-current { cursor: default; }
@media (max-width: 900px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.compare h2, .faq h2 { margin-bottom: 16px; }
.compare .yes { color: var(--navy); }
.compare .no { color: var(--ink-3); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 75ch; }
.pay { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.pay-qr { display: flex; flex-direction: column; gap: 10px; }
.qr-box { background: #fff; border-radius: var(--radius); padding: 12px; border: 1px solid var(--line); display: grid; place-items: center; min-height: 240px; }
.qr-box img, .qr-box svg { width: 232px; height: 232px; display: block; }
.pay-what { font-weight: 500; }
.pay-amount { font-weight: 700; font-size: 32px; font-variant-numeric: tabular-nums; }
.pay-fields { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pay-fields > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; }
.pay-fields dt { color: var(--ink-3); }
.pay-fields dd { margin: 0; }
.pay-status { display: flex; gap: 8px; align-items: center; font-weight: 600; padding: 12px 14px; border-radius: var(--r-sm); background: var(--line-2); }
.pay-status.is-submitted { background: var(--gold-soft); color: var(--warn); }
.pay-status.is-paid { background: var(--navy-soft); color: var(--navy); }
.vnpay-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.or-line { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 700px) { .pay { grid-template-columns: minmax(0, 1fr); } .pay-qr { align-items: center; } .pay-fields > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------------------------------------------------------------- admin */
.dl-editor { display: flex; flex-direction: column; gap: 10px; }
.dl-edit-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 170px 150px 40px; gap: 10px; align-items: center; }
@media (max-width: 700px) { .dl-edit-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-editor { display: flex; flex-direction: column; gap: 10px; }
.team-edit-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr) 40px; gap: 10px; align-items: center; }
@media (max-width: 700px) { .team-edit-row { grid-template-columns: minmax(0, 1fr) 40px; } .team-edit-row > input:nth-child(1) { grid-column: 1 / -1; } .team-edit-row > input:nth-child(2) { grid-column: 1 / -1; } }
.setup-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.setup-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.setup-item p { color: var(--ink-2); font-size: 15px; margin-top: 4px; white-space: pre-line; }
.setup-ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--line-2); color: var(--ink-2); }
.setup-item.is-ok .setup-ic { background: var(--navy-soft); color: var(--navy); }
.setup-item.is-todo .setup-ic { background: var(--gold-soft); color: var(--warn); }

/* ---------------------------------------------------------------- contact */
.grid-contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .grid-contact { grid-template-columns: minmax(0, 1fr); } }
.contact-body { gap: 56px; }
.team-section { display: flex; flex-direction: column; gap: 24px; }
.team-lede { margin-top: 8px; }
/* five people: three, then two centred beneath (two per row on tablets, one per row on phones) */
.team-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.team-card { flex: 0 1 calc((100% - 40px) / 3); display: flex; gap: 14px; align-items: flex-start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.team-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-role { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); }
.team-name { font-size: 17.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.team-mail { display: flex; align-items: flex-start; gap: 4px; margin-top: 8px; min-width: 0; font-size: 14px; }
.team-mail a { min-width: 0; padding-top: 2px; }
.team-card .avatar { width: 44px; height: 44px; font-size: 15px; }
.contact-note { max-width: 78ch; }
@media (max-width: 900px) { .team-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .team-card { flex-basis: 100%; } .contact-body { gap: 40px; } }
.prose { max-width: 78ch; }
.prose section { display: flex; flex-direction: column; gap: 12px; }
.prose h2 { font-size: 22px; margin-top: 12px; }
.prose p { color: var(--ink-2); }
.prose-dialog { display: flex; flex-direction: column; gap: 20px; }
.prose-dialog h3 { font-size: 17px; }

/* ---------------------------------------------------------------- news */
.news-list { display: flex; flex-direction: column; gap: 28px; }
.news-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.news-feature-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.news-feature h2 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.3; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.news-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.news-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card h3 { font-size: 18px; line-height: 1.4; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--ink-3); }
.news-meta .badge { margin-left: 0; }
.news-cat { font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.news-sum { color: var(--ink-2); }
.news-card .news-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-link { color: var(--ink); text-decoration: none; }
.news-link::after { content: ""; position: absolute; inset: 0; }
.news-feature, .news-card { position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.news-feature:hover, .news-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.news-feature:hover .news-link, .news-card:hover .news-link { color: var(--navy); }
.news-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: 15px; }
.news-feature .edit-btn, .news-card .edit-btn, .news-feature .news-more { position: relative; z-index: 1; }
/* cover: the post's picture, or a navy plate with the topic mark and the day it was published */
.news-plate, .news-img { display: block; width: 100%; background: var(--brand); color: #fff; }
.news-img { object-fit: cover; }
.news-plate { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 24px;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px); background-color: var(--brand); }
.news-plate[data-cat="admissions"] { border-bottom: 4px solid var(--gold); }
.news-plate[data-cat="event"] { background-color: #23406b; }
.news-plate[data-cat="tips"] { background-color: #2a3b52; }
.news-plate-ic { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--r-sm); color: var(--gold); }
.news-plate-date { font-size: 34px; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1; color: rgba(255, 255, 255, 0.92); align-self: flex-end; }
.news-plate.is-card, .news-img.is-card { aspect-ratio: 16 / 7; max-width: 100%; }
.news-plate.is-feature, .news-img.is-feature { height: 100%; min-height: 260px; }
.news-plate.is-feature .news-plate-date { font-size: 56px; }
.news-img.is-article { aspect-ratio: 16 / 8; max-width: 100%; border-radius: var(--radius); margin-block: 8px; }
@media (max-width: 760px) {
  .news-feature { grid-template-columns: minmax(0, 1fr); }
  .news-plate.is-feature, .news-img.is-feature { min-height: 0; aspect-ratio: 16 / 7; max-width: 100%; }
  .news-plate.is-feature .news-plate-date { font-size: 38px; }
  .news-feature-body { padding: 22px; }
}
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--navy); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article { max-width: 72ch; display: flex; flex-direction: column; gap: 18px; }
.article h1 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); line-height: 1.25; }
.article-lede { font-size: 19px; color: var(--ink-2); line-height: 1.6; }
.article-body { display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 22px; }
.article-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.article-more { margin-top: 24px; display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--line); padding-top: 32px; }
.article-more h2 { font-size: 22px; }

/* ---------------------------------------------------------------- university page */
.uni-hero .back-link { margin-bottom: 18px; }
.uni-where { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.uni-sec { display: flex; flex-direction: column; gap: 16px; }
.uni-sec > h2, .uni-sec > .row-between h2 { font-size: 22px; }
.uni-rounds { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.uni-round { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 20px; }
.uni-round + .uni-round { border-top: 1px solid var(--line-2); }
.uni-round.is-past { opacity: 0.55; }
.uni-round-date { font-weight: 600; font-size: 17px; color: var(--navy); font-variant-numeric: tabular-nums; }
.uni-round-name { font-weight: 500; }
@media (max-width: 560px) { .uni-round { grid-template-columns: minmax(0, 1fr) auto; } .uni-round-name { grid-column: 1 / -1; grid-row: 2; } }
.elig-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 26px 30px; background: var(--brand); color: #fff; border-radius: var(--radius); }
.elig-band h2 { font-size: 21px; color: #fff; }
.elig-band p { color: rgba(232, 237, 246, 0.85); margin-top: 6px; max-width: 62ch; }
.elig-ic { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--r-sm); color: var(--gold); }
@media (max-width: 760px) { .elig-band { grid-template-columns: minmax(0, 1fr); padding: 22px; } .elig-ic { display: none; } .elig-band .btn { justify-self: start; } }
.req-grid { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.req-cell { background: var(--surface); padding: 18px 20px; }
.req-cell dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.req-cell dd { margin: 8px 0 0; line-height: 1.6; }
.req-docs { display: flex; flex-direction: column; gap: 12px; }
.req-docs h3 { font-size: 17px; }
.dl-title-link { color: inherit; text-decoration: none; }
.dl-title-link:hover { color: var(--navy); text-decoration: underline; }
.dl-more { font-weight: 600; }

/* ---------------------------------------------------------------- edit mode (admins) */
.edit-btn { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 4px 10px; border: 1px dashed var(--gold); border-radius: var(--r-sm);
  background: var(--gold-soft); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.4; }
.edit-btn:hover { background: var(--gold); color: var(--gold-ink); }
.person-top .edit-btn { align-self: flex-start; }
body.is-editing .listing, body.is-editing .person, body.is-editing .news-card, body.is-editing .news-feature, body.is-editing .uni-card, body.is-editing .dl-item { outline: 1px dashed rgba(251, 172, 25, 0.55); outline-offset: 3px; }
#edit-bar { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  max-width: calc(100% - 32px); padding: 10px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 14px; }
.edit-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.edit-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.edit-knob { width: 36px; height: 20px; border-radius: var(--r-sm); background: var(--line); position: relative; flex: none; transition: background 0.15s; }
.edit-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.edit-switch input:checked + .edit-knob { background: var(--gold); }
.edit-switch input:checked + .edit-knob::after { transform: translateX(16px); }
.edit-switch input:focus-visible + .edit-knob { outline: 3px solid var(--gold); outline-offset: 2px; }
.edit-hint { color: var(--ink-2); font-size: 13.5px; }
.edit-dash { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--navy); text-decoration: none; }
.edit-dash:hover { text-decoration: underline; }
.multi-field { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0; }
.multi-field legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.multi-check { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px 16px; }
.texts-list { display: flex; flex-direction: column; gap: 12px; }
.text-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.text-row.is-changed { border-left: 3px solid var(--gold); }
.text-key { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.text-key code { font-size: 12.5px; color: var(--ink-3); overflow-wrap: anywhere; }
.text-row input, .text-row textarea { width: 100%; }

/* ---------------------------------------------------------------- activities with roles, awards */
.act-field, .award-field { display: flex; flex-direction: column; gap: 12px; }
.act-add { display: flex; gap: 10px; align-items: center; }
.act-add input { flex: 1; min-width: 0; }
.act-add .btn { flex: none; min-height: 48px; }
.act-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.act-list:empty { display: none; }
.act-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 250px) 32px; gap: 10px; align-items: center; padding: 8px 10px 8px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--r-sm); }
.act-row.needs-role { border-left-color: var(--gold); background: var(--gold-soft); }
.act-row.needs-role select { border-color: var(--gold); }
.act-name { font-weight: 600; overflow-wrap: anywhere; }
.act-row select { min-height: 40px; padding-block: 7px; font-size: 15px; }
.role-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.role-choices .chip { justify-content: flex-start; min-height: 44px; }
.award-list { display: flex; flex-direction: column; gap: 8px; }
.award-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr) minmax(0, 1.1fr) 76px 32px; gap: 8px; align-items: center; padding: 8px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--r-sm); }
.award-row.is-incomplete { border-left-color: var(--gold); background: var(--gold-soft); }
.award-row input, .award-row select { min-height: 40px; padding-block: 7px; font-size: 15px; }
@media (max-width: 760px) {
  .act-row { grid-template-columns: minmax(0, 1fr) 32px; }
  .act-row select { grid-column: 1 / -1; grid-row: 2; }
  .award-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px; }
  .award-row > input:first-child { grid-column: 1 / -1; }
  .award-row > input[inputmode] { grid-column: 1 / 2; }
}
@media (max-width: 420px) { .role-choices { grid-template-columns: minmax(0, 1fr); } }
.bar-w { color: var(--ink-3); font-weight: 400; font-size: 13.5px; }
.cv-focus { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 14px; }
.cv-focus > .ic { color: var(--navy); margin-top: 3px; }
.cv-focus strong { color: var(--ink); font-weight: 600; }
.school-weights { font-size: 13.5px; color: var(--ink-3); }
.weights-edit { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.weights-cell { display: flex !important; flex-direction: column; gap: 6px; font-size: 13.5px !important; margin: 0 !important; }
@media (max-width: 700px) { .weights-edit { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- academic profile at a glance (student overview) */
.pf-card { gap: 18px; }
.pf-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.pf-facts > div { background: var(--surface); padding: 12px 14px; min-width: 0; }
.pf-facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pf-facts dd { margin: 4px 0 0; font-weight: 600; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.pf-facts dd.muted { font-weight: 400; }
.pf-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: start; }
.pf-label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); padding-top: 5px; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; font-size: 14px; font-weight: 600; background: var(--navy-soft); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); }
.pf-chip .ic { color: var(--gold); align-self: center; }
.pf-chip.is-award { background: var(--gold-soft); }
.pf-chip.is-missing { border-style: dashed; border-color: var(--gold); background: var(--surface); }
.pf-sub { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.pf-more { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.pf-warn { font-size: 14px; color: var(--warn); display: flex; align-items: center; gap: 4px; }
.pf-warn a { color: inherit; }
@media (max-width: 900px) { .pf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pf-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .pf-label { padding-top: 0; } }
.cv-load { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 4px;
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--navy); border-radius: var(--r-sm); }
.cv-load > div { flex: 1 1 260px; min-width: 0; }

/* ---------------------------------------------------------------- footer */
#site-footer { background: var(--brand); color: rgba(232, 237, 246, 0.8); padding-block: 56px 28px; font-size: 15px; }
#site-footer .brand { color: #fff; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 34ch; }
.foot-h { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.foot-contact p { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.foot-nav { display: flex; flex-direction: column; gap: 9px; }
#site-footer a { color: rgba(232, 237, 246, 0.86); }
#site-footer a:hover { color: var(--gold); }
.foot-link { display: inline-block; margin-top: 8px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(232, 237, 246, 0.14); margin-top: 36px; padding-top: 20px; font-size: 13.5px; color: rgba(232, 237, 246, 0.62); }
@media (max-width: 860px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* the header logo follows the theme */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hdr-bar .logo-on-light { display: none; }
  :root:not([data-theme="light"]) .hdr-bar .logo-on-dark { display: inline; }
}
:root[data-theme="dark"] .hdr-bar .logo-on-light { display: none; }
:root[data-theme="dark"] .hdr-bar .logo-on-dark { display: inline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
