/* Defence Pariksha. Palette: navy (command), olive (field), brass (insignia), khaki (drill ground).
   Signature: the SSB chest-number bib, a white cloth number on a stencil face. */
:root {
  --bg: #F4F2EA; --surface: #FFFFFF; --surface-2: #F9F8F3; --ink: #141D2B; --muted: #596172; --line: #DCD8CA;
  --navy: #17263D; --navy-2: #22365A; --on-navy: #F4F2EA; --olive: #4B5A2A; --olive-2: #5E6F37; --olive-soft: #E5E9D5;
  --brass: #7A5A1A; --brass-hi: #E0B256; --on-accent: #FFFFFF; --khaki: #E8E1CA; --sand: #D9CFAF;
  --ok: #3F6B35; --ok-soft: #E2EDDC; --bad: #A33A32; --bad-soft: #F6E2DE; --warn: #8A5A08; --warn-soft: #F5E9CC;
  --mark: #5B3F8C; --mark-soft: #ECE4F6;
  --f-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-stencil: "Saira Stencil One", "Barlow Condensed", Impact, sans-serif;
  --r: 8px; --r-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 29, 43, .06), 0 8px 24px rgba(20, 29, 43, .08);
  --shadow-lg: 0 20px 50px rgba(20, 29, 43, .18);
  --q-filter: none; --q-bg: #fff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0E131B; --surface: #161D28; --surface-2: #1B2430; --ink: #E7E4D9; --muted: #9BA2AE; --line: #2A3445;
  --navy: #0B1220; --navy-2: #16243C; --on-navy: #EDEAE0; --olive: #A9B97A; --olive-2: #93A363; --olive-soft: #222A1B;
  --brass: #D9AE5A; --brass-hi: #E9C273; --on-accent: #10150A; --khaki: #232A21; --sand: #3A3A2C;
  --ok: #8CC07D; --ok-soft: #1C2A19; --bad: #E58A8A; --bad-soft: #2E1C1C; --warn: #E0B055; --warn-soft: #2C2516;
  --mark: #B9A2E3; --mark-soft: #251F33;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --q-filter: invert(.9) hue-rotate(180deg) contrast(.9); --q-bg: #1a1a1a; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0E131B; --surface: #161D28; --surface-2: #1B2430; --ink: #E7E4D9; --muted: #9BA2AE; --line: #2A3445;
  --navy: #0B1220; --navy-2: #16243C; --on-navy: #EDEAE0; --olive: #A9B97A; --olive-2: #93A363; --olive-soft: #222A1B;
  --brass: #D9AE5A; --brass-hi: #E9C273; --on-accent: #10150A; --khaki: #232A21; --sand: #3A3A2C;
  --ok: #8CC07D; --ok-soft: #1C2A19; --bad: #E58A8A; --bad-soft: #2E1C1C; --warn: #E0B055; --warn-soft: #2C2516;
  --mark: #B9A2E3; --mark-soft: #251F33;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.5);
  --q-filter: invert(.9) hue-rotate(180deg) contrast(.9); --q-bg: #1a1a1a; color-scheme: dark; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--olive); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: var(--on-navy); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.04; margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 76px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 24px; font-weight: 600; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.eyebrow { font: 500 12px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow.live-dot { display: block; }
