/* G.O.C Academy Hub — stylesheet
   Split out of the single-file prototype. Everything the app looks like
   lives in this one file; no CSS is loaded from the internet. */
/* ============ TOKENS ============ */
:root{
  color-scheme: light;
  --red:#DC2626; --red-deep:#B91C1C; --red-dk:#7F1D1D; --maroon:#5E1212;
  --red-mute:#FEF8F8; /* secondary/muted text on red hero backgrounds — was #FFD9D9 (3.7:1, failed AA); this clears 4.5:1 against the lightest red in use */
  --gold:#F0A500; --gold-lt:#FEF08A; /* was #FBBF24 (~3.2:1 on the dashboard hero card, failed AA); lightened to clear 4.5:1 */ --gold-deep:#8A5600; --gold-soft:#FDECC8; --green:#15803D; --green-lt:#22A559; --amber:#D97706; --teal:#0E7490;
  --ink:#20242C; --slate:#334155; --gray:#6B7280; --mute:#616D7E;
  --line:#EAE4DA; --card:#F3EFE9; --bg:#FAF7F2; --white:#fff;
  --r-sm:12px; --r-md:16px; --r-lg:22px; --r-xl:28px;
  --sh-sm:0 1px 3px rgba(17,24,39,.06),0 1px 2px rgba(17,24,39,.04);
  --sh-md:0 6px 20px rgba(17,24,39,.10);
  --sh-lg:0 16px 40px rgba(17,24,39,.16);
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:var(--font); background:#0e0f12; color:var(--ink);
  display:flex; align-items:center; justify-content:center; min-height:100dvh;
  background-image:radial-gradient(1200px 600px at 50% -10%, #2a2c33 0%, #0e0f12 60%);
}
/* ============ PHONE FRAME ============ */
.phone{
  position:relative; width:min(430px,100vw); height:min(924px,100dvh);
  background:var(--bg); overflow:hidden; border-radius:38px;
  box-shadow:var(--sh-lg), 0 0 0 10px #1b1c20, 0 0 0 12px #34363d;
}
.notch{position:absolute;top:0;left:50%;transform:translateX(-50%);width:150px;height:26px;background:#1b1c20;border-radius:0 0 16px 16px;z-index:60;pointer-events:none}
/* Full-bleed on every viewport below the desktop layout (<900px): the app
   fills the real browser viewport, with no simulated device frame around it.
   This used to stop at 480px, which left landscape phones, large phones and
   small tablets (481–899px) showing the site inside a phone mockup. The
   declarations are exactly the former portrait-phone ones, widened to 899px;
   the >=900px desktop layout above is untouched. */
@media (max-width:899px){
  body{background:var(--bg)}
  .phone{width:100vw;height:100dvh;border-radius:0;box-shadow:none}
  .notch{display:none}
}
/* Desktop layout (adaptive web app with a left sidebar) is defined in the
   responsive block at the END of this stylesheet. */
.screens{position:absolute;inset:0}
.screen{position:absolute;inset:0;display:none;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:var(--bg);-webkit-overflow-scrolling:touch}
.screen.active{display:flex}
@media (prefers-reduced-motion: no-preference){
  .screen.active{animation:fade .28s ease}
}
@keyframes fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.screen.pad{padding-bottom:88px}
/* overflow-x:hidden is required here, not cosmetic: per the CSS overflow
   spec, when overflow-y is auto/scroll and overflow-x is left unset
   ("visible"), the browser computes overflow-x as auto too — so this
   container was silently gaining its own horizontal scrollbar whenever any
   admin-panel child (a KPI cell, a stat row, a wide select) was even a
   pixel wider than the viewport. That's the "scroll sideways to see the
   rest of a function" bug (item 2). Explicit overflow-x:hidden turns that
   off; anything that legitimately needs horizontal scrolling (formula
   blocks, filter chip strips) declares its own overflow-x:auto on its own
   inner element and is unaffected by this. */
.scroll{flex:1;overflow-y:auto;overflow-x:hidden}
/* ============ SHARED ============ */
.wrap{padding:0 18px}
.row{display:flex;align-items:center}
.between{justify-content:space-between}
.gap12{gap:12px}.gap6{gap:6px}
.chip{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:700;padding:6px 11px;border-radius:999px}
.chip.red{background:#FEECEC;color:var(--red-deep)}
.chip.gold{background:var(--gold-soft);color:var(--gold-deep)}
.chip.green{background:#E6F4EC;color:#106b34}
.chip.gray{background:#EEF0F3;color:var(--slate)}
.pill{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase}
.card{background:var(--white);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-sm)}
.muted{color:var(--gray)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;cursor:pointer;font-family:var(--font);font-weight:800;font-size:15px;border-radius:14px;padding:14px 18px;transition:transform .08s ease,filter .15s ease}
.btn:active{transform:scale(.97)}
.btn-red{background:var(--red);color:#fff;box-shadow:0 6px 16px rgba(220,38,38,.28)}
.btn-red:active{filter:brightness(.96)}
.btn-ghost{background:var(--card);color:var(--ink)}
.btn-outline{background:#fff;border:1.5px solid var(--line);color:var(--ink)}
.btn-block{width:100%}
h1,h2,h3{letter-spacing:-.02em;line-height:1.15}
.hdr{position:sticky;top:0;z-index:30;background:var(--bg);padding:14px 18px 10px}
.hdr.solid{background:var(--white);border-bottom:1px solid var(--line)}
.h-title{font-size:21px;font-weight:800;color:var(--ink)}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:var(--red)}
.back{width:38px;height:38px;border-radius:12px;background:var(--card);display:flex;align-items:center;justify-content:center;border:none;cursor:pointer}
.icon{width:22px;height:22px;display:block}
.avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#DC2626,#7F1D1D);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex:0 0 auto}
.progress{height:9px;border-radius:999px;background:#EEF0F3;overflow:hidden}
.progress>span{display:block;height:100%;border-radius:999px;background:var(--red)}
.section-t{font-size:15px;font-weight:800;color:var(--ink)}
.divider{height:1px;background:var(--line);margin:14px 0}
/* ============ TABBAR ============ */
.tabbar{position:absolute;left:0;right:0;bottom:0;height:74px;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-top:1px solid var(--line);display:flex;z-index:50;padding-bottom:6px}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:none;background:none;cursor:pointer;color:var(--mute);font-family:var(--font);font-size:10.5px;font-weight:700}
.tab .icon{width:24px;height:24px}
.tab.on{color:var(--red)}
.tab.on .icon{stroke:var(--red)}
/* ============ FORM FIELDS ============ */
.field{margin-bottom:14px}
.field label{display:block;font-size:12.5px;font-weight:700;color:var(--slate);margin-bottom:7px}
.field input{width:100%;border:1.5px solid var(--line);border-radius:14px;padding:14px;font-size:15px;font-family:var(--font);background:var(--bg);color:var(--ink)}
.field input:focus{outline:none;border-color:var(--red);background:#fff}
/* ============ MODALS ============ */
.overlay{position:absolute;inset:0;z-index:85;background:rgba(15,17,20,.55);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:22px}
.overlay.show{display:flex}
@media (prefers-reduced-motion: no-preference){
  .overlay.show{animation:fade .25s ease}
}
.flyer{width:100%;max-width:360px;border-radius:26px;overflow:hidden;box-shadow:var(--sh-lg);background:#fff}
.flyer-top{background:linear-gradient(150deg,#DC2626,#7F1D1D);color:#fff;padding:26px 24px 30px;position:relative;text-align:center}
.flyer-top .date{font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--red-mute)}
.flyer-top .quote{font-size:22px;font-weight:800;line-height:1.28;margin-top:14px}
.flyer-top .mark{font-size:44px;line-height:0;opacity:.35;font-weight:900}
.flyer-body{padding:20px 22px 24px;text-align:center}
.flyer-body p{color:var(--gray);font-size:13.5px;line-height:1.5;margin-bottom:16px}
.sun{width:54px;height:54px;border-radius:50%;background:#FFF3DE;display:flex;align-items:center;justify-content:center;margin:-48px auto 12px;position:relative;border:4px solid #fff}
/* time-up */
.winddown{width:100%;max-width:340px;background:#fff;border-radius:26px;padding:28px 24px;text-align:center;box-shadow:var(--sh-lg)}
.winddown .big{width:66px;height:66px;border-radius:50%;background:#FEECEC;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.winddown h3{font-size:20px;font-weight:800;margin-bottom:8px}
.winddown p{color:var(--gray);font-size:14px;line-height:1.55;margin-bottom:20px}
.test-info{width:100%;max-width:380px;background:#fff;border-radius:22px;padding:24px;text-align:left;box-shadow:var(--sh-lg)}
#testInfoOverlay{z-index:92}
/* ============ CELEBRATE (Task 3 — streak-up / badge-earned pop-up) ============
   One shared card + burst; celebrateStreak()/celebrateBadge() in js/app.js
   just swap the icon/title/sub text before showing it via .overlay.show. */
.celebrate-overlay{z-index:95}
.celebrate-card{width:100%;max-width:320px;background:#fff;border-radius:26px;padding:34px 26px 26px;text-align:center;box-shadow:var(--sh-lg);position:relative;overflow:hidden}
.celebrate-icon{width:84px;height:84px;border-radius:50%;background:#FFF3DE;display:flex;align-items:center;justify-content:center;margin:0 auto 18px;font-size:40px;position:relative;z-index:2}
.celebrate-title{font-size:21px;font-weight:800;color:#141821;margin-bottom:6px;position:relative;z-index:2}
.celebrate-sub{font-size:13.5px;color:var(--gray);line-height:1.5;margin-bottom:20px;position:relative;z-index:2}
.celebrate-card .btn{position:relative;z-index:2}
/* Eight little shards flung out from the icon on open. Pure CSS, no JS
   per-frame work: each span just gets a different rotation + delay. */
.celebrate-burst{position:absolute;top:34px;left:50%;width:0;height:0;z-index:1}
.celebrate-burst span{position:absolute;top:0;left:0;width:7px;height:7px;border-radius:2px;background:var(--gold,#D97706)}
.celebrate-burst span:nth-child(1){background:#DC2626;--r:0deg}
.celebrate-burst span:nth-child(2){background:#D97706;--r:45deg}
.celebrate-burst span:nth-child(3){background:#15803D;--r:90deg}
.celebrate-burst span:nth-child(4){background:#0E7490;--r:135deg}
.celebrate-burst span:nth-child(5){background:#7C3AED;--r:180deg}
.celebrate-burst span:nth-child(6){background:#DC2626;--r:225deg}
.celebrate-burst span:nth-child(7){background:#D97706;--r:270deg}
.celebrate-burst span:nth-child(8){background:#15803D;--r:315deg}
@media (prefers-reduced-motion: no-preference){
  .celebrate-overlay.show .celebrate-icon{animation:celebPop .5s cubic-bezier(.34,1.56,.64,1)}
  .celebrate-overlay.show .celebrate-burst span{animation:celebShard .7s ease-out both}
  .celebrate-overlay.show .celebrate-title,.celebrate-overlay.show .celebrate-sub{animation:fade .35s ease .12s both}
}
@keyframes celebPop{0%{transform:scale(.4);opacity:0}55%{transform:scale(1.12);opacity:1}100%{transform:scale(1)}}
@keyframes celebShard{0%{opacity:1;transform:rotate(var(--r,0deg)) translateX(0) scale(1)}100%{opacity:0;transform:rotate(var(--r,0deg)) translateX(70px) scale(.4)}}
.test-info h3{font-size:18px;font-weight:800;margin-bottom:8px}
.test-info p{color:var(--gray);font-size:13.5px;line-height:1.5;margin-bottom:12px}
.test-info ul{margin:0 0 20px;padding-left:18px;color:#141821;font-size:13px;line-height:1.6}
.test-info ul li{margin-bottom:6px}
.test-info .ti-actions{display:flex;gap:10px}
.test-info .ti-actions .btn{flex:1;padding:11px 0;font-size:13.5px}
.test-info .ti-actions .btn:disabled{opacity:.5;cursor:not-allowed}
.test-info .ti-ack{display:flex;align-items:center;gap:9px;font-size:12.5px;color:#444;margin-bottom:16px;cursor:pointer}
.test-info .ti-ack input{width:16px;height:16px;accent-color:var(--red)}
.sheet-back{position:absolute;inset:0;background:rgba(15,17,20,.4);z-index:86;display:none}
.sheet-back.show{display:block}
/* ============ DASHBOARD ============ */
.hero-stats{display:flex;gap:8px;margin-top:16px}
.hstat{flex:1;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:11px 10px;text-align:center}
.hstat .v{font-size:18px;font-weight:900}
.hstat .v.gold{color:var(--gold-lt)}
.hstat .l{font-size:10.5px;color:var(--red-mute);font-weight:700;margin-top:2px}
/* focus ring card (SIGNATURE) */
.admin-note{background:#FDECEC;color:#7F1D1D;border-radius:14px;padding:14px 16px;font-size:13px;font-weight:600;line-height:1.5;margin:14px 0 4px}
.admin-help{font-size:12.5px;color:var(--gray);line-height:1.5;margin-top:14px}
.id-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;margin-top:8px}
.id-top{display:flex;align-items:center;gap:14px;padding-bottom:16px;border-bottom:1px solid #F1F2F4}
.id-ava{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#DC2626,#7F1D1D);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:15px;flex:none;letter-spacing:.5px}
.id-who{min-width:0}
.id-who b{display:block;font-size:15.5px;font-weight:800;color:var(--ink);line-height:1.3}
.id-who span{display:inline-block;margin-top:4px;font-size:11px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#8A5600;background:#FFF7ED;border-radius:20px;padding:3px 9px}
.id-idbox{background:#F8F9FB;border:1px solid var(--line);border-radius:12px;padding:13px 14px;margin-top:16px}
.id-idlab{font-size:10.5px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;color:var(--gray)}
.id-idrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}
.id-idrow code{font-family:ui-monospace,'Courier New',monospace;font-size:17px;font-weight:800;color:var(--ink);letter-spacing:1.2px}
.id-copy{border:1px solid var(--line);background:#fff;color:var(--red);font-size:11.5px;font-weight:800;padding:7px 12px;border-radius:8px;cursor:pointer;flex:none}
.id-note{font-size:12px;color:var(--gray);line-height:1.6;margin-top:16px}
.ios-install-help{font-size:12.5px;color:var(--slate);line-height:1.6;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 16px 16px}
.ios-install-help ol{margin:8px 0 8px 18px;padding:0}
.ios-install-help li{margin-bottom:4px}
/* Scholar ID strip on the dashboard */
/* ===== Professional admin console ===== */
#admin{background:#F3F4F6}
.adm-top{display:flex;align-items:center;gap:12px;padding:16px 18px;background:#141821;color:#fff}
.adm-back{width:34px;height:34px;border-radius:9px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:none}
.adm-top-t{flex:1;min-width:0}
.adm-brand{font-weight:800;font-size:15px;letter-spacing:.2px}
.adm-sub{font-size:11.5px;color:#98A2B3;margin-top:1px}
.adm-badge{font-size:10.5px;font-weight:800;letter-spacing:1px;text-transform:uppercase;color:#F0A500;border:1px solid rgba(240,165,0,.4);border-radius:20px;padding:4px 10px}
.adm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:#E4E7EC;border-bottom:1px solid #E4E7EC}
.adm-kpi{background:#fff;padding:14px 8px;text-align:center;min-width:0}
.adm-kpi .k-v{font-size:22px;font-weight:800;color:#141821;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm-kpi .k-l{font-size:10.5px;color:#667085;font-weight:600;margin-top:4px;text-transform:uppercase;letter-spacing:.4px}
/* Console tile navigation — emoji-free, label-only, 3-col grid */
.adm-tile-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:14px 14px 8px}
.adm-tile{display:flex;align-items:center;justify-content:center;min-height:52px;padding:12px 8px;border-radius:12px;border:1.5px solid #E4E7EC;background:#fff;cursor:pointer;text-align:center;transition:background .12s,border-color .12s,box-shadow .12s;-webkit-tap-highlight-color:transparent;user-select:none;box-shadow:0 1px 3px rgba(20,24,33,.06)}
.adm-tile:active{background:#F2F4F7;transform:scale(.97)}
.adm-tile.active{background:#141821;border-color:#141821;box-shadow:0 4px 12px rgba(20,24,33,.22)}
.adm-tile .at-icon{display:none}
.adm-tile .at-label{font-size:11px;font-weight:800;color:#344054;line-height:1.25;word-break:break-word;letter-spacing:.01em}
.adm-tile.active .at-label{color:#fff}
/* adm-panel is now hidden — content goes into the slide-up sheet */
.adm-panel{display:none!important}
/* Slide-up sheet */
.adm-sheet-back{position:fixed;inset:0;background:rgba(10,12,16,.55);z-index:110;display:none;backdrop-filter:blur(2px)}
.adm-sheet-back.show{display:block}
.adm-sheet{position:fixed;left:0;right:0;bottom:0;z-index:111;background:#f3f4f6;border-radius:20px 20px 0 0;max-height:87dvh;display:flex;flex-direction:column;transform:translateY(102%);transition:transform .32s cubic-bezier(.22,.61,.36,1)}
.adm-sheet.show{transform:translateY(0)}
.adm-sheet-handle{width:36px;height:4px;border-radius:2px;background:#D0D5DD;margin:10px auto 0;flex:none}
.adm-sheet-hdr{display:flex;align-items:center;justify-content:space-between;padding:12px 16px 10px;flex:none;border-bottom:1px solid #E4E7EC}
.adm-sheet-title{font-size:15px;font-weight:800;color:#141821}
.adm-sheet-close{width:30px;height:30px;border-radius:8px;border:1.5px solid #E4E7EC;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:17px;line-height:1;color:#667085}
.adm-sheet-body{flex:1;overflow-y:auto;overflow-x:hidden;padding:6px 16px 24px;-webkit-overflow-scrolling:touch}
.adm-foot{font-size:11.5px;color:#98A2B3;line-height:1.5;padding:16px 18px 4px;border-top:1px solid #E4E7EC;margin-top:8px}
.ad-card{background:#fff;border:1px solid #E4E7EC;border-radius:14px;padding:16px;margin-bottom:12px}
.ad-h{font-size:15px;font-weight:800;color:#141821;margin-bottom:6px}
.ad-p{font-size:12.5px;color:#667085;line-height:1.5}
.ad-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #F1F2F4}
.ad-row:last-child{border-bottom:none}
.ad-av{width:38px;height:38px;border-radius:10px;background:#141821;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:none}
.ad-row .nm{flex:1;min-width:0}
.ad-row .nm b{font-size:13.5px;color:#141821;display:block}
.ad-row .nm span{font-size:11.5px;color:#667085}
.ad-tag{font-size:10.5px;font-weight:800;padding:4px 9px;border-radius:20px;flex:none}
.ad-tag.g{background:#DCFCE7;color:#15803D}.ad-tag.a{background:#FEF3C7;color:#8A5600}.ad-tag.r{background:#FEE2E2;color:#B91C1C}
/* a declared topic nothing carries yet: stated plainly, not warned about */
.ad-tag{background:#EEF0F3;color:#5A6472}
.ad-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ad-btn{border:1px solid #E4E7EC;background:#fff;color:#141821;font-size:12.5px;font-weight:700;padding:9px 13px;border-radius:9px;cursor:pointer}
.ad-btn.pri{background:#DC2626;border-color:#DC2626;color:#fff}
.ad-metric{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid #F1F2F4;font-size:13px}
.ad-metric:last-child{border-bottom:none}.ad-metric b{color:#141821}.ad-metric span{color:#667085}
/* Student credential cards (Scholar ID + masked password) */
.ad-cred{border:1px solid #E9EBEF;border-radius:12px;padding:13px;margin-top:11px;background:#fff}
.ac-top{display:flex;align-items:center;gap:11px}
.ac-who{flex:1;min-width:0}
.ac-who b{display:block;font-size:13.5px;color:#141821}
.ac-who span{font-size:11.5px;color:#667085}
.ac-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:11px}
.ac-cell{background:#F8F9FB;border-radius:9px;padding:9px 11px;min-width:0}
.ac-cell label{display:block;font-size:9.5px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#98A2B3;margin-bottom:3px}
.ac-cell code{font-family:ui-monospace,'Courier New',monospace;font-size:13px;font-weight:700;color:#141821;letter-spacing:.6px;word-break:break-all}
.ac-btns{display:flex;gap:8px;margin-top:11px}
.ac-btns .ad-btn{flex:1;text-align:center}
/* A closed account (Priority 7). Nothing is deleted — the card simply reads as
   closed, so a deactivated scholar is obvious at a glance. */
.ad-cred.off{background:#FEF7F7;border-color:#FCA5A5;border-style:dashed}
.ad-cred.pending{background:#FFFBEB;border-color:#FCD34D;border-left:4px solid #F59E0B}
.ad-btn.warn{color:#B91C1C;border-color:#FCA5A5}
.ad-btn.warn:hover{background:#FEF2F2}
.ad-btn.danger{background:#B91C1C;border-color:#B91C1C;color:#fff}
.ad-btn.danger:hover{background:#991B1B;border-color:#991B1B}
.ad-btn.danger:active{transform:scale(.97)}
.ad-warn{margin-top:13px;background:#FFFBEB;border:1px solid #FDE68A;border-radius:10px;padding:10px 12px;font-size:11.5px;line-height:1.55;color:#8A5600}
/* Management preview banner */
.pv-bar{position:absolute;left:0;right:0;top:0;z-index:60;display:flex;align-items:center;gap:10px;background:#141821;color:#fff;padding:10px 14px;font-size:11.5px;line-height:1.4}
.pv-bar b{color:#F0A500}
.pv-bar span{flex:1;min-width:0}
.pv-bar button{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff;font-size:11px;font-weight:800;padding:6px 11px;border-radius:8px;cursor:pointer;flex:none}
body.previewing .screen.active{padding-top:44px}
/* Session expiry warning (Priority 9). Sits above every in-app screen, in the
   same absolute band the preview banner uses, so no screen has to make room for
   it in its own markup. Amber rather than red: it is a warning the student can
   still act on, not an error. */
.ss-bar{position:absolute;left:0;right:0;top:0;z-index:70;display:flex;align-items:flex-start;gap:10px;
  background:#78350F;color:#FFFBEB;padding:10px 14px;font-size:11.5px;line-height:1.45;
  box-shadow:0 6px 18px rgba(20,24,33,.22)}
.ss-bar .ss-ico{width:17px;height:17px;flex:none;margin-top:1px;color:#FCD34D}
.ss-bar .ss-txt{flex:1;min-width:0}
.ss-bar b{color:#FCD34D;font-weight:800}
.ss-bar .ss-count{display:block;margin-top:3px;font-weight:800;font-size:12.5px;color:#fff;
  font-variant-numeric:tabular-nums}
/* When it is showing, every active screen drops by its height so nothing is
   covered — the specification forbids content displacement, so the bar pushes
   rather than overlaps. */
body.session-warning .screen.active{padding-top:56px}
body.session-warning.previewing .ss-bar{top:40px}
/* The warning appears once and then holds still; it must not pulse or flash. */
@media (prefers-reduced-motion: no-preference){
  .ss-bar{animation:ssIn .28s ease-out}
}
@keyframes ssIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
/* Why a student is back at the login screen when they did not log out. */
.auth-notice{margin-top:16px;background:#FFFBEB;border:1px solid #FDE68A;border-left:3px solid #D97706;
  border-radius:10px;padding:11px 13px;font-size:12.5px;line-height:1.55;color:#78350F}
.auth-notice b{color:#7C2D12}
/* Task 5 — inline replacement for toast() on forms: a small message that sits
   next to the fields it's about, instead of a message that flashes at the
   bottom of the screen and disappears. Hidden until formMsg() sets it. */
.form-msg{display:none;margin-top:10px;padding:9px 12px;border-radius:10px;font-size:12.5px;font-weight:700;line-height:1.5}
.form-msg.show{display:block}
.form-msg.err{background:#FEF2F2;border:1px solid #FCA5A5;color:#B91C1C}
.form-msg.ok{background:#F0FDF4;border:1px solid #86EFAC;color:#15803D}
.ad-win{text-align:center;padding:6px 0 2px}
.ad-win .big{font-size:44px;font-weight:800;color:#DC2626;line-height:1}
.ad-win .big s{font-size:16px;color:#98A2B3;text-decoration:none}
/* subject import chips + upload dropzone */
.ad-seg{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.ad-seg button{border:1px solid #E4E7EC;background:#fff;color:#475467;font-size:12.5px;font-weight:700;padding:8px 12px;border-radius:9px;cursor:pointer}
.ad-seg button.on{background:#141821;color:#fff;border-color:#141821}
.ad-seg button.seg-brand{display:inline-flex;align-items:center;gap:6px;border-color:#F0C9A0;background:#FFF8EF;color:#8A5600}
.ad-seg button.seg-brand:not(.on):hover{border-color:#E6A75C;color:#6E4400}
.ad-seg button.seg-brand.on{background:linear-gradient(135deg,var(--red) 0%,#B91C1C 100%);border-color:var(--red);color:#fff}
.seg-mark{width:12px;height:12px;flex:0 0 auto;color:currentColor}
.ad-drop{border:1.5px dashed #CBD2DC;border-radius:12px;background:#FAFBFC;padding:20px 14px;text-align:center;cursor:pointer;margin-top:10px}
.ad-drop svg{width:26px;height:26px;color:#98A2B3}
.ad-drop b{display:block;font-size:13px;color:#141821;margin-top:6px}
.ad-drop span{font-size:11.5px;color:#98A2B3}
.ad-field{margin-top:10px}
.ad-field label{display:block;font-size:11.5px;font-weight:700;color:#475467;margin-bottom:5px}
.ad-field input,.ad-field select,.ad-field textarea{width:100%;border:1px solid #E4E7EC;border-radius:9px;padding:10px 12px;font-size:13px;font-family:inherit;color:#141821;background:#fff}
.ad-field textarea{min-height:64px;resize:vertical}
/* Web Test management — extends the .ad-* console vocabulary, no second language */
.ad-grid2{display:flex;gap:8px;flex-wrap:wrap}
.ad-grid2 .ad-field{flex:1 1 132px;min-width:0}
.ad-note{font-size:11.5px;color:#667085;line-height:1.55;margin-top:8px}
.ad-note.warn{color:#B42318;background:#FEF3F2;border:1px solid #FDA29B;border-radius:10px;padding:8px 10px}
.ad-loading,.ad-empty{font-size:12.5px;color:#98A2B3;padding:16px 0;text-align:center}
.ad-sub{font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#98A2B3;margin:14px 0 2px}
.ad-q{border:1px solid #E9EBEF;border-radius:12px;padding:12px;margin-top:9px;background:#fff}
.ad-q.off{background:#FAFAFA;border-style:dashed}
.ad-q .qh{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:6px}
.ad-q .qh .ad-chk{width:16px;height:16px;margin:0 2px 0 0;cursor:pointer;accent-color:#B91C1C}
.ad-bulkbar{align-items:center;background:#FEF2F2;border:1px solid #FCA5A5;border-radius:10px;padding:8px 10px;margin:8px 0}
.ad-bulkbar span{font-size:12.5px;font-weight:700;color:#991B1B;margin-right:auto}
.ad-q .qh code{font-size:11px;color:#667085;background:#F4F5F7;border-radius:6px;padding:2px 6px;font-family:inherit}
.ad-q .qt{font-size:13px;line-height:1.5;color:#141821;overflow-wrap:break-word}
.ad-q .qm{font-size:11.5px;color:#667085;margin-top:6px;line-height:1.55;overflow-wrap:break-word}
.ad-q .qm b{color:#15803D;font-weight:700}
.ad-q .ad-actions{margin-top:10px}
/* The CSV importer. The column list is long and must wrap rather than push the
   card wider than the phone, and the file input sits inside its dashed drop
   zone instead of looking like a stray form control. */
.ad-cols{display:block;background:#F4F5F7;border:1px solid #E9EBEF;border-radius:9px;padding:9px 10px;font-size:11px;line-height:1.6;color:#344054;overflow-wrap:break-word;word-break:break-word}
.ad-drop input[type=file]{display:block;width:100%;margin-top:10px;font-size:11.5px;color:#667085;font-family:inherit}
.ad-drop label{display:block}
.ad-res{display:flex;align-items:center;gap:10px;width:100%;padding:11px 2px;border:0;border-bottom:1px solid #F1F2F4;background:none;text-align:left;font-family:inherit;cursor:pointer}
.ad-res:last-child{border-bottom:none}
.ad-res .pc{width:46px;height:46px;border-radius:13px;color:#fff;font-weight:800;font-size:12.5px;display:flex;align-items:center;justify-content:center;flex:none}
.ad-res .nm{flex:1;min-width:0}
.ad-res .nm b{display:block;font-size:13px;color:#141821}
.ad-res .nm span{display:block;font-size:11.5px;color:#667085;line-height:1.55;overflow-wrap:break-word}
.ad-mk{border:1px solid #E9EBEF;border-radius:12px;padding:12px;margin-top:10px}
.ad-mk .mq{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#DC2626;margin-bottom:4px}
.ad-mk .mt{font-size:13px;line-height:1.5;color:#141821;overflow-wrap:break-word}
.ad-mk .mb{margin-top:8px;font-size:12.5px;line-height:1.55;color:#475467;background:#FAFBFC;border:1px solid #F1F2F4;border-radius:10px;padding:9px 11px;overflow-wrap:break-word;white-space:pre-wrap}
.ad-mk .mb em{display:block;font-style:normal;font-size:10.5px;font-weight:800;color:#98A2B3;text-transform:uppercase;letter-spacing:.4px;margin-bottom:3px}
.ad-mk .mm{display:flex;align-items:center;gap:8px;margin-top:10px;flex-wrap:wrap}
.ad-mk .mm label{font-size:11.5px;font-weight:700;color:#475467}
.ad-mk .mm input{width:84px;border:1px solid #E4E7EC;border-radius:9px;padding:8px 10px;font-size:13px;font-family:inherit;text-align:center;color:#141821;background:#fff}
.ad-mk .mm s{text-decoration:none;font-size:11.5px;color:#98A2B3}
/* Access portal / firewall */
#admin-gate{background:#0E1116}
.gate-wrap{min-height:100%;display:flex;align-items:center;justify-content:center;padding:24px}
.gate-card{width:100%;max-width:340px;background:#161B22;border:1px solid #262C36;border-radius:20px;padding:26px 22px;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.4)}
.gate-lock{width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,#DC2626,#7F1D1D);display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.gate-t{font-size:19px;font-weight:800;color:#fff}
.gate-p{font-size:12.5px;color:#98A2B3;line-height:1.5;margin:6px 0 18px}
.gate-pins{display:flex;justify-content:center;gap:12px;margin-bottom:6px}
.gate-pins span{width:14px;height:14px;border-radius:50%;border:2px solid #3A424E;transition:.15s}
.gate-pins span.f{background:#DC2626;border-color:#DC2626}
.gate-err{font-size:12px;color:#F87171;font-weight:700;height:16px;margin-bottom:8px}
.gate-pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:8px}
.gate-pad button{aspect-ratio:1.6;border:1px solid #262C36;background:#1E242D;color:#fff;font-size:19px;font-weight:700;border-radius:12px;cursor:pointer}
.gate-pad button:active{background:#2A313B}
.gate-pad button.ghost{color:#98A2B3;font-size:15px}
.gate-hint{font-size:11px;color:#667085;margin-top:14px;line-height:1.5}
.gate-hint b{color:#F0A500}
.ring{width:96px;height:96px;flex:0 0 auto;position:relative}
.ring svg{transform:rotate(-90deg)}
.ring .rc{fill:none;stroke-width:11;stroke-linecap:round}
.ring .rt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .rt b{font-size:19px;font-weight:900;color:var(--ink);line-height:1}
.ring .rt s{font-size:9.5px;color:var(--gray);text-decoration:none;font-weight:700;margin-top:2px}
.mini-link{color:var(--red);font-weight:800;font-size:12.5px;background:none;border:none;padding:6px 0 0;cursor:pointer}
/* mission */
.mission-item{display:flex;align-items:center;gap:12px;padding:14px 0}
.mission-item + .mission-item{border-top:1px solid var(--line)}
.check{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);flex:0 0 auto;display:flex;align-items:center;justify-content:center;background:#fff}
.check.done{background:var(--green);border-color:var(--green)}
.mission-item.done .mtext{color:var(--mute);text-decoration:line-through}
.mtext{font-size:14px;font-weight:600;flex:1}
.mission-item .xp{font-size:11.5px;font-weight:800;color:var(--gold-deep)}
/* subject list */
.subj{display:flex;align-items:center;gap:12px;padding:13px 0}
.subj + .subj{border-top:1px solid var(--line)}
.dot{width:38px;height:38px;border-radius:12px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:13px}
.subj .nm{flex:1;font-weight:700;font-size:14px}
.subj .pct{font-size:12.5px;font-weight:800;color:var(--slate)}
.subj .progress{width:96px}
/* continue card */
.continue{background:linear-gradient(135deg,#1f2937,#374151);color:#fff;border-radius:20px;padding:16px;display:flex;align-items:center;gap:14px}
.continue h4{font-size:15px;font-weight:800}
.continue p{font-size:12px;color:#cbd2dc;margin-top:2px}
/* section header */
.sec-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 12px}
.sec-head a{color:var(--red);font-weight:800;font-size:12.5px;cursor:pointer;text-decoration:none}
/* CBT recent */
.cbt-row{display:flex;align-items:center;gap:12px;padding:13px 0}
.cbt-row + .cbt-row{border-top:1px solid var(--line)}
.score{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:14px;color:#fff;flex:0 0 auto}
/* ============ TIMETABLE ============ */
.rest{text-align:center;color:var(--mute);font-size:13px;font-weight:600;padding:22px}
/* ============ STUDY / LESSON / PRACTICE ============ */
.tile{display:flex;align-items:center;gap:14px;padding:17px 16px;border-radius:18px;background:#fff;border:1px solid var(--line);box-shadow:var(--sh-sm);margin-bottom:14px;cursor:pointer;width:100%;text-align:left;font-family:var(--font)}
.tile:active{transform:scale(.99)}
.tile .ti{width:48px;height:48px;border-radius:14px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;color:#fff}
.tile h4{font-size:15.5px;font-weight:800}
.tile p{font-size:12.5px;color:var(--gray);margin-top:2px}
.tile .arr{margin-left:auto;color:var(--mute)}
/* watermark (content protection demo) */
.wm{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden;opacity:.05}
.wm b{position:absolute;font-size:15px;font-weight:800;color:#000;white-space:nowrap;transform:rotate(-30deg)}
.protected{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;position:relative}
.lesson-body{padding:18px;position:relative;z-index:3}
.lesson-body h2{font-size:20px;font-weight:900;margin-bottom:6px}
.lesson-body .kb{font-size:12.5px;color:var(--red);font-weight:800;text-transform:uppercase;letter-spacing:.6px}
.lesson-body p{font-size:14.5px;line-height:1.62;color:var(--slate);margin:12px 0}
.callout{background:#FFF7ED;border:1px solid #FCE3C4;border-radius:14px;padding:13px 14px;font-size:13.5px;color:#7c4a03;line-height:1.5;margin:14px 0}
.formula{background:var(--ink);color:#fff;border-radius:14px;padding:15px;text-align:center;font-size:17px;font-weight:700;letter-spacing:.5px;margin:14px 0}
/* question */
.q-prog{display:flex;gap:5px;padding:14px 18px 4px}
.q-prog span{flex:1;height:6px;border-radius:999px;background:#E7E9ED}
.q-prog span.on{background:var(--green)}
.q-prog span.cur{background:var(--red)}
/* Practice question palette (Stage 2, #practice only — formal CBT has its own
   palette and is untouched). Numbered buttons mirror the run's marks:
   answered fills green, the current question is ringed in brand red. */
#practice .prac-pal-wrap{margin:14px 18px 18px;padding:14px;background:#fff;border:1.5px solid var(--line);border-radius:16px}
#practice .prac-pal-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:13px;color:var(--ink);margin-bottom:10px}
#practice .prac-pal-head #pracNavCount{font-size:12px;color:var(--gray);font-weight:700}
#practice .prac-pal-grid{display:flex;flex-wrap:wrap;gap:8px}
#practice .prac-pal{min-width:44px;height:44px;padding:0 8px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-family:var(--font);font-weight:800;font-size:14px;color:var(--slate);cursor:pointer}
#practice .prac-pal.ans{background:#EAF6EF;border-color:var(--green);color:var(--green)}
#practice .prac-pal.cur{border-color:var(--red);color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#practice .prac-pal.ans.cur{background:#EAF6EF;color:var(--green);border-color:var(--green);box-shadow:0 0 0 2px rgba(21,128,61,.3)}
#practice .prac-pal-legend{display:flex;gap:6px;align-items:center;font-size:11.5px;color:var(--gray);margin-top:10px}
#practice .prac-pal-legend .lg{width:12px;height:12px;border-radius:4px;border:1.5px solid var(--line);display:inline-block;margin-left:8px}

/* Examinations quiz runner — its own palette classes, deliberately not
   reusing .prac-pal (that class is tested as scoped to #practice/#demo
   only, see test/test-practice-navigation.js). Visually identical, no
   cross-screen CSS coupling. */
#examtake .exam-pal-wrap{margin:14px 18px 18px;padding:14px;background:#fff;border:1.5px solid var(--line);border-radius:16px}
#examtake .exam-pal-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:13px;color:var(--ink);margin-bottom:10px}
#examtake .exam-pal-grid{display:flex;flex-wrap:wrap;gap:8px}
#examtake .exam-pal{min-width:44px;height:44px;padding:0 8px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-family:var(--font);font-weight:800;font-size:14px;color:var(--slate);cursor:pointer}
#examtake .exam-pal.ans{background:#EAF6EF;border-color:var(--green);color:var(--green)}
#examtake .exam-pal.cur{border-color:var(--red);color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#examtake .exam-pal.ans.cur{background:#EAF6EF;color:var(--green);border-color:var(--green);box-shadow:0 0 0 2px rgba(21,128,61,.3)}
#examtake .exam-pal-legend{display:flex;gap:6px;align-items:center;font-size:11.5px;color:var(--gray);margin-top:10px}
#examtake .exam-pal-legend .lg{width:12px;height:12px;border-radius:4px;border:1.5px solid var(--line);display:inline-block;margin-left:8px}
#examtake .exam-pal-legend .lg:first-child{margin-left:0}
#examtake .exam-pal-legend .lg.ans{background:#EAF6EF;border-color:var(--green)}
#examtake .exam-pal-legend .lg.cur{border-color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#practice .prac-pal-legend .lg:first-child{margin-left:0}
#practice .prac-pal-legend .lg.ans{background:#EAF6EF;border-color:var(--green)}
#practice .prac-pal-legend .lg.cur{border-color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#practice #pracPrevBtn{flex:0 0 auto}
.q-card{padding:18px}
.q-num{font-size:12.5px;font-weight:800;color:var(--gray)}
.q-text{font-size:18px;font-weight:800;line-height:1.4;margin:8px 0 18px;color:var(--ink)}
.opt{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:15px;padding:15px;margin-bottom:11px;cursor:pointer;font-family:var(--font);font-size:15px;font-weight:600;color:var(--ink);transition:.12s}
.opt .key{width:28px;height:28px;border-radius:8px;background:var(--card);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;flex:0 0 auto;color:var(--slate)}
.opt.correct{border-color:var(--green);background:#EAF6EF}
.opt.correct .key{background:var(--green);color:#fff}
.opt.wrong{border-color:var(--red);background:#FDECEC}
.opt.wrong .key{background:var(--red);color:#fff}
/* A chosen answer during a test — deliberately not green, because nothing has
   been marked yet and a student must not read a verdict into their own choice. */
.opt.sel{border-color:var(--red);background:#FEECEC}
.opt.sel .key{background:var(--red);color:#fff}
.opt:disabled{cursor:default}
.feedback{border-radius:16px;padding:15px;margin-top:6px}
.feedback.ok{background:#EAF6EF}
.feedback.no{background:#FDECEC}
.feedback h4{font-size:14.5px;font-weight:800;margin-bottom:5px}
.feedback.ok h4{color:var(--green)}
.feedback.no h4{color:var(--red-deep)}
.feedback p{font-size:13px;line-height:1.5;color:var(--slate)}
.bottom-bar{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding:14px 18px;display:flex;gap:10px}
/* CBT */
.cbt-top{background:var(--red-deep);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}
.timer{font-size:16px;font-weight:900;font-variant-numeric:tabular-nums;display:flex;align-items:center;gap:7px}
.timer.warn{color:#FCA5A5}
.qnav{display:flex;flex-wrap:wrap;gap:8px;padding:16px 18px}
.qn{width:38px;height:38px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font-weight:800;font-size:13.5px;cursor:pointer;color:var(--slate)}
.qn.ans{background:var(--green);color:#fff;border-color:var(--green)}
.qn.cur{border-color:var(--red);color:var(--red)}
.qn.cur.ans{color:#fff}
/* ============ WEB TEST (Priority 3) ============
   Reuses the question, timer and navigation vocabulary above; only the hub
   listing and the theory answer box need new rules. */
.wt-seg{display:flex;gap:8px;margin:14px 0 8px}
.wt-tab{flex:1;min-width:0;border:1.5px solid var(--line);background:#fff;color:var(--slate);font-family:var(--font);font-size:13.5px;font-weight:800;padding:12px 10px;border-radius:14px;cursor:pointer;transition:.14s}
.wt-tab.on{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 6px 16px rgba(220,38,38,.22)}
/* The papers inside one objective sitting: a scholar moves between them on the
   same clock, so the strip stays put at the top of the runner. */
.wt-subs{display:flex;gap:7px;overflow-x:auto;padding:10px 14px 0;-webkit-overflow-scrolling:touch}
.wt-subs::-webkit-scrollbar{display:none}
.wt-sub{flex:0 0 auto;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:7px 11px;font-family:var(--font);cursor:pointer;text-align:left;line-height:1.2;transition:.14s}
.wt-sub b{display:block;font-size:12px;font-weight:800;color:var(--slate);white-space:nowrap}
.wt-sub span{font-size:10.5px;font-weight:700;color:var(--mute);font-variant-numeric:tabular-nums}
.wt-sub.done{border-color:#BFE3CD;background:#F2FAF5}
.wt-sub.done span{color:#106b34}
.wt-sub.cur{border-color:var(--red);background:var(--red);box-shadow:0 5px 14px rgba(220,38,38,.22)}
.wt-sub.cur b,.wt-sub.cur span{color:#fff}
.wt-row{display:flex;align-items:center;gap:12px;padding:13px 0}
.wt-row + .wt-row{border-top:1px solid var(--line)}
.wt-row.first{border-top:1px solid var(--line);margin-top:12px}
.wt-row .nm{flex:1;min-width:0}
.wt-row .nm b{display:block;font-size:14px;font-weight:800;color:var(--ink)}
.wt-row .nm span{font-size:11.5px;color:var(--gray);font-variant-numeric:tabular-nums}
.wt-none{font-size:12.5px;color:var(--mute);font-weight:600;padding:14px 0 2px;line-height:1.5}
.wt-foot{font-size:11.5px;color:var(--gray);line-height:1.6;margin-top:16px}
.wt-stat{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-size:13.5px}
.wt-stat + .wt-stat{border-top:1px solid var(--line)}
.wt-stat span{color:var(--gray);font-weight:600}
.wt-stat b{color:var(--ink);font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.wt-rev{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;margin-bottom:11px}
.wt-rev .rq{font-size:11.5px;font-weight:800;color:var(--gray);text-transform:uppercase;letter-spacing:.5px}
.wt-rev .rt{font-size:14px;font-weight:700;line-height:1.45;color:var(--ink);margin:6px 0 9px}
.wt-rev .ra{font-size:13px;line-height:1.55;color:var(--slate);background:var(--bg);border-radius:10px;padding:10px 12px;word-wrap:break-word;overflow-wrap:break-word}
.wt-rev .ra em{display:block;font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--gray);font-style:normal;margin-bottom:4px}
.wt-rev .ra + .ra{margin-top:8px}
.wt-rev .verdict{font-size:11px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;padding:4px 9px;border-radius:999px;display:inline-block;margin-top:9px}
.wt-rev .verdict.ok{background:#E6F4EC;color:#106b34}
.wt-rev .verdict.no{background:#FDECEC;color:#B91C1C}
.wt-rev .verdict.wait{background:#FFF3DE;color:#8A5600}
.wt-his{display:flex;align-items:center;gap:12px;padding:13px 0;width:100%;text-align:left;background:none;border:none;font-family:var(--font);cursor:pointer}
.wt-his + .wt-his{border-top:1px solid var(--line)}
.wt-his .nm{flex:1;min-width:0}
.wt-his .nm b{display:block;font-size:13.5px;font-weight:800;color:var(--ink)}
.wt-his .nm span{font-size:11.5px;color:var(--gray)}
/* results */
.result-ring{width:150px;height:150px;margin:8px auto 6px;position:relative}
.result-ring .rt{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.result-ring .rt b{font-size:38px;font-weight:900;color:var(--ink);line-height:1}
.result-ring .rt s{font-size:12px;color:var(--gray);font-weight:700;text-decoration:none}
.brk{display:flex;align-items:center;gap:12px;padding:12px 0}
.brk + .brk{border-top:1px solid var(--line)}
.brk .tag{width:11px;height:11px;border-radius:50%;flex:0 0 auto}
.brk .nm{flex:1;font-weight:700;font-size:14px}
.brk .st{font-size:12px;font-weight:800;padding:3px 9px;border-radius:999px}
/* leaderboard */
.lead-hero{background:linear-gradient(160deg,#F0A500,#C77A00);color:#fff;padding:20px 18px;border-radius:0 0 24px 24px;text-align:center}
.lead-hero h2{font-size:20px;font-weight:900}
.lead-hero p{font-size:12.5px;color:#FFEAC7;margin-top:3px}
.podium{display:flex;align-items:flex-end;justify-content:center;gap:10px;margin-top:16px}
.pod{display:flex;flex-direction:column;align-items:center;gap:6px}
.pod .tier{font-size:15px;line-height:1}
.pod .av{width:52px;height:52px;border-radius:50%;background:#fff;color:var(--gold-deep);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px;border:3px solid #fff}
.pod .base{background:rgba(255,255,255,.2);border-radius:12px 12px 0 0;width:64px;display:flex;align-items:flex-start;justify-content:center;padding-top:7px;font-weight:900}
.pod .nm{font-size:11.5px;font-weight:700;max-width:64px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pod .xp{font-size:10.5px;color:#FFEAC7}
.lrow{display:flex;align-items:center;gap:12px;padding:12px 0}
.lrow + .lrow{border-top:1px solid var(--line)}
.lrow .rk{width:26px;font-weight:900;color:var(--gray);text-align:center;flex:0 0 auto;
  display:flex;flex-direction:column-reverse;align-items:center;gap:1px}
.lrow .rk .tier{font-size:11px;line-height:1}
.lrow .nm{flex:1;font-weight:700;font-size:14px}
.lrow.me{background:#FEECEC;margin:0 -18px;padding:12px 18px;border-radius:12px}
.lrow.me .nm{color:var(--red-deep)}
/* League standings (Priorities 10–12). Performance is the figure on the right,
   because that is what decides the order; XP sits under the name as the
   tie-breaker it is. Same row, same chips — only what they carry has changed. */
.lrow .nm em{display:block;font-style:normal;font-size:11.5px;font-weight:600;color:var(--gray);margin-top:2px}
.lrow .nm .you{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.04em;
  text-transform:uppercase;color:var(--red-deep);background:#fff;border:1px solid #F6C9C9;
  border-radius:999px;padding:1px 6px;margin-left:6px;vertical-align:1px}
.lrow .unranked{font-size:11.5px;font-weight:700;color:var(--gray)}
.lg-empty{padding:18px 0;text-align:center;font-size:13px;color:var(--gray);line-height:1.6}
.lg-mine{display:flex;align-items:center;gap:14px}
.lg-mine-rank{flex:0 0 auto;min-width:58px;text-align:center;background:#FEECEC;border-radius:14px;padding:8px 6px}
.lg-mine-rank .tier{display:block;font-size:18px;line-height:1;margin-bottom:3px}
.lg-mine-rank b{display:block;font-size:22px;font-weight:900;color:var(--red-deep);line-height:1.1}
.lg-mine-rank span{display:block;font-size:10.5px;font-weight:700;color:var(--red-deep);opacity:.8}
.lg-mine-body{min-width:0}
.lg-mine-body h4{font-size:15px;font-weight:800;color:var(--ink)}
.lg-mine-body p{font-size:12px;color:var(--gray);margin-top:3px;line-height:1.5}
.lg-mine-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:14px;
  border-top:1px solid var(--line);padding-top:12px}
.lg-stat{text-align:center;min-width:0}
.lg-stat .v{font-size:15px;font-weight:900;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lg-stat .l{font-size:10px;font-weight:700;color:var(--gray);margin-top:2px;text-transform:uppercase;letter-spacing:.03em}
.lg-basis{font-size:11.5px;color:var(--gray);line-height:1.65;margin-top:12px}
/* Narrow phones: four figures in one row would crowd, so they fall to two. */
@media (max-width:359px){
  .lg-mine-stats{grid-template-columns:repeat(2,1fr);gap:10px}
}
/* profile */
.prof-hero{background:linear-gradient(160deg,#DC2626,#7F1D1D);color:#fff;padding:26px 18px 22px;text-align:center;border-radius:0 0 26px 26px}
.prof-hero .avatar{width:78px;height:78px;font-size:28px;margin:0 auto 12px;background:#fff;color:var(--red);border:3px solid rgba(255,255,255,.5)}
.prof-hero h2{font-size:21px;font-weight:900}
.prof-hero .id{font-size:12px;color:var(--red-mute);font-weight:600;margin-top:3px}
.badges{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.badge{text-align:center}
.badge .b{width:56px;height:56px;border-radius:16px;margin:0 auto 6px;display:flex;align-items:center;justify-content:center;color:#fff}
.badge.lock .b{background:var(--card);color:var(--mute)}
.badge span{font-size:10.5px;font-weight:700;color:var(--slate)}
.set-row{display:flex;align-items:center;gap:12px;padding:15px 0}
.set-row + .set-row{border-top:1px solid var(--line)}
.set-row .si{width:38px;height:38px;border-radius:11px;background:var(--card);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.set-row .lbl{flex:1}
.set-row .lbl h4{font-size:14.5px;font-weight:700}
.set-row .lbl p{font-size:12px;color:var(--gray);margin-top:1px}
/* stepper */
.stepper{display:flex;align-items:center;gap:14px}
.stepper button{width:34px;height:34px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font-size:19px;font-weight:800;color:var(--red);cursor:pointer;line-height:1}
.stepper b{font-size:16px;font-weight:900;min-width:66px;text-align:center}
.toast{position:absolute;left:50%;bottom:92px;transform:translateX(-50%) translateY(20px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:14px;font-size:13.5px;font-weight:700;z-index:90;opacity:0;transition:.28s;box-shadow:var(--sh-md);pointer-events:none;white-space:nowrap}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.spacer{height:22px}
/* ============ BRAND MARK ============ */
/* ============ CLASSES / VIDEOS ============ */
.filter-strip{display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;margin:2px 0 6px}
.fchip{flex:0 0 auto;font-size:12.5px;font-weight:700;padding:8px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--slate);cursor:pointer;white-space:nowrap;font-family:var(--font)}
.fchip.on{background:var(--red);border-color:var(--red);color:#fff}
.fchip.brand{display:inline-flex;align-items:center;gap:6px;border-color:#F0C9A0;background:#FFF8EF;color:#8A5600}
.fchip.brand:not(.on):hover{border-color:#E6A75C;color:#6E4400}
.fchip.brand.on{background:linear-gradient(135deg,var(--red) 0%,#B91C1C 100%);border-color:var(--red);color:#fff}
.fchip-mark{width:12px;height:12px;flex:0 0 auto;color:currentColor}
.sub-lead{font-size:12.5px;color:var(--gray);margin:-4px 0 12px;line-height:1.45}
/* video player */
.player-stage{position:relative;aspect-ratio:16/9;display:flex;align-items:center;justify-content:center}
.player-bar{display:flex;align-items:center;gap:10px;padding:12px 16px;background:var(--ink);color:#fff}
.player-track{flex:1;height:5px;border-radius:999px;background:rgba(255,255,255,.25);position:relative}
.player-track span{position:absolute;left:0;top:0;bottom:0;width:32%;background:var(--red);border-radius:999px}
.player-track i{position:absolute;left:32%;top:50%;transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.player-time{font-size:11.5px;font-weight:700;font-variant-numeric:tabular-nums;color:#cbd2dc}
/* ============ RESOURCES ============ */
.rcard{display:flex;align-items:center;gap:8px;width:100%;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px 14px;box-shadow:var(--sh-sm);margin-bottom:13px;font-family:var(--font)}
.rcard-main{display:flex;align-items:center;gap:13px;flex:1;min-width:0;text-align:left;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}
.rcard-main:active{transform:scale(.99)}
.ricon{width:46px;height:46px;border-radius:12px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:#fff;letter-spacing:.3px}
.rcard h4{font-size:14.5px;font-weight:800;line-height:1.28}
.rcard p{font-size:12px;color:var(--gray);margin-top:3px}
.rcard-dl{flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:var(--card);border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .15s ease}
.rcard-dl:active{transform:scale(.94)}
.rcard-dl .icon{width:19px;height:19px}
.rcard{transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.ricon{box-shadow:inset 0 -10px 14px rgba(0,0,0,.12)}
@media (hover:hover){
  .rcard:hover{box-shadow:var(--sh-md);border-color:#DDD3C2;transform:translateY(-1px)}
  .rcard-dl:hover{background:#EAE1D3}
  .fchip:not(.on):hover{border-color:var(--red);color:var(--red-deep)}
}
@media (prefers-reduced-motion: no-preference){
  #resList .rcard{animation:fade .22s ease both}
  #resList .rcard:nth-child(2){animation-delay:.03s}
  #resList .rcard:nth-child(3){animation-delay:.06s}
  #resList .rcard:nth-child(4){animation-delay:.09s}
  #resList .rcard:nth-child(n+5){animation-delay:.12s}
}

/* ============ RESOURCE VIEWER (js/app.js openResourceMediaViewer) ============
   The overlay itself is built with inline styles in JS (layout-critical, kept
   there so the flex math stays next to the logic that depends on it). These
   rules only add polish — hover/press feedback, depth, a calmer entrance —
   through the class names the JS already attaches alongside those inline
   styles, so nothing here can change the viewer's sizing or behaviour. */
.goc-viewer-header{box-shadow:0 1px 0 rgba(17,24,39,.05)}
.goc-viewer-title{letter-spacing:.1px}
.goc-viewer-btn,.goc-zoom-btn,.goc-pager-btn{transition:background-color .15s ease,transform .1s ease}
.goc-viewer-btn:active,.goc-zoom-btn:active,.goc-pager-btn:active{transform:scale(.92)}
.goc-pager-btn:disabled{opacity:.38;cursor:default}
.goc-zoom-bar{backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);box-shadow:var(--sh-md)}
.goc-viewer-dl{transition:background-color .15s ease,transform .1s ease}
.goc-viewer-dl:active{transform:scale(.96)}
@media (hover:hover){
  .goc-viewer-btn:hover{background:#e9eaec}
  .goc-zoom-btn:hover{background:#f3f4f6}
  .goc-pager-btn:hover:not(:disabled){background:#e9eaec}
  .goc-viewer-dl:hover{background:var(--red-deep)}
}
@media (prefers-reduced-motion: no-preference){
  .goc-viewer{animation:fade .2s ease}
}

/* ============ LANDING PAGE (public homepage) ============ */
#landing{background:var(--white);color:var(--ink)}
.lp-nav{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;background:rgba(255,255,255,.86);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
.lp-brand{display:flex;align-items:center;gap:9px}
.lp-brand .bm{width:34px;height:34px;border-radius:10px;background:var(--red);display:flex;align-items:center;justify-content:center;flex:0 0 auto;box-shadow:0 5px 13px rgba(220,38,38,.3)}
.lp-brand .bt{font-size:15px;font-weight:900;letter-spacing:-.01em;color:var(--ink)}
.lp-nav .lp-actions{display:flex;align-items:center;gap:8px}
.lp-link{background:none;border:none;font-family:var(--font);font-weight:700;font-size:13.5px;color:var(--slate);cursor:pointer;padding:9px 10px}
.lp-cta{font-family:var(--font);font-weight:800;font-size:13.5px;color:#fff;background:var(--red);border:none;border-radius:11px;padding:9px 15px;cursor:pointer;box-shadow:0 5px 14px rgba(220,38,38,.28)}
/* ===== Mobile slide-out drawer (public homepage only) ===== */
.lp-burger{display:flex;flex-direction:column;justify-content:center;gap:4px;width:42px;height:42px;padding:0 10px;
  border:1px solid var(--line);background:#fff;border-radius:11px;cursor:pointer;flex:0 0 auto;margin-right:10px}
.lp-burger span{display:block;height:2px;border-radius:2px;background:var(--ink)}
.lp-burger span:nth-child(2){width:72%}
.lp-scrim{position:absolute;inset:0;z-index:70;background:rgba(15,18,25,.5);opacity:0;visibility:hidden;transition:opacity .26s ease}
.lp-scrim.on{opacity:1;visibility:visible}
.lp-drawer{position:absolute;top:0;left:0;bottom:0;z-index:71;width:min(88%,340px);max-width:calc(100vw - 44px);background:#fff;
  display:flex;flex-direction:column;min-height:0;padding:18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  transform:translateX(-102%);transition:transform .28s cubic-bezier(.22,.61,.36,1),box-shadow .28s;box-shadow:none}
html.drawer-open #landing{overflow:hidden}
.lp-drawer.on{transform:translateX(0);box-shadow:14px 0 40px rgba(15,18,25,.22)} /* the closed drawer no longer casts its shadow onto every phone screen (Phase 3 fix) */
.dw-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dw-head .lp-brand .bt{font-size:13.5px}
.dw-x{border:none;background:#F2F4F7;color:var(--ink);width:40px;height:40px;border-radius:10px;font-size:22px;line-height:1;cursor:pointer;flex:none}
.dw-motto{margin:12px 0 4px;font-size:11.5px;font-weight:700;color:var(--red);letter-spacing:.2px;line-height:1.5}
.dw-nav{display:flex;flex-direction:column;margin-top:12px;border-top:1px solid var(--line)}
.dw-nav button{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;text-align:left;font-family:var(--font);
  font-size:14.5px;font-weight:700;line-height:1.25;color:var(--ink);background:none;border:none;border-bottom:1px solid var(--line);
  padding:14px 6px;cursor:pointer}
.dw-nav button:active{background:#FAFAFB}
.dw-nav .dwi{color:var(--red);font-size:11px}
.dw-btns{margin-top:18px}
.dw-btns .btn{min-height:48px}
.dw-foot{margin-top:auto;padding-top:18px;display:flex;flex-direction:column;gap:5px}
.dw-foot a{font-size:12px;color:var(--slate);text-decoration:none;padding:6px 0}
.lp-drawer button:focus-visible,.lp-drawer a:focus-visible{outline:3px solid rgba(220,38,38,.45);outline-offset:2px}
@media (max-width:360px){
  .lp-drawer{padding:14px 14px calc(14px + env(safe-area-inset-bottom));width:calc(100vw - 36px);max-width:none}
  .dw-head .lp-brand .bt{font-size:12.5px}
  .dw-nav button{font-size:14px;padding:13px 4px}
  .dw-btns .btn{font-size:14px;padding:12px 14px}
  .dw-motto{font-size:11px}
}
/* Mobile: the drawer carries these links, so the top bar keeps only the brand and menu button */
.lp-nav .lp-actions .lp-link{display:none}
.lp-hero{position:relative;overflow:hidden;padding:44px 20px 48px;text-align:center;
  background-color:#B91C1C;
  background:radial-gradient(120% 100% at 50% 0%,#DC2626 0%,#9d1a1a 52%,#6d1414 100%);color:#fff}
.lp-hero .kick{display:inline-flex;align-items:center;gap:7px;font-size:11.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);color:#fff;padding:6px 13px;border-radius:999px;margin-bottom:18px}
.lp-hero .lp-inner{position:relative;z-index:2}
.lp-hero h1{position:relative;z-index:2;color:#fff;font-size:31px;font-weight:900;line-height:1.12;letter-spacing:-.02em;max-width:16ch;margin:0 auto}
.lp-hero .sub{font-size:15px;line-height:1.55;color:#FFE1E1;max-width:44ch;margin:16px auto 0}
.lp-hero .hero-btns{display:flex;flex-direction:column;gap:11px;max-width:320px;margin:26px auto 0}
.lp-btn-light{background:#fff;color:var(--red);font-weight:800;border:none;border-radius:14px;padding:15px;font-size:15.5px;font-family:var(--font);cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.22)}
.lp-btn-ghost{background:rgba(255,255,255,.08);color:#fff;font-weight:800;border:1.5px solid rgba(255,255,255,.4);border-radius:14px;padding:15px;font-size:15.5px;font-family:var(--font);cursor:pointer}
.lp-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-top:26px;color:var(--red-mute);font-size:12px;font-weight:600}
.lp-trust span{display:inline-flex;align-items:center;gap:6px}
.lp-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-bottom:1px solid var(--line)}
.lp-stat{background:#fff;padding:22px 10px;text-align:center}
.lp-stat b{display:block;font-size:26px;font-weight:900;color:var(--red);letter-spacing:-.02em}
.lp-stat span{font-size:11.5px;font-weight:700;color:var(--gray)}
.lp-sec{padding:44px 20px}
.lp-sec.alt{background:var(--bg)}
.lp-eyebrow{font-size:11.5px;font-weight:800;letter-spacing:1.3px;text-transform:uppercase;color:var(--red);text-align:center}
.lp-sec h2{font-size:24px;font-weight:900;letter-spacing:-.02em;text-align:center;margin:10px auto 8px;max-width:20ch}
.lp-sec .lead{font-size:14.5px;line-height:1.55;color:var(--gray);text-align:center;max-width:52ch;margin:0 auto 26px}
.lp-feat{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;margin-bottom:14px;box-shadow:var(--sh-sm)}
.lp-feat .fi{width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:15px}
/* Priority 1.1 — the connectors between the three ecosystem cards. The box sits
   in the gap below its card on a phone and in the gap beside it from 900px, so
   it is placed from the layout rather than from measured geometry. It is out of
   flow, so it can never reflow the row, and with no scripts running it stands
   still as a plain diagram. */
#lpFeatures .lp-grid .lp-feat{position:relative}
#lpFeatures .lp-grid .lp-feat:not(:last-child){margin-bottom:30px}
#lpFeatures .lp-thread{position:absolute;left:50%;top:100%;margin-left:-1px;width:2px;height:30px;pointer-events:none}
#lpFeatures .lp-thread .lt-svg{display:block;width:100%;height:100%;opacity:.34}
#lpFeatures .lp-thread .lt-h{display:none}
#lpFeatures .lp-thread .lt-dot{position:absolute;left:-2px;top:-3px;width:6px;height:6px;border-radius:50%;background:#DC2626;opacity:0}
.lp-feat h3{font-size:17px;font-weight:800;margin-bottom:7px;letter-spacing:-.01em}
.lp-feat p{font-size:13.5px;line-height:1.58;color:var(--slate)}
.lp-step{display:flex;gap:15px;padding:15px 0}
.lp-step + .lp-step{border-top:1px solid var(--line)}
.lp-step .sn{width:34px;height:34px;border-radius:10px;background:var(--red);color:#fff;font-weight:900;font-size:15px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.lp-step h4{font-size:15.5px;font-weight:800;margin-bottom:3px}
.lp-step p{font-size:13.5px;line-height:1.5;color:var(--slate)}
.lp-quote{background:var(--ink);color:#fff;border-radius:22px;padding:28px 24px;text-align:center;max-width:640px;margin:0 auto}
.lp-quote .q{font-size:18px;font-weight:700;line-height:1.5;letter-spacing:-.01em}
.lp-quote .who{margin-top:18px;font-size:13px;color:#cbd2dc;font-weight:600}
/* 🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
   BOULDER — SCHOLARSHIP HOMEPAGE BANNER CSS
   Remove these boulder comment tags to re-enable.
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
B#2 slice 7 — scholarship homepage reference banner
.lp-sch-banner{background:linear-gradient(135deg,#fef9ec,#fef3c7);border-top:1px solid #fde68a;border-bottom:1px solid #fde68a;padding:20px 20px}
.lp-sch-inner{display:flex;align-items:center;gap:14px;max-width:640px;margin:0 auto;flex-wrap:wrap}
.lp-sch-icon{font-size:32px;flex:0 0 auto}
.lp-sch-copy{flex:1 1 160px}
.lp-sch-copy h3{font-size:15.5px;font-weight:800;letter-spacing:-.01em;margin:0 0 3px;color:var(--ink)}
.lp-sch-copy p{font-size:13px;line-height:1.5;color:var(--slate);margin:0}
.lp-sch-cta{flex:0 0 auto;background:var(--red);color:#fff;border:none;border-radius:10px;padding:10px 18px;font-size:13.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.lp-sch-cta:hover{background:#b91c1c}
@media(max-width:420px){.lp-sch-inner{gap:10px}.lp-sch-cta{width:100%;text-align:center;padding:12px}}
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
   END BOULDER — SCHOLARSHIP HOMEPAGE BANNER CSS
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨 */
.lp-band{background:linear-gradient(135deg,#DC2626,#7F1D1D);color:#fff;text-align:center;padding:40px 22px}
.lp-band h2{font-size:23px;font-weight:900;letter-spacing:-.02em;max-width:22ch;margin:0 auto 20px}
.lp-foot{background:#111318;border-top:1px solid #111318;padding:34px 20px 34px;text-align:center}
.lp-foot .fb .bt{color:#fff}
.lp-foot p{font-size:12px;color:#9aa3b2;line-height:1.6}
.lp-foot .fb{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:12px}
.lp-foot .links{display:flex;flex-wrap:wrap;justify-content:center;gap:14px;margin:14px 0}
.lp-foot .links a{font-size:12.5px;font-weight:700;color:#cbd2dc;cursor:pointer;text-decoration:none}

/* ---- homepage v2 additions ---- */
.lp-hero .hero-art{margin:30px auto 0;max-width:340px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.22);border-radius:22px;padding:16px;backdrop-filter:blur(2px)}
.lp-hero .hero-art .mini{background:#fff;border-radius:15px;padding:15px;text-align:left;box-shadow:0 16px 40px rgba(0,0,0,.28)}
.lp-hero .hero-art .mrow{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.lp-hero .hero-art .mrow .av{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#DC2626,#F0A500);flex:0 0 auto}
.lp-hero .hero-art .mrow b{font-size:13px;color:var(--ink);display:block}
.lp-hero .hero-art .mrow span{font-size:11px;color:var(--gray)}
.lp-hero .hero-art .bar{height:9px;border-radius:6px;background:var(--line);overflow:hidden;margin-bottom:9px}
.lp-hero .hero-art .bar i{display:block;height:100%;background:linear-gradient(90deg,#DC2626,#F0A500);border-radius:6px}
.lp-hero .hero-art .chips{display:flex;gap:6px;margin-top:12px}
.lp-hero .hero-art .chips em{flex:1;text-align:center;font-style:normal;font-size:10.5px;font-weight:800;padding:7px 4px;border-radius:9px;background:#FDECC8;color:#8A5600}
.lp-logos{padding:22px 20px;text-align:center;background:#fff;border-bottom:1px solid var(--line)}
.lp-logos .cap{font-size:11px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:var(--gray);margin-bottom:12px}
.lp-logos .row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.lp-logos .row b{font-size:12.5px;font-weight:800;color:var(--slate);background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:7px 14px}
.lp-subj{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;max-width:640px;margin:0 auto}
.lp-subj .sj{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--sh-sm)}
.lp-subj .sj .si{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:11px}
.lp-subj .sj h4{font-size:15px;font-weight:800;margin-bottom:3px}
.lp-subj .sj p{font-size:12px;color:var(--gray)}
.lp-contact{max-width:960px;margin:0 auto;display:grid;gap:16px}
.lp-cinfo{display:grid;gap:12px}
.lp-crow{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:var(--sh-sm)}
.lp-crow .ci{width:42px;height:42px;border-radius:11px;background:#FEECEC;color:var(--red);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.lp-crow .cl{display:block;font-size:11px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--gray);margin-bottom:3px}
.lp-crow .cv{display:block;font-size:14.5px;font-weight:700;color:var(--ink);text-decoration:none;word-break:break-word}
a.cv:hover{color:var(--red)}
.lp-cform{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--sh-sm)}
.lp-cform label{display:block;font-size:12.5px;font-weight:700;margin:0 0 6px}
.lp-cform input,.lp-cform textarea{width:100%;font-family:var(--font);font-size:14px;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:14px;background:var(--bg);color:var(--ink)}
.lp-cform textarea{min-height:96px;resize:vertical}
.lp-cform input:focus,.lp-cform textarea:focus{outline:none;border-color:var(--red)}
.lp-cform button{width:100%;background:var(--red);color:#fff;font-family:var(--font);font-weight:800;font-size:15px;border:none;border-radius:13px;padding:14px;cursor:pointer;box-shadow:0 8px 20px rgba(220,38,38,.26)}
.lp-cform button:disabled{opacity:.7;cursor:default;box-shadow:none}
.lp-cstatus{margin:12px 0 0;font-size:13.5px;font-weight:600;min-height:1px}
.lp-cstatus.ok{color:#15803d}
.lp-cstatus.err{color:var(--red)}
.lp-social{display:flex;gap:9px;justify-content:center;margin-top:14px}
.lp-social a,.lp-social button{font-size:17px;width:38px;height:38px;border-radius:11px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--slate);cursor:pointer}
.lp-qcols{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:760px;margin:6px auto 20px;text-align:left}
.lp-qcol b{display:block;font-size:12px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:#fff;margin-bottom:10px}
.lp-qcol a,.lp-qcol button{background:none;border:none;text-align:left;font-family:inherit;display:block;font-size:13px;font-weight:600;color:#aeb6c4;cursor:pointer;text-decoration:none;padding:4px 0;word-break:break-word}
.legal-screen{background:var(--bg)}
.legal-wrap{max-width:840px;margin:0 auto;padding:22px 18px 38px}
.legal-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px 20px 20px;box-shadow:var(--sh-sm)}
.legal-card h1{font-size:30px;font-weight:900;letter-spacing:-.03em;margin:10px 0 10px}
.legal-card h2{font-size:18px;font-weight:800;margin:22px 0 10px;letter-spacing:-.02em}
.legal-card p,.legal-card li{font-size:14px;line-height:1.7;color:var(--slate)}
.legal-card ul{padding-left:20px;margin:10px 0}
.legal-card strong{color:var(--ink)}
.legal-card .meta{font-size:12.5px;color:var(--gray);font-weight:700;margin-top:8px}
.legal-actions{display:flex;justify-content:center;margin-top:20px}
.inline-legal-btn{background:none;border:none;padding:0;color:var(--red);font:inherit;font-weight:800;cursor:pointer;text-decoration:underline}
/* updates / news page */
.up-head{background:linear-gradient(135deg,#DC2626,#7F1D1D);color:#fff;padding:34px 20px 30px;text-align:center}
.up-head h1{font-size:26px;font-weight:900;letter-spacing:-.02em}
.up-head p{font-size:14px;color:#FFE1E1;margin-top:8px;max-width:44ch;margin-left:auto;margin-right:auto}
/* The filter row sits directly below the sticky .lp-nav. --goc-navh is measured
   at runtime (see upStickTop in js/app.js); the 66px is the fallback for a
   first paint, and for file:// where scripts may be slow. z-index stays under
   the nav's 40 so the nav always wins if they ever meet. */
.up-filterwrap{position:sticky;top:var(--goc-navh,66px);z-index:20;background:#fff;
  border-bottom:1px solid var(--line)}
.up-filterwrap::after{content:'';position:absolute;top:0;right:0;bottom:0;width:38px;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,0),#fff 70%);opacity:0;transition:opacity .18s ease}
.up-filterwrap.up-more::after{opacity:1}
.up-filters{display:flex;gap:8px;overflow-x:auto;padding:14px 20px;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;-ms-overflow-style:none}
.up-filters::-webkit-scrollbar{display:none}
.up-chip{flex:0 0 auto;font-family:var(--font);font-size:12.5px;font-weight:800;border:1.5px solid var(--line);background:#fff;color:var(--slate);border-radius:999px;padding:8px 14px;cursor:pointer;scroll-margin:20px}
.up-chip.on{background:var(--red);border-color:var(--red);color:#fff;box-shadow:0 4px 12px rgba(220,38,38,.26)}
.up-list{padding:20px;display:grid;gap:14px;max-width:820px;margin:0 auto}
.up-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:var(--sh-sm)}
.up-card .tagrow{display:flex;align-items:center;gap:9px;margin-bottom:10px;flex-wrap:wrap}
.up-tag{font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;border-radius:999px;padding:4px 10px}
.up-tag.admission{background:#FEECEC;color:#B91C1C}
.up-tag.utme{background:#E7F1F4;color:#0E7490}
/* 🪨🪨🪨 BOULDER — SCHOLARSHIP UPDATE TAG CSS — remove boulder tags to re-enable
.up-tag.scholarship{background:#FDECC8;color:#8A5600}
🪨🪨🪨 END BOULDER — SCHOLARSHIP UPDATE TAG CSS */
.up-tag.news{background:#E6F4EC;color:#106b34}
.up-card .date{font-size:11.5px;color:var(--gray);font-weight:600}
.up-card h3{font-size:16.5px;font-weight:800;letter-spacing:-.01em;margin-bottom:6px}
.up-card p{font-size:13.5px;line-height:1.6;color:var(--slate)}
.up-card .more{margin-top:12px;font-size:12.5px;font-weight:800;color:var(--red);background:none;border:none;cursor:pointer;padding:0;font-family:var(--font)}

/* ============ AUTH (login / sign-up) ============ */
.auth{background:var(--bg);color:var(--ink);display:none}
.auth.active{display:flex}
.auth-brandbar{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#fff;border-bottom:1px solid var(--line)}
.auth-scroll{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.auth-card{width:100%;max-width:420px;margin:0 auto;padding:30px 22px 40px}
.auth-card h1{font-size:25px;font-weight:900;letter-spacing:-.02em}
.auth-card .tagline{font-size:14px;color:var(--gray);margin-top:6px;line-height:1.5}
.auth-card form{margin-top:24px}
.auth-row{display:flex;gap:12px}
.auth-row .field{flex:1}
.field-hint{font-size:11.5px;color:var(--mute);line-height:1.5;margin-top:6px}
.pw-wrap{position:relative}
.pw-wrap input{padding-right:52px}
.pw-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--gray);font-size:12px;font-weight:800;cursor:pointer;font-family:var(--font)}
.check-lbl{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--slate);cursor:pointer}
.check-lbl input{width:17px;height:17px;accent-color:var(--red)}
.auth-link{background:none;border:none;color:var(--red);font-weight:800;font-size:13px;cursor:pointer;font-family:var(--font);padding:0}
.auth-select{width:100%;border:1.5px solid var(--line);border-radius:14px;padding:14px;font-size:15px;font-family:var(--font);background:var(--bg);color:var(--ink);-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.auth-swap{text-align:center;font-size:13.5px;color:var(--gray);margin-top:22px}
.auth-legal{font-size:11.5px;color:var(--mute);line-height:1.5;margin-top:16px;text-align:center}
.auth-side{display:none}
.auth-back{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1.5px solid var(--line);border-radius:11px;padding:9px 14px;font-family:var(--font);font-size:13px;font-weight:800;color:var(--slate);cursor:pointer;margin-bottom:20px}
.auth-back:hover{border-color:var(--red);color:var(--red)}
.auth-card .auth-back{display:none}

/* ===== Sign-up: exam notice + JAMB subject combination =====
   The academy registers UTME candidates only, and every candidate takes Use of
   English plus exactly three sciences. Both rules are explained here on screen;
   the API enforces them again so the form is never the only guard. */
.exam-note{margin-top:10px;border:1.5px solid #FBD5D5;background:#FEF6F6;border-radius:13px;padding:11px 13px;font-size:12px;line-height:1.55;color:var(--red-deep)}
.exam-note b{display:block;font-size:12.5px;margin-bottom:3px;color:var(--red-dk)}
.exam-note span{color:var(--slate)}
.exam-note span b{display:inline;margin:0;color:var(--red-deep)}
.subj-pick{border:1.5px solid var(--line);border-radius:16px;padding:14px;background:var(--bg)}
.subj-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
.subj-opt{position:relative;display:flex;align-items:center;gap:9px;background:#fff;border:1.5px solid var(--line);border-radius:13px;padding:11px 12px;font-size:13.5px;font-weight:700;color:var(--slate);cursor:pointer;transition:border-color .14s ease,background .14s ease}
.subj-opt input{position:absolute;opacity:0;width:1px;height:1px}
.subj-opt .so-box{flex:none;width:19px;height:19px;border-radius:6px;border:1.5px solid var(--line);background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;color:transparent}
.subj-opt .so-name{flex:1;min-width:0}
.subj-opt .so-tag{font-size:10.5px;font-weight:800;letter-spacing:.4px;text-transform:uppercase;color:var(--red-deep);background:#FEECEC;border-radius:999px;padding:4px 8px}
.subj-opt.on{border-color:var(--red);background:#FEF6F6;color:var(--ink)}
.subj-opt.on .so-box,.subj-opt .so-box.on{border-color:var(--red);background:var(--red);color:#fff}
.subj-opt.locked{cursor:default;background:#fff;border-color:#FBD5D5}
.subj-opt input:focus-visible + .so-box{outline:2px solid var(--red);outline-offset:2px}
.subj-foot{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-top:10px}
.subj-count{font-size:11.5px;font-weight:800;color:var(--slate)}
.subj-count.done{color:var(--green)}
.subj-msg{font-size:11.5px;font-weight:700;color:var(--red-deep);line-height:1.45}
@media (max-width:359px){ .subj-grid{grid-template-columns:1fr} }

/* ============ DESKTOP / TABLET — ADAPTIVE WEB APP (left sidebar) ============
   Below 900px the layout is the untouched mobile phone. At >=900px the app
   fills the window: the bottom tab bar becomes a left sidebar, content sits in a
   centred reading column, and the login screen stays full-bleed. ============ */
.side-brand{display:none}
@media (min-width:900px){
  html,body{height:100%}
  body{background:var(--bg);display:block;margin:0;padding:0}
  .phone{position:relative;width:100vw;height:100dvh;max-width:none;border-radius:0;box-shadow:none;background:var(--bg)}
  .notch{display:none}

  /* the bottom tab bar becomes a fixed left sidebar on every app screen */
  .phone:not(.is-login) .tabbar{
    display:flex!important;flex-direction:column;align-items:stretch;
    top:0;bottom:0;left:0;right:auto;width:256px;height:auto;
    background:#fff;backdrop-filter:none;border-top:none;border-right:1px solid var(--line);
    padding:0;z-index:60;box-shadow:2px 0 22px rgba(17,24,39,.05)}
  .phone.is-login .tabbar{display:none!important}
  .side-brand{display:flex;align-items:center;gap:11px;padding:22px 20px 18px;border-bottom:1px solid var(--line)}
    .side-brand .bwrap{display:flex;flex-direction:column;line-height:1.12}
  .side-brand .bt{font-size:14.5px;font-weight:900;color:var(--ink);letter-spacing:-.01em}
  .side-brand .bs{font-size:11px;font-weight:700;color:var(--gray);margin-top:2px}
  .tabbar .tab{flex:0 0 auto;flex-direction:row;justify-content:flex-start;gap:14px;width:100%;padding:13px 20px;font-size:14.5px;color:var(--slate)}
  .tabbar .tab .icon{width:22px;height:22px}
  .tabbar .tab.on{color:var(--red-deep);background:#FEECEC;box-shadow:inset 4px 0 0 var(--red)}

  /* content sits to the right of the sidebar; login stays full-bleed */
  .phone:not(.is-login) .screens{left:256px}
  .phone.is-login .screens{left:0}

  /* centred reading column so nothing stretches edge-to-edge */
  .phone:not(.is-login) .screen>*{max-width:1180px;width:100%;margin-left:auto;margin-right:auto}

  /* let the video / resource collections use the extra width */
  .phone:not(.is-login) #liveList,
  .phone:not(.is-login) #resList {display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}
  .phone:not(.is-login) #liveList>*,
  .phone:not(.is-login) #resList>* {margin-bottom:0}

  /* login as a centred card on the full red canvas */
  #login{justify-content:center;align-items:center;padding:32px}
  #login .login-top{padding:0 26px 26px;max-width:520px}
  #login>div[style*="flex:1"]{display:none}
  #login .login-form{width:100%;max-width:430px;border-radius:26px;box-shadow:0 30px 70px rgba(0,0,0,.35)}

  .toast{bottom:28px}

  /* extra breathing room on desktop so the wide column never feels cramped */
  .phone:not(.is-login) .wrap{padding:0 30px}
  .phone:not(.is-login) .sec-head{margin:30px 0 14px}
  .phone:not(.is-login) .tile{margin-bottom:16px}
    .phone:not(.is-login) #liveList,
  .phone:not(.is-login) #resList {gap:20px}
  .phone:not(.is-login) .lesson-body{padding:26px 30px}
  .phone:not(.is-login) .q-card{padding:24px 30px}
  
  .phone:not(.is-login) .lead-hero,
  .phone:not(.is-login) .prof-hero {padding-left:30px;padding-right:30px}

  /* ---- landing page: centred content, wider hero, multi-column grids ---- */
  /* Desktop keeps the original inline nav — no burger, no drawer. */
  .lp-burger{display:none}
  .lp-drawer,.lp-scrim{display:none}
  .lp-nav .lp-actions .lp-link{display:inline-block}
  #landing .lp-nav{padding:16px max(24px,calc((100% - 1120px)/2))}
  #landing .lp-hero{padding:72px 20px 76px}
  #landing .lp-hero h1{font-size:50px;max-width:18ch}
  #landing .lp-hero .sub{font-size:18px;margin-top:20px}
  #landing .lp-hero .hero-btns{flex-direction:row;justify-content:center;max-width:none}
  #landing .lp-hero .lp-btn-light,#landing .lp-hero .lp-btn-ghost{min-width:190px}
  #landing .lp-stats,#landing .lp-inner{max-width:1120px;margin:0 auto}
  #landing .lp-sec>*{max-width:1000px;margin-left:auto;margin-right:auto}
  #landing .lp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;max-width:1000px;margin:0 auto}
  #landing .lp-grid .lp-feat{margin-bottom:0}
  /* Priority 1.1 — the same two connectors, turned to run across the row. */
  #landing #lpFeatures .lp-grid .lp-feat:not(:last-child){margin-bottom:0}
  #landing #lpFeatures .lp-thread{left:100%;top:50%;margin-left:0;margin-top:-1px;width:18px;height:2px}
  #landing #lpFeatures .lp-thread .lt-v{display:none}
  #landing #lpFeatures .lp-thread .lt-h{display:block}
  #landing #lpFeatures .lp-thread .lt-dot{left:-3px;top:-2px}
  #landing .lp-sec h2{font-size:32px}
  #landing .lp-hero .lp-inner{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:40px;max-width:1120px;margin:0 auto;text-align:left}
  #landing .lp-hero h1,#landing .lp-hero .sub{margin-left:0;margin-right:0}
  #landing .lp-hero .kick,#landing .lp-hero .lp-trust{justify-content:flex-start}
  #landing .lp-hero .hero-btns{justify-content:flex-start;margin-left:0}
  #landing .lp-hero .hero-art{margin:0;max-width:none;grid-row:span 1}
  #landing .lp-subj{grid-template-columns:repeat(4,1fr);max-width:1000px}
  #landing .lp-contact{grid-template-columns:.9fr 1.1fr;align-items:start}
  #landing .lp-qcols{max-width:820px}

  /* ---- auth: two-panel layout (brand story + form) ---- */
  .phone.is-login #login-v2 .auth-scroll,
  .phone.is-login #signup .auth-scroll{flex-direction:row}
  .auth-side{display:flex;flex-direction:column;justify-content:space-between;flex:1;
    background:radial-gradient(120% 100% at 20% 0%,#DC2626,#7F1D1D);color:#fff;padding:48px 44px}
  .auth-side .as-top{display:flex;align-items:center;gap:11px}
  .auth-side .as-top b{font-size:16px;font-weight:900}
  .auth-side h2{font-size:34px;font-weight:900;line-height:1.15;letter-spacing:-.02em;margin-top:auto;max-width:16ch}
  .auth-side p{font-size:15px;color:#FFE1E1;line-height:1.6;margin-top:16px;max-width:40ch}
  .auth-side .as-points{margin-top:28px;display:flex;flex-direction:column;gap:14px}
  .auth-side .as-pt{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:600}
  .auth-side .as-pt .ck{width:24px;height:24px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
  .phone.is-login #login-v2 .auth-brandbar,
  .phone.is-login #signup .auth-brandbar{display:none}
  .phone.is-login #login-v2 .auth-formwrap,
  .phone.is-login #signup .auth-formwrap{flex:1;display:flex;align-items:flex-start;justify-content:center;overflow-y:auto;padding:48px 24px}
  .phone.is-login .auth-formwrap .auth-card{margin:auto 0}
  .auth-card{padding:40px 30px}
  .phone.is-login .auth-card .auth-back{display:inline-flex}
}
@media (min-width:1280px){
  .phone:not(.is-login) .screen>*{max-width:1320px}
}

/* ==========================================================================
   LANDING MOTION, PART 3 — contact split-screen, footer constellation, card tilt
   --------------------------------------------------------------------------
   The same rules as part 2 (and the Priority 1 section below it) apply:
   nothing is hidden unless html.anim-on is set, every animation, transition
   and will-change sits inside prefers-reduced-motion: no-preference, the logo
   is never touched, and only transform and opacity ever move. This part adds
   no exception: stroke-dashoffset stays confined to the .hw-ico paths in part
   2, so the footer lines draw by scaling out from their first star instead.

   The contact card, the footer and the three ecosystem cards are laid out and
   readable with no motion at all; the motion below only decorates them. It is
   kept ahead of the part 2 block, so the Priority 1 section is still the last
   thing in the file that test-p1.js reads. test-landing-motion-3.js polices it.
   ======================================================================== */

/* ---- Contact: one card, two halves -------------------------------------
   The details sit on an ink panel with the aurora behind them, the form on
   white beside it (below it on a phone). The card clips both, so the blobs can
   drift past the panel edge without ever adding scrollable width. */
#landing .lp-contact{gap:0;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden;box-shadow:var(--sh-md)}
.lp-cinfo{position:relative;isolation:isolate;overflow:hidden;align-content:start;padding:26px 20px 24px;
  background:radial-gradient(70% 45% at 100% 100%,rgba(240,165,0,.16),rgba(240,165,0,0) 70%),var(--ink)}
.lp-cinfo::before,.lp-cinfo::after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.lp-cinfo::before{width:300px;height:300px;left:-110px;top:-120px;
  background:radial-gradient(closest-side,rgba(220,38,38,.62),rgba(220,38,38,0))}
.lp-cinfo::after{width:280px;height:280px;right:-110px;bottom:-120px;
  background:radial-gradient(closest-side,rgba(14,116,144,.66),rgba(14,116,144,0))}
.lp-cinfo .lp-crow{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.14);box-shadow:none}
.lp-cinfo .lp-crow .ci{background:rgba(255,255,255,.1);color:var(--gold-lt)}
.lp-cinfo .lp-crow .cl{color:#b8c0cd}
.lp-cinfo .lp-crow .cv{color:#fff}
.lp-cinfo a.cv:hover{color:var(--gold-lt)}
.lp-cinfo .lp-social{margin-top:6px}
.lp-cinfo .lp-social a{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#e8ecf3}
.lp-cform{border:0;border-radius:0;box-shadow:none;padding:26px 20px}
.cf-field{margin-bottom:14px}
.lp-cform .cf-in{position:relative;display:block}
.lp-cform .cf-in input,.lp-cform .cf-in textarea{margin-bottom:0}
.lp-cform input:focus,.lp-cform textarea:focus{box-shadow:0 0 0 3px rgba(220,38,38,.16)}
.lp-cform button{position:relative;overflow:hidden}
.lp-cform button:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
/* The ripple is made by js/app.js at the point of the press. At rest it is a
   dot of no size, so a stray one can never show. */
.cf-rip{position:absolute;border-radius:50%;background:rgba(255,255,255,.4);pointer-events:none;transform:translate(-50%,-50%) scale(0)}
@media (min-width:900px){
  .lp-cinfo{padding:34px 30px}
  .lp-cform{padding:34px 34px}
}

/* ---- Footer: the constellation ------------------------------------------
   Behind the columns and never in front of them. The lines keep a 1px stroke
   however the picture is scaled to fit the footer. */
/* flex-shrink:0 because the landing screen is a flex column, and a clipping box in it
   would otherwise be allowed to shrink below its own content. */
.lp-foot{position:relative;isolation:isolate;overflow:hidden;flex-shrink:0}
.lp-foot>.fb,.lp-foot>.lp-qcols,.lp-foot>p{position:relative;z-index:1}
.lp-const{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.lp-const.cn-w{display:none}
@media (min-width:900px){.lp-const.cn-n{display:none}.lp-const.cn-w{display:block}}
.lp-const line{stroke:rgba(254,240,138,.28);stroke-width:1;vector-effect:non-scaling-stroke}
.lp-const .st{fill:var(--gold-lt);opacity:.7}

@media (prefers-reduced-motion: no-preference){

  /* Aurora. The two blobs drift while the card is on screen (.live is set and
     cleared by an IntersectionObserver, so nothing loops off-screen), and
     brighten while a field has focus (.engaged): the form wakes the panel. */
  html.anim-on .lp-cinfo::before,html.anim-on .lp-cinfo::after{opacity:.7;transition:opacity .6s ease}
  html.anim-on .lp-contact.engaged .lp-cinfo::before,html.anim-on .lp-contact.engaged .lp-cinfo::after{opacity:1}
  html.anim-on .lp-contact.live .lp-cinfo::before{animation:auroraA 15s ease-in-out infinite alternate;will-change:transform,opacity}
  html.anim-on .lp-contact.live .lp-cinfo::after{animation:auroraB 19s ease-in-out infinite alternate;will-change:transform,opacity}

  /* Magnetic focus. js/app.js writes --mx / --my (a few px, toward the
     pointer) on the field under a mouse; a focused field also swells a touch. */
  html.anim-on .lp-cform .cf-in{transform:translate(var(--mx,0px),var(--my,0px));transition:transform .3s cubic-bezier(.2,.7,.3,1)}
  html.anim-on .lp-cform .cf-in:focus-within{transform:translate(var(--mx,0px),var(--my,0px)) scale(1.012)}

  /* Send-button ripple. */
  html.anim-on .cf-rip{animation:cfRipple .7s cubic-bezier(.2,.6,.3,1) both}
  html.anim-on .lp-cform button:active{transform:scale(.985)}

  /* Constellation. The lines scale out from their first star (transform, so no
     stroke-dashoffset), the stars pop in behind them, and once the footer is
     live the stars twinkle each at its own pace. */
  html.anim-on .lp-const line{opacity:0;transform:scale(0);transform-box:view-box;transform-origin:var(--ox,0px) var(--oy,0px)}
  html.anim-on .lp-foot.rv .lp-const line{animation:cnLine .9s cubic-bezier(.4,.1,.3,1) var(--d,0s) both}
  html.anim-on .lp-const .st{opacity:0;transform:scale(.3);transform-box:fill-box;transform-origin:center}
  html.anim-on .lp-foot.rv .lp-const .st{animation:cnStar .6s cubic-bezier(.34,1.4,.5,1) var(--d,0s) both}
  html.anim-on .lp-foot.rv.live .lp-const .st{animation:cnStar .6s cubic-bezier(.34,1.4,.5,1) var(--d,0s) both,
    cnTwinkle var(--tw,3.8s) ease-in-out calc(var(--d,0s) + 1.1s) infinite}

  /* Feature cards: dealt onto the table, then they follow the cursor. The
     rest pose (rotation and lift, per card) lives in --rot and --lift so the
     reveal, the hover and the tilt all compose from the same numbers. The
     older reveal ended on transform:none, which flattened the skewed deck the
     moment it landed; these end on the rest pose instead (fill-mode backwards,
     so the element's own style takes over when the animation is done). */
  html.anim-on #landing #lpFeatures .lp-feat{--rot:-1.6deg;--lift:0px;--tx:0deg;--ty:0deg;
    transform:perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) rotate(var(--rot)) translateY(var(--lift)) scale(1);
    transition:transform .5s cubic-bezier(.2,.7,.3,1)}
  html.anim-on #landing #lpFeatures .lp-feat:nth-child(2){--rot:1.5deg}
  html.anim-on #landing #lpFeatures .lp-feat:nth-child(3){--rot:-1deg}
  html.anim-on #landing #lpFeatures .lp-feat.is-tilting{transition:transform .1s ease-out;will-change:transform}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat{opacity:1;animation:featDeal .75s cubic-bezier(.22,.9,.3,1) backwards}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat:nth-child(2){animation-delay:.14s}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat:nth-child(3){animation-delay:.28s}
  /* The number tile keeps its lean; only its arrival is animated. */
  html.anim-on #landing #lpFeatures .lp-feat .fi{transform:rotate(-5deg)}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat .fi{animation:featIcon .65s cubic-bezier(.34,1.4,.5,1) .3s backwards}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat:nth-child(2) .fi{animation-delay:.44s}
  html.anim-on #landing #lpFeatures .lp-grid.rv .lp-feat:nth-child(3) .fi{animation-delay:.58s}
  @media (min-width:900px){
    html.anim-on #landing #lpFeatures .lp-feat{--rot:-1.4deg;--lift:-6px}
    html.anim-on #landing #lpFeatures .lp-feat:nth-child(2){--rot:1.2deg;--lift:6px}
    html.anim-on #landing #lpFeatures .lp-feat:nth-child(3){--rot:-.8deg;--lift:-3px}
  }
  @media (hover:hover) and (pointer:fine){
    html.anim-on #landing #lpFeatures .lp-feat:hover{--rot:0deg;--lift:-3px}
  }

  /* Subject tiles: same fault, same repair. They keep the lean the stylesheet
     gives them (and its hover) once they have landed. */
  html.anim-on #landing .lp-subj.rv .sj{opacity:1;animation:sjDeal .55s cubic-bezier(.22,.9,.3,1) backwards}
  html.anim-on #landing .lp-subj.rv .sj:nth-child(2){animation-delay:.07s}
  html.anim-on #landing .lp-subj.rv .sj:nth-child(3){animation-delay:.14s}
  html.anim-on #landing .lp-subj.rv .sj:nth-child(4){animation-delay:.21s}
  html.anim-on #landing .lp-subj.rv .sj:nth-child(5){animation-delay:.28s}
}
@keyframes auroraA{from{transform:translate(0,0) scale(1)}to{transform:translate(70px,50px) scale(1.25)}}
@keyframes auroraB{from{transform:translate(0,0) scale(1.1)}to{transform:translate(-80px,-40px) scale(.9)}}
@keyframes cfRipple{from{transform:translate(-50%,-50%) scale(0);opacity:.55}to{transform:translate(-50%,-50%) scale(1);opacity:0}}
@keyframes cnLine{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}
@keyframes cnStar{from{opacity:0;transform:scale(.3)}to{opacity:.7;transform:scale(1)}}
@keyframes cnTwinkle{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.5)}}
@keyframes featDeal{
  from{opacity:0;transform:perspective(900px) rotateX(16deg) rotateY(0deg) rotate(calc(var(--rot) * 2.6)) translateY(calc(var(--lift) + 34px)) scale(.95)}
  to{opacity:1;transform:perspective(900px) rotateX(var(--tx)) rotateY(var(--ty)) rotate(var(--rot)) translateY(var(--lift)) scale(1)}}
@keyframes featIcon{from{opacity:0;transform:rotate(-24deg) scale(.6)}to{opacity:1;transform:rotate(-5deg) scale(1)}}
@keyframes sjDeal{from{opacity:0;transform:translateY(22px) rotate(0deg) scale(.96)}}

/* ==========================================================================
   LANDING MOTION, PART 2 — the film strip and the stage quote
   --------------------------------------------------------------------------
   The Priority 1 rules (the section just below) still hold: nothing is hidden unless html.anim-on
   is set, every effect sits inside prefers-reduced-motion: no-preference, the
   logo is never touched, and scroll-driven movement is transform and opacity
   only. There is exactly one deliberate exception, agreed for this section:
   the four step icons draw themselves with stroke-dashoffset. It is confined
   to .hw-ico paths (a few dozen units of stroke, painted once on arrival) and
   is never used for anything that carries text.

   This block is kept ahead of the Priority 1 section on purpose: that section
   is policed by test-p1.js, which reads to the end of the file. The rules for
   this one are policed by test-landing-motion.js.
   ======================================================================== */

/* ---- How it works: the film strip -------------------------------------
   Scroll-snap does the snapping, so swiping works with no script at all. The
   strip is full-bleed: it pulls itself out to the edges of the section's own
   20px side padding, so the heading above keeps its usual margins. */
.hw-sec{padding-bottom:36px}
.hw-hint{font-size:12.5px;font-weight:600;color:var(--gray);text-align:center;margin:0 auto 18px}
.hw{position:relative}
#landing .hw-sec>.hw{max-width:none;margin-left:-20px;margin-right:-20px}
.hw-strip{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;
  scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hw-strip::-webkit-scrollbar{display:none}
.hw-strip:focus-visible{outline:3px solid var(--red);outline-offset:-3px}
.hw-slide{--pn:#DC2626;--fg:#fff;--o:0;--c:1;
  position:relative;flex:0 0 100%;min-width:0;min-height:410px;display:flex;align-items:center;justify-content:center;
  padding:38px 22px 38px 62px;scroll-snap-align:center;scroll-snap-stop:always;color:var(--fg);overflow:hidden}
.hw-slide[data-step="2"]{--pn:#F0A500;--fg:#20242C}
.hw-slide[data-step="3"]{--pn:#0E7490}
.hw-slide[data-step="4"]{--pn:#15803D}
/* The colour panel is wider than the slide and tilted, a different way for each
   step, so the four read as four separate sheets of a film. The slide clips it,
   so the tilt shows as a diagonal band and never spills into its neighbour or
   adds scrollable width past the last step. */
.hw-panel{position:absolute;inset:22px -4%;background:var(--pn);border-radius:6px;transform:rotate(-2.4deg)}
.hw-slide[data-step="2"] .hw-panel{transform:rotate(1.9deg)}
.hw-slide[data-step="3"] .hw-panel{transform:rotate(-1.5deg)}
.hw-slide[data-step="4"] .hw-panel{transform:rotate(2.6deg)}
.hw-num{position:absolute;right:5%;top:50%;transform:translateY(-50%);font-size:min(64vw,300px);line-height:1;
  font-weight:900;letter-spacing:-.04em;color:var(--fg);opacity:.12;pointer-events:none;user-select:none}
.hw-body{position:relative;width:100%;max-width:560px}
.hw-ico{display:block;width:58px;height:58px;margin-bottom:14px;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round}
.hw-kick{display:block;font-size:11.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;opacity:.85;margin-bottom:6px}
.hw-body h4{font-size:26px;font-weight:900;line-height:1.14;letter-spacing:-.02em;margin-bottom:10px;max-width:16ch}
.hw-body p{font-size:15.5px;line-height:1.55;max-width:34ch}
/* The side rail: a pill of its own, because the slides behind it change colour
   and a rail drawn straight onto them would vanish on one of the four. */
.hw-rail{position:absolute;left:9px;top:50%;transform:translateY(-50%);z-index:3;width:38px;height:228px;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:7px 0;
  background:rgba(255,255,255,.94);border-radius:999px;box-shadow:0 6px 18px rgba(17,24,39,.22)}
.hw-line{position:absolute;left:50%;top:22px;bottom:22px;width:3px;margin-left:-1.5px;border-radius:3px;background:#E6E0D6;overflow:hidden}
.hw-fill{position:absolute;inset:0;background:var(--red);transform-origin:top center;transform:scaleY(var(--p,0))}
.hw-node{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;border:2px solid #D9D3C8;background:#fff;
  color:var(--slate);font-family:var(--font);font-size:11.5px;font-weight:800;line-height:1;cursor:pointer;padding:0}
.hw-node.done{background:var(--red);border-color:var(--red);color:#fff}
.hw-node.cur{box-shadow:0 0 0 3px rgba(220,38,38,.22)}
.hw-node:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (min-width:900px){
  .hw-slide{min-height:460px;padding:44px 40px 44px 110px}
  /* The same tilt is a far bigger vertical swing across a wide slide, so the
     angles are gentler and the panel sits further in from the top and bottom. */
  .hw-panel{inset:38px -2%;transform:rotate(-1.2deg)}
  .hw-slide[data-step="2"] .hw-panel{transform:rotate(1deg)}
  .hw-slide[data-step="3"] .hw-panel{transform:rotate(-.8deg)}
  .hw-slide[data-step="4"] .hw-panel{transform:rotate(1.3deg)}
  .hw-num{right:12%}
  .hw-body h4{font-size:34px}
  .hw-body p{font-size:17px}
  .hw-rail{left:22px}
}

/* ---- Pull-quote: the stage --------------------------------------------
   The wash to ink is an overlay whose opacity is driven from scroll, so the
   section itself never repaints its background. The card is ink with white
   text throughout, which is why the shift can be smooth without ever putting
   light text on a light ground. */
.lp-stage{position:relative;isolation:isolate;padding:66px 20px}
.lp-stage::before{content:"";position:absolute;inset:0;z-index:-1;opacity:0;pointer-events:none;
  background:radial-gradient(60% 55% at 50% 42%,rgba(220,38,38,.26),rgba(220,38,38,0) 72%),var(--ink)}
.lp-quote{position:relative}
.lq-mark{position:absolute;left:10px;top:-40px;z-index:0;font:900 200px/1 Georgia,"Times New Roman",serif;color:var(--red);
  opacity:.22;transform:rotate(-8deg);transform-origin:0 100%;pointer-events:none;user-select:none}
.lp-quote .qw,.lp-quote .who{position:relative;z-index:1}

@media (prefers-reduced-motion: no-preference){

  /* Film strip. --o is how far a slide sits from the middle of the strip
     (-1 left, +1 right), --c how centred it is (1 at rest). js/app.js writes
     both as the strip scrolls; each layer reads them at a different rate, which
     is the parallax: the numeral drifts and swells behind, the paragraph lags
     furthest behind the heading. */
  html.anim-on .hw-num{opacity:calc(.05 + .13 * var(--c,1));
    transform:translateY(-50%) translateX(calc(var(--o,0) * -90px)) scale(calc(.7 + .5 * var(--c,1)));will-change:transform,opacity}
  html.anim-on .hw-body{opacity:calc(.3 + .7 * var(--c,1))}
  html.anim-on .hw-kick{transform:translateX(calc(var(--o,0) * 10px))}
  html.anim-on .hw-body h4{transform:translateX(calc(var(--o,0) * 34px))}
  html.anim-on .hw-body p{transform:translateX(calc(var(--o,0) * 66px))}
  html.anim-on .hw-node{transition:background-color .25s ease,border-color .25s ease,box-shadow .25s ease}

  /* The icon is drawn once, when its slide is centred AND the strip has been
     scrolled into view: both classes are needed, so nothing plays off-screen. */
  html.anim-on .hw-ico path{stroke-dasharray:1 2;stroke-dashoffset:1}
  html.anim-on .hw.rv .hw-slide.on .hw-ico{animation:hwPop .7s cubic-bezier(.34,1.4,.5,1) both}
  html.anim-on .hw.rv .hw-slide.on .hw-ico path{animation:hwDraw .85s cubic-bezier(.4,.1,.3,1) .12s both}
  html.anim-on .hw.rv .hw-slide.on .hw-ico path:nth-child(2){animation-delay:.42s}
  html.anim-on .hw.rv .hw-slide.on .hw-ico path:nth-child(3){animation-delay:.68s}

  /* Stage quote. --qc is 1 when the section is centred, --qo is signed distance
     from centre. The wash, the tilt and the parallax all follow scroll; the
     mark and the words arrive once, in sequence: mark, quote, attribution. */
  html.anim-on .lp-stage::before{opacity:var(--qc,0)}
  html.anim-on .lp-stage .qw{transform:perspective(900px) rotateX(calc(var(--qo,0) * 16deg)) translateY(calc(var(--qo,0) * 22px));
    transform-origin:50% 60%;will-change:transform}
  html.anim-on .lp-stage .who{transform:translateY(calc(var(--qo,0) * 42px))}
  html.anim-on .lq-mark{opacity:0;transform:rotate(-46deg) scale(.5) translate(-30px,50px)}
  html.anim-on .lp-stage.rv .lq-mark{animation:lqMark 1.05s cubic-bezier(.22,.9,.3,1) both}
  html.anim-on .lp-stage .q{opacity:0;transform:translateY(22px) scale(.965)}
  html.anim-on .lp-stage.rv .q{animation:lqText .85s cubic-bezier(.22,.68,.36,1) .3s both}
  html.anim-on .lp-stage .who{opacity:0}
  html.anim-on .lp-stage.rv .who{animation:lqFade .7s ease .7s both}
}
@keyframes hwPop{from{transform:scale(.7) rotate(-14deg)}to{transform:none}}
@keyframes hwDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes lqMark{from{opacity:0;transform:rotate(-46deg) scale(.5) translate(-30px,50px)}to{opacity:.22;transform:rotate(-8deg)}}
@keyframes lqText{from{opacity:0;transform:translateY(22px) scale(.965)}to{opacity:1;transform:none}}
@keyframes lqFade{from{opacity:0}to{opacity:1}}

/* ==========================================================================
   PRIORITY 1 — PREMIUM MOTION
   --------------------------------------------------------------------------
   Four rules govern everything in this section, and breaking any one of them
   is a defect rather than a matter of taste:

   1. Only transform and opacity are animated. Nothing here animates width,
      height, margin, padding, top/left or letter-spacing, so no animation can
      move text that is already on screen or cost a layout pass on a cheap
      phone.
   2. Nothing is hidden unless JavaScript is running. Every reveal below is
      gated behind html.anim-on, which js/app.js adds only once it is able to
      take the class back off again. Without scripts, or if the reveal code
      never runs, the page is simply visible — a motion effect must never be
      able to make content unreadable.
   3. Space is reserved before the animation starts. Cards translate within
      space the grid has already allocated, so nothing reflows as they arrive.
   4. Every effect sits inside @media (prefers-reduced-motion: no-preference).
      A student who has asked their phone to stop animating things gets a
      static page, not a slower one.

   The logo is never animated. .lp-brand and .bm are deliberately absent from
   this entire section; only the .bt wordmark text beside the logo moves.
   ======================================================================== */

@media (prefers-reduced-motion: no-preference){

  /* ---- 1.1 the connected ecosystem ------------------------------------
     "Three parts working as one" is the claim the section makes, so the three
     cards arrive in sequence rather than together, and each one's icon wakes
     as it lands — a signal passing along the row. The stagger is what carries
     the meaning; the fade is only there to make it graceful. */
  html.anim-on #lpFeatures .lp-feat{opacity:0;transform:translateY(18px)}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat{animation:featIn .58s cubic-bezier(.22,.68,.36,1) both}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(2){animation-delay:.13s}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(3){animation-delay:.26s}

  html.anim-on #lpFeatures .lp-feat .fi{transform:scale(.86)}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat .fi{animation:iconWake .62s cubic-bezier(.34,1.4,.5,1) both}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(2) .fi{animation-delay:.26s}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(3) .fi{animation-delay:.39s}

  /* The thread between two cards draws once the card it leaves has landed, and a
     particle then travels along it on a loop: progressive activation first,
     continuous flow after — three parts connecting, then staying connected. The
     path is scaled along its own axis rather than drawn with stroke-dashoffset,
     which would animate a property that costs a paint on every frame. */
  html.anim-on #lpFeatures .lp-thread{transform:scaleY(0);transform-origin:top center}
  html.anim-on #lpFeatures .lp-grid.rv .lp-thread{animation:threadDraw .46s cubic-bezier(.22,.68,.36,1) .44s both}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(2) .lp-thread{animation-delay:.57s}
  html.anim-on #lpFeatures .lp-grid.rv .lp-thread .lt-dot{animation:dotFlow 2.8s linear 1s infinite}
  html.anim-on #lpFeatures .lp-grid.rv .lp-feat:nth-child(2) .lp-thread .lt-dot{animation-delay:1.4s}

  /* From 900px the same two threads run across the row instead of down it, so
     only the axis of each keyframe changes. */
  @media (min-width:900px){
    html.anim-on #lpFeatures .lp-thread{transform:scaleX(0);transform-origin:left center}
    html.anim-on #lpFeatures .lp-grid.rv .lp-thread{animation-name:threadDrawH}
    html.anim-on #lpFeatures .lp-grid.rv .lp-thread .lt-dot{animation-name:dotFlowH}
  }

  /* The subject tiles use the same idea at a faster cadence, because there are
     five of them and a long stagger would read as sluggish. */
  html.anim-on .lp-subj .sj{opacity:0;transform:translateY(14px)}
  html.anim-on .lp-subj.rv .sj{animation:featIn .48s cubic-bezier(.22,.68,.36,1) both}
  html.anim-on .lp-subj.rv .sj:nth-child(2){animation-delay:.06s}
  html.anim-on .lp-subj.rv .sj:nth-child(3){animation-delay:.12s}
  html.anim-on .lp-subj.rv .sj:nth-child(4){animation-delay:.18s}
  html.anim-on .lp-subj.rv .sj:nth-child(5){animation-delay:.24s}

  /* ---- 1.4 the wordmark, and only the wordmark ------------------------
     The mark itself must not move, so this targets the .bt text span inside
     the nav brand and nothing else. Opacity and a 7px slide: the text settles
     beside a logo that was already in place. */
  html.anim-on #landing .lp-nav .lp-brand .bt{animation:markIn .66s ease-out both}

  /* ---- 1.2 / 1.3 the hand-off into the app ---------------------------
     Signing in and signing up are the two moments the app should feel like it
     opened rather than switched. .enter-rich is set by js/app.js for exactly
     one screen activation and cleared on the next, so this plays once on
     arrival and never again on an ordinary tab change. */
  .screen.active.enter-rich{animation:richIn .5s cubic-bezier(.2,.7,.3,1)}
  .screen.active.enter-rich>*{animation:featIn .52s cubic-bezier(.22,.68,.36,1) both;animation-delay:.06s}
  /* The blocks of the dashboard arrive in reading order, which is what makes the
     arrival read as a sequence — authentication, entry, then the dashboard
     assembling — without a single timer standing between the student and a
     screen that is already interactive. Everything past the fourth block shares
     one delay, so a long screen never has a slow bottom. */
  .screen.active.enter-rich>*:nth-child(2){animation-delay:.13s}
  .screen.active.enter-rich>*:nth-child(3){animation-delay:.2s}
  .screen.active.enter-rich>*:nth-child(4){animation-delay:.27s}
  .screen.active.enter-rich>*:nth-child(n+5){animation-delay:.34s}

  /* 1.3 only — the Scholar ID the server has just issued is the last thing to
     settle, because it is the one part of a new account the student has to keep.
     js/app.js marks the screen with .enter-id on that one arrival, so an
     ordinary login does not re-announce an ID the student already has. */
  
  /* The primary button acknowledges the press before the network answers. */
  .lp-cta:active,.btn.primary:active{transform:translateY(1px) scale(.985)}
}

@keyframes featIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes iconWake{from{transform:scale(.86)}to{transform:scale(1)}}
@keyframes markIn{from{opacity:0;transform:translateX(-7px)}to{opacity:1;transform:none}}
@keyframes richIn{from{opacity:0;transform:scale(.988)}to{opacity:1;transform:none}}
@keyframes threadDraw{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes threadDrawH{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes dotFlow{0%{opacity:0;transform:translateY(0)}14%{opacity:1}82%{opacity:1}100%{opacity:0;transform:translateY(30px)}}
@keyframes dotFlowH{0%{opacity:0;transform:translateX(0)}14%{opacity:1}82%{opacity:1}100%{opacity:0;transform:translateX(18px)}}

/* ===== Self-directed study: set-up, reading picker, study review =====
   The student chooses the paper, the topics, the question count and — for CBT
   only — the clock. Topic rows are real buttons rather than checkbox inputs so
   the whole row is a tap target on a phone; the tick is drawn in CSS. */
.ss-link{background:none;border:none;font-family:var(--font);font-size:12.5px;font-weight:800;color:var(--red);cursor:pointer;padding:0}
.ss-row{display:flex;align-items:center;gap:12px;padding:13px 0;width:100%;text-align:left;background:none;border:none;font-family:var(--font);cursor:pointer}
.ss-row + .ss-row{border-top:1px solid var(--line)}
.ss-row .bx{width:22px;height:22px;flex:0 0 auto;border-radius:7px;border:1.5px solid var(--line);background:#fff;position:relative;transition:.12s}
.ss-row.on .bx{background:var(--red);border-color:var(--red)}
.ss-row.on .bx:after{content:"";position:absolute;left:6px;top:3px;width:6px;height:11px;border-right:2.5px solid #fff;border-bottom:2.5px solid #fff;transform:rotate(40deg)}
.ss-row .nm{flex:1;min-width:0}
.ss-row .nm b{display:block;font-size:14px;font-weight:800;color:var(--ink)}
.ss-row .nm span{font-size:11.5px;color:var(--gray);font-variant-numeric:tabular-nums}
.ss-row[disabled]{opacity:.5;cursor:default}
.wt-seg .wt-tab.sm{font-size:13px;padding:11px 4px}
/* Reading picker: a topic, then the notes published under it. */
.rd-tp{font-size:11.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:var(--gray);margin:18px 0 8px}
.rd-note{display:flex;align-items:center;gap:12px;padding:14px;width:100%;text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-sm);margin-bottom:10px;font-family:var(--font);cursor:pointer}
.rd-note .nm{flex:1;min-width:0}
.rd-note .nm b{display:block;font-size:14.5px;font-weight:800;color:var(--ink)}
.rd-note .nm span{font-size:11.5px;color:var(--gray)}
.rd-note .mins{flex:0 0 auto;font-size:11px;font-weight:800;color:var(--slate);background:var(--bg);border-radius:999px;padding:5px 10px}

/* A tile the academy has not opened yet: legible, clearly inert, and it keeps
   its place in the list so the student can see what is on the way. */
.tile.soon{ opacity:.72; }
.tile.soon .ti{ filter:grayscale(.55); }
.soon-tag{
  display:inline-block; margin-left:6px; padding:2px 7px; border-radius:999px;
  background:#EEF1F5; color:#5B6472; font-size:10px; font-weight:800;
  letter-spacing:.02em; text-transform:uppercase; vertical-align:middle;
}

/* Results & Review — one card per type of test sat, then the papers themselves. */
.rs-sec{ display:flex; align-items:center; gap:11px; width:100%; text-align:left;
  background:#fff; border:1px solid #EBEEF2; border-radius:14px; padding:11px 13px;
  margin-bottom:9px; cursor:pointer; }
.rs-sec:active{ background:#FAFBFC; }
.rs-pct{ flex:none; min-width:56px; padding:9px 4px; border-radius:12px; text-align:center;
  font-size:15px; font-weight:800; letter-spacing:-.01em; }
.rs-pct.sm{ min-width:48px; padding:7px 4px; font-size:13px; }
.rs-body{ flex:1; min-width:0; }
.rs-body h4{ margin:0; font-size:14px; font-weight:700; color:#151A21; }
.rs-body p{ margin:2px 0 0; font-size:11.5px; color:#6B7480; }
.rs-w{ flex:none; font-size:10px; font-weight:800; color:#8A93A0; text-transform:uppercase;
  letter-spacing:.03em; }

/* ---- the objective sitting and the sessions held back for the pilot ---- */
.wt-none.soon{ display:block; width:100%; text-align:left; background:none; border:0;
  font:inherit; font-size:12.5px; color:#6B7480; font-weight:600; padding:14px 0 2px;
  line-height:1.5; cursor:pointer; }
.wt-row .nm span.papers{ display:block; margin-top:2px; font-size:11px; color:#8A93A0;
  font-weight:700; }
.timer.none{ font-size:12px; font-weight:800; letter-spacing:.02em; opacity:.85; }

/* ---- the dashboard's own panels (drawn from the account's real record) ---- */
.dash-card{ padding:4px 16px; }
.dash-card .wt-none{ padding:12px 0; }
@media (min-width:720px){  }

/* ============ MATHEMATICS ============
   The Hub sets its own formulas. There is no MathJax and no KaTeX because the
   page loads nothing from another origin and has to work in a hall with no
   internet, so a fraction is a two-row inline-block, a root is a glyph beside an
   overlined body, and a limit is a stacked column. Every rule below is either
   size, spacing or stacking — nothing here measures text, which is what makes it
   safe on a 360px phone as well as on a laptop. */
.mth{ display:inline-block; font-family:"Cambria Math",Cambria,"Latin Modern Math",
  "STIX Two Math","Times New Roman",Times,serif; font-size:1.06em; line-height:1.28;
  white-space:nowrap; vertical-align:-.08em; }
.mth i{ font-style:italic; }
/* A formula on its own line. Long ones — the quadratic formula on a small phone —
   scroll sideways rather than pushing the whole question off the screen. */
.mth-d{ display:block; margin:10px 0; text-align:center; font-size:1.16em;
  max-width:100%; overflow-x:auto; overflow-y:hidden; padding-bottom:2px; }

/* ---- fractions ---- */
.m-frac{ display:inline-block; vertical-align:-.52em; text-align:center;
  margin:0 .16em; }
.m-num{ display:block; padding:0 .22em .06em; border-bottom:1.1px solid currentColor; }
.m-den{ display:block; padding:.08em .22em 0; }
.m-frac.m-nobar>.m-num{ border-bottom:0; padding-bottom:.02em; }
.m-frac.m-nobar>.m-den{ padding-top:.02em; }

/* ---- roots ---- */
.m-sqrt{ display:inline-block; white-space:nowrap; margin:0 .06em; }
.m-idx{ display:inline-block; font-size:.62em; vertical-align:.66em; margin-right:-.34em; }
.m-rad{ display:inline-block; transform:scaleY(1.18); transform-origin:center;
  padding-right:.02em; }
.m-rbody{ display:inline-block; border-top:1.1px solid currentColor;
  padding:.1em .12em 0 .16em; }

/* ---- powers and indices ---- */
.m-sup,.m-sub{ display:inline-block; font-size:.7em; line-height:1; }
.m-sup{ vertical-align:.62em; }
.m-sub{ vertical-align:-.28em; }
.m-ss{ display:inline-block; font-size:.7em; line-height:1.06; text-align:left;
  vertical-align:-.1em; }
.m-ss>.m-u,.m-ss>.m-l{ display:block; }

/* ---- spacing, which is a property of what a symbol is ---- */
.m-bin{ margin:0 .22em; }
.m-rel{ margin:0 .28em; }
.m-sgn{ margin-right:.02em; }
.m-pun{ margin-right:.18em; }
.m-sp{ display:inline-block; width:.22em; }
.m-sp.m-wide{ width:.9em; }
.m-sp.m-wider{ width:1.8em; }
.m-fn{ font-style:normal; margin:0 .16em 0 .06em; }
.m-txt{ font-family:var(--font); font-style:normal; font-size:.93em; margin:0 .1em; }
.m-bf{ font-weight:700; }
.m-it{ font-style:italic; }
.m-ph{ visibility:hidden; }

/* ---- bars, hats and arrows over a symbol ---- */
.m-ov{ display:inline-block; border-top:1.1px solid currentColor; padding-top:.08em; }
.m-un{ display:inline-block; border-bottom:1.1px solid currentColor; padding-bottom:.06em; }
.m-acc{ display:inline-block; position:relative; }
.m-accm{ position:absolute; left:0; right:0; top:-.62em; font-size:.82em;
  text-align:center; line-height:1; }

/* ---- sums, integrals and limits ---- */
.m-bigop{ font-size:1.34em; vertical-align:-.14em; margin:0 .08em; }
.m-big{ display:inline-block; text-align:center; vertical-align:-.34em; margin:0 .1em; }
.m-lim{ display:block; font-size:.66em; line-height:1.1; }

/* ---- brackets that grow, matrices and determinants ---- */
.m-fence{ display:inline-block; }
.m-fence.m-tall{ transform-origin:center; }
.m-mat,.m-grid{ display:inline-table; vertical-align:middle; margin:0 .1em; }
.m-row{ display:table-row; }
.m-cell{ display:table-cell; padding:.08em .4em; text-align:center; }

/* ---- what a formula the Hub cannot set looks like ---- */
.m-raw{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.86em; background:#FDECC8; color:#8A5600; border-radius:5px;
  padding:0 .22em; white-space:pre-wrap; }

/* The console's live preview of a formula as the author types it, and the plain
   warnings under it. The point is that she never has to save to find out. */
.mprev{ background:#fff; border:1px solid var(--line); border-radius:var(--r-sm);
  padding:11px 12px; font-size:13.5px; color:var(--ink); line-height:1.55;
  overflow-x:auto; }
.mprev.empty{ color:var(--mute); font-style:italic; }
.mprev+.mprev{ margin-top:7px; }
.mprev b{ display:inline-block; font-size:10px; font-weight:800; color:var(--mute);
  text-transform:uppercase; letter-spacing:.05em; margin-right:7px; }
.mprev-l{ display:block; font-size:10px; font-weight:800; color:var(--mute);
  text-transform:uppercase; letter-spacing:.05em; margin:12px 0 5px; }
.mwarn{ margin-top:8px; padding:9px 11px; background:var(--gold-soft);
  border-radius:var(--r-sm); font-size:11.5px; color:#7A4E00; line-height:1.5; }
.mwarn b{ display:block; font-weight:800; margin-bottom:3px; }
.mwarn ul{ margin:0; padding-left:15px; }
.mwarn li+li{ margin-top:3px; }
.mhelp{ margin-top:9px; font-size:11.5px; color:var(--gray); line-height:1.75; }
.mhelp code{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px; background:var(--card); border-radius:4px; padding:1px 4px;
  color:var(--slate); }
.mhelp span{ display:inline-block; margin-right:10px; white-space:nowrap; }


/* G.O.C resource management */
#admResourceList{
  margin-top:8px;
}

.goc-resource-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #F1F2F4;
}

.goc-resource-item:last-child{
  border-bottom:none;
}

.goc-resource-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:10px;
  background:#F3F4F6;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:800;
  color:#475467;
}

.goc-resource-main{
  flex:1;
  min-width:0;
}

.goc-resource-title{
  display:block;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  color:#141821;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.goc-resource-meta{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:5px;
}

.goc-resource-meta span{
  font-size:10.5px;
  color:#667085;
  background:#F8F9FA;
  border:1px solid #EAECF0;
  border-radius:999px;
  padding:3px 7px;
}

.goc-resource-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  flex:0 0 auto;
}

.goc-resource-status{
  font-size:10px;
  font-weight:800;
  border-radius:999px;
  padding:4px 8px;
}

.goc-resource-status.draft{
  color:#B54708;
  background:#FFFAEB;
}

.goc-resource-status.published{
  color:#027A48;
  background:#ECFDF3;
}

.goc-resource-actions .ad-btn{
  min-width:82px;
  padding:7px 10px;
  font-size:11.5px;
}

@media (max-width:520px){
  .goc-resource-item{
    align-items:flex-start;
  }

  .goc-resource-icon{
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .goc-resource-title{
    white-space:normal;
  }

  .goc-resource-actions{
    align-items:flex-end;
  }
}

/* Phase 3 responsive QA: the footer's three link columns (Explore / Get
   started / Legal) sit in a fixed 3-column grid with no override anywhere
   in the file. At 320-360px width that leaves roughly 80px per column,
   which wraps labels like "Updates & News" and "UTME Bootcamp" onto three
   or four lines each — readable, but cramped and visually broken compared
   to every other section on the page, which already reflows to one column
   well above this width. Stacking to one column below 480px (the same
   breakpoint already used elsewhere in this file for phone-width layout
   changes) matches how the rest of the landing page already behaves. */
@media (max-width:480px){
  .lp-qcols{grid-template-columns:1fr;max-width:280px;gap:22px;text-align:left}
}


/* =====================================================================
   HOMEPAGE — BESPOKE ARCHITECTURE (PASS 1 of 2)
   ---------------------------------------------------------------------
   Restyles the top of the public landing page — nav, hero, the "delivered
   across" strip, the stat row, the three-pillar ecosystem and the subject
   mosaic — into an asymmetric, hand-built composition instead of a
   stacked-card template. Nothing above is deleted or renamed: every id
   and class the reveal-on-scroll script and desktop grid rely on
   (#lpFeatures, #lpSubjects, .lp-grid, .lp-subj, .lp-thread…) is kept
   exactly as it was, so this is pure re-skinning, appended last so it
   wins the cascade. Pass 2 will carry the same language into "How it
   works", the quote, contact and footer.
   ===================================================================== */

#landing{ overflow-x:hidden; }
/* The shared .screen shell is a fixed-height flex column. Without this guard the
   hero (overflow:hidden) and logo strip can shrink below their own content on a
   phone, clipping the headline, supporting copy and calls to action. Keep the
   original spacing/design, but let the homepage scroll through its full content. */
#landing > * { flex-shrink: 0; }

/* ---------- NAV : quietly upgraded, scoped to the homepage only ---------- */
#landing .lp-nav{
  background:linear-gradient(180deg,rgba(250,247,242,.94),rgba(250,247,242,.86));
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(220,38,38,.14);
}
#landing .lp-brand .bm{ transform:rotate(-8deg); border-radius:12px 6px 12px 6px; }

/* ---------- HERO : torn-canvas diagonal + orbiting proof card ---------- */
#landing .lp-hero{
  position:relative; isolation:isolate; overflow:hidden;
  padding:52px 20px 96px;
  background:
    radial-gradient(760px 420px at 88% -12%, rgba(240,165,0,.38), transparent 62%),
    radial-gradient(620px 380px at -12% 108%, rgba(255,255,255,.14), transparent 58%),
    linear-gradient(155deg,var(--red-dk) 0%, var(--red) 48%, var(--red-deep) 100%);
  clip-path:polygon(0 0,100% 0,100% 100%,0 92%);
}
#landing .lp-hero::before{
  content:"SCHOLAR"; position:absolute; z-index:0; pointer-events:none;
  left:-14px; bottom:-38px; line-height:.8;
  font-size:clamp(76px,24vw,168px); font-weight:900; letter-spacing:-.03em;
  color:rgba(255,255,255,.055); transform:rotate(-5deg);
}
#landing .lp-hero::after{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size:36px 36px;
  -webkit-mask-image:radial-gradient(circle at 26% 18%,#000 0%,transparent 68%);
  mask-image:radial-gradient(circle at 26% 18%,#000 0%,transparent 68%);
}
#landing .lp-hero .lp-inner{ position:relative; z-index:2; }
#landing .lp-hero .kick{
  background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.28);
  padding:6px 13px; border-radius:999px; color:#fff; transform:rotate(-1.2deg);
}
#landing .lp-hero h1{ text-shadow:0 10px 30px rgba(0,0,0,.18); }
#landing .lp-hero .hero-art{ position:relative; }
#landing .lp-hero .hero-art::before{
  content:""; position:absolute; inset:-24px; z-index:-1; border-radius:34px;
  border:1.5px dashed rgba(255,255,255,.36); transform:rotate(-4deg);
}
#landing .lp-hero .hero-art .mini{ transform:rotate(-2.2deg); position:relative; }
#landing .lp-hero .hero-art::after{
  content:"✦"; position:absolute; top:-20px; right:2px; z-index:3;
  width:42px; height:42px; border-radius:50%; color:#fff; font-size:17px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--gold),var(--gold-deep));
  box-shadow:0 10px 22px rgba(0,0,0,.32);
}
@media (prefers-reduced-motion:no-preference){
  #landing .lp-hero .hero-art{ animation:gocFloat 5.5s ease-in-out infinite; }
  #landing .lp-hero .hero-art::after{ animation:gocSpin 8s linear infinite; }
}
@keyframes gocFloat{ 0%,100%{ transform:translateY(0) rotate(1.1deg); } 50%{ transform:translateY(-9px) rotate(-1deg); } }
@keyframes gocSpin{ to{ transform:rotate(360deg); } }

/* ---------- "DELIVERED ACROSS" : infinite marquee, not a static row ---------- */
#landing .lp-logos{ position:relative; overflow:hidden; }
#landing .lp-marquee{
  overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
}
#landing .lp-mtrack{ display:flex; gap:10px; width:max-content; }
#landing .lp-mtrack b{
  font-size:12.5px; font-weight:800; color:var(--slate); background:var(--bg);
  border:1px solid var(--line); border-radius:999px; padding:7px 14px; white-space:nowrap;
}
@media (prefers-reduced-motion:no-preference){
  #landing .lp-mtrack{ animation:gocMarquee 18s linear infinite; }
  #landing .lp-mtrack:hover{ animation-play-state:paused; }
}
@keyframes gocMarquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- STATS : dark ribbon of tilted medallions, not a flat table ---------- */
#landing .lp-stats{
  display:flex; flex-wrap:wrap; justify-content:center; gap:14px;
  background:var(--ink); padding:38px 20px 44px; position:relative; z-index:1;
  border-bottom:none;
}
#landing .lp-stat{
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.14);
  border-radius:18px 6px 18px 6px; padding:18px 22px; min-width:118px; flex:1 1 140px;
  max-width:190px; text-align:center; transition:transform .2s ease;
}
#landing .lp-stat:nth-child(1){ transform:rotate(-3deg); }
#landing .lp-stat:nth-child(2){ transform:translateY(-9px); }
#landing .lp-stat:nth-child(3){ transform:rotate(3deg); }
#landing .lp-stat:hover{ transform:translateY(-4px) rotate(0deg); }
#landing .lp-stat b{ color:var(--gold-lt); }
#landing .lp-stat span{ color:#c7cedb; }

/* ---------- ECOSYSTEM (lpFeatures) : a slightly-skewed stacked deck ---------- */
#landing #lpFeatures{ position:relative; }
#landing #lpFeatures::before{
  content:""; position:absolute; left:50%; top:26px; width:1px; height:46px;
  background:repeating-linear-gradient(180deg,var(--red) 0 6px,transparent 6px 12px);
  opacity:.5; z-index:0;
}
#landing #lpFeatures .lp-grid{ display:flex; flex-direction:column; gap:30px; position:relative; }
#landing #lpFeatures .lp-feat{
  margin-bottom:0; border-radius:24px 24px 24px 6px; position:relative; overflow:visible;
}
#landing #lpFeatures .lp-feat:nth-child(1){ transform:rotate(-1.6deg); margin-right:16px; }
#landing #lpFeatures .lp-feat:nth-child(2){ transform:rotate(1.5deg); margin-left:16px; }
#landing #lpFeatures .lp-feat:nth-child(3){ transform:rotate(-1deg); margin-right:8px; }
#landing #lpFeatures .lp-feat:hover{ transform:rotate(0deg) translateY(-3px); }
#landing #lpFeatures .lp-feat::before{
  content:attr(data-n); position:absolute; top:-12px; left:-12px; z-index:2;
  width:30px; height:30px; border-radius:50%; background:var(--ink); color:#fff;
  font-size:12.5px; font-weight:900; display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 14px rgba(0,0,0,.22);
}
#landing #lpFeatures .fi{ border-radius:16px 6px 16px 6px; transform:rotate(-5deg); }
#landing #lpFeatures .lp-thread .lt-dot{ box-shadow:0 0 8px 2px rgba(220,38,38,.55); }

/* ---------- SUBJECTS (lpSubjects) : asymmetric bento mosaic ---------- */
#landing .lp-subj{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
#landing .lp-subj .sj{
  position:relative; overflow:hidden; border-radius:18px 18px 18px 4px; transition:transform .2s ease;
}
#landing .lp-subj .sj::after{
  content:""; position:absolute; right:-20px; top:-20px; width:52px; height:52px;
  border-radius:50%; background:linear-gradient(135deg,var(--red),var(--gold)); opacity:.13;
}
#landing .lp-subj .sj:nth-child(odd){ transform:rotate(-1.1deg); }
#landing .lp-subj .sj:nth-child(even){ transform:rotate(1.1deg); }
#landing .lp-subj .sj:hover{ transform:rotate(0deg) translateY(-3px); }
#landing .lp-subj .sj:nth-child(1){ grid-column:1/3; }
#landing .lp-subj .sj:nth-child(1) .si{ width:50px; height:50px; font-size:24px; }

@media (min-width:900px){
  #landing .lp-hero{ clip-path:polygon(0 0,100% 0,100% 100%,0 96%); }
  #landing #lpFeatures .lp-grid{ flex-direction:row; align-items:stretch; gap:22px; }
  #landing #lpFeatures .lp-feat{ flex:1; }
  #landing #lpFeatures .lp-feat:nth-child(1){ margin-right:0; transform:rotate(-1.4deg) translateY(-6px); }
  #landing #lpFeatures .lp-feat:nth-child(2){ margin-left:0; transform:rotate(1.2deg) translateY(6px); }
  #landing #lpFeatures .lp-feat:nth-child(3){ transform:rotate(-.8deg) translateY(-3px); }
  #landing .lp-subj{ grid-template-columns:repeat(4,1fr); }
  #landing .lp-subj .sj:nth-child(1){ grid-column:span 2; }
  #landing .lp-subj .sj:nth-child(4){ grid-column:span 2; }
  #landing .lp-subj .sj:nth-child(5){ grid-column:span 2; }
}

/* ---- Recent practice history rows (Study hub) ---- */
#pracHist .ph-row{ display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  background:#fff; border:1px solid #EEF0F3; border-radius:14px; padding:12px 14px; margin-bottom:10px;
  cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
#pracHist .ph-row:last-child{ margin-bottom:0; }
#pracHist .ph-row:hover{ transform:translateY(-2px); box-shadow:0 8px 22px rgba(20,24,33,.10); border-color:#E2E6EC; }
#pracHist .ph-dot{ width:12px; height:12px; border-radius:50%; flex:0 0 auto; }
#pracHist .ph-main{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
#pracHist .ph-main b{ font-size:14px; font-weight:800; color:#141821; }
#pracHist .ph-main s{ text-decoration:none; font-size:12px; color:#6B7280; }
#pracHist .ph-score{ font-weight:800; font-size:15px; }
#pracHist .ph-row .arr{ width:18px; height:18px; color:#9AA3AF; flex:0 0 auto; }


/* =====================================================================
   DASHBOARD + AUTH RESKIN (part of PRIORITY 1 — PREMIUM MOTION)
   Homepage "aurora + impossible graphics" language carried onto #home and
   the login/signup screens. Follows the same rules as the block above:
   keyframes animate transform/opacity ONLY (never a property that reflows),
   and every animation declaration lives inside the
   prefers-reduced-motion no-preference guard, so a student who asks for less
   motion gets a fully static — but still fully styled — screen.
   Scoped to #home / .screen.auth; every id and handler the app writes to is
   preserved.
   ===================================================================== */

/* ---- static styling (no motion) ---- */
#home{ position:absolute; inset:0; overflow-x:hidden; overflow-y:auto; }
#home .hstat{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
#home .hstat .v{ font-size:19px; }
#home .wrap .dash-card{ transition:transform .18s ease, box-shadow .18s ease; }
#home .wrap .dash-card:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(17,24,39,.12); }

.screen.auth{ position:absolute; inset:0; overflow:hidden; }   /* absolute + inset:0 keeps the screen the height of the phone, so .auth-scroll has a box to scroll in (relative made it as tall as its content and clipped the rest) */
.screen.auth .auth-scroll{ min-height:0; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.auth-aura{ position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.auth-aura .au{ position:absolute; border-radius:50%; filter:blur(66px); opacity:.42; }
.auth-aura .au.a{ width:360px; height:360px; top:-140px; right:-120px; background:radial-gradient(circle,#FCA5A5,transparent 70%); }
.auth-aura .au.b{ width:320px; height:320px; bottom:-120px; left:-150px; background:radial-gradient(circle,#FDE68A,transparent 70%); }
.auth-aura .au.c{ width:300px; height:300px; top:40%; right:-140px; background:radial-gradient(circle,#A7F3D0,transparent 70%); }
.screen.auth .auth-brandbar, .screen.auth .auth-scroll{ position:relative; z-index:1; }
.screen.auth .auth-brandbar{ background:rgba(255,255,255,.82); backdrop-filter:blur(8px); }
.screen.auth .auth-card{ background:rgba(255,255,255,.9); backdrop-filter:blur(10px);
  border:1px solid rgba(234,228,218,.9); border-radius:24px;
  box-shadow:0 24px 60px rgba(127,29,29,.14), 0 8px 20px rgba(17,24,39,.06); }
.auth-card .field input:focus, .auth-card .auth-select:focus{ box-shadow:0 0 0 4px rgba(220,38,38,.14); border-color:var(--red); }
.screen.auth .btn-red.btn-block{ position:relative; overflow:hidden; box-shadow:0 12px 26px rgba(220,38,38,.32);
  transition:transform .16s cubic-bezier(.2,1.4,.4,1), box-shadow .18s ease; }
.screen.auth .btn-red.btn-block:hover{ transform:translateY(-2px); box-shadow:0 18px 36px rgba(220,38,38,.4); }
.screen.auth .btn-red.btn-block:active{ transform:scale(.97); }
.screen.auth .btn-red.btn-block::after{ content:""; position:absolute; top:0; left:0; width:45%; height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent); transform:translateX(-200%) skewX(-18deg); }
@media (min-width:900px){
  .phone.is-login .auth-side{ position:relative; overflow:hidden; }
  .phone.is-login .auth-side::before{ content:""; position:absolute; width:280px; height:280px; border-radius:50%;
    top:-90px; right:-70px; background:radial-gradient(circle,rgba(240,165,0,.4),transparent 68%); }
  .phone.is-login .auth-side .as-top, .phone.is-login .auth-side h2,
  .phone.is-login .auth-side p, .phone.is-login .auth-side .as-points{ position:relative; z-index:1; }
}

/* ---- keyframes: transform / opacity only ---- */
@keyframes dashAuroraA{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(40px,34px) scale(1.15); } }
@keyframes dashAuroraB{ from{ transform:translate(0,0) scale(1.05); } to{ transform:translate(-46px,-26px) scale(.92); } }
@keyframes heroSweep{ 0%{ transform:translateX(-180%) skewX(-18deg); } 55%,100%{ transform:translateX(320%) skewX(-18deg); } }
@keyframes streakPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.07); } }
@keyframes dealUp{ from{ opacity:0; transform:translateY(16px); } to{ opacity:1; transform:none; } }
@keyframes statPop{ from{ opacity:0; transform:translateY(10px) scale(.9); } to{ opacity:1; transform:none; } }
@keyframes authCardIn{ from{ opacity:0; transform:translateY(20px) scale(.985); } to{ opacity:1; transform:none; } }

/* ---- motion: only when the student has not asked for less ---- */
@media (prefers-reduced-motion: no-preference){
                #home .name{ animation:dealUp .55s .18s both; }
    #home .hstat{ animation:statPop .5s cubic-bezier(.2,1.3,.4,1) both; }
  #home .hstat:nth-child(1){ animation-delay:.24s; }
  #home .hstat:nth-child(2){ animation-delay:.32s; }
  #home .hstat:nth-child(3){ animation-delay:.40s; }
    #home .wrap .sec-head{ animation:dealUp .5s both; }
  #home .wrap .dash-card{ animation:dealUp .55s both; }
  .auth-aura .au.a{ animation:dashAuroraA 16s ease-in-out infinite alternate; }
  .auth-aura .au.b{ animation:dashAuroraB 19s ease-in-out infinite alternate; }
  .auth-aura .au.c{ animation:dashAuroraA 22s ease-in-out infinite alternate; }
  .auth-card{ animation:authCardIn .6s cubic-bezier(.2,.8,.2,1) both; }
  .auth-card h1{ animation:dealUp .5s .08s both; }
  .auth-card .tagline{ animation:dealUp .5s .14s both; }
  .auth-card form .field,
  .auth-card .subj-pick{ animation:dealUp .5s both; }
  .auth-card form .field:nth-of-type(1){ animation-delay:.18s; }
  .auth-card form .field:nth-of-type(2){ animation-delay:.24s; }
  .auth-card form .field:nth-of-type(3){ animation-delay:.30s; }
  .auth-card form .field:nth-of-type(4){ animation-delay:.36s; }
  .screen.auth .btn-red.btn-block{ animation:dealUp .5s .42s both; }
  .screen.auth .btn-red.btn-block::after{ animation:heroSweep 4.5s ease-in-out 1.2s infinite; }
  .phone.is-login .auth-side::before{ animation:dashAuroraA 17s ease-in-out infinite alternate; }
}


/* =====================================================================
   INNER SCREENS RESKIN + ENERGY EXTRAS (part of PRIORITY 1 — PREMIUM MOTION)
   The dashboard / login look carried onto Results, Review, Study set-up,
   Reading, Practice, CBT, Web Test runner, Timetable, Profile, Resources and
   Classes / Videos: aurora wash, chunky press-down buttons and answer options
   (the Duolingo feel), glassy headers, gradient progress bars.
   Same rules as the blocks above: keyframes move transform / opacity ONLY,
   and every animation declaration lives inside the reduced-motion guard, so
   a student who asks for less motion still gets the fully styled screen.
   Decorative pieces that only make sense while moving (confetti, the flame
   embers) are not displayed at all unless motion is allowed.
   Only classes and ids are styled here: no markup on these screens changed.
   ===================================================================== */

/* ---- aurora wash behind the browse / result screens ---- */

#studySet::before,
#reading::before,
#studyRes::before,
#wtResult::before,
#results::before,
#profile::before,
#resources::before,
#studySet::after,
#reading::after,
#studyRes::after,
#wtResult::after,
#results::after,
#profile::after,
#resources::after { content:""; position:absolute; border-radius:50%; pointer-events:none; z-index:0; }

#studySet::before,
#reading::before,
#studyRes::before,
#wtResult::before,
#results::before,
#profile::before,
#resources::before { width:340px; height:340px; top:-130px; right:-120px; background:radial-gradient(circle,rgba(252,165,165,.55),transparent 70%); }

#studySet::after,
#reading::after,
#studyRes::after,
#wtResult::after,
#results::after,
#profile::after,
#resources::after { width:300px; height:300px; top:380px; left:-150px; background:radial-gradient(circle,rgba(253,230,138,.5),transparent 70%); }

#studySet > .wrap,
#reading > .wrap,
#studyRes > .wrap,
#wtResult > .wrap,
#results > .wrap,
#profile > .wrap,
#resources > .wrap,
#studySet > .prof-hero,
#reading > .prof-hero,
#studyRes > .prof-hero,
#wtResult > .prof-hero,
#results > .prof-hero,
#profile > .prof-hero,
#resources > .prof-hero { position:relative; z-index:1; }

/* The z-index:1 above lifts .wrap's content over the decorative ::before/
   ::after blobs on these screens — but as a side effect it also painted
   over the sticky .bottom-bar sibling (z-index:auto), hiding most of its
   buttons behind the page content wherever the two happened to overlap on
   screen. Stack the bar one level above .wrap so it is always on top. */
#studySet .bottom-bar,
#reading .bottom-bar,
#studyRes .bottom-bar,
#wtResult .bottom-bar,
#results .bottom-bar,
#profile .bottom-bar,
#resources .bottom-bar { z-index:2; }

/* ---- frosted headers with the tricolour hairline ---- */

#studySet .hdr,
#reading .hdr,
#studyRes .hdr,
#wtResult .hdr,
#results .hdr,
#profile .hdr,
#resources .hdr,
#practice .hdr,
#cbt .hdr { backdrop-filter:blur(10px); }

#studySet .hdr.solid,
#reading .hdr.solid,
#studyRes .hdr.solid,
#wtResult .hdr.solid,
#results .hdr.solid,
#profile .hdr.solid,
#resources .hdr.solid,
#practice .hdr.solid,
#cbt .hdr.solid { background:rgba(255,255,255,.9); border-bottom-color:transparent; box-shadow:0 8px 24px rgba(127,29,29,.07); }

#studySet .hdr.solid::after,
#reading .hdr.solid::after,
#studyRes .hdr.solid::after,
#wtResult .hdr.solid::after,
#results .hdr.solid::after,
#profile .hdr.solid::after,
#resources .hdr.solid::after,
#practice .hdr.solid::after,
#cbt .hdr.solid::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:linear-gradient(90deg,#DC2626,#F0A500,#22A559); }

#studySet .back,
#reading .back,
#studyRes .back,
#wtResult .back,
#results .back,
#profile .back,
#resources .back,
#practice .back,
#cbt .back { background:#fff; border:1.5px solid var(--line); box-shadow:0 3px 0 var(--line); transition:transform .12s ease, box-shadow .12s ease; }

#studySet .back:active,
#reading .back:active,
#studyRes .back:active,
#wtResult .back:active,
#results .back:active,
#profile .back:active,
#resources .back:active,
#practice .back:active,
#cbt .back:active { transform:translateY(2px); box-shadow:0 1px 0 var(--line); }
#cbt .back { border-color:rgba(255,255,255,.22); box-shadow:none; }

/* ---- section titles, cards, list rows ---- */

#studySet .sec-head .section-t,
#reading .sec-head .section-t,
#studyRes .sec-head .section-t,
#wtResult .sec-head .section-t,
#results .sec-head .section-t,
#profile .sec-head .section-t,
#resources .sec-head .section-t { display:flex; align-items:center; gap:8px; }

#studySet .sec-head .section-t::before,
#reading .sec-head .section-t::before,
#studyRes .sec-head .section-t::before,
#wtResult .sec-head .section-t::before,
#results .sec-head .section-t::before,
#profile .sec-head .section-t::before,
#resources .sec-head .section-t::before { content:""; width:5px; height:16px; border-radius:3px; flex:0 0 auto; background:linear-gradient(180deg,#DC2626,#F0A500); }

#studySet .card,
#reading .card,
#studyRes .card,
#wtResult .card,
#results .card,
#profile .card,
#resources .card { box-shadow:0 10px 26px rgba(17,24,39,.07); border-color:rgba(234,228,218,.9); }

#resources .rcard { box-shadow:0 8px 22px rgba(17,24,39,.07); transition:transform .16s ease, box-shadow .18s ease, border-color .18s ease; }
@media (hover:hover){
    #resources .rcard:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(17,24,39,.12); }
      .screen .fchip:not(.on):hover, .screen .wt-tab:not(.on):hover{ border-color:#FCA5A5; }
}
#resources .rcard-dl{ box-shadow:0 3px 0 var(--line); }
#resources .rcard-dl:active{ transform:translateY(2px); box-shadow:0 1px 0 var(--line); }

/* ---- chunky press-down buttons ---- */

#studySet .btn-red:not(:disabled),
#reading .btn-red:not(:disabled),
#studyRes .btn-red:not(:disabled),
#wtResult .btn-red:not(:disabled),
#results .btn-red:not(:disabled),
#profile .btn-red:not(:disabled),
#resources .btn-red:not(:disabled),
#practice .btn-red:not(:disabled),
#cbt .btn-red:not(:disabled) { position:relative; overflow:hidden; background:linear-gradient(180deg,#EF4444,#DC2626); box-shadow:0 4px 0 #991B1B, 0 12px 22px rgba(220,38,38,.24); }

#studySet .btn-red:not(:disabled):active,
#reading .btn-red:not(:disabled):active,
#studyRes .btn-red:not(:disabled):active,
#wtResult .btn-red:not(:disabled):active,
#results .btn-red:not(:disabled):active,
#profile .btn-red:not(:disabled):active,
#resources .btn-red:not(:disabled):active,
#practice .btn-red:not(:disabled):active,
#cbt .btn-red:not(:disabled):active { transform:translateY(3px); filter:none; box-shadow:0 1px 0 #991B1B, 0 5px 10px rgba(220,38,38,.2); }

#studySet .btn-red:not(:disabled)::after,
#reading .btn-red:not(:disabled)::after,
#studyRes .btn-red:not(:disabled)::after,
#wtResult .btn-red:not(:disabled)::after,
#results .btn-red:not(:disabled)::after,
#profile .btn-red:not(:disabled)::after,
#resources .btn-red:not(:disabled)::after,
#practice .btn-red:not(:disabled)::after,
#cbt .btn-red:not(:disabled)::after { content:""; position:absolute; top:0; left:0; width:45%; height:100%; pointer-events:none; background:linear-gradient(100deg,transparent,rgba(255,255,255,.36),transparent); transform:translateX(-200%) skewX(-18deg); }

#studySet .btn:disabled,
#reading .btn:disabled,
#studyRes .btn:disabled,
#wtResult .btn:disabled,
#results .btn:disabled,
#profile .btn:disabled,
#resources .btn:disabled,
#practice .btn:disabled,
#cbt .btn:disabled { cursor:default; background:#E5E7EB; color:#9CA3AF; box-shadow:0 4px 0 #D1D5DB; }

#studySet .btn-outline,
#reading .btn-outline,
#studyRes .btn-outline,
#wtResult .btn-outline,
#results .btn-outline,
#profile .btn-outline,
#resources .btn-outline,
#practice .btn-outline,
#cbt .btn-outline { border-width:2px; box-shadow:0 3px 0 var(--line); }

#studySet .btn-ghost,
#reading .btn-ghost,
#studyRes .btn-ghost,
#wtResult .btn-ghost,
#results .btn-ghost,
#profile .btn-ghost,
#resources .btn-ghost,
#practice .btn-ghost,
#cbt .btn-ghost { box-shadow:0 3px 0 #DDD6CA; }

#studySet .btn-outline:active,
#reading .btn-outline:active,
#studyRes .btn-outline:active,
#wtResult .btn-outline:active,
#results .btn-outline:active,
#profile .btn-outline:active,
#resources .btn-outline:active,
#practice .btn-outline:active,
#cbt .btn-outline:active { transform:translateY(2px); box-shadow:0 1px 0 var(--line); }

#studySet .btn-ghost:active,
#reading .btn-ghost:active,
#studyRes .btn-ghost:active,
#wtResult .btn-ghost:active,
#results .btn-ghost:active,
#profile .btn-ghost:active,
#resources .btn-ghost:active,
#practice .btn-ghost:active,
#cbt .btn-ghost:active { transform:translateY(2px); box-shadow:0 1px 0 #DDD6CA; }

#studySet .bottom-bar,
#reading .bottom-bar,
#studyRes .bottom-bar,
#wtResult .bottom-bar,
#results .bottom-bar,
#profile .bottom-bar,
#resources .bottom-bar,
#practice .bottom-bar,
#cbt .bottom-bar { background:rgba(255,255,255,.93); backdrop-filter:blur(10px); border-top-color:transparent; box-shadow:0 -10px 26px rgba(17,24,39,.06); }

/* Ensure the scrollable content area in screens with a sticky bottom-bar always
   has enough bottom padding so the last item (e.g. the disclaimer note on the
   practice set-up screen) scrolls fully above the bar and is never obscured. */

#studySet > .wrap,
#reading > .wrap,
#studyRes > .wrap,
#wtResult > .wrap,
#results > .wrap,
#profile > .wrap,
#resources > .wrap { padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 96px); }
/* Extra clearance for the practice set-up screen: the Questions input + hint sit
   close to the bottom-bar, so the spacer alone is not enough on short screens. */
#studySet #suCountInputWrap{ margin-bottom:12px; }
#studySet #suCountChipsWrap{ margin-bottom:12px; }

/* ---- chips, tabs, week days ---- */

#studySet .fchip,
#reading .fchip,
#studyRes .fchip,
#wtResult .fchip,
#results .fchip,
#profile .fchip,
#resources .fchip { border-width:2px; box-shadow:0 3px 0 var(--line); transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease; }

#studySet .fchip.on,
#reading .fchip.on,
#studyRes .fchip.on,
#wtResult .fchip.on,
#results .fchip.on,
#profile .fchip.on,
#resources .fchip.on { box-shadow:0 3px 0 #991B1B; }

#studySet .wt-tab,
#reading .wt-tab,
#studyRes .wt-tab,
#wtResult .wt-tab,
#results .wt-tab,
#profile .wt-tab,
#resources .wt-tab,
#practice .wt-tab,
#cbt .wt-tab { border-width:2px; box-shadow:0 3px 0 var(--line); }

#studySet .wt-tab.on,
#reading .wt-tab.on,
#studyRes .wt-tab.on,
#wtResult .wt-tab.on,
#results .wt-tab.on,
#profile .wt-tab.on,
#resources .wt-tab.on,
#practice .wt-tab.on,
#cbt .wt-tab.on { box-shadow:0 3px 0 #991B1B; }

#studySet .fchip:active,
#reading .fchip:active,
#studyRes .fchip:active,
#wtResult .fchip:active,
#results .fchip:active,
#profile .fchip:active,
#resources .fchip:active,
#studySet .wt-tab:active,
#reading .wt-tab:active,
#studyRes .wt-tab:active,
#wtResult .wt-tab:active,
#results .wt-tab:active,
#profile .wt-tab:active,
#resources .wt-tab:active,
#practice .wt-tab:active,
#cbt .wt-tab:active { transform:translateY(2px); box-shadow:0 1px 0 var(--line); }

/* ---- questions: Duolingo-style answer buttons and chunky progress ---- */
#practice,
#cbt { background-image:linear-gradient(180deg,#FFF6F3 0,transparent 240px); }

#studySet .q-num,
#reading .q-num,
#studyRes .q-num,
#wtResult .q-num,
#results .q-num,
#profile .q-num,
#resources .q-num,
#practice .q-num,
#cbt .q-num { display:inline-block; background:#FEECEC; color:var(--red-deep); padding:5px 11px; border-radius:999px; }

#studySet .q-text,
#reading .q-text,
#studyRes .q-text,
#wtResult .q-text,
#results .q-text,
#profile .q-text,
#resources .q-text,
#practice .q-text,
#cbt .q-text { font-size:19px; }

#studySet .opt,
#reading .opt,
#studyRes .opt,
#wtResult .opt,
#results .opt,
#profile .opt,
#resources .opt,
#practice .opt,
#cbt .opt,
#examtake .opt { border-width:2px; border-radius:16px; box-shadow:0 4px 0 #E4DDD2; transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease; }

#studySet .opt.sel,
#reading .opt.sel,
#studyRes .opt.sel,
#wtResult .opt.sel,
#results .opt.sel,
#profile .opt.sel,
#resources .opt.sel,
#practice .opt.sel,
#cbt .opt.sel,
#examtake .opt.sel { box-shadow:0 4px 0 #F0A3A3; }

#studySet .opt.correct,
#reading .opt.correct,
#studyRes .opt.correct,
#wtResult .opt.correct,
#results .opt.correct,
#profile .opt.correct,
#resources .opt.correct,
#practice .opt.correct,
#cbt .opt.correct { box-shadow:0 4px 0 #86C9A0; }

#studySet .opt.wrong,
#reading .opt.wrong,
#studyRes .opt.wrong,
#wtResult .opt.wrong,
#results .opt.wrong,
#profile .opt.wrong,
#resources .opt.wrong,
#practice .opt.wrong,
#cbt .opt.wrong { box-shadow:0 4px 0 #EFA0A0; }

#studySet .opt:not(:disabled):active,
#reading .opt:not(:disabled):active,
#studyRes .opt:not(:disabled):active,
#wtResult .opt:not(:disabled):active,
#results .opt:not(:disabled):active,
#profile .opt:not(:disabled):active,
#resources .opt:not(:disabled):active,
#practice .opt:not(:disabled):active,
#cbt .opt:not(:disabled):active { transform:translateY(3px); box-shadow:0 1px 0 #E4DDD2; }

#studySet .opt .key,
#reading .opt .key,
#studyRes .opt .key,
#wtResult .opt .key,
#results .opt .key,
#profile .opt .key,
#resources .opt .key,
#practice .opt .key,
#cbt .opt .key { box-shadow:0 2px 0 rgba(17,24,39,.1); }

#studySet .feedback,
#reading .feedback,
#studyRes .feedback,
#wtResult .feedback,
#results .feedback,
#profile .feedback,
#resources .feedback,
#practice .feedback,
#cbt .feedback { border:2px solid transparent; border-radius:18px; }

#studySet .feedback.ok,
#reading .feedback.ok,
#studyRes .feedback.ok,
#wtResult .feedback.ok,
#results .feedback.ok,
#profile .feedback.ok,
#resources .feedback.ok,
#practice .feedback.ok,
#cbt .feedback.ok { border-color:#BFE3CD; }

#studySet .feedback.no,
#reading .feedback.no,
#studyRes .feedback.no,
#wtResult .feedback.no,
#results .feedback.no,
#profile .feedback.no,
#resources .feedback.no,
#practice .feedback.no,
#cbt .feedback.no { border-color:#F6C4C4; }
#practice .q-prog span { height:9px; transition:background .25s ease; }
#practice .q-prog span.on { background:linear-gradient(180deg,#34D399,#15803D); box-shadow:0 1px 0 #0F5D2C; }
#practice .q-prog span.cur { background:linear-gradient(180deg,#F87171,#DC2626); box-shadow:0 0 0 3px rgba(220,38,38,.16); }
#cbt .qn { border-width:2px; border-radius:12px; box-shadow:0 3px 0 var(--line); }
#cbt .qn.ans { box-shadow:0 3px 0 #0F5D2C; }
#cbt .qn.cur { box-shadow:0 3px 0 #F0A3A3; }
#cbt .qn.cur.ans { box-shadow:0 3px 0 #0F5D2C; }

/* ---- exam bar (CBT / Web Test runner) ----
   One flat brand-red bar — no gradient, no decorative blob — holding the
   candidate (JAMB/Examination only), the current subject/question, and the
   clock, per the approved redesign. */
#cbt .cbt-top { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-shrink:0; }
#cbt .cbt-top-left { display:flex; align-items:center; gap:12px; min-width:0; }
#cbt .cbt-top-who { min-width:0; }
#cbt .cbt-top-name { font-weight:800; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#cbt .cbt-top-id { font-size:11.5px; color:#FBD5D5; white-space:nowrap; }
#cbt .cbt-top-mid { flex:1 1 auto; min-width:0; text-align:center; }
#cbt .cbt-top-title { font-weight:800; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#cbt .cbt-top-meta { font-size:11.5px; color:#FBD5D5; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#cbt .cbt-top .timer { background:#7F1D1D; padding:7px 14px; border-radius:8px; font-weight:900; flex:0 0 auto; }
#cbt .cbt-top .timer.warn { background:#fff; color:var(--red-deep); }
#cbt .cbt-top-right { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
/* Calculator lives in the bottom bar on desktop (room for a labelled
   button); on narrow screens that bar is already full (Prev/Q-jump/Next/
   Submit), so it moves to a compact icon in the top bar instead. */
.cbt-top-calc { width:34px; height:34px; border-radius:8px; background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.3); color:#fff; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.cbt-top-calc .icon { width:17px; height:17px; }
@media (min-width:561px){ .cbt-top-calc{ display:none !important; } }
@media (max-width:560px){ #cbtCalcBtn, #pracCalcBtn{ display:none !important; } }

/* ---- results ---- */
#results .result-ring:not(:empty),
#wtResult .result-ring:not(:empty){ filter:drop-shadow(0 12px 22px rgba(220,38,38,.22)); }
#results .result-ring:not(:empty)::before,
#wtResult .result-ring:not(:empty)::before{ content:""; position:absolute; inset:-14px; border-radius:50%; z-index:-1; pointer-events:none; background:radial-gradient(circle,rgba(240,165,0,.28),transparent 68%); }

#studySet .chip.gold,
#reading .chip.gold,
#studyRes .chip.gold,
#wtResult .chip.gold,
#results .chip.gold,
#profile .chip.gold,
#resources .chip.gold { position:relative; overflow:hidden; font-weight:850; background:linear-gradient(135deg,#FDECC8,#FEF08A); box-shadow:0 4px 0 #EFD9A6; }

#studySet .chip.gold::after,
#reading .chip.gold::after,
#studyRes .chip.gold::after,
#wtResult .chip.gold::after,
#results .chip.gold::after,
#profile .chip.gold::after,
#resources .chip.gold::after { content:""; position:absolute; top:0; left:0; width:45%; height:100%; pointer-events:none; background:linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent); transform:translateX(-220%) skewX(-18deg); }

/* ---- profile ---- */
#profile .prof-hero{ position:relative; overflow:hidden; background:linear-gradient(150deg,#DC2626 0%,#B91C1C 46%,#7F1D1D 100%); box-shadow:0 22px 46px rgba(127,29,29,.3), inset 0 1px 0 rgba(255,255,255,.14); flex-shrink:0; }
#profile .prof-hero::before{ content:""; position:absolute; width:230px; height:230px; border-radius:50%; top:-80px; right:-46px; pointer-events:none; background:radial-gradient(circle,rgba(240,165,0,.5),transparent 68%); }
#profile .prof-hero::after{ content:""; position:absolute; top:0; left:0; width:45%; height:100%; pointer-events:none; background:linear-gradient(100deg,transparent,rgba(255,255,255,.16),transparent); transform:translateX(-180%) skewX(-18deg); }
#profile .prof-hero > *{ position:relative; z-index:1; }
#profile .hstat{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.18); box-shadow:inset 0 1px 0 rgba(255,255,255,.12); }
#profile .badge .b{ border-radius:18px; box-shadow:0 5px 0 rgba(0,0,0,.16); }
#profile .badge.lock .b{ box-shadow:0 4px 0 #E1DBD0; }

/* ---- streak flame: glow and embers around the dashboard chip (drawn only when motion is allowed) ---- */

/* ---- level-up confetti (only displayed when motion is allowed) ---- */
.celebrate-confetti{ position:absolute; inset:0; overflow:hidden; pointer-events:none; display:none; z-index:1; }
.celebrate-confetti span{ position:absolute; top:-18px; left:var(--x,50%); width:9px; height:14px; border-radius:2px; background:var(--c,#DC2626); }
.celebrate-confetti span:nth-child(1){ --x:62%; --c:#F0A500; --dx:-8px; --rot:407deg; --d:0.4s; --t:3.1s; }
.celebrate-confetti span:nth-child(2){ --x:19%; --c:#22A559; --dx:29px; --rot:454deg; --d:0.8s; --t:3.0s; }
.celebrate-confetti span:nth-child(3){ --x:72%; --c:#0E7490; --dx:-24px; --rot:501deg; --d:0.3s; --t:2.9s; }
.celebrate-confetti span:nth-child(4){ --x:29%; --c:#7C3AED; --dx:13px; --rot:548deg; --d:0.7s; --t:2.8s; }
.celebrate-confetti span:nth-child(5){ --x:82%; --c:#F97316; --dx:-40px; --rot:595deg; --d:0.2s; --t:2.7s; }
.celebrate-confetti span:nth-child(6){ --x:39%; --c:#DC2626; --dx:-3px; --rot:642deg; --d:0.6s; --t:2.6s; }
.celebrate-confetti span:nth-child(7){ --x:92%; --c:#F0A500; --dx:34px; --rot:689deg; --d:0.1s; --t:2.5s; }
.celebrate-confetti span:nth-child(8){ --x:49%; --c:#22A559; --dx:-19px; --rot:736deg; --d:0.5s; --t:2.4s; }
.celebrate-confetti span:nth-child(9){ --x:6%; --c:#0E7490; --dx:18px; --rot:783deg; --d:0.0s; --t:3.1s; }
.celebrate-confetti span:nth-child(10){ --x:59%; --c:#7C3AED; --dx:-35px; --rot:830deg; --d:0.4s; --t:3.0s; }
.celebrate-confetti span:nth-child(11){ --x:16%; --c:#F97316; --dx:2px; --rot:877deg; --d:0.8s; --t:2.9s; }
.celebrate-confetti span:nth-child(12){ --x:69%; --c:#DC2626; --dx:39px; --rot:384deg; --d:0.3s; --t:2.8s; }
.celebrate-confetti span:nth-child(13){ --x:26%; --c:#F0A500; --dx:-14px; --rot:431deg; --d:0.7s; --t:2.7s; }
.celebrate-confetti span:nth-child(14){ --x:79%; --c:#22A559; --dx:23px; --rot:478deg; --d:0.2s; --t:2.6s; }
.celebrate-confetti span:nth-child(15){ --x:36%; --c:#0E7490; --dx:-30px; --rot:525deg; --d:0.6s; --t:2.5s; }
.celebrate-confetti span:nth-child(16){ --x:89%; --c:#7C3AED; --dx:7px; --rot:572deg; --d:0.1s; --t:2.4s; }
.celebrate-confetti span:nth-child(17){ --x:46%; --c:#F97316; --dx:44px; --rot:619deg; --d:0.5s; --t:3.1s; }
.celebrate-confetti span:nth-child(18){ --x:3%; --c:#DC2626; --dx:-9px; --rot:666deg; --d:0.0s; --t:3.0s; }

/* ---- keyframes: transform / opacity only ---- */
@keyframes optPop{ from{ transform:scale(.94); } to{ transform:none; } }
@keyframes okBounce{ 0%{ transform:scale(1); } 40%{ transform:scale(1.04); } 100%{ transform:scale(1); } }
@keyframes noShake{ 0%,100%{ transform:translateX(0); } 20%{ transform:translateX(-7px); } 40%{ transform:translateX(6px); } 60%{ transform:translateX(-4px); } 80%{ transform:translateX(3px); } }
@keyframes ringPop{ from{ opacity:0; transform:scale(.7); } to{ opacity:1; transform:none; } }
@keyframes chipPop{ 0%{ transform:scale(.9); } 60%{ transform:scale(1.06); } 100%{ transform:scale(1); } }
@keyframes avatarBob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }
@keyframes iconBob{ 0%,100%{ transform:scale(1) rotate(0deg); } 50%{ transform:scale(1.08) rotate(-4deg); } }
@keyframes confettiFall{ 0%{ opacity:1; transform:translate3d(0,0,0) rotate(0deg); } 85%{ opacity:1; } 100%{ opacity:0; transform:translate3d(var(--dx,0px),115vh,0) rotate(var(--rot,540deg)); } }

/* ---- motion: only when the student has not asked for less ---- */
@media (prefers-reduced-motion: no-preference){
  #studySet::before, #reading::before, #studyRes::before, #wtResult::before, #results::before, #profile::before, #resources::before { animation:dashAuroraA 17s ease-in-out infinite alternate; }
  #studySet::after, #reading::after, #studyRes::after, #wtResult::after, #results::after, #profile::after, #resources::after { animation:dashAuroraB 20s ease-in-out infinite alternate; }
  #studySet .wrap .sec-head, #reading .wrap .sec-head, #studyRes .wrap .sec-head, #wtResult .wrap .sec-head, #results .wrap .sec-head, #profile .wrap .sec-head, #resources .wrap .sec-head { animation:dealUp .5s backwards; }
  #studySet .wrap .card, #reading .wrap .card, #studyRes .wrap .card, #wtResult .wrap .card, #results .wrap .card, #profile .wrap .card, #resources .wrap .card { animation:dealUp .55s backwards; }
  #resList > *, #liveList > *, #rsList > *, #rsSections > * { animation:dealUp .5s backwards; }
  #resList > *:nth-child(2), #liveList > *:nth-child(2), #rsList > *:nth-child(2), #rsSections > *:nth-child(2):nth-child(2) { animation-delay:0.05s; }
  #resList > *:nth-child(3), #liveList > *:nth-child(3), #rsList > *:nth-child(3), #rsSections > *:nth-child(3):nth-child(3) { animation-delay:0.10s; }
  #resList > *:nth-child(4), #liveList > *:nth-child(4), #rsList > *:nth-child(4), #rsSections > *:nth-child(4):nth-child(4) { animation-delay:0.15s; }
  #resList > *:nth-child(5), #liveList > *:nth-child(5), #rsList > *:nth-child(5), #rsSections > *:nth-child(5):nth-child(5) { animation-delay:0.20s; }
  #resList > *:nth-child(6), #liveList > *:nth-child(6), #rsList > *:nth-child(6), #rsSections > *:nth-child(6):nth-child(6) { animation-delay:0.25s; }
  #resList > *:nth-child(7), #liveList > *:nth-child(7), #rsList > *:nth-child(7), #rsSections > *:nth-child(7):nth-child(7) { animation-delay:0.30s; }
  #resList > *:nth-child(n+8), #liveList > *:nth-child(n+8), #rsList > *:nth-child(n+8), #rsSections > *:nth-child(n+8):nth-child(n+8) { animation-delay:.35s; }
  #practice .q-card, #cbt .q-card { animation:dealUp .45s backwards; }
  #studySet .opt.sel, #reading .opt.sel, #studyRes .opt.sel, #wtResult .opt.sel, #results .opt.sel, #profile .opt.sel, #resources .opt.sel, #practice .opt.sel, #cbt .opt.sel { animation:optPop .28s cubic-bezier(.2,1.5,.4,1); }
  #studySet .opt.correct, #reading .opt.correct, #studyRes .opt.correct, #wtResult .opt.correct, #results .opt.correct, #profile .opt.correct, #resources .opt.correct, #practice .opt.correct, #cbt .opt.correct { animation:okBounce .5s cubic-bezier(.2,1.4,.4,1); }
  #studySet .opt.wrong, #reading .opt.wrong, #studyRes .opt.wrong, #wtResult .opt.wrong, #results .opt.wrong, #profile .opt.wrong, #resources .opt.wrong, #practice .opt.wrong, #cbt .opt.wrong { animation:noShake .42s ease-in-out; }
  #studySet .feedback, #reading .feedback, #studyRes .feedback, #wtResult .feedback, #results .feedback, #profile .feedback, #resources .feedback, #practice .feedback, #cbt .feedback { animation:dealUp .35s backwards; }
  #practice .q-prog span.cur { animation:streakPulse 1.6s ease-in-out infinite; }
  #cbt .timer.warn { animation:streakPulse 1s ease-in-out infinite; }
  #studySet .btn-red:not(:disabled)::after, #reading .btn-red:not(:disabled)::after, #studyRes .btn-red:not(:disabled)::after, #wtResult .btn-red:not(:disabled)::after, #results .btn-red:not(:disabled)::after, #profile .btn-red:not(:disabled)::after, #resources .btn-red:not(:disabled)::after, #practice .btn-red:not(:disabled)::after, #cbt .btn-red:not(:disabled)::after { animation:heroSweep 4.8s ease-in-out 1.4s infinite; }
  #studySet .fchip.on, #reading .fchip.on, #studyRes .fchip.on, #wtResult .fchip.on, #results .fchip.on, #profile .fchip.on, #resources .fchip.on, #studySet .wt-tab.on, #reading .wt-tab.on, #studyRes .wt-tab.on, #wtResult .wt-tab.on, #results .wt-tab.on, #profile .wt-tab.on, #resources .wt-tab.on, #practice .wt-tab.on, #cbt .wt-tab.on { animation:chipPop .3s cubic-bezier(.2,1.5,.4,1); }
  #results .result-ring, #wtResult .result-ring{ animation:ringPop .7s cubic-bezier(.2,1.3,.4,1) backwards; }
  #studySet .chip.gold::after, #reading .chip.gold::after, #studyRes .chip.gold::after, #wtResult .chip.gold::after, #results .chip.gold::after, #profile .chip.gold::after, #resources .chip.gold::after { animation:heroSweep 5.2s ease-in-out 1.2s infinite; }
  #profile .prof-hero::after{ animation:heroSweep 6.5s ease-in-out 1s infinite; }
  #profile .prof-hero .avatar{ animation:avatarBob 4.5s ease-in-out infinite; }
  #profile .hstat{ animation:statPop .5s cubic-bezier(.2,1.3,.4,1) backwards; }
  #profile .hstat:nth-child(1){ animation-delay:.2s; }
  #profile .hstat:nth-child(2){ animation-delay:.28s; }
  #profile .hstat:nth-child(3){ animation-delay:.36s; }
  #profile .badge{ animation:statPop .45s backwards; }
  #profile .badge:nth-child(1){ animation-delay:0.34s; }
  #profile .badge:nth-child(2){ animation-delay:0.38s; }
  #profile .badge:nth-child(3){ animation-delay:0.42s; }
  #profile .badge:nth-child(4){ animation-delay:0.46s; }
  #profile .badge:nth-child(5){ animation-delay:0.50s; }
  #profile .badge:nth-child(6){ animation-delay:0.54s; }
  #profile .badge:nth-child(7){ animation-delay:0.58s; }
  #profile .badge:nth-child(8){ animation-delay:0.62s; }
      .celebrate-overlay.show .celebrate-icon{ animation:celebPop .5s cubic-bezier(.34,1.56,.64,1), iconBob 2.2s ease-in-out .5s infinite; }
  .celebrate-overlay.show.confetti .celebrate-confetti{ display:block; }
  .celebrate-overlay.show.confetti .celebrate-confetti span{ animation:confettiFall var(--t,2.8s) var(--d,0s) ease-in both; }
}


/* =====================================================================
   JOURNEY PATH + MASCOT + BIGGER LEVEL-UP (part of PRIORITY 1 — PREMIUM MOTION)
   The dashboard's Duolingo-style path: Goc the owl, and level nodes that
   wind down the card. Same rules as every block above: keyframes move
   transform / opacity only and every animation declaration sits inside the
   reduced-motion guard, so with reduced motion the path is fully drawn, just
   still. The owl and nodes are buttons, so they work from the keyboard.
   ===================================================================== */
.jn-o1{ left:-42px; } .jn-o3{ left:42px; }
.celebrate-confetti span:nth-child(19){ --x:12%; --c:#F0A500; --dx:30px; --rot:500deg; --d:.2s; --t:2.9s; }
.celebrate-confetti span:nth-child(20){ --x:24%; --c:#DC2626; --dx:-24px; --rot:620deg; --d:.6s; --t:2.6s; }
.celebrate-confetti span:nth-child(21){ --x:36%; --c:#7C3AED; --dx:36px; --rot:420deg; --d:1s; --t:3s; }
.celebrate-confetti span:nth-child(22){ --x:48%; --c:#22A559; --dx:-40px; --rot:700deg; --d:.4s; --t:2.7s; }
.celebrate-confetti span:nth-child(23){ --x:60%; --c:#F97316; --dx:22px; --rot:480deg; --d:.9s; --t:3.1s; }
.celebrate-confetti span:nth-child(24){ --x:72%; --c:#0E7490; --dx:-32px; --rot:560deg; --d:.1s; --t:2.5s; }
.celebrate-confetti span:nth-child(25){ --x:84%; --c:#F0A500; --dx:26px; --rot:660deg; --d:.7s; --t:2.8s; }
.celebrate-confetti span:nth-child(26){ --x:92%; --c:#DC2626; --dx:-20px; --rot:400deg; --d:1.2s; --t:3s; }
.celebrate-confetti span:nth-child(27){ --x:6%; --c:#22A559; --dx:34px; --rot:520deg; --d:1.4s; --t:2.6s; }
.celebrate-confetti span:nth-child(28){ --x:42%; --c:#F0A500; --dx:-28px; --rot:600deg; --d:1.6s; --t:2.9s; }
.celebrate-confetti span:nth-child(29){ --x:66%; --c:#7C3AED; --dx:30px; --rot:440deg; --d:1.3s; --t:2.7s; }
.celebrate-confetti span:nth-child(30){ --x:78%; --c:#0E7490; --dx:-36px; --rot:680deg; --d:1.8s; --t:3s; }
.celebrate-overlay.levelup .celebrate-icon{ width:112px; height:112px; font-size:56px; margin-bottom:20px;
  background:radial-gradient(circle,#FFF8E1,#FDECC8); box-shadow:0 10px 30px rgba(240,165,0,.4); }
.celebrate-overlay.levelup .celebrate-title{ font-size:28px; font-weight:900; color:var(--red-deep); }
.celebrate-overlay.levelup .celebrate-icon::before, .celebrate-overlay.levelup .celebrate-icon::after{
  content:""; display:none; position:absolute; inset:-6px; border-radius:50%; border:3px solid #F0A500; pointer-events:none; }

@keyframes ringOut{ 0%{ opacity:.8; transform:scale(1); } 100%{ opacity:0; transform:scale(1.55); } }

@media (prefers-reduced-motion: no-preference){
                      .celebrate-overlay.levelup.show .celebrate-icon::before{ display:block; animation:ringOut 1.5s ease-out infinite; }
  .celebrate-overlay.levelup.show .celebrate-icon::after{ display:block; animation:ringOut 1.5s ease-out .7s infinite; }
}

/* ---- Bookmarks (Phase 1, part 2) ---- */
.bm-btn{ display:inline-flex; align-items:center; gap:7px; margin-top:12px; padding:8px 14px;
  border-radius:999px; border:1.5px solid #D9DEE6; background:#fff; color:#4B5563;
  font:inherit; font-size:12.5px; font-weight:800; cursor:pointer; }
.bm-btn .icon{ width:16px; height:16px; }
.bm-btn.on{ border-color:#7C3AED; color:#7C3AED; background:#F5F0FF; }
.bm-reveal{ margin:2px 0 4px; }
.bm-reveal summary{ cursor:pointer; font-size:12.5px; font-weight:800; color:#7C3AED; padding:4px 0; }
.wt-rev .verdict + .bm-btn{ margin-left:8px; }

/* Comprehension passage above a question (practice, CBT, Web Test) — packed
   (collapsed) by default so it never pushes the question/options off a
   fixed exam layout; tap the head to expand/collapse. Only .q-passage-b
   scrolls, and only once expanded. */
.q-passage{margin:8px 0 6px;border:1px solid #E5E7EB;border-left:4px solid var(--brand,#1F6FEB);border-radius:12px;background:#F8FAFC;overflow:hidden;flex:0 0 auto}
.q-passage[hidden]{display:none}
.q-passage-head{display:flex;align-items:center;gap:7px;padding:10px 14px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.q-passage-arrow{font-size:10px;color:var(--brand,#1F6FEB);flex:0 0 auto}
.q-passage-t{font-size:12px;font-weight:800;letter-spacing:.02em;color:#475569}
.q-passage.collapsed .q-passage-b{display:none}
.q-passage-b{padding:0 14px 12px;max-height:38vh;overflow-y:auto;-webkit-overflow-scrolling:touch}
.q-image{margin:8px 0 6px;text-align:center}
.q-image[hidden]{display:none}
.q-image img{max-width:100%;max-height:44vh;height:auto;border:1px solid #E5E7EB;border-radius:12px;background:#fff;object-fit:contain}
.q-image-msg{font-size:13px;color:#64748B;padding:10px 0}
.q-passage-b{font-size:15px;line-height:1.6;color:var(--ink);overflow-wrap:break-word}
/* Console: comprehension passage card keeps its line breaks */
.ad-ptext{overflow-wrap:break-word;white-space:normal}

/* Phase 3B: a note an Open student can see in the list but not read. */
.rd-note.locked{opacity:.6}
.rd-note.locked .mins{font-weight:700}

/* Phase 3C: subject check-boxes on the console Tutors panel */
.ad-check{display:inline-flex;align-items:center;gap:6px;margin:4px 12px 4px 0;font-size:13px;font-weight:600;color:#344054}
.ad-check input{width:auto;margin:0}


/* 🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
   BOULDER — SCHOLARSHIP SCREEN CSS (B#2)
   Remove these boulder comment tags to re-enable.
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
---- B#2 Scholarship screen ----
.sch-screen{background:var(--bg,#F8FAFC)}
.sch-page{max-width:660px;margin:0 auto;padding:24px 16px 60px}
.sch-content{background:#fff;border-radius:16px;border:1px solid #E5E7EB;padding:24px 20px;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.sch-loading{text-align:center;color:#64748B;padding:40px 0}
.sch-heading{font-size:21px;font-weight:900;color:var(--ink,#0F172A);margin:0 0 10px}
.sch-sub{font-size:14.5px;color:#475569;margin:0 0 20px;line-height:1.6}
.sch-intro{margin-bottom:20px}
.sch-section-label{font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:#94A3B8;margin:20px 0 8px}
.sch-form .field{margin-bottom:14px}
.sch-form .field label{display:block;font-size:13px;font-weight:700;color:#374151;margin-bottom:5px}
.sch-hint{font-size:11.5px;font-weight:500;color:#94A3B8}
.sch-form input[type=text],.sch-form input[type=email],.sch-form input[type=tel],.sch-form select{
  width:100%;box-sizing:border-box;padding:10px 12px;border:1.5px solid #D1D5DB;border-radius:10px;
  font:inherit;font-size:14px;color:#0F172A;background:#fff;outline:none}
.sch-form input:focus,.sch-form select:focus{border-color:var(--brand,#C8102E);box-shadow:0 0 0 3px rgba(200,16,46,.1)}
.sch-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:420px){.sch-row{grid-template-columns:1fr}}
.sch-subjects{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}
.sch-sub-opt{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#374151;cursor:pointer}
.sch-sub-opt.locked{opacity:.6;cursor:default}
.sch-pledge{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.5;color:#374151;margin:16px 0;cursor:pointer}
.sch-pledge input{flex-shrink:0;margin-top:2px;width:16px;height:16px;accent-color:var(--brand,#C8102E)}
.sch-err{margin:10px 0 0;padding:10px 14px;background:#FEF2F2;border:1px solid #FECACA;border-radius:8px;font-size:13.5px;color:#B91C1C}
.sch-submit{width:100%;margin-top:4px}
.sch-closed,.sch-thanks{text-align:center;padding:40px 16px}
.sch-closed-msg,.sch-thanks h2{font-size:20px;font-weight:900;color:var(--ink,#0F172A);margin:0 0 10px}
.sch-closed p,.sch-thanks p{font-size:14px;color:#475569;margin:0 0 24px;line-height:1.6}
.sch-thanks-icon{font-size:44px;margin:0 0 12px}
.sch-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨
   END BOULDER — SCHOLARSHIP SCREEN CSS (B#2)
🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨🪨 */


/* ============================================================
   EXAM SCREEN — no-scroll fixed layout (CBT + wtRun)
   All three test types (Objective, Web Test, JAMB-oriented)
   share these rules.
   ============================================================ */

/* The screen itself fills the viewport and never scrolls */
.exam-screen{
  display:flex;
  flex-direction:column;
  height:100%;
  overflow:hidden;
}

/* Middle zone: question + options, fills all space between header and bar */
.exam-body{
  flex:1 1 0;
  overflow:hidden;          /* page never scrolls */
  display:flex;
  flex-direction:column;
  padding:14px 18px 10px;
  gap:0;
}

/* Practice hub mode cards + timed/untimed toggle */
.ph-mode-ic{ width:36px; height:36px; border-radius:9px; background:#FBEAEA; color:var(--red-deep); display:flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:10px; }
.ph-toggle{ display:flex; border:1.5px solid var(--line); border-radius:10px; overflow:hidden; }
.ph-toggle-opt{ flex:1; text-align:center; padding:12px; font-size:13px; font-weight:700; color:#777; cursor:pointer; }
.ph-toggle-opt b{ display:block; }
.ph-toggle-opt span{ display:block; font-weight:400; font-size:10.5px; margin-top:2px; opacity:.85; }
.ph-toggle-opt.on{ background:var(--red-deep); color:#fff; }

/* Theory exam: question fixed, only the answer box scrolls/grows */
.th-answer{ flex:1 1 0; min-height:0; border:1.5px solid var(--line); border-radius:10px; padding:14px; font-size:14px; font-family:var(--font); resize:none; color:var(--ink); margin-top:6px; }
.th-answer:focus{ outline:none; border-color:var(--red); }
.th-wordcount{ font-size:11px; color:var(--gray); margin-top:6px; text-align:right; flex:0 0 auto; }

/* Question text: shrinks font if content is tall so it always fits */
.exam-q{
  font-size:clamp(14px, 4vw, 18px);
  font-weight:800;
  line-height:1.38;
  margin:6px 0 12px;
  color:var(--ink);
  /* scrollable only if the text is truly enormous (passages etc.) */
  overflow-y:auto;
  max-height:38%;
  flex-shrink:1;
}

/* Options area: never wraps off screen */
.exam-opts{
  flex:1 1 0;
  overflow-y:auto;          /* only this region scrolls, not the page */
  display:flex;
  flex-direction:column;
  gap:0;
}

/* Compact option buttons — enough touch target, less vertical waste */
.exam-opts .opt{
  padding:10px 14px;
  margin-bottom:8px;
  border-radius:12px;
  font-size:14.5px;
}
.exam-opts .opt .key{
  width:26px;
  height:26px;
  font-size:12px;
  border-radius:7px;
}

/* Bottom action bar — 4 items in one row */
.exam-bar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  flex-shrink:0;
}
.exam-nav-btn{
  flex:0 0 auto;
  padding:0 14px;
  height:42px;
  font-size:13.5px;
}

/* Centre "Q x / N ▦" jump button */
.exam-qnum-btn{
  flex:1 1 0;
  height:42px;
  font-size:13px;
  font-weight:800;
  background:#FEECEC;
  color:var(--red-deep);
  border:1.5px solid #F9C0C0;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  cursor:pointer;
}
.exam-grid-icon{
  font-size:18px;
  line-height:1;
  opacity:.7;
}

/* ============================================================
   QUESTION PANEL OVERLAY — slides up from bottom
   ============================================================ */
.qpanel-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  z-index:1100;
}
.qpanel{
  position:fixed;
  left:0; right:0; bottom:0;
  max-height:72vh;
  background:#fff;
  border-radius:20px 20px 0 0;
  z-index:1101;
  display:flex;
  flex-direction:column;
  box-shadow:0 -8px 40px rgba(17,24,39,.18);
  overflow:hidden;
}
@keyframes qpFadeIn{ from{opacity:0} to{opacity:1} }
@keyframes qpSlideUp{ from{transform:translateY(100%)} to{transform:translateY(0)} }
@media (prefers-reduced-motion: no-preference){
  .qpanel-backdrop{ animation:qpFadeIn .18s ease; }
  .qpanel{ animation:qpSlideUp .22s ease; }
}

.qpanel-top{
  display:flex;
  align-items:center;
  padding:14px 18px 10px;
  border-bottom:1px solid var(--line);
  flex-shrink:0;
  gap:10px;
}
.qpanel-title{
  font-weight:800;
  font-size:15px;
  color:var(--ink);
  flex:1;
}
.qpanel-legend{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11.5px;
  color:var(--slate);
}
.qpanel-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  margin-right:3px;
}
.qpanel-dot.answered{ background:var(--green); }
.qpanel-dot.unanswered{ background:#D1D5DB; }
.qpanel-close{
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  background:#F3F4F6;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  color:var(--slate);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

/* The grid of number buttons */
.qpanel-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(46px, 1fr));
  gap:8px;
  padding:14px 16px 24px;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
/* Reuse existing .qn colours; just size them for the panel */
.qpanel-grid .qn{
  width:100%;
  height:44px;
  font-size:14px;
  border-radius:10px;
}

/* ============ STUDY PAGE — 2-col grid layout ============ */
.study-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
  margin-bottom:4px;
}
.sg-cell{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:18px 10px 14px;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--sh-sm);
  cursor:pointer;
  font-family:var(--font);
  text-align:center;
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s,box-shadow .12s;
}
.sg-cell:active{transform:scale(.97);box-shadow:none}
.sg-icon{
  width:52px;height:52px;border-radius:15px;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.sg-label{
  font-size:13px;font-weight:800;color:var(--slate);line-height:1.2;
}
.sg-badge{
  position:absolute;top:10px;right:10px;
  font-size:10px;font-weight:800;
  padding:2px 7px;border-radius:20px;line-height:1.4;
}
.sg-badge.gold-badge{background:#FEF3C7;color:#B45309}

/* Review chips row */
.review-row{
  display:flex;gap:8px;flex-wrap:wrap;
}
.rv-chip{
  flex:1;min-width:90px;
  display:flex;flex-direction:column;align-items:center;
  gap:5px;padding:12px 8px 10px;
  border-radius:14px;background:#fff;
  border:1px solid var(--line);box-shadow:var(--sh-sm);
  cursor:pointer;font-family:var(--font);
  -webkit-tap-highlight-color:transparent;
  transition:transform .12s;
}
.rv-chip:active{transform:scale(.97)}
.rv-chip span{font-size:12.5px;font-weight:800;color:var(--slate)}
.rv-chip em{font-size:11px;font-style:normal;color:var(--gray);min-height:14px}

/* ============ PROFILE PAGE — slim hero + badges scroll ============ */
.prof-hero-slim{
  padding:20px 18px 18px !important;
  text-align:left !important;
}
.prof-slim-row{
  display:flex;align-items:center;
}
/* Badges: horizontal scroll row */
.badges-scroll{
  display:flex;
  flex-direction:row;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:6px;
  scrollbar-width:none;
}
.badges-scroll::-webkit-scrollbar{display:none}
/* Keep existing .badge styles working inside the scroll */
.badges-scroll .badge{
  flex:0 0 auto;
  width:72px;
}

/* ===== Updates & News — nav button (public homepage) ===== */
.lp-updates-btn{
  position:relative;
  display:inline-flex;align-items:center;gap:6px;
  font-family:var(--font);font-weight:800;font-size:13px;
  color:#DC2626;
  background:rgba(220,38,38,.08);
  border:1.5px solid rgba(220,38,38,.25);
  border-radius:99px;
  padding:7px 13px 7px 11px;
  cursor:pointer;
  transition:background .15s,border-color .15s,transform .1s;
  white-space:nowrap;
}
.lp-updates-btn:hover{background:rgba(220,38,38,.14);border-color:rgba(220,38,38,.5);transform:translateY(-1px)}
.lp-updates-btn:active{transform:scale(.97)}
/* pulsing red dot — signals new content */
.lp-updates-dot{
  position:absolute;top:-3px;right:-3px;
  width:9px;height:9px;
  border-radius:50%;
  background:#DC2626;
  border:2px solid #fff;
}
@media (prefers-reduced-motion: no-preference){
  .lp-updates-dot{animation:upsDotPulse 2s ease-in-out infinite}
  @keyframes upsDotPulse{
    0%,100%{filter:drop-shadow(0 0 0px rgba(220,38,38,.5))}
    50%{filter:drop-shadow(0 0 4px rgba(220,38,38,0))}
  }
}
/* On narrow mobile the lp-actions hides its links (the drawer carries them);
   the updates button stays visible because it is important. */
@media(max-width:899px){
  .lp-updates-btn{display:inline-flex!important}
}

/* ===== Updates & News — home dashboard entry card ===== */
.dash-news-banner{
  display:flex;align-items:center;gap:12px;
  width:100%;text-align:left;
  background:linear-gradient(135deg,#DC2626 0%,#B91C1C 100%);
  border:none;border-radius:16px;
  padding:14px 16px;
  cursor:pointer;
  margin-bottom:16px;
  box-shadow:0 6px 20px rgba(220,38,38,.3);
  transition:transform .15s,box-shadow .15s;
}
.dash-news-banner:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(220,38,38,.38)}
.dash-news-banner:active{transform:scale(.98)}
.dash-news-icon{
  width:40px;height:40px;border-radius:12px;
  background:rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;
  flex:0 0 auto;
}
.dash-news-text{
  display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;
}
.dash-news-text b{
  font-size:14px;font-weight:900;color:#fff;line-height:1.2;
}
.dash-news-text s{
  font-size:12px;font-weight:600;color:rgba(255,255,255,.78);
  text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.dash-news-arrow{
  font-size:18px;font-weight:700;color:rgba(255,255,255,.7);flex:0 0 auto;
}

/* ===== Updates & News — mobile drawer highlight ===== */
.dw-updates-link{
  background:#FEF2F2!important;
  color:#DC2626!important;
  font-weight:800!important;
}
.dw-updates-link .dw-new-badge{
  margin-left:auto;
  font-size:10px;font-weight:800;
  background:#DC2626;color:#fff;
  border-radius:999px;
  padding:2px 7px;
  letter-spacing:.3px;
}
.dwi-bell{font-size:14px;margin-right:2px}

/* ===== Updates & News — landing page intro teaser ===== */
.lp-news-intro{
  padding:48px 24px;
  background:var(--surface,#fff);
}
.lp-news-intro-inner{
  max-width:680px;
  margin:0 auto;
  display:flex;
  align-items:flex-start;
  gap:20px;
  background:#FEF2F2;
  border:1.5px solid rgba(220,38,38,.18);
  border-radius:20px;
  padding:28px 28px 28px 24px;
}
.lp-news-intro-icon{
  flex:0 0 auto;
  width:52px;height:52px;
  border-radius:14px;
  background:rgba(220,38,38,.1);
  color:#DC2626;
  display:flex;align-items:center;justify-content:center;
  margin-top:2px;
}
.lp-news-intro-body{
  flex:1;min-width:0;
}
.lp-news-intro-body h2{
  font-size:22px;font-weight:900;
  color:#111827;
  margin:4px 0 8px;
  line-height:1.2;
}
.lp-news-intro-body p{
  font-size:14.5px;color:#4B5563;
  line-height:1.6;
  margin:0 0 16px;
}
.lp-news-learn-more{
  display:inline-flex;align-items:center;gap:7px;
  background:#DC2626;color:#fff;
  border:none;border-radius:99px;
  padding:10px 20px;
  font-family:var(--font);font-size:14px;font-weight:800;
  cursor:pointer;
  transition:background .15s,transform .1s;
  white-space:nowrap;
}
.lp-news-learn-more:hover{background:#B91C1C;transform:translateY(-1px)}
.lp-news-learn-more:active{transform:scale(.97)}
@media(max-width:599px){
  .lp-news-intro{padding:32px 16px}
  .lp-news-intro-inner{flex-direction:column;gap:14px;padding:20px 18px}
  .lp-news-intro-icon{width:44px;height:44px;border-radius:12px}
  .lp-news-intro-body h2{font-size:19px}
}

/* ================================================================
   JAMB EXAM MODE — dedicated UTME examination environment.
   Every rule is scoped to #cbt.jamb-mode (plus the JAMB-only resume
   banner and calculator/submit components), so the shared CBT screen
   used by Practice/study runs and the Web Test runner are untouched.
   ================================================================ */
.cbt-main { display: contents; }
#cbt.jamb-mode .cbt-main { display: flex; flex: 1 1 0; min-height: 0; }
#cbt.jamb-mode .cbt-main .exam-body { flex: 1 1 0; min-width: 0; }

/* Candidate name/ID now live inside the single merged .cbt-top bar —
   see #cbt .cbt-top-who / .cbt-top-name / .cbt-top-id above. */

/* Desktop side palette (persistent); smaller screens keep the slide-up panel */
#cbt.jamb-mode .cbt-side {
  display: flex; flex-direction: column; gap: 10px;
  width: 296px; flex: 0 0 296px; min-height: 0;
  border-left: 1px solid var(--line); background: #FBFBFC;
  padding: 14px 14px 12px;
}
#cbt.jamb-mode .cbt-side-head { font-weight: 800; font-size: 13px; color: var(--ink); }
#cbt.jamb-mode .cbt-side-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px;
  overflow-y: auto; align-content: start; padding: 2px;
}
#cbt.jamb-mode .cbt-side-grid .qn { width: 100%; height: 38px; }
#cbt.jamb-mode .cbt-side-legend {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--slate);
}
#cbt.jamb-mode .cbt-side-legend .lg {
  width: 14px; height: 14px; border-radius: 5px; display: inline-block;
  border: 1.5px solid var(--line); background: #fff; margin-left: 8px;
}
#cbt.jamb-mode .cbt-side-legend .lg:first-child { margin-left: 0; }
#cbt.jamb-mode .cbt-side-legend .lg.cur { border-color: var(--red); }
#cbt.jamb-mode .cbt-side-legend .lg.ans { background: var(--green); border-color: var(--green); }
#cbt.jamb-mode .cbt-side-count { font-size: 12px; font-weight: 700; color: var(--slate); }
@media (max-width: 1023px) {
  #cbt.jamb-mode .cbt-main { display: contents; }
  #cbt.jamb-mode .cbt-side { display: none; }
}

/* Touch comfort inside the exam on small screens */
@media (max-width: 560px) {
  #cbt .cbt-top-id { display: none; }
  #cbt.jamb-mode .exam-opts .opt { padding: 13px 14px; font-size: 15px; }
  #cbt.jamb-mode .exam-nav-btn { height: 46px; }
}

/* Examination calculator (JAMB mode only) */
.jamb-calc {
  position: fixed; z-index: 320; right: 16px; top: 84px;
  width: min(300px, calc(100vw - 24px));
  background: #141821; color: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(10, 12, 20, .45), 0 4px 14px rgba(10, 12, 20, .3);
  padding: 14px; touch-action: manipulation;
}
.jamb-calc .jc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: 13px; letter-spacing: .02em; margin-bottom: 10px;
}
.jamb-calc .jc-close {
  background: rgba(255,255,255,.1); border: none; color: #fff; cursor: pointer;
  width: 30px; height: 30px; border-radius: 9px; font-size: 17px; line-height: 1;
}
.jamb-calc .jc-display {
  background: #0B0E14; border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
  min-height: 52px; padding: 12px; text-align: right;
  font-size: 22px; font-weight: 800; letter-spacing: .01em;
  overflow-x: auto; white-space: nowrap; margin-bottom: 12px;
}
.jamb-calc .jc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.jamb-calc .jc-keys button {
  height: 46px; border: none; border-radius: 12px; cursor: pointer;
  background: #232936; color: #fff; font: 700 16px var(--font);
}
.jamb-calc .jc-keys button:active { filter: brightness(1.35); }
.jamb-calc .jc-keys .jc-op { background: #374151; }
.jamb-calc .jc-keys .jc-fn { background: #1F2937; color: #F3C969; font-size: 14px; }
.jamb-calc .jc-keys .jc-eq { background: #DC2626; grid-column: span 2; }
.jamb-calc .jc-note { font-size: 11px; color: #9AA3AF; margin: 10px 2px 0; line-height: 1.45; }
@media (max-width: 560px) {
  .jamb-calc { right: 12px; left: 12px; width: auto; top: 70px; }
  .jamb-calc .jc-keys button { height: 50px; }
}

/* Resume banner on the Web Test screen */
.jt-resume {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: #FFF7ED; border: 1px solid #FDBA74; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 14px;
}
.jt-resume-t { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1 1 auto; }
.jt-resume-t b { font-size: 14.5px; color: #9A3412; }
.jt-resume-t span { font-size: 12.5px; color: #7C2D12; }
.jt-resume-b { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============ GUIDED TOUR (js/onboarding.js, Stage 6) ============
   The spotlight ring marks the real element (fixed to the viewport, so
   it is correct full-bleed on mobile and on desktop); the card floats
   beside it and never traps the page — the overlay itself ignores
   pointer events except on the card. */
.goc-tour-overlay{ position:fixed; inset:0; z-index:99990; pointer-events:none; display:none; }
.goc-tour-ring{ position:fixed; border:3px solid #DC2626; border-radius:14px;
  box-shadow:0 0 0 9999px rgba(10,12,18,.45); pointer-events:none; transition:all .25s ease; }
.goc-tour-card{ position:fixed; background:#fff; border-radius:16px; padding:18px 18px 14px;
  box-shadow:0 16px 48px rgba(10,12,18,.28); pointer-events:auto; box-sizing:border-box; }
.goc-tour-pips{ display:flex; gap:5px; margin-bottom:10px; }
.goc-tour-pip{ width:6px; height:6px; border-radius:50%; background:#E5E7EB; }
.goc-tour-pip.on{ background:#DC2626; width:18px; border-radius:3px; }
.goc-tour-count{ font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#9CA3AF; margin-bottom:4px; }
.goc-tour-title{ font-size:16px; font-weight:900; color:#111827; margin-bottom:6px; line-height:1.25; }
.goc-tour-body{ font-size:13.5px; color:#4B5563; line-height:1.55; margin-bottom:14px; }
.goc-tour-actions{ display:flex; align-items:center; gap:10px; }
.goc-tour-back{ font-size:13px; font-weight:700; color:#374151; background:#F3F4F6; border:0; border-radius:10px; padding:10px 14px; cursor:pointer; font-family:inherit; }
.goc-tour-back:disabled{ opacity:.4; cursor:default; }
.goc-tour-skip{ font-size:13px; font-weight:600; color:#9CA3AF; background:none; border:0; cursor:pointer; padding:0; margin-left:auto; font-family:inherit; }
.goc-tour-next{ background:#DC2626; color:#fff; border:0; border-radius:12px; padding:11px 20px; font-size:14px; font-weight:800; cursor:pointer; font-family:inherit; }
.goc-tour-next:hover{ background:#B91C1C; }
@media (max-width:480px){ .goc-tour-card{ padding:16px 16px 12px; } }

/* ============ LANDING: announcements, Try GOC, parents (Stage 9) ============ */
.lp-news-list{ display:grid; gap:10px; margin-top:16px; }
.lp-news-card{ background:#fff; border:1px solid var(--line,#E5E7EB); border-radius:14px; padding:14px 16px; text-align:left; }
.lp-news-card h3{ font-size:15px; margin:6px 0 4px; color:#111827; }
.lp-news-card p{ font-size:13px; color:#4B5563; line-height:1.55; margin:0 0 8px; }
.lp-news-meta{ display:flex; gap:8px; align-items:center; font-size:11.5px; color:#9CA3AF; }
.lp-news-more{ background:none; border:0; color:#DC2626; font-weight:800; font-size:13px; cursor:pointer; padding:0; font-family:inherit; }
.lp-news-empty{ font-size:13px; color:#9CA3AF; }
.lp-try{ text-align:center; }
.lp-try-btn{ display:inline-flex; align-items:center; justify-content:center; margin:14px auto 0; max-width:100%; }
.lp-try-note{ font-size:12.5px; color:#9CA3AF; margin-top:10px; line-height:1.5; }
@media (min-width:720px){ .lp-news-list{ grid-template-columns:repeat(3,1fr); } }

/* ============ TRY G.O.C DEMO (Stage 10): real Practice components, second home ============ */
#demo .prac-pal-wrap{margin:14px 18px 18px;padding:14px;background:#fff;border:1.5px solid var(--line);border-radius:16px}
#demo .prac-pal-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:800;font-size:13px;color:var(--ink);margin-bottom:10px}
#demo .prac-pal-grid{display:flex;flex-wrap:wrap;gap:8px}
#demo .prac-pal{min-width:44px;height:44px;padding:0 8px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-family:var(--font);font-weight:800;font-size:14px;color:var(--slate);cursor:pointer}
#demo .prac-pal.ans{background:#EAF6EF;border-color:var(--green);color:var(--green)}
#demo .prac-pal.cur{border-color:var(--red);color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#demo .prac-pal-legend{display:flex;gap:6px;align-items:center;font-size:11.5px;color:var(--gray);margin-top:10px}
#demo .prac-pal-legend .lg{width:12px;height:12px;border-radius:4px;border:1.5px solid var(--line);display:inline-block;margin-left:8px}
#demo .prac-pal-legend .lg.ans{background:#EAF6EF;border-color:var(--green)}
#demo .prac-pal-legend .lg.cur{border-color:var(--red)}
#demo .opt.sel{border-color:var(--red);background:#FDECEC}
#demo .opt.sel .key{background:var(--red);color:#fff}

/* ---- Try G.O.C preview: fixed pre-exam page, never scrollable ----------------
   The start button belongs to the layout, not to a scrolling column: the
   screen fills the phone, the card is centred, and the only way on is the
   button. The run itself opens the shared CBT runner (#cbt). */
/* The card starts directly beneath the header. It used to be vertically
   centred in the remaining viewport (`align-items:center`), which put a large
   empty band above it on a desktop screen. The middle area may scroll only if
   a very short phone cannot fit the card; the page itself still never scrolls. */
#demo.demo-screen{ overflow:hidden; }
#demo .demo-pre{ flex:1 1 0; min-height:0; display:flex; align-items:flex-start; justify-content:center;
  padding:18px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; }
#demo .demo-card{ width:100%; max-width:640px; margin:0 auto; padding:18px; flex:0 0 auto; }
#demo .demo-points{ display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 4px; }
#demo .demo-points span{ font-size:11.5px; font-weight:700; color:#5E1212; background:#FEF8F8; border:1px solid #F3D6D6; border-radius:999px; padding:5px 9px; }
#demo .demo-start{ position:relative; margin-top:14px; flex:0 0 auto; }
@media (max-height:620px){ #demo .demo-card{ padding:13px 15px; } #demo .demo-card .q-text{ font-size:18px; } #demo .demo-points{ display:none; } }
@media (min-width:900px){
  #demo .demo-pre{ padding:32px 24px 40px; }
  #demo .demo-card{ max-width:720px; padding:28px 32px; }
  #demo .demo-card .q-text{ font-size:26px; }
  #demo .demo-points span{ font-size:12.5px; padding:6px 11px; }
}

/* ---- One-time redeployment notice ------------------------------------------ */
.deploy-notice{ position:fixed; left:50%; bottom:18px; transform:translateX(-50%); z-index:120; width:min(420px,calc(100vw - 24px)); display:none; }
.deploy-notice.show{ display:block; }
.deploy-notice .dn-card{ background:#20242C; color:#fff; border:1px solid rgba(255,255,255,.14); border-radius:18px; box-shadow:0 18px 46px rgba(0,0,0,.36); padding:16px 16px 12px; }
.deploy-notice .dn-eyebrow{ font-size:10.5px; font-weight:800; letter-spacing:.9px; text-transform:uppercase; color:#F0A500; }
.deploy-notice .dn-title{ font-size:17px; font-weight:800; margin-top:4px; }
.deploy-notice .dn-body{ font-size:13px; line-height:1.55; color:#CBD2DC; margin-top:6px; }
.deploy-notice .dn-actions{ display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.deploy-notice .btn{ padding:10px 14px; font-size:13.5px; }
.deploy-notice .btn-ghost{ background:rgba(255,255,255,.12); color:#fff; }
.deploy-notice .dn-id{ font-size:10px; color:#8B95A5; margin-top:9px; letter-spacing:.3px; }

/* ============================================================
   DESKTOP FREE PRACTICE / CBT RUNNER
   The anonymous preview and the student practice runner share #cbt. On a
   desktop this turns the runner into a proper two-column CBT workspace:
   question area on the left, persistent question navigator on the right and
   one always-visible action bar. Every rule is scoped to desktop widths and
   to the non-JAMB runner, so JAMB exam mode and the mobile runner are untouched.
   ============================================================ */
@media (min-width:900px){
  /* Free practice is a full workspace, not a narrow reading column. */
  .phone:not(.is-login) #cbt > *{ max-width:none; width:auto; margin-left:0; margin-right:0; }

  #cbt:not(.jamb-mode){
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    min-height:0;
    background:#F3F4F6;
  }
  #cbt:not(.jamb-mode) > .cbt-top{
    grid-column:1 / -1; grid-row:1;
    padding:18px 28px;
  }
  #cbt:not(.jamb-mode) > .cbt-top .timer{ font-size:18px; padding:8px 14px; }
  #cbt:not(.jamb-mode) > #cbtSubjects{
    grid-column:1 / -1; grid-row:2;
    padding-left:28px; padding-right:28px;
  }
  #cbt:not(.jamb-mode) > .cbt-main{ display:contents; }
  #cbt:not(.jamb-mode) > .cbt-main > .exam-body{
    grid-column:1; grid-row:3;
    min-width:0; min-height:0;
    padding:30px clamp(28px,4vw,64px) 22px;
    background:#fff;
    border-right:1px solid var(--line);
  }
  #cbt:not(.jamb-mode) #cbtNum{
    font-size:13px; padding:7px 13px;
  }
  #cbt:not(.jamb-mode) .exam-q,
  #cbt:not(.jamb-mode) .q-text{
    font-size:clamp(21px,2vw,27px);
    line-height:1.45;
    margin:14px 0 22px;
    max-height:48%;
  }
  #cbt:not(.jamb-mode) .exam-opts{ padding-bottom:6px; }
  #cbt:not(.jamb-mode) .exam-opts .opt{
    min-height:56px;
    padding:15px 18px;
    margin-bottom:12px;
    border-radius:14px;
    font-size:16px;
    line-height:1.4;
  }
  #cbt:not(.jamb-mode) .exam-opts .opt .key{
    width:32px; height:32px; font-size:13px; border-radius:9px;
  }

  /* The palette is the existing #cbtNav list, moved beside the question. */
  #cbt:not(.jamb-mode) > #cbtNav{
    display:grid!important;
    grid-column:2; grid-row:3;
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-auto-rows:40px;
    align-content:start;
    gap:9px;
    min-height:0;
    padding:20px 18px;
    background:#FBFBFC;
    border-left:0;
    overflow-y:auto;
  }
  #cbt:not(.jamb-mode) > #cbtNav::before{
    content:"Question navigator";
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    height:auto;
    padding-bottom:2px;
    font-size:11.5px;
    font-weight:900;
    letter-spacing:.8px;
    text-transform:uppercase;
    color:var(--gray);
  }
  #cbt:not(.jamb-mode) > #cbtNav .qn{
    width:100%;
    height:40px;
    font-size:13.5px;
    border-radius:9px;
  }
  #cbt:not(.jamb-mode) > #cbtNav::after{
    content:"Green = answered · red = current";
    grid-column:1 / -1;
    margin-top:4px;
    font-size:11px;
    line-height:1.45;
    color:var(--gray);
  }

  #cbt:not(.jamb-mode) > .exam-bar{
    grid-column:1 / -1; grid-row:4;
    gap:12px;
    padding:14px clamp(20px,3vw,40px);
    background:#fff;
    border-top:1px solid var(--line);
    box-shadow:0 -8px 22px rgba(17,24,39,.04);
  }
  #cbt:not(.jamb-mode) .exam-nav-btn{
    height:48px;
    padding:0 22px;
    font-size:14px;
  }
  #cbt:not(.jamb-mode) .exam-qnum-btn{
    flex:1 1 0;
    max-width:260px;
    height:48px;
    margin:0 auto;
    font-size:13.5px;
  }
  #cbt:not(.jamb-mode) .exam-bar .btn-red{
    min-width:128px;
    box-shadow:0 6px 16px rgba(220,38,38,.24);
  }
}

/* Very wide screens: keep the question measure readable while the navigation
   column stays aligned to the right edge of the workspace. */
@media (min-width:1500px){
  #cbt:not(.jamb-mode){ grid-template-columns:minmax(0,1fr) 340px; }
  #cbt:not(.jamb-mode) > .cbt-main > .exam-body{ padding-left:max(64px,calc((100% - 980px)/2)); padding-right:max(64px,calc((100% - 980px)/2)); }
  #cbt:not(.jamb-mode) > #cbtNav{ grid-template-columns:repeat(5,minmax(0,1fr)); }
}

/* =====================================================================
   STUDENT HOME DASHBOARD + STUDENT NAVIGATION (Phase 3, 18 Nov 2026)
   Built to the approved "Red and Cream Student Dashboard" reference.
   Mobile first; tablet from 640px; the desktop sidebar from 900px.
   Every colour, radius and shadow below comes from these tokens.
   ===================================================================== */
:root{
  --db-red:#D1161E; --db-red-2:#B31119; --db-red-3:#8F0B11;
  --db-red-grad:linear-gradient(100deg,#DA1A22 0%,#C3121A 48%,#960A10 100%);
  --db-btn-grad:linear-gradient(180deg,#DE1C24 0%,#B8111A 100%);
  --db-ink:#1C1F26; --db-text:#3B414C; --db-mute:#6A717D;
  --db-cream:#F7EEDF; --db-card:#FFFFFF; --db-line:#E9DDCB; --db-line-2:#F1E8DA;
  --db-xp:#FDEFEF; --db-xp-b:#F8DEDE; --db-xp-i:#FAD5D5;
  --db-st:#FEF5E8; --db-st-b:#FAE8CF; --db-st-i:#FDE3C2;
  --db-pf:#ECF7F0; --db-pf-b:#D6EEDF; --db-pf-i:#CFEBD9;
  --db-soon:#F3EFEA; --db-soon-t:#6A5C49;
  --db-r:16px; --db-r-sm:12px;
  --db-sh:0 1px 2px rgba(28,31,38,.04),0 6px 18px rgba(28,31,38,.06);
  --db-sh-lg:0 14px 38px rgba(28,31,38,.16);
  --db-focus:0 0 0 3px rgba(209,22,30,.32);
}
.db-home{background:var(--db-cream)}
.db-home :focus-visible,.tabbar :focus-visible,.nav-sheet :focus-visible{outline:none;box-shadow:var(--db-focus);border-radius:10px}
.db{position:relative;padding:0 14px;color:var(--db-ink)}
.db-i{width:22px;height:22px;flex:0 0 auto}
.db-arr{width:18px;height:18px;flex:0 0 auto}
.db-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--db-soon);color:var(--db-soon-t);font-size:10.5px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-style:normal;white-space:nowrap}

/* ---- top bar (phones / tablets) ---- */
.db-mtop{display:flex;align-items:center;gap:10px;padding:12px 14px 12px 10px}
.db-icbtn{position:relative;width:42px;height:42px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--db-line);border-radius:50%;background:#fff;color:var(--db-ink);cursor:pointer;box-shadow:0 1px 2px rgba(28,31,38,.05)}
.db-mtop .db-icbtn:first-child{border:none;background:none;box-shadow:none;width:38px;margin:0 -6px 0 0}
.db-icbtn.db-sm{width:34px;height:34px}
.db-icbtn.db-sm .db-i{width:18px;height:18px}
.db-dot{position:absolute;top:7px;right:8px;width:9px;height:9px;border-radius:50%;background:var(--db-red);box-shadow:0 0 0 2px #fff}
.db-dot[hidden]{display:none}
.db-mlogo{flex:1;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0} /* brand sits beside the menu button (owner request, 19 Nov) */
.db-mark{width:32px;height:32px;color:var(--db-red);flex:0 0 auto}
.db-mlogo span{font-size:15px;line-height:1.06;font-weight:900;color:var(--db-red);letter-spacing:-.01em}
.db-ava{width:42px;height:42px;flex:0 0 auto;border-radius:50%;border:none;background:var(--db-red);color:#fff;font:800 18px/1 var(--font);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px rgba(209,22,30,.28)}

/* ---- desktop header ---- */
.db-head{display:none}

/* ---- popovers (global fixed layer, visible from any screen) ---- */
#dbPops{position:fixed;inset:0;z-index:70;pointer-events:none}
.db-pop{position:fixed;z-index:70;background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);box-shadow:var(--db-sh-lg);pointer-events:auto}
.db-pop[hidden]{display:none}
.db-notif{top:70px;left:12px;right:12px;max-height:70vh;display:flex;flex-direction:column}
.db-notif[hidden]{display:none}
.db-notif-h{display:flex;align-items:center;justify-content:space-between;padding:14px 14px 10px 18px;border-bottom:1px solid var(--db-line-2)}
.db-notif-h b{font-size:16px;font-weight:800}
.db-notif-b{overflow-y:auto;padding:4px 18px 16px}
.db-nlabel{margin:14px 0 2px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--db-red-2)}
.db-nitem{padding:11px 0;border-bottom:1px solid var(--db-line-2)}
.db-nitem:last-child{border-bottom:none}
.db-nitem b{display:block;font-size:14.5px;font-weight:700;color:var(--db-ink)}
.db-nitem p{margin:3px 0 0;font-size:14px;line-height:1.45;color:var(--db-text);white-space:pre-wrap}
.db-nitem span{display:block;margin-top:5px;font-size:12.5px;color:var(--db-mute)}
.db-nitem.is-new b::before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--db-red);margin:0 8px 1px 0}
.db-link{border:none;background:none;color:var(--db-red);font:700 13.5px var(--font);padding:6px 0;cursor:pointer}
.db-empty{margin:16px 0 4px;font-size:14px;line-height:1.5;color:var(--db-mute)}
.db-empty[hidden]{display:none}
.db-acct-menu{top:70px;right:12px;width:210px;padding:6px}
.db-acct-menu button{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:none;border-radius:10px;background:none;color:var(--db-ink);font:600 15px var(--font);cursor:pointer;text-align:left}
.db-acct-menu button:hover{background:var(--db-xp)}
.db-acct-menu .db-i{color:var(--db-red);width:20px;height:20px}

/* ---- welcome banner ---- */
.db-banner{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:18px 16px 18px 18px;border-radius:var(--db-r);background:var(--db-red-grad);color:#fff;box-shadow:0 10px 24px rgba(165,15,21,.22)}
.db-banner::after{content:"";position:absolute;inset:0;background:radial-gradient(420px 220px at 78% 30%,rgba(255,255,255,.10),transparent 70%);pointer-events:none}
.db-bn-text{position:relative;z-index:1;min-width:0}
.db-hello{margin:0;font-size:23px;line-height:1.14;font-weight:800;letter-spacing:-.015em;color:#fff}
#dashHello{text-transform:capitalize}
.db-bn-sub{margin:7px 0 0;font-size:13.5px;line-height:1.4;font-weight:500;color:rgba(255,255,255,.94);max-width:30em}
.db-window{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:12px;font-weight:600;color:rgba(255,255,255,.9)}
.db-window b{font-weight:800;color:#fff}
.db-ring{width:18px;height:18px;flex:0 0 auto;transform:rotate(-90deg)}
.db-ring .rc{fill:none;stroke-width:14;stroke-linecap:round}
#focusArc[stroke="#DC2626"]{stroke:#FFFFFF}
#focusArc[stroke="#D97706"]{stroke:#FFC23D}
.db-bn-art{display:none}
.db-bn-level{position:relative;z-index:1;width:104px;height:104px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}
.db-laurel{position:absolute;inset:0;width:100%;height:100%}
.db-lv{position:relative;text-align:center;line-height:1.15}
.db-lv b{display:block;font-size:15px;font-weight:800;color:#fff}
.db-lv span{display:block;margin-top:2px;font-size:11px;font-weight:500;color:rgba(255,255,255,.95)}

/* ---- performance summary ---- */
.db-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px}
.db-stat{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:12px 6px 11px;border-radius:var(--db-r-sm);border:1px solid transparent;min-width:0}
.db-st-xp{background:var(--db-xp);border-color:var(--db-xp-b)}
.db-st-streak{background:var(--db-st);border-color:var(--db-st-b)}
.db-st-perf{background:var(--db-pf);border-color:var(--db-pf-b)}
.db-st-i{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;flex:0 0 auto}
.db-st-i svg{width:26px;height:26px}
.db-st-t{min-width:0;display:flex;flex-direction:column;align-items:center}
.db-st-t>b{font-size:18px;line-height:1.1;font-weight:800;color:var(--db-ink);white-space:nowrap}
.db-st-t>b small{display:none}
.db-st-t>span{font-size:12.5px;font-weight:500;color:var(--db-text);margin-top:2px}
.db-st-t em{font-style:normal}
.db-wide{display:none}
.db-st-note{font-style:normal;font-size:11px;color:var(--db-mute);margin-top:2px}
.db-st-note:empty{display:none}

/* ---- learning cards ---- */
.db-learn{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-top:12px}
.db-card{position:relative;overflow:hidden;background:var(--db-card);border:1px solid var(--db-line);border-radius:var(--db-r);box-shadow:var(--db-sh);padding:16px 16px 16px}
.db-card-h{display:flex;align-items:flex-start;gap:12px}
.db-hi{width:30px;height:30px;color:var(--db-red);flex:0 0 auto;margin-top:-1px}
.db-card h3{margin:0;font-size:18px;line-height:1.2;font-weight:800;color:var(--db-ink);letter-spacing:-.01em}
.db-card-sub{margin:3px 0 0;font-size:13.5px;line-height:1.4;color:var(--db-text)}
.db-btn{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:42px;margin-top:14px;padding:0 22px;border:none;border-radius:10px;background:var(--db-btn-grad);color:#fff;font:700 15.5px var(--font);cursor:pointer;box-shadow:0 6px 14px rgba(179,17,25,.28)}
.db-btn:hover{filter:brightness(1.05)}
.db-cont-art{display:none}
.db-plan .db-card-h{align-items:center}
.db-plan .db-card-h>div{flex:1;min-width:0}
.db-plan-sub{margin:10px 40px 0 0;font-size:13.5px;line-height:1.45;color:var(--db-text)}
.db-bar{height:9px;margin:12px 40px 0 0;border-radius:999px;background:#EFEAE4;overflow:hidden}
.db-bar span{display:block;height:100%;border-radius:999px;background:var(--db-red)}
.db-plan-link{display:none}
.db-plan-chev{position:absolute;right:14px;top:50%;width:22px;height:22px;margin-top:-11px;color:#B9B2A8}

/* ---- quick access ---- */
.db-quick{margin-top:18px}
.db-sec{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px}
.db-sec h3,.db-ann h3{margin:0;font-size:18px;font-weight:800;color:var(--db-ink);letter-spacing:-.01em}
.db-viewall{display:inline-flex;align-items:center;gap:6px;border:none;background:none;color:var(--db-red);font:700 14.5px var(--font);cursor:pointer;padding:4px 0}
.db-qgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.db-q{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;gap:6px;min-height:92px;padding:13px 4px 10px;background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r-sm);box-shadow:var(--db-sh);color:var(--db-ink);font-family:var(--font);cursor:pointer;min-width:0}
button.db-q:hover{border-color:#F1CACA;box-shadow:0 8px 20px rgba(209,22,30,.10)}
.db-qi{width:30px;height:30px;color:var(--db-red)}
.db-q b{font-size:12.5px;line-height:1.15;font-weight:800}
.db-q>span{display:none}
.db-q .db-tag{height:17px;padding:0 6px;font-size:9px}
.db-q.is-soon{cursor:default;box-shadow:none;background:#FCFBF9}
.db-q.is-soon .db-qi{color:#C9A9A6}
.db-q.is-soon b{color:#555C67}

/* ---- announcements ---- */
.db-ann{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;margin-top:14px;padding:14px 12px 14px 16px;background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);box-shadow:var(--db-sh)}
.db-ann-i{grid-row:1/3;width:30px;height:30px;color:var(--db-red)}
.db-ann h3{font-size:15.5px}
.db-ann-t{grid-column:2;margin:2px 0 0;font-size:13.5px;line-height:1.4;color:var(--db-text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.db-ann-go{grid-column:3;grid-row:1/3;display:inline-flex;align-items:center;gap:6px;border:none;background:none;color:var(--db-ink);font:700 16px var(--font);cursor:pointer;padding:8px 4px}
.db-ann-go[hidden]{display:none}
.db-ann-go span{display:none}
.db-ann-go .db-arr{display:none}
.db-ann-go::after{content:"";width:9px;height:9px;border-right:2.2px solid currentColor;border-bottom:2.2px solid currentColor;transform:rotate(-45deg);margin-right:6px}

/* ---- student navigation: bottom bar (phones / tablets) ---- */
.tabbar{height:72px;padding:0 4px 4px;background:rgba(255,255,255,.97);border-top:1px solid var(--db-line);box-shadow:0 -6px 18px rgba(28,31,38,.05)}
.tabbar .side-brand,.tabbar .tb-curve,.tabbar .tab:not(.tb-m){display:none}
.tabbar .tb-group{display:contents}
.tabbar .tab{gap:4px;color:#4B515C;font-size:12px;font-weight:600}
.tabbar .tab .icon{width:25px;height:25px;color:#454B55}
.tabbar .tab.on{color:var(--db-red)}
.tabbar .tab.on .icon{color:var(--db-red)}
.tabbar .tb-tag{display:none}

/* ---- full menu sheet ---- */
.nav-scrim{position:absolute;inset:0;z-index:80;background:rgba(18,20,26,.45)}
.nav-scrim[hidden],.nav-sheet[hidden]{display:none}
.nav-sheet{position:absolute;left:0;right:0;bottom:0;z-index:81;max-height:86%;display:flex;flex-direction:column;background:#fff;border-radius:22px 22px 0 0;box-shadow:var(--db-sh-lg)}
.ns-h{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px 22px;border-bottom:1px solid var(--db-line-2)}
.ns-h b{font-size:17px;font-weight:800}
.ns-list{overflow-y:auto;padding:8px 10px 22px}
.ns-list .tab{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;padding:12px 12px;border:none;border-radius:12px;background:none;color:var(--db-ink);font:600 15.5px var(--font);cursor:pointer;text-align:left}
.ns-list .tab .icon{width:22px;height:22px;color:var(--db-red)}
.ns-list .tab.on{background:var(--db-xp);color:var(--db-red-2)}
.ns-list .tab .tb-l{flex:1}
.ns-list .tab.is-soon{cursor:default;color:#5D6470}
.ns-list .tab.is-soon .icon{color:#C9A9A6}
.ns-list .tb-tag{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:var(--db-soon);color:var(--db-soon-t);font-size:10.5px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-style:normal}
.ns-list .tb-logout{margin-top:6px;border-top:1px solid var(--db-line-2);border-radius:0 0 12px 12px}

/* ---- tablet ---- */
@media (min-width:640px){
  .db{padding:0 24px}
  .db-mtop{padding:14px 24px 14px 18px}
  .db-banner{grid-template-columns:minmax(0,1fr) auto auto;padding:22px 24px;gap:18px}
  .db-hello{font-size:27px}
  .db-bn-sub{font-size:15px}
  .db-bn-art{display:block;position:relative;z-index:1;width:190px}
  .db-bn-svg{display:block;width:100%;height:auto}
  .db-bn-level{width:124px;height:124px}
  .db-lv b{font-size:17px}
  .db-lv span{font-size:12.5px}
  .db-stats{gap:14px;margin-top:16px}
  .db-stat{flex-direction:row;text-align:left;gap:12px;padding:14px 16px}
  .db-st-i{width:46px;height:46px;border-radius:50%}
  .db-st-xp .db-st-i{background:var(--db-xp-i)}
  .db-st-streak .db-st-i{background:var(--db-st-i)}
  .db-st-perf .db-st-i{background:var(--db-pf-i)}
  .db-st-t{align-items:flex-start}
  .db-st-t>b{font-size:22px}
  .db-st-t>b small{display:inline;font-size:13px;font-weight:800;margin-left:4px}
  .db-wide{display:inline}.db-narrow{display:none}
  .db-st-t>span{font-size:14px}
  .db-learn{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;margin-top:16px}
  .db-card{padding:20px 22px}
  .db-card h3{font-size:20px}
  .db-cont .db-btn{width:auto;display:inline-flex;margin-top:22px}
  .db-cont-art{display:block;position:absolute;right:-6px;bottom:-4px;width:150px;pointer-events:none}
  .db-cont-svg{display:block;width:100%;height:auto}
  .db-cont .db-card-h{padding-right:96px}
  .db-plan-chev{display:none}
  .db-plan-sub,.db-bar{margin-right:0}
  .db-plan-link{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin-top:16px;font-size:15px;font-weight:700;color:#A7A199}
  .db-quick{margin-top:24px}
  .db-sec h3{font-size:20px}
  .db-viewall{display:none}
  .db-qgrid{gap:14px}
  .db-q{min-height:132px;padding:20px 10px 16px;gap:7px}
  .db-qi{width:38px;height:38px}
  .db-q b{font-size:16.5px}
  .db-q>span{display:block;font-size:13px;line-height:1.35;color:var(--db-mute)}
  .db-ann{grid-template-columns:auto auto auto minmax(0,1fr) auto;grid-template-rows:auto;column-gap:16px;padding:16px 22px;margin-top:20px}
  .db-ann-i{grid-row:auto;width:32px;height:32px}
  .db-ann h3{font-size:17.5px;padding-right:16px;border-right:1px solid var(--db-line);line-height:28px}
  .db-ann-t{grid-column:auto;grid-column-start:3;grid-column-end:5;margin:0;font-size:15px;-webkit-line-clamp:1}
  .db-ann-go{grid-column:auto;grid-row:auto;color:var(--db-red);font-size:16px}
  .db-ann-go span,.db-ann-go .db-arr{display:inline-flex}
  .db-ann-go::after{display:none}
}

/* ---- desktop: header, sidebar ---- */
@media (min-width:900px){
  .db-mtop{display:none}
  .phone:not(.is-login) #home>.db{max-width:1140px;padding:0 34px}
  .db-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 0 18px;margin-bottom:24px;border-bottom:1px solid var(--db-line)}
  .db-title{margin:0;font-size:28px;font-weight:800;letter-spacing:-.02em;color:var(--db-ink)}
  .db-head-r{display:flex;align-items:center;gap:18px}
  .db-acct{display:inline-flex;align-items:center;gap:12px;padding:4px 6px 4px 4px;border:none;border-radius:999px;background:none;color:var(--db-ink);font:600 17px var(--font);cursor:pointer;max-width:340px}
  .db-acct .db-ava{width:42px;height:42px;cursor:inherit}
  .db-uname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .db-chev{width:20px;height:20px;color:var(--db-text);flex:0 0 auto}
  .db-notif{top:76px;left:auto;right:0;width:400px;max-height:min(70vh,560px)}
  .db-notif.from-m{top:70px;right:12px}
  .db-acct-menu{top:76px;right:0}
  .db-banner{grid-template-columns:minmax(0,1fr) auto auto;min-height:172px;padding:24px 34px 24px 38px;gap:22px;border-radius:18px}
  .db-hello{font-size:33px}
  .db-bn-sub{font-size:17.5px;margin-top:12px;line-height:1.45;max-width:22em}
  .db-bn-art{width:230px;margin:-10px 0 -14px}
  .db-bn-level{width:168px;height:150px;padding-left:22px;border-left:1px solid rgba(255,255,255,.32)}
  .db-laurel{left:22px;width:calc(100% - 22px)}
  .db-lv b{font-size:20px}
  .db-lv span{font-size:14.5px}
  .db-stats{gap:18px;margin-top:22px}
  .db-stat{padding:18px 20px;gap:16px;border-radius:var(--db-r)}
  .db-st-i{width:56px;height:56px}
  .db-st-i svg{width:30px;height:30px}
  .db-st-t>b{font-size:27px}
  .db-st-t>span{font-size:15.5px}
  .db-learn{gap:22px;margin-top:22px}
  .db-card{padding:22px 24px}
  .db-card h3{font-size:21.5px}
  .db-card-sub{font-size:15px;margin-top:6px}
  .db-cont{min-height:172px}
  .db-btn{height:46px;font-size:16.5px;padding:0 30px}
  .db-cont-art{width:176px}
  .db-quick{margin-top:30px}
  .db-sec{margin-bottom:14px}
  .db-sec h3{font-size:21px}
  .db-qgrid{gap:18px}
  .db-q{min-height:140px;border-radius:14px}
  .db-q b{font-size:18px}
  .db-q>span{font-size:14px}
  .db-ann{margin-top:24px;padding:18px 26px;border-radius:14px}
  .db-ann h3{font-size:19px}
  .db-ann-t{font-size:16px}

  /* the shared sidebar */
  .phone:not(.is-login) .tabbar{width:256px;padding:0 14px 0;overflow-y:auto;overflow-x:hidden;background:#fff;border-right:1px solid var(--db-line);box-shadow:4px 0 24px rgba(28,31,38,.05)}
  .tabbar .side-brand{display:flex;align-items:center;gap:12px;margin:0 -14px;padding:22px 22px 18px;border-bottom:1px solid var(--db-line-2)}
  .tabbar .sb-mark{width:44px;height:44px;color:var(--db-red);flex:0 0 auto}
  .tabbar .side-brand .bwrap{display:flex;flex-direction:column}
  .tabbar .side-brand .bt{font-size:18px;line-height:1.05;font-weight:900;color:var(--db-red);letter-spacing:-.015em}
  .tabbar .side-brand .bs{font-size:11.5px;font-weight:600;color:var(--db-text);margin-top:4px}
  .tabbar .tb-group{display:flex;flex-direction:column;gap:2px;padding:16px 0 14px}
  .tabbar .tb-lower{border-top:1px solid var(--db-line-2);padding-top:14px}
  .tabbar .tab,.tabbar .tab:not(.tb-m){display:flex;flex:0 0 auto;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;width:100%;height:44px;padding:0 14px;border-radius:10px;font-size:15.5px;font-weight:600;color:var(--db-ink);box-shadow:none}
  .tabbar .tab .icon{width:22px;height:22px;color:var(--db-ink)}
  .tabbar .tab:hover{background:#FBF3F2}
  .tabbar .tab.on{background:var(--db-btn-grad);color:#fff;box-shadow:0 6px 14px rgba(179,17,25,.26)}
  .tabbar .tab.on .icon{color:#fff}
  .tabbar .tab .tb-l{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tabbar .tab.is-soon{cursor:default;color:#5D6470}
  .tabbar .tab.is-soon:hover{background:none}
  .tabbar .tab.is-soon .icon{color:#B7A9A6}
  .tabbar .tb-tag{display:inline-flex;align-items:center;height:18px;padding:0 6px;border-radius:999px;background:var(--db-soon);color:var(--db-soon-t);font-size:9.5px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;font-style:normal;white-space:nowrap}
  .tabbar .tb-more{display:none!important}
  .tabbar .tb-logout{margin-top:auto;flex:0 0 auto}
  .tabbar .tb-curve{display:block;flex:0 0 auto;width:calc(100% + 28px);height:78px;margin:6px -14px 0}
  .nav-sheet,.nav-scrim{display:none!important}
}
@media (min-width:900px) and (max-width:1199px){
  .db-bn-art{width:170px}
  .db-bn-level{width:140px;height:132px;padding-left:16px}
  .db-laurel{left:16px;width:calc(100% - 16px)}
  .db-hello{font-size:29px}
  .db-st-t>b{font-size:23px}
  .db-st-i{width:48px;height:48px}
  .db-stat{padding:16px;gap:12px}
  .db-q b{font-size:16px}
}
@media (min-width:900px) and (max-height:760px){
  .tabbar .tab,.tabbar .tab:not(.tb-m){height:38px}
  .tabbar .tb-group{padding:10px 0}
  .tabbar .side-brand{padding:16px 22px 14px}
  .tabbar .tb-curve{height:56px}
}
@media (max-width:359px){
  .db-hello{font-size:20.5px}
  .db-bn-level{width:88px;height:88px}
  .db-lv b{font-size:13px}.db-lv span{font-size:10px}
  .db-st-t>b{font-size:16px}
  .db-q b{font-size:11.5px}
  .tabbar .tab{font-size:11px}
}
/* status tags: short in the sidebar, full in the menu sheet (screen readers always hear the full text) */
.tb-tag-s{display:none}
@media (min-width:900px){
  .tabbar .tb-tag-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tabbar .tb-tag-s{display:inline}
}
/* level badge: the wreath frames the words, never sits under them */
.db-lv{max-width:62%}
@media (min-width:900px){ .db-lv b{font-size:19px} .db-lv span{font-size:13.5px} }
@media (min-width:900px) and (max-width:1199px){ .db-lv b{font-size:16.5px} .db-lv span{font-size:12px} }
@media (max-width:639px){ .db-lv b{font-size:13.5px} .db-lv span{font-size:10px} }
/* sidebar fit: every label shows in full beside its status tag */
@media (min-width:900px){
  .tabbar .tab,.tabbar .tab:not(.tb-m){gap:12px;padding:0 12px;font-size:15px}
  .tabbar .tb-tag{height:17px;padding:0 5px;font-size:9px;letter-spacing:.03em}
}
@media (min-width:1200px){ .db-bn-art{width:262px;margin-right:6px} }
/* plan card: the title never wraps; the tag drops below it when space is short */
.db-plan .db-card-h{flex-wrap:wrap;row-gap:6px}
.db-plan h3{white-space:nowrap}
.db-plan .db-card-h>.db-tag{margin-left:auto}
/* quick tiles on phones use the short tag (screen readers still hear the full text) */
@media (max-width:639px){
  .db-q .tb-tag-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .db-q .tb-tag-s{display:inline}
}
@media (min-width:900px){ .db-notif,.db-acct-menu{right:34px} }
.db-plan .db-card-h>div{flex:1 0 auto;min-width:auto}

/* =====================================================================
   STUDY HUB (Phase 3 — Study page redesign, 19 Nov 2026)
   ===================================================================== */

/* ---- screen shell ---- */
#study{display:flex;flex-direction:column;overflow:hidden}
#study .db-head{padding:24px 34px 18px}

/* ---- subject tabs strip ---- */
.st-tabs{display:flex;gap:8px;padding:14px 14px 0;overflow-x:auto;scrollbar-width:none;flex:0 0 auto}
.st-tabs::-webkit-scrollbar{display:none}
.st-tab{flex:0 0 auto;padding:8px 18px;border-radius:999px;border:1.5px solid var(--db-line);background:#fff;color:var(--db-ink);font:700 14px var(--font);cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.st-tab:hover{background:var(--db-xp)}
.st-tab.is-active{background:var(--db-red);border-color:var(--db-red);color:#fff}

/* ---- scrollable body ---- */
.st-body{flex:1;overflow-y:auto;padding:16px 14px 100px;-webkit-overflow-scrolling:touch}

/* ---- subject progress card ---- */
.st-card{background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);padding:18px 18px 16px;margin-bottom:16px;display:flex;align-items:center;gap:18px}
.st-ring-wrap{flex:0 0 auto;position:relative;width:72px;height:72px}
.st-ring{width:72px;height:72px;transform:rotate(-90deg)}
.st-ring .st-track{fill:none;stroke:var(--db-line-2);stroke-width:7}
.st-ring .st-fill{fill:none;stroke:var(--db-red);stroke-width:7;stroke-linecap:round;transition:stroke-dashoffset .5s cubic-bezier(.4,0,.2,1)}
.st-pct{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:800 15px var(--font);color:var(--db-ink)}
.st-card-info{flex:1;min-width:0}
.st-card-subj{font:800 18px/1.2 var(--font);color:var(--db-ink);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-card-meta{font-size:13px;color:var(--db-text);line-height:1.4}
.st-card-meta b{color:var(--db-ink);font-weight:700}

/* ---- topics list ---- */
.st-topics-label{font:700 12px/1 var(--font);color:var(--db-text);letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
.st-topic{border:1px solid var(--db-line);border-radius:var(--db-r);background:#fff;overflow:hidden;margin-bottom:8px}
.st-topic-hd{display:flex;align-items:center;gap:12px;padding:13px 14px;cursor:pointer;background:none;border:none;width:100%;text-align:left;color:var(--db-ink)}
.st-topic-hd:hover{background:var(--db-xp)}
.st-topic-num{width:28px;height:28px;border-radius:50%;background:var(--db-cream);font:800 13px/28px var(--font);text-align:center;flex:0 0 auto;color:var(--db-ink)}
.st-topic.done .st-topic-num{background:#15803D;color:#fff}
.st-topic-title{flex:1;font:600 14.5px var(--font);line-height:1.3}
.st-topic-count{font-size:12px;color:var(--db-text);flex:0 0 auto}
.st-topic-chev{width:18px;height:18px;color:var(--db-text);flex:0 0 auto;transition:transform .2s}
.st-topic[open] .st-topic-chev{transform:rotate(180deg)}
.st-topic-body{padding:4px 14px 12px 54px;display:none}
.st-topic[open] .st-topic-body{display:block}
.st-lesson{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--db-line-2);cursor:pointer;text-align:left;background:none;border-top:none;border-left:none;border-right:none;width:100%;color:var(--db-ink)}
.st-lesson:last-child{border-bottom:none}
.st-lesson:hover .st-lesson-title{color:var(--db-red)}
.st-lesson-dot{width:8px;height:8px;border-radius:50%;background:var(--db-line);flex:0 0 auto}
.st-lesson.done .st-lesson-dot{background:#15803D}
.st-lesson.in-prog .st-lesson-dot{background:var(--db-red)}
.st-lesson-title{font:500 14px var(--font);line-height:1.35;flex:1}
.st-lesson-tag{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;flex:0 0 auto}
.st-lesson-tag.new-tag{background:#FEF3C7;color:#92400E}
.st-lesson-tag.done-tag{background:#DCFCE7;color:#166534}

/* ---- continue learning + recent lessons ---- */
.st-sec{margin-bottom:16px}
.st-sec-label{font:700 12px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--db-text);margin-bottom:10px}
.st-cl-card{background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);padding:16px 16px;display:flex;align-items:center;gap:14px;cursor:pointer;width:100%;text-align:left;border-left:3px solid var(--db-red)}
.st-cl-card:hover{background:var(--db-cream)}
.st-cl-icon{width:40px;height:40px;border-radius:10px;background:var(--db-red);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.st-cl-icon svg{width:20px;height:20px;color:#fff}
.st-cl-info{flex:1;min-width:0}
.st-cl-subj{font-size:11px;font-weight:700;color:var(--db-red);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.st-cl-title{font:600 14.5px/1.3 var(--font);color:var(--db-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-cl-topic{font-size:12px;color:var(--db-text);margin-top:2px}
.st-cl-arr{width:20px;height:20px;color:var(--db-text);flex:0 0 auto}

.st-recent-list{display:flex;flex-direction:column;gap:1px;background:var(--db-line-2);border:1px solid var(--db-line);border-radius:var(--db-r);overflow:hidden}
.st-ri{display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;cursor:pointer;border:none;width:100%;text-align:left;color:var(--db-ink)}
.st-ri:hover{background:var(--db-cream)}
.st-ri-dot{width:8px;height:8px;border-radius:50%;background:var(--db-line);flex:0 0 auto}
.st-ri.done .st-ri-dot{background:#15803D}
.st-ri-info{flex:1;min-width:0}
.st-ri-subj{font-size:11px;font-weight:700;color:var(--db-text);text-transform:uppercase;letter-spacing:.04em}
.st-ri-title{font:500 13.5px/1.3 var(--font);color:var(--db-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-ri-time{font-size:11.5px;color:var(--db-text);flex:0 0 auto}

/* ---- hub tools strip ---- */
.st-hub{margin-top:16px}
.st-hub .sec-head{margin-top:4px}

/* ---- two-column layout wrapper ---- */
.st-cols{display:block}
.st-col-left,.st-col-right{}

/* ---- desktop subtitle ---- */
.db-subtitle{margin:4px 0 0;font-size:14px;color:var(--db-text);font-weight:400;line-height:1.4}

/* ---- subject tab with icon ---- */
/* ---- subject tabs — mobile: icon+short, desktop: icon+full name ---- */
.st-tab{flex:0 0 auto;display:inline-flex;flex-direction:column;align-items:center;gap:4px;padding:9px 16px 8px;border-radius:var(--db-r);border:1.5px solid var(--db-line);background:#fff;color:var(--db-ink);font:700 12px var(--font);cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s;min-width:60px}
.st-tab:hover{background:var(--db-xp)}
.st-tab.is-active{background:var(--db-red);border-color:var(--db-red);color:#fff}
.st-tab-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.st-tab-icon svg{width:18px;height:18px}
.st-tab-label{font-size:11.5px;font-weight:700;line-height:1}
/* On desktop: show full name, horizontal layout */
@media (min-width:900px){
  .st-tab{flex-direction:row;gap:8px;padding:9px 20px;min-width:0;font-size:14px}
  .st-tab-label{font-size:14px}
  .st-tab-icon svg{width:16px;height:16px}
  /* full name spans replace the short label span */
  .st-tab-fullname{display:inline}
  .st-tab-short{display:none}
}
.st-tab-fullname{display:none}
.st-tab-short{display:inline}

/* ---- subject progress card — ring on right ---- */
.st-card{background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);padding:18px 18px 16px;margin-bottom:16px;display:flex;align-items:center;gap:18px}
.st-card-body{flex:1;min-width:0}
.st-card-subj{font:800 18px/1.2 var(--font);color:var(--db-ink);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-card-meta{font-size:13px;color:var(--db-text);line-height:1.4}

/* ---- topic rows — flat, navigate on click, right chevron ---- */
.st-topic{border:none;border-bottom:1px solid var(--db-line-2);background:#fff;overflow:visible;margin-bottom:0}
.st-topic:first-child{border-top:1px solid var(--db-line-2)}
.st-topic-hd{display:flex;align-items:center;gap:12px;padding:13px 14px;cursor:pointer;background:none;border:none;width:100%;text-align:left;color:var(--db-ink)}
.st-topic-hd:hover{background:var(--db-xp)}
/* active/in-progress topic gets red highlight on mobile */
.st-topic.active .st-topic-hd{background:var(--db-red);color:#fff}
.st-topic.active .st-topic-meta{color:rgba(255,255,255,.75)}
.st-topic.active .st-topic-icon{background:rgba(255,255,255,.2)}
.st-topic.active .st-topic-icon svg{color:#fff}
.st-topic.active .st-topic-chev{color:#fff}
.st-topic-icon{width:28px;height:28px;border-radius:6px;background:var(--db-cream);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.st-topic-icon svg{width:16px;height:16px;color:var(--db-text)}
.st-topic.done .st-topic-icon{background:var(--db-red)}
.st-topic.done .st-topic-icon svg{color:#fff}
.st-topic-info{flex:1;min-width:0}
.st-topic-title{font:600 14px var(--font);line-height:1.3;display:block}
.st-topic-meta{font-size:12px;color:var(--db-text);display:block;margin-top:2px}
/* right-pointing chevron replaces the down-arrow */
.st-topic-chev{width:18px;height:18px;color:var(--db-text);flex:0 0 auto}
/* hide the expand body — topics navigate directly now */
.st-topic-body{display:none!important}

/* topics list wrapper — card border around the whole list */
#stTopics{border:1px solid var(--db-line);border-radius:var(--db-r);overflow:hidden;background:#fff}
#stTopics:empty{border:none}

/* section header with icon */
.st-sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.st-sec-label{font:700 12px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--db-text);display:flex;align-items:center;gap:6px}
.st-sec-label svg{width:14px;height:14px;color:var(--db-red);flex:0 0 auto}
.st-sec-viewall{font:700 12.5px var(--font);color:var(--db-red);text-decoration:none;display:inline-flex;align-items:center;gap:3px}
.st-sec-viewall:hover{opacity:.8}

/* ---- continue learning card — chalkboard thumbnail + Resume pill ---- */
.st-cl-card{background:#fff;border:1px solid var(--db-line);border-radius:var(--db-r);padding:0;display:flex;align-items:center;gap:0;cursor:pointer;width:100%;text-align:left;border-left:3px solid var(--db-red);overflow:hidden}
.st-cl-card:hover{background:var(--db-cream)}
/* chalkboard thumbnail */
.st-cl-thumb{width:88px;height:76px;background:#1f3a2d;flex:0 0 auto;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}
.st-cl-thumb-eq{font:700 13px/1 monospace;color:#a8d5b8;text-align:center;padding:4px;white-space:nowrap}
.st-cl-body{flex:1;min-width:0;padding:12px 14px}
.st-cl-subj{font-size:11px;font-weight:700;color:var(--db-red);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px}
.st-cl-title{font:600 14px/1.3 var(--font);color:var(--db-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:2px}
.st-cl-lesson{font-size:12px;color:var(--db-text)}
/* resume pill — desktop only; mobile shows icon-only circle */
.st-cl-resume{flex:0 0 auto;display:flex;align-items:center;padding:0 14px}
.st-cl-resume-btn{display:inline-flex;align-items:center;gap:6px;background:var(--db-red);color:#fff;border:none;border-radius:999px;padding:7px 14px;font:700 13px var(--font);cursor:pointer;white-space:nowrap}
.st-cl-resume-btn svg{width:14px;height:14px}
/* mobile: icon-only circle */
.st-cl-play-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--db-red);border:none;cursor:pointer;flex:0 0 auto;margin-right:12px}
.st-cl-play-btn svg{width:16px;height:16px;color:#fff}
.st-cl-resume{display:none}
.st-cl-play-btn{display:flex}
@media (min-width:900px){
  .st-cl-resume{display:flex}
  .st-cl-play-btn{display:none}
}

/* ---- recent lessons — inline "Topic – Title" + right checkmark ---- */
.st-recent-list{display:flex;flex-direction:column;gap:1px;background:var(--db-line-2);border:1px solid var(--db-line);border-radius:var(--db-r);overflow:hidden}
.st-ri{display:flex;align-items:center;gap:10px;padding:11px 14px;background:#fff;cursor:pointer;border:none;width:100%;text-align:left;color:var(--db-ink)}
.st-ri:hover{background:var(--db-cream)}
/* play dot on left */
.st-ri-play{width:28px;height:28px;border-radius:50%;border:1.5px solid var(--db-red);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.st-ri-play svg{width:12px;height:12px;color:var(--db-red)}
/* inline title: "Topic – Lesson title" */
.st-ri-line{flex:1;min-width:0;font:500 13.5px/1.3 var(--font);color:var(--db-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-ri-line b{font-weight:600;color:var(--db-ink)}
/* checkmark on right for done */
.st-ri-check{width:20px;height:20px;flex:0 0 auto;display:none}
.st-ri.done .st-ri-check{display:block}
/* keep old dot hidden since we replaced it with play circle */
.st-ri-dot{display:none!important}

/* ---- desktop layout ---- */
@media (min-width:580px){
  .st-tabs{padding:18px 24px 0}
  .st-body{padding:18px 24px 100px}
}
@media (min-width:900px){
  #study .db-head{display:flex;align-items:flex-start}
  .st-tabs{padding:0 34px;margin-top:24px}
  .st-body{padding:20px 34px 80px}
  .st-card{padding:22px 24px 20px;gap:22px}
  .st-ring-wrap{width:84px;height:84px}
  .st-ring{width:84px;height:84px}
  .st-pct{font-size:17px}
  .st-card-subj{font-size:21px}
  .st-cl-card,.st-ri{padding-left:0}
  .st-hub .study-grid{grid-template-columns:repeat(3,1fr)}
  /* Two-column layout */
  .st-cols{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
  .st-cl-thumb{width:96px;height:84px}
}

/* ================================================================
   PRACTICE HUB  (#practicehub)
   ================================================================ */
/* ---- Header ---- */
.ph-hdr{ padding-bottom:0 !important; }
.ph-hdr-top{ display:flex; align-items:center; justify-content:space-between; padding:14px 18px 10px; }
.ph-hdr-title{ font-size:18px; font-weight:900; color:#141821; letter-spacing:-.3px; }
.ph-hdr-sub{ font-size:12.5px; color:#6B7280; font-weight:600; margin-top:1px; }

/* ---- Tabs ---- */
.ph-tabs{ display:flex; align-items:center; gap:0; padding:0 18px; overflow-x:auto; border-top:1px solid var(--line); -ms-overflow-style:none; scrollbar-width:none; }
.ph-tabs::-webkit-scrollbar{ display:none; }
.ph-tab{ display:flex; align-items:center; gap:6px; padding:11px 14px; background:none; border:none; cursor:pointer; font-family:var(--font); font-size:13px; font-weight:700; color:#6B7280; white-space:nowrap; border-bottom:2px solid transparent; transition:color .15s, border-color .15s; }
.ph-tab.on{ color:#D1161E; border-bottom-color:#D1161E; }
.ph-tab-ico{ width:15px; height:15px; flex:0 0 auto; }

/* ---- Panes ---- */
.ph-pane{ display:none; flex:1; min-height:0; overflow-y:auto; }
.ph-pane.active{ display:flex; flex-direction:column; }
.ph-body{ padding:14px 16px 100px; display:flex; flex-direction:column; gap:14px; }

/* ---- Generic card ---- */
.ph-card{ background:var(--white); border-radius:16px; padding:16px; box-shadow:0 2px 8px rgba(20,24,33,.06); }
.ph-card-head{ margin-bottom:14px; }
.ph-card-title{ font-size:14px; font-weight:900; color:#141821; }
.ph-card-sub{ font-size:12px; color:#6B7280; margin-top:2px; }
.ph-section-label{ margin-bottom:12px; }
.ph-card-row-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.ph-revprog-body{ display:flex; align-items:center; gap:18px; margin-top:10px; }
.ph-revprog-stat{ flex:1 1 auto; min-width:0; }
.ph-revprog-num{ font-size:22px; font-weight:900; color:#141821; }
.ph-revprog-label{ font-size:12px; color:#6B7280; margin-top:2px; }
.sp-stat-grid{ display:grid; grid-template-columns:1fr; gap:10px; }
@media (min-width:720px){ .sp-stat-grid{ grid-template-columns:repeat(4,1fr); } }
.sp-stat{ display:flex; align-items:center; gap:12px; }
.sp-ring{ width:72px; height:72px; }
.sp-stat-label{ font-size:12px; color:#6B7280; font-weight:700; }
.sp-stat-num{ font-size:20px; font-weight:900; color:#141821; margin-top:2px; }
.sp-add-form{ display:flex; flex-wrap:wrap; gap:10px; margin-top:10px; }
.sp-add-form .ph-sel{ flex:1 1 140px; border:1.5px solid var(--line); border-radius:10px; padding:10px 12px; font-family:var(--font); font-size:14px; }
.sp-day-row{ padding:10px 0; border-bottom:1px solid var(--line); }
.sp-day-row:last-child{ border-bottom:none; }
.sp-day-head{ font-weight:800; font-size:13px; color:#141821; margin-bottom:6px; }
.sp-block{ display:flex; align-items:center; gap:10px; padding:8px 0; }
.sp-block-time{ font-size:12px; color:#6B7280; width:100px; flex:0 0 auto; }
.sp-block-subj{ flex:1 1 auto; font-weight:700; font-size:14px; }
.sp-block-check{ width:22px; height:22px; border-radius:999px; border:1.5px solid var(--line); background:#fff; cursor:pointer; flex:0 0 auto; }
.sp-block-check.on{ background:var(--green); border-color:var(--green); }
.sp-block-del{ border:none; background:none; color:#9CA3AF; cursor:pointer; font-size:13px; }
.rn-chart{ margin-top:10px; }
.rn-subj-row{ display:flex; align-items:center; gap:12px; padding:9px 0; }
.rn-subj-name{ flex:0 0 140px; font-size:13px; font-weight:700; color:#141821; }
.rn-subj-bar-wrap{ flex:1 1 auto; height:8px; background:#F3F4F6; border-radius:999px; overflow:hidden; }
.rn-subj-bar{ height:100%; background:var(--red); border-radius:999px; }
.rn-subj-pct{ flex:0 0 42px; text-align:right; font-weight:800; font-size:13px; color:#141821; }
.pn-hero{ background:linear-gradient(135deg,#FEF2F2,#FFF); }
.pn-hero-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.pn-hero-name{ font-size:20px; font-weight:900; color:#141821; }
.pn-hero-chip{ margin-top:8px; display:inline-block; }
.pn-id-row{ display:flex; align-items:center; gap:10px; margin-top:14px; font-size:13px; font-weight:700; color:#374151; }
/* Profile doesn't fit the main-content-plus-320px-sidebar grid the other
   pages' .ph-body uses (Examinations, Practice Hub): it's a simple vertical
   stack with its own internal 2-card row, not a main column with a narrow
   sidebar. Without this override, the hero and the Candidate/UTME grid
   landed in the same grid row (that row's height set by the taller one),
   leaving a gap under the shorter hero before the next real row — and the
   Candidate/UTME cards were squeezed into the 320px sidebar track besides. */
/* align-items:stretch undoes the 2-column grid breakpoint's align-items:start
   (meant for that grid's own sidebar track), which otherwise shrinks every
   flex-column .ph-body override below to its tallest/widest child's content
   size instead of the full column width — visible as narrow cards floating
   with empty space beside them on any screen that opts into flex-column. */
#profilenew .ph-body, #studySet .ph-body{ display:flex; flex-direction:column; align-items:stretch; }
.pn-grid{ display:grid; grid-template-columns:1fr; gap:14px; }
@media (min-width:860px){ .pn-grid{ grid-template-columns:1fr 1fr; } .pn-prep-card{ grid-column:1 / -1; } }
@media (min-width:1200px){ .pn-grid{ grid-template-columns:1fr 1fr 1fr; } .pn-prep-card{ grid-column:auto; } }
.pn-grid .ph-card{ min-width:0; }
.pn-field-row{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13px; flex-wrap:wrap; }
.pn-field-row:last-child{ border-bottom:none; }
.pn-field-label{ color:#6B7280; font-weight:700; flex:0 0 auto; }
.pn-field-row span:not(.pn-field-label){ font-weight:700; color:#141821; text-align:right; flex:1 1 auto; min-width:0; white-space:normal; word-break:break-word; }
.pn-edit{ flex:1 1 160px; min-width:0; max-width:220px; text-align:right; }
.pn-prep-sub{ font-size:12px; color:#6B7280; margin-top:2px; }
.stg-pw-form{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
.stg-pw-form input{ border:1.5px solid var(--line); border-radius:10px; padding:11px 12px; font-family:var(--font); font-size:14px; background:var(--white); color:var(--ink); }

/* ---- Start-practice form ---- */
.ph-form{ display:flex; flex-direction:column; gap:12px; }
.ph-field{ display:flex; flex-direction:column; gap:5px; }
.ph-label{ font-size:12px; font-weight:700; color:#374151; }
.ph-sel-wrap{ position:relative; }
.ph-sel{ width:100%; padding:11px 36px 11px 13px; background:#F7F8FA; border:1.5px solid var(--line); border-radius:11px; font-family:var(--font); font-size:14px; font-weight:600; color:#141821; appearance:none; -webkit-appearance:none; cursor:pointer; transition:border-color .15s; }
.ph-sel:focus{ outline:none; border-color:#D1161E; background:#fff; }
.ph-sel-arr{ position:absolute; right:11px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:#9AA3AF; pointer-events:none; }
.ph-start-btn{ margin-top:4px; gap:8px; }

/* ---- Quick practice grid ---- */
.ph-quick-grid{ display:flex; flex-direction:column; gap:0; }
.ph-quick{ display:flex; align-items:center; gap:12px; padding:10px 0; background:none; border:none; border-bottom:1px solid #F0EDE9; cursor:pointer; width:100%; text-align:left; font-family:var(--font); }
.ph-quick:last-child{ border-bottom:none; }
.ph-quick:active{ opacity:.85; }
.ph-quick-ico{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.ph-quick-ico svg{ width:20px; height:20px; }
.ph-quick-info{ flex:1; min-width:0; }
.ph-quick-name{ font-size:13.5px; font-weight:800; color:#141821; }
.ph-quick-desc{ font-size:12px; color:#6B7280; margin-top:1px; }
.ph-quick-arr{ width:16px; height:16px; color:#C4CAD3; flex:0 0 auto; }

/* ---- Recent practice rows ---- */
.ph-row{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:10px 0; background:none; border:none; border-bottom:1px solid #F0EDE9; font-family:var(--font); cursor:pointer; transition:opacity .1s; }
.ph-row:last-child{ border-bottom:none; }
.ph-row:active{ opacity:.8; }
.ph-row-ico{ width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:13px; color:#fff; flex:0 0 auto; }
.ph-row-info{ flex:1; min-width:0; }
.ph-row-name{ font-size:13.5px; font-weight:800; color:#141821; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ph-row-meta{ font-size:11.5px; color:#6B7280; margin-top:1px; }
.ph-row-score{ font-size:13px; font-weight:800; padding:3px 9px; border-radius:20px; flex:0 0 auto; }
.ph-row-score.good{ background:#DCFCE7; color:#15803D; }
.ph-row-score.mid{ background:#FEF3C7; color:#B45309; }
.ph-row-score.bad{ background:#FEE2E2; color:#DC2626; }
.ph-row-arr{ width:15px; height:15px; color:#C4CAD3; flex:0 0 auto; }

/* ---- Revision progress card ---- */
.ph-rev-prog-card{ display:flex; align-items:center; gap:16px; }
.ph-rev-ring-wrap{ position:relative; flex:0 0 80px; width:80px; height:80px; }
.ph-rev-ring{ width:80px; height:80px; }
.ph-rev-pct{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:15px; font-weight:900; color:#141821; }
.ph-rev-info{ flex:1; min-width:0; }
.ph-rev-title{ font-size:15px; font-weight:900; color:#141821; }
.ph-rev-desc{ font-size:12px; color:#6B7280; margin-top:2px; }
.ph-rev-btn{ margin-top:10px; font-size:13px; padding:9px 16px; }

/* ---- Desktop layout (≥580px) ---- */
@media (min-width:580px){
  .ph-body{ padding:18px 24px 100px; }
  .ph-hdr-top{ padding:14px 24px 10px; }
  .ph-tabs{ padding:0 24px; }
  .ph-quick-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .ph-quick{ flex-direction:column; align-items:flex-start; padding:14px; background:#F7F8FA; border-radius:13px; border-bottom:none; }
  .ph-quick:hover{ background:#F0EDE9; }
  .ph-quick-arr{ display:none; }
}
@media (min-width:900px){
  .ph-body{ padding:24px 34px 80px; display:grid; grid-template-columns:1fr 320px; gap:20px; align-items:start; }
  .ph-start-card{ grid-row: span 2; }
  .ph-hdr-top{ padding:16px 34px 10px; }
  .ph-tabs{ padding:0 34px; }
  .ph-tab{ font-size:14px; padding:12px 18px; }
}

/* ================================================================
   PRACTICE RUNNER (#practicerun) — same visual language as the JAMB
   CBT exam room (#cbt.jamb-mode): dark top bar, exam-body/exam-opts,
   bottom exam-bar, persistent desktop side palette / mobile slide-up
   sheet. Untimed, instant per-question marking — a different engine
   (pracXxx in js/app.js), own palette class (.pr-pal) so it never
   couples to #examtake/#practice/#demo's .prac-pal/.exam-pal (see
   test/test-practice-navigation.js's scoping assertion). ============ */
#practicerun .pr-pal{min-width:44px;height:44px;padding:0 8px;border-radius:12px;border:1.5px solid var(--line);background:#fff;font-family:var(--font);font-weight:800;font-size:14px;color:var(--slate);cursor:pointer}
#practicerun .pr-pal.ans{background:#EAF6EF;border-color:var(--green);color:var(--green)}
#practicerun .pr-pal.cur{border-color:var(--red);color:var(--red);box-shadow:0 0 0 2px rgba(220,38,38,.25)}
#practicerun .pr-pal.ans.cur{background:#EAF6EF;color:var(--green);border-color:var(--green);box-shadow:0 0 0 2px rgba(21,128,61,.3)}
#practicerun .pr-side{ display:none; }
#practicerun .pr-top-sub{ font-size:11.5px; color:#cbd2dc; }
@media (min-width:1024px){
  #practicerun .cbt-main{ display:flex; flex:1 1 0; min-height:0; }
  #practicerun .cbt-main .exam-body{ flex:1 1 0; min-width:0; }
  #practicerun .pr-side{
    display:flex; flex-direction:column; gap:10px;
    width:296px; flex:0 0 296px; min-height:0;
    border-left:1px solid var(--line); background:#FBFBFC;
    padding:14px 14px 12px;
  }
  #practicerun .pr-side-head{ font-weight:800; font-size:13px; color:var(--ink); }
  #practicerun .pr-side-grid{ display:grid; grid-template-columns:repeat(6,1fr); gap:7px; overflow-y:auto; align-content:start; padding:2px; }
  #practicerun .pr-side-grid .pr-pal{ width:100%; height:38px; min-width:0; }
  #practicerun .pr-side-legend{ display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:11.5px; color:var(--slate); }
  #practicerun .pr-side-legend .lg{ width:14px; height:14px; border-radius:5px; display:inline-block; border:1.5px solid var(--line); background:#fff; margin-left:8px; }
  #practicerun .pr-side-legend .lg:first-child{ margin-left:0; }
  #practicerun .pr-side-legend .lg.cur{ border-color:var(--red); }
  #practicerun .pr-side-legend .lg.ans{ background:var(--green); border-color:var(--green); }
  #practicerun .pr-side-count{ font-size:12px; font-weight:700; color:var(--slate); }
}

/* ---- Flag for review (JAMB CBT) ---- */
.qn.flag{ background:#FEF3C7; border-color:#D97706; color:#92400E; }
.qn.flag.cur{ box-shadow:0 0 0 2px rgba(217,119,6,.35); }
.qn.flag.ans{ background:#FEF3C7; border-color:#D97706; color:#92400E; }
.cbt-side-legend .lg.flag, .pr-side-legend .lg.flag{ background:#FEF3C7; border-color:#D97706; }
.qpanel-dot.flagged{ background:#D97706; }
.cbt-flag-btn{
  display:flex; align-items:center; justify-content:center; gap:8px;
  width:100%; margin-top:4px; padding:10px 14px; border-radius:12px;
  border:1.5px solid var(--line); background:#fff; color:var(--slate);
  font-family:var(--font); font-size:13.5px; font-weight:700; cursor:pointer;
}
.cbt-flag-btn .icon{ width:16px; height:16px; }
.cbt-flag-btn.on{ background:#FEF3C7; border-color:#D97706; color:#92400E; }