.eyebrow.live-dot::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 10px 0 4px; width: 8px; height: 8px; border-radius: 50%; background: #C0392B; box-shadow: 0 0 0 4px rgba(192, 57, 43, .15); }
.eyebrow.light, .light { color: var(--brass-hi); }
.lede { font-size: 18px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; letter-spacing: .02em; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.spacer { flex: 1; }
.kbd { font: 500 12px var(--f-mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: var(--surface); }

/* ---------- buttons & pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--surface); font-weight: 600; text-decoration: none; color: var(--ink); cursor: pointer; transition: transform .12s, filter .12s, border-color .12s; }
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--olive); color: #fff; border-color: var(--olive); }
:root[data-theme="dark"] .btn.primary { color: #10150a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #10150a; } }
.btn.primary:hover { filter: brightness(1.08); }
.btn.olive { background: var(--olive-2); color: var(--on-accent); border-color: var(--olive-2); }
.btn.light { background: var(--brass-hi); color: #1a1406; border-color: var(--brass-hi); }
.btn.outline-light { background: transparent; color: var(--on-navy); border-color: rgba(255,255,255,.35); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { border-color: var(--line); }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding: 4px 0; }
.link-arrow:hover { border-color: var(--olive); }
.iconbtn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; border: 1px solid currentColor; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.off { color: var(--muted); } .pill.brass { color: var(--brass); } .pill.mark { color: var(--mark); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--olive); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }

/* ---------- the chest-number bib ---------- */
.bib { --w: 64px; --h: 52px; position: relative; display: inline-grid; place-items: center; width: var(--w); height: var(--h); flex: none;
  background: #FBFAF4; color: #141414; border: 2px solid #141414; border-radius: 6px; box-shadow: 0 2px 0 rgba(0,0,0,.15);
  font: 400 calc(var(--h) * .58)/1 var(--f-stencil); letter-spacing: .02em; }
.bib i { position: absolute; top: 5px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #8b8b8b; background: #d9d9d9; }
.bib i:first-child { left: 6px; } .bib i:nth-child(2) { right: 6px; }
.bib b { font-weight: 400; margin-top: 6%; }
.bib-logo { --w: 40px; --h: 34px; background: var(--brass-hi); border-color: #141414; font-size: 18px; }
.bib-logo i { top: 3px; width: 5px; height: 5px; }
.bib-sm { --w: 44px; --h: 36px; }
.bib-lg { --w: 78px; --h: 64px; }
.bib-xl { --w: 112px; --h: 92px; }
.bib-xxl { --w: 190px; --h: 156px; border-width: 3px; }
.bib-xxl i { width: 12px; height: 12px; top: 10px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-text { display: grid; line-height: .92; font-family: var(--f-display); text-transform: uppercase; letter-spacing: .06em; }
.logo-text b { font-size: 19px; font-weight: 700; }
.logo-text span { font-size: 13px; color: var(--brass); letter-spacing: .22em; }
.brand { text-decoration: none; color: inherit; }

/* ---------- top of site ---------- */
.preview-banner { background: var(--warn-soft); color: var(--warn); font-size: 12.5px; text-align: center; padding: 5px 16px; }
.announce { background: var(--navy); color: var(--on-navy); font-size: 14px; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; flex-wrap: wrap; text-align: center; }
.announce-tag { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); }
.announce-link { color: var(--brass-hi); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 14px; min-height: 70px; }
.site-nav { display: flex; gap: 22px; margin-left: 26px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--olive); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy > * { min-width: 0; }
.hero h1 { color: var(--navy); }
:root[data-theme="dark"] .hero h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero h1 { color: var(--ink); } }
.hero h1 em { font-style: normal; color: var(--olive); }
.exam-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.exam-chip { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; }
.exam-chip b { font: 700 18px/1 var(--f-display); letter-spacing: .02em; }
.exam-chip small { font-size: 11.5px; color: var(--muted); }
.exam-chip.is-live { border-color: var(--olive); box-shadow: inset 0 -3px 0 var(--olive); }
.exam-chip.is-live small { color: var(--olive); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.ticks li { display: inline-flex; align-items: center; gap: 6px; } .ticks svg { color: var(--olive); }
.hero-visual { position: relative; min-height: 560px; }
.ph { margin: 0; border-radius: var(--r-lg); overflow: hidden; position: absolute; box-shadow: var(--shadow-lg); background: var(--sand); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-main { inset: 0 0 60px 70px; }
.ph-main figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; font-size: 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ph-a { width: 200px; height: 150px; left: 0; bottom: 0; border: 5px solid var(--bg); }
.ph-b { width: 180px; height: 120px; right: -10px; top: -14px; border: 5px solid var(--bg); }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px 14px; display: grid; gap: 6px; }
.chest-card { left: 8px; top: 64px; justify-items: center; text-align: center; transform: rotate(-4deg); width: 168px; }
.count-card { right: 18px; bottom: 26px; background: var(--navy); color: var(--on-navy); border-color: transparent; min-width: 160px; }
.count-card b { font: 700 52px/1 var(--f-display); color: var(--brass-hi); }
.count-card span:last-child { font-size: 13px; opacity: .85; }
.count-card .tiny { color: var(--brass-hi); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; }
.q-card { left: 120px; bottom: 120px; width: 230px; transform: rotate(2deg); }
.q-card .tiny { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.q-line { font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.q-opts { display: flex; gap: 6px; } .q-opts i { font-style: normal; flex: 1; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; font-weight: 600; }
.q-opts i.on { background: var(--olive); color: var(--on-accent); border-color: var(--olive); }
.q-mark { font: 500 11px var(--f-mono); color: var(--muted); }

/* ---------- bands & sections ---------- */
.stats-band { background: var(--navy); color: var(--on-navy); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 34px; padding-bottom: 34px; gap: 20px; }
.stats-grid div { display: grid; gap: 6px; border-left: 2px solid var(--brass); padding-left: 16px; }
.stats-grid b { font: 700 48px/1 var(--f-display); color: var(--brass-hi); }
.stats-grid span { font-size: 14px; opacity: .85; max-width: 22ch; }
.block { padding: 88px 0; }
.block.tint { background: var(--khaki); }
.sec-head { display: grid; gap: 14px; margin-bottom: 36px; align-content: start; }
.sec-head h2 { color: var(--navy); }
:root[data-theme="dark"] .sec-head h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sec-head h2 { color: var(--ink); } }
.sec-head.center { text-align: center; justify-items: center; }
.sec-head.row { grid-template-columns: 1fr 1fr; align-items: end; gap: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split .sec-head { margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.feature-list svg { color: var(--olive); margin-top: 4px; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--sand); }
.svc img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover img { transform: scale(1.04); }
.svc-over { position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(8, 14, 24, .88)); color: #fff; display: grid; gap: 6px; }
.svc-over h3 { font-size: 30px; }
.svc-over p { font-size: 14px; opacity: .9; }
.tag { justify-self: start; font: 500 10.5px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; background: var(--brass-hi); color: #1a1406; padding: 4px 8px; border-radius: 3px; }

.mock-stack { display: grid; gap: 10px; }
.mock-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s; }
.mock-row.live { border-color: var(--olive); }
.mock-row:hover { transform: translateX(3px); }
.mock-no { font: 400 30px/1 var(--f-stencil); color: var(--brass); }
.mock-main { display: grid; } .mock-main small { color: var(--muted); }

.aim-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.aim { display: grid; grid-template-columns: 92px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.aim-date { background: var(--navy); color: var(--on-navy); border-radius: var(--r); display: grid; place-content: center; text-align: center; padding: 10px; }
.aim-date b { font: 700 42px/1 var(--f-display); color: var(--brass-hi); } .aim-date span { font-size: 13px; }
.aim-body { display: grid; gap: 8px; align-content: start; justify-items: start; }
.seat-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; width: 100%; } .seat-bar i { display: block; height: 100%; background: var(--olive); }

.feature-rows { display: grid; gap: 64px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: grid; gap: 14px; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 42px); color: var(--navy); }
:root[data-theme="dark"] .feature-copy h3 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .feature-copy h3 { color: var(--ink); } }
.feature-copy p { color: var(--muted); font-size: 16.5px; }
.feature-vis { background: var(--khaki); border-radius: var(--r-lg); padding: 34px; display: grid; place-items: center; min-height: 320px; }
.vis-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 12px; width: min(380px, 100%); }
.vis-card .tiny { font: 500 10.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.vis-q { font-size: 14px; }
.unit { width: 100%; max-width: 240px; justify-self: center; color: var(--ink); }
.vis-opts, .topic-pills, .len { display: flex; flex-wrap: wrap; gap: 8px; }
.vis-opts i, .topic-pills i, .len i { font-style: normal; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px; font-size: 13.5px; background: var(--surface); }
.vis-opts i.on, .topic-pills i.on, .len i.on { background: var(--olive); color: var(--on-accent); border-color: var(--olive); }
.len i { border-radius: 6px; font: 700 20px var(--f-display); padding: 8px 18px; }
.rep-score b { font: 700 54px/1 var(--f-display); color: var(--olive); } .rep-score span { color: var(--muted); }
.rep-row { display: grid; grid-template-columns: 170px 1fr 84px; gap: 12px; align-items: center; font-size: 14px; padding: 6px 0; }
.rep-row small { grid-column: 1 / -1; margin-top: -4px; }
.rep-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; } .rep-bar i { display: block; height: 100%; background: var(--olive); border-radius: 5px; }
.ssb-vis { grid-template-columns: auto 1fr; align-items: center; }
.days { display: grid; gap: 4px; margin-top: 6px; } .days i { font-style: normal; font-size: 12.5px; display: flex; gap: 8px; align-items: center; color: var(--muted); }
.days b { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--brass-hi); display: grid; place-items: center; font: 600 11px var(--f-mono); }

.road { position: relative; color: #fff; padding: 110px 0; overflow: hidden; background: #0b111b; }
.road-bg { position: absolute; inset: 0; } .road-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.road::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,13,22,.55), rgba(8,13,22,.9)); }
.road-inner { position: relative; z-index: 1; }
.road .sec-head h2 { color: #fff; } .road .lede { color: rgba(255,255,255,.8); }
.road-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.road-steps li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 16px 14px; display: grid; gap: 8px; align-content: start; backdrop-filter: blur(4px); }
.road-steps li.focus { background: #4B5A2A; border-color: #6d7f3f; }
.road-steps li.ssb { border-color: #E0B256; }
.step-no { font: 400 26px/1 var(--f-stencil); color: #E0B256; }
.road-steps .focus .step-no { color: #fff; }
.road-steps b { font: 700 20px/1.05 var(--f-display); }
.road-steps .when { font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.road-steps p { font-size: 13px; opacity: .85; }

.exam-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.exam-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: 150px 1fr; box-shadow: var(--shadow); }
.exam-card.is-live { border-color: var(--olive); box-shadow: 0 0 0 1px var(--olive), var(--shadow); }
.exam-ph { background: var(--sand); } .exam-ph img { width: 100%; height: 100%; object-fit: cover; }
.exam-ph.plain { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--khaki) 0 12px, var(--surface-2) 12px 24px); }
.exam-card:not(.is-live) .exam-ph img { filter: grayscale(.5); }
.xc-body { padding: 16px; display: grid; gap: 8px; align-content: start; justify-items: start; }
.xc-body h3 { font-size: 30px; }
.xc-body dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; margin: 4px 0 8px; }
.xc-body dt { color: var(--muted); }
.xc-body dd { margin: 0; }

.loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.loop-step { background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 8px; border: 1px solid var(--line); }
.loop-no { font: 400 40px/1 var(--f-stencil); color: var(--brass); }

.admit-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.admit { background: var(--surface); border: 2px solid var(--navy); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.5deg); }
:root[data-theme="dark"] .admit { border-color: var(--brass); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .admit { border-color: var(--brass); } }
.admit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--navy); color: var(--on-navy); flex-wrap: wrap; }
.admit-head .logo { color: var(--on-navy); }
.admit-title { font: 500 11px var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-hi); }
.admit-body { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 22px 20px; }
.admit-photo { border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; padding: 12px; }
.admit dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.admit dt { color: var(--muted); font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; align-self: center; }
.admit dd { margin: 0; font-weight: 600; }
.admit-foot { border-top: 1px dashed var(--line); padding: 10px 20px; font-size: 12px; color: var(--muted); }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.3 var(--f-body); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--f-display); color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 64ch; }

.site-footer { background: var(--navy); color: var(--on-navy); padding: 56px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4, .foot-grid .foot-h { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-hi); margin-bottom: 12px; }
.foot-grid > div > a, .foot-grid > div > span { display: block; color: var(--on-navy); opacity: .85; text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-grid .logo-text span { color: var(--brass-hi); }
.foot-grid > div > a:hover { opacity: 1; text-decoration: underline; }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand .logo { color: var(--on-navy); }
.foot-brand p { opacity: .75; font-size: 14px; }
.disclaimer { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12.5px; opacity: .7; max-width: 100ch; }
.disclaimer a { color: var(--brass-hi); }

/* ---------- sign in, credits, sample, lost ---------- */
.signin { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 140px); }
.signin-photo { position: relative; background: var(--sand); }
.signin-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.signin-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(8,13,22,.85)); }
.signin-quote { position: absolute; left: 32px; bottom: 32px; z-index: 1; color: #fff; display: grid; gap: 4px; }
.signin-quote b { font: 700 64px/1 var(--f-display); color: #E0B256; }
.signin-panel { display: grid; place-items: center; padding: 40px 20px; }
.signin-panel .panel { width: min(420px, 100%); display: grid; gap: 16px; justify-items: start; }
.signin-panel h1 { font-size: 44px; }
.note { font-size: 13.5px; color: var(--muted); background: var(--surface-2); border: 1px dashed var(--line); padding: 10px 12px; border-radius: var(--r); }
.account { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; width: 100%; text-align: left; box-shadow: var(--shadow); }
.account:hover { border-color: var(--olive); }
.credits { padding: 48px 16px 80px; display: grid; gap: 16px; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.credit-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.credit-grid img { width: 100%; height: 150px; object-fit: cover; }
.credit-grid figcaption { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.sample { padding: 40px 16px 80px; max-width: 900px; display: grid; gap: 20px; }
.sample-head { display: grid; gap: 10px; } .sample-head h1 { font-size: clamp(34px, 5vw, 52px); }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; }
.progress i { height: 6px; border-radius: 3px; background: var(--line); } .progress i.done { background: var(--olive); } .progress i.now { background: var(--brass); }
.sample-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.feedback { padding: 12px 14px; border-radius: var(--r); font-weight: 600; } .feedback.ok { background: var(--ok-soft); color: var(--ok); } .feedback.bad { background: var(--bad-soft); color: var(--bad); }
.sample-actions { display: flex; gap: 10px; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.lost { padding: 100px 16px; display: grid; gap: 20px; justify-items: start; }

/* ---------- portal shell ---------- */
.portal { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 18px; }
.side-exam { background: var(--navy); color: var(--on-navy); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 2px; }
.side-exam b { font: 700 18px var(--f-display); } .side-exam .tiny { color: var(--brass-hi); font-family: var(--f-mono); font-size: 11px; }
.side nav { display: grid; gap: 2px; }
.side nav a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.side nav a:hover { background: var(--surface-2); }
.side nav a.on { background: var(--olive-soft); color: var(--olive); font-weight: 600; }
.nav-mark { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--line); display: grid; place-items: center; font: 400 14px var(--f-stencil); background: var(--surface-2); }
.side nav a.on .nav-mark { background: var(--olive); color: var(--on-accent); border-color: var(--olive); }
.side nav small { font: 500 10px var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.side-foot { margin-top: auto; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; } .me > span:last-child { display: grid; min-width: 0; } .me small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.side-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.portal-top { display: none; }
.side-backdrop { display: none; }
.portal-content { padding: 28px clamp(16px, 3vw, 40px) 64px; display: grid; gap: 22px; align-content: start; max-width: 1180px; width: 100%; }
.page-head { display: grid; gap: 10px; justify-items: start; }
.page-head h1 { font-size: clamp(36px, 4.6vw, 54px); color: var(--navy); }
:root[data-theme="dark"] .page-head h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .page-head h1 { color: var(--ink); } }
.back { font-size: 14px; text-decoration: none; }
.soon { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); padding: 12px 16px; border-radius: var(--r); }
.panel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.panel-card h2 { font-size: 26px; }
.panel-card.tip { background: var(--khaki); box-shadow: none; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-head a { font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.empty-state { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--muted); }
.empty-state.small { padding: 24px; }

.ov-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; min-height: 260px; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 28px; gap: 20px; background: #0b111b; }
.ov-photo { position: absolute; inset: 0; } .ov-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.ov-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,22,.92) 0%, rgba(8,13,22,.55) 70%, rgba(8,13,22,.3)); }
.ov-copy, .ov-count { position: relative; z-index: 1; }
.ov-copy { display: grid; gap: 12px; justify-items: start; max-width: 560px; }
.ov-copy .eyebrow, .ov-copy .tiny { color: #E0B256; }
.ov-copy h1 { font-size: clamp(36px, 4.6vw, 54px); }
.ov-copy p { opacity: .88; }
.ov-copy .btn.light { background: #E0B256; border-color: #E0B256; color: #1a1406; }
.ov-count { text-align: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r); padding: 14px 20px; display: grid; backdrop-filter: blur(6px); }
.ov-count b { font: 700 64px/1 var(--f-display); color: #E0B256; } .ov-count small { opacity: .7; font-size: 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; display: grid; gap: 6px; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.tile .tiny { color: var(--muted); font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.tile b { font: 700 38px/1 var(--f-display); } .tile b small { font-size: 18px; color: var(--muted); } .tile > small { color: var(--muted); font-size: 12.5px; }
.tile.ok b { color: var(--ok); } .tile.bad b { color: var(--bad); } .tile b.t-small { font: 500 24px/1.4 var(--f-mono); }
.tile.link:hover { border-color: var(--olive); }
.mini-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; } .mini-bar i { display: block; height: 100%; background: var(--olive); }
.ov-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.mock-mini { display: grid; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.mock-mini > div:first-child { display: grid; } .mock-mini small { color: var(--muted); font-size: 12.5px; }
.mm-paper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; } .mm-paper > span:first-child { width: 52px; font-weight: 600; }
.locked { opacity: .7; }
.agenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.agenda li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.agenda li > span:last-child { display: grid; } .agenda small { color: var(--muted); font-size: 12.5px; }
.ag-date { display: grid; text-align: center; font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; }
.ag-date b { font: 700 22px/1 var(--f-display); color: var(--ink); }
.agenda .exam-day .ag-date { background: var(--navy); border-color: var(--navy); color: var(--brass-hi); } .agenda .exam-day .ag-date b { color: var(--brass-hi); }

.mocks-full { display: grid; gap: 16px; }
.mock-card { display: grid; grid-template-columns: 110px 1fr; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.mc-side { display: grid; place-items: start center; }
.mc-main { display: grid; gap: 14px; }
.mc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; } .mc-head h2 { font-size: 32px; }
.mc-papers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.mc-paper { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; background: var(--surface-2); }
.mc-paper .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mc-paper .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }

.yp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.yp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; justify-items: start; }
.yp-year { font: 400 34px/1 var(--f-stencil); color: var(--brass); } .yp small { color: var(--muted); }
.learn-group { display: grid; gap: 12px; } .learn-group h2 { font-size: 28px; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 8px; }
.learn-card.w1 { border-color: var(--olive); box-shadow: inset 3px 0 0 var(--olive); }
.learn-card small { color: var(--muted); font-size: 12px; }
.tiers { display: flex; gap: 4px; } .tiers i { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.builder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 18px; justify-items: start; }
.builder .tiny { color: var(--muted); display: block; margin-bottom: 8px; }

.ssb-hero { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: #0b111b; min-height: 300px; }
.ssb-ph { position: absolute; inset: 0; } .ssb-ph img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.ssb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,13,22,.92), rgba(8,13,22,.4)); }
.ssb-copy, .ssb-bib { position: relative; z-index: 1; } .ssb-copy { display: grid; gap: 12px; max-width: 600px; } .ssb-copy p { opacity: .9; }
.ssb-copy .eyebrow { color: #E0B256; }
.ssb-bib .bib { transform: rotate(-5deg); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.ssb-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ssb-days li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 6px; align-content: start; }
.ssb-days .day { font: 500 11px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.ssb-days b { font: 700 22px/1.05 var(--f-display); } .ssb-days p { font-size: 13.5px; color: var(--muted); }

/* ---------- instructions ---------- */
.instr-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.instr-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.hall-bib { display: grid; place-items: center; padding: 8px 0; }
.hall dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14px; } .hall dt { color: var(--muted); } .hall dd { margin: 0; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--olive); }
.nudge { animation: nudge .35s; } @keyframes nudge { 30% { transform: translateX(6px); } 60% { transform: translateX(-4px); } }

/* ---------- exam ---------- */
.exam { display: grid; grid-template-rows: auto 1fr auto; height: 100dvh; background: var(--bg); }
.exam-top { background: #17263D; color: #F4F2EA; }
.et-in { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 0 max(16px, env(safe-area-inset-left)); }
.et-title { display: grid; min-width: 0; } .et-title b { font: 600 19px/1.1 var(--f-display); letter-spacing: .02em; } .et-title small { opacity: .7; font-size: 12px; }
.timer { margin-left: auto; font: 500 21px/1 var(--f-mono); padding: 9px 14px; border-radius: var(--r); background: rgba(255,255,255,.1); }
.timer.low { background: #A33A32; color: #fff; }
.exam-body { display: grid; grid-template-columns: 1fr 330px; min-height: 0; }
.qpane { overflow-y: auto; padding: 20px max(16px, env(safe-area-inset-left)) 28px; min-width: 0; }
.qhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.qnum { font: 700 24px/1 var(--f-display); color: var(--navy); }
:root[data-theme="dark"] .qnum { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qnum { color: var(--ink); } }
.qhead .section { font-size: 13px; color: var(--muted); }
.qhead .marks { margin-left: auto; font-size: 12px; color: var(--muted); }
.stem { border: 1px solid var(--line); border-left: 3px solid var(--brass); background: var(--surface); border-radius: var(--r); margin-bottom: 14px; }
.stem summary { cursor: pointer; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--brass); list-style: none; display: flex; gap: 8px; }
.stem summary::-webkit-details-marker { display: none; }
.stem summary::before { content: "▸"; transition: transform .15s; } .stem[open] summary::before { transform: rotate(90deg); }
.stem .qimg { border: 0; border-top: 1px solid var(--line); border-radius: 0; max-height: 46vh; overflow: auto; }
.qimg { background: var(--q-bg); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.qimg img { width: 100%; max-width: 780px; height: auto; filter: var(--q-filter); }
.dropped-note { margin-top: 10px; font-size: 13px; color: var(--warn); background: var(--warn-soft); padding: 8px 12px; border-radius: var(--r); }
.options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 780px; }
.opt { min-height: 58px; border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font: 600 19px var(--f-body); }
.opt:hover:not([disabled]) { border-color: var(--olive); }
.opt[aria-pressed="true"] { border-color: var(--olive); background: var(--olive); color: var(--on-accent); }
.opt .k { font: 500 11px var(--f-mono); opacity: .55; }
.exam-actions { border-top: 1px solid var(--line); background: var(--surface); }
.ea-in { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px max(16px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-bottom)); }
.ea-in .grow { flex: 1; }
.mark-btn { border-color: var(--mark); color: var(--mark); }
.palette { border-left: 1px solid var(--line); background: var(--surface-2); overflow-y: auto; padding: 16px; display: grid; gap: 14px; align-content: start; }
.pal-head { display: flex; align-items: center; justify-content: space-between; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 12.5px; } .counts span { display: flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); flex: none; display: inline-block; }
.dot.answered { background: var(--ok); border-color: var(--ok); } .dot.notanswered { background: var(--bad-soft); border-color: var(--bad); }
.dot.marked { background: var(--mark); border-color: var(--mark); } .dot.marked-ans { background: var(--mark); border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.tabs, .filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 7px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; cursor: pointer; text-decoration: none; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
:root[data-theme="dark"] .tab[aria-selected="true"] { background: var(--olive); color: #10150a; border-color: var(--olive); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { background: var(--olive); color: #10150a; border-color: var(--olive); } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.cell { height: 40px; border-radius: 5px; border: 1px solid var(--line); background: var(--surface); font: 500 13px var(--f-mono); cursor: pointer; position: relative; }
.cell.answered { background: var(--ok); color: var(--on-accent); border-color: var(--ok); }
.cell.notanswered { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.cell.marked, .cell.marked-ans { background: var(--mark); color: var(--on-accent); border-color: var(--mark); }
.cell.marked-ans::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: #7FD07A; }
.cell.current { outline: 2px solid var(--brass); outline-offset: 1px; }
.palette-toggle { display: none !important; }
.sheet-backdrop { display: none; }

/* ---------- result & review ---------- */
.score-hero { background: #17263D; color: #F4F2EA; border-radius: var(--r-lg); padding: 26px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background-image: radial-gradient(circle at 100% 0%, rgba(224, 178, 86, .2), transparent 50%); }
.sh-main { display: grid; gap: 12px; }
.score-hero .tiny { color: #E0B256; }
.score-hero .big { font: 700 clamp(56px, 9vw, 88px)/1 var(--f-display); } .score-hero .big small { font-size: .4em; opacity: .7; }
.bar { height: 12px; border-radius: 6px; background: rgba(255,255,255,.18); overflow: hidden; display: flex; max-width: 520px; }
.bar i { display: block; height: 100%; } .b-ok { background: #8CC07D; } .b-bad { background: #E58A8A; }
.sh-ring { position: relative; width: 130px; height: 130px; --brass-hi: #E0B256; } .sh-ring svg { width: 100%; height: 100%; }
.sh-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 32px var(--f-display); color: #E0B256; }
.rq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: grid; gap: 12px; border-left-width: 5px; }
.rq.correct { border-left-color: var(--ok); } .rq.wrong { border-left-color: var(--bad); } .rq.skipped { border-left-color: var(--muted); } .rq.dropped { border-left-color: var(--warn); }
.rq .verdict { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; align-items: center; }
.rq b.ok { color: var(--ok); } .rq b.bad { color: var(--bad); } .rq .pts { margin-left: auto; }
.filters { position: sticky; top: 0; background: var(--bg); padding: 10px 0; z-index: 5; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 20, .6); display: grid; place-items: center; z-index: 80; padding: 16px; }
.modal { width: min(460px, 100%); background: var(--surface); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); }
.modal .sumgrid { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.modal .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .road-steps { grid-template-columns: repeat(4, 1fr); }
  .exam-grid { grid-template-columns: repeat(2, 1fr); }
  .ssb-days { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .split, .feature, .admit-wrap, .faq-wrap, .sec-head.row, .ov-grid, .instr-grid, .signin { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .hero-visual { min-height: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr; } .svc { aspect-ratio: 16 / 10; }
  .loop { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .signin-photo { min-height: 240px; }
  .portal { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-102%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .side-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 59; }
  .portal-top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
  .ov-hero { grid-template-columns: 1fr; }
  .ov-count { justify-self: start; }
  .exam-body { grid-template-columns: 1fr; }
  .palette { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; z-index: 40; transform: translateY(105%); transition: transform .2s; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .palette.open { transform: none; }
  .sheet-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 39; }
  .palette-toggle { display: inline-flex !important; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .et-title small { display: none; }
  .score-hero { grid-template-columns: 1fr; } .sh-ring { width: 100px; height: 100px; }
  .mock-card { grid-template-columns: 1fr; } .mc-side { justify-items: start; }
  .rep-row { grid-template-columns: 1fr 84px; } .rep-row .rep-bar { grid-column: 1 / -1; grid-row: 2; }
  .ssb-hero { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .block { padding: 64px 0; }
  .exam-chips { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 400px; }
  .ph-main { inset: 0 0 70px 30px; }
  .ph-a { width: 140px; height: 100px; } .ph-b { display: none; }
  .chest-card { width: 130px; top: 30px; left: 0; } .chest-card .bib-xl { --w: 84px; --h: 68px; }
  .q-card { display: none; }
  .count-card { right: 8px; bottom: 10px; } .count-card b { font-size: 40px; }
  .road-steps { grid-template-columns: 1fr 1fr; }
  .exam-grid { grid-template-columns: 1fr; }
  .ssb-days { grid-template-columns: 1fr; }
  .admit-body { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .announce .wrap { gap: 6px; font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
  .aim { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.sec-head > .btn, .feature-copy > .btn { justify-self: start; }
.sample-q .qimg img, .rq .qimg img { max-width: 680px; }

/* ---------- accessibility & legal (polish pass) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 2px; }
.site-footer :focus-visible, .announce :focus-visible, .road :focus-visible, .stats-band :focus-visible, .admit-head :focus-visible,
.exam-top :focus-visible, .ov-hero :focus-visible, .ssb-hero :focus-visible, .score-hero :focus-visible, .side-exam :focus-visible { outline-color: var(--brass-hi); }
.opt:focus-visible, .cell:focus-visible, .btn:focus-visible { outline-offset: 3px; }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.skip:focus { outline: 3px solid var(--brass-hi); }
.faq summary:focus-visible, .stem summary:focus-visible { outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .svc:hover img, .mock-row:hover { transform: none; } }
@media (forced-colors: active) { .btn, .opt, .cell, .tab, .iconbtn { border: 1px solid ButtonText; } .opt[aria-pressed="true"], .cell.answered { outline: 2px solid Highlight; } }

.noscript { padding: 64px 16px; display: grid; gap: 16px; max-width: 760px; }
.legal { padding: 48px 16px 88px; max-width: 820px; display: grid; gap: 18px; }
.legal h1 { font-size: clamp(38px, 5.4vw, 60px); color: var(--navy); }
:root[data-theme="dark"] .legal h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legal h1 { color: var(--ink); } }
.legal-draft { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-left: 5px solid var(--warn); border-radius: var(--r); padding: 12px 16px; font-size: 14.5px; }
.legal-draft b { color: var(--warn); text-transform: uppercase; letter-spacing: .04em; font-size: 13px; }
.legal-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; font-size: 14px; }
.legal-meta dt { color: var(--muted); font: 500 11px/1.9 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.legal-meta dd { margin: 0; overflow-wrap: anywhere; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 20px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 28px; font-size: 14.5px; }
.legal-toc li { padding: 3px 0; break-inside: avoid; }
.legal-sec { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-sec h2 { font-size: clamp(26px, 3vw, 32px); color: var(--navy); }
:root[data-theme="dark"] .legal-sec h2 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .legal-sec h2 { color: var(--ink); } }
.legal-sec p, .legal-sec li { max-width: 68ch; }
.legal-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--surface-2); font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-foot { margin-top: 12px; font-size: 14px; }
.admit-head .logo-text span { color: var(--brass-hi); }
