/* Bridge Online High School demo. Editorial serif headings, calm surfaces, a dark focused stage for lessons. */
:root {
  --bg: #f5f3ee; --surface: #ffffff; --surface-2: #faf8f4; --ink: #17201e; --muted: #5b6763; --line: #e2ddd2; --line-2: #ece8df;
  --brand: #0f5546; --brand-2: #0b3f34; --brand-ink: #ffffff; --brand-soft: #e1eee9; --sand: #c08a2e; --sand-soft: #f7ecd6;
  --good: #23784a; --good-soft: #e1f2e7; --bad: #b3261e; --bad-soft: #fbe6e3; --warn: #8a5a00; --warn-soft: #fbf0d9;
  --stage: #0d1513; --stage-panel: #16211e; --stage-line: #2f3f3a; --stage-ink: #eef4f1; --stage-muted: #a5b6b0; --stage-accent: #5cc2a6;
  --shadow: 0 1px 2px rgba(23,32,30,.06), 0 8px 24px rgba(23,32,30,.06);
  --shadow-lg: 0 2px 4px rgba(23,32,30,.06), 0 18px 48px rgba(23,32,30,.12);
  --display: "Fraunces", "Literata", Georgia, serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1513; --surface: #161e1b; --surface-2: #131a18; --ink: #e8ede9; --muted: #a3b0ab; --line: #28332f; --line-2: #222c29;
  --brand: #5cc2a6; --brand-2: #8fd8c3; --brand-ink: #08120f; --brand-soft: #18302a; --sand: #e2b562; --sand-soft: #33291a;
  --good: #72d39b; --good-soft: #17301f; --bad: #ff8f85; --bad-soft: #3a1d1b; --warn: #f0c36a; --warn-soft: #362b16;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 48px rgba(0,0,0,.4);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #161e1b; --surface-2: #131a18; --ink: #e8ede9; --muted: #a3b0ab; --line: #28332f; --line-2: #222c29;
  --brand: #5cc2a6; --brand-2: #8fd8c3; --brand-ink: #08120f; --brand-soft: #18302a; --sand: #e2b562; --sand-soft: #33291a;
  --good: #72d39b; --good-soft: #17301f; --bad: #ff8f85; --bad-soft: #3a1d1b; --warn: #f0c36a; --warn-soft: #362b16;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25); --shadow-lg: 0 18px 48px rgba(0,0,0,.4);
  color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }
main.wrap { padding-block: 28px 64px; outline: none; min-height: 60vh; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0 0 .45em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 .9em; max-width: 70ch; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .3em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--sand); margin: 0 0 8px; display: block; }
.section { margin-top: 48px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head p { margin: 0; }

/* top */
.demo-bar { background: var(--brand-2); color: #e6f2ee; font-size: .8rem; padding: 6px 16px; text-align: center; }
.top { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { font: 600 .88rem var(--body); color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; border: 0; background: none; cursor: pointer; }
.nav a.on, .nav a:hover, .nav button:hover { color: var(--ink); background: var(--brand-soft); }
.nav .lang { border: 1px solid var(--line); margin-left: 4px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem var(--body); padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 28%, transparent); }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brand); }
.btn.sand { background: var(--sand); color: #1b1408; }
.btn.light { background: #fff; color: #0b3f34; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; transform: none; }
.btn:focus-visible, .nav a:focus-visible, .choice:focus-visible, .tab:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; padding: 40px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(1200px 500px at 100% 0%, #1d6b5a 0%, transparent 60%), linear-gradient(135deg, #0b3f34 0%, #0f5546 55%, #145e4e 100%); color: #f1f7f4; box-shadow: var(--shadow-lg); }
.hero > * { min-width: 0; position: relative; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.3rem); }
.hero .eyebrow { color: #e9c27a; }
.hero p.lead { font-size: 1.12rem; color: #cfe3dc; max-width: 52ch; }
.hero-art { width: 100%; height: auto; display: block; }
.hero .chips .chip { background: rgba(255,255,255,.12); color: #e8f3ef; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; font-size: .85rem; color: #bcd6cd; }
.trust b { color: #fff; font-family: var(--display); font-size: 1.35rem; display: block; font-weight: 600; }

.steps-band { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.steps-band > div { padding: 18px; border-right: 1px solid var(--line-2); }
.steps-band > div:last-child { border-right: 0; }
.steps-band .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 10px; }
.steps-band .ico svg { width: 20px; height: 20px; }
.steps-band b { display: block; margin-bottom: 4px; }
.steps-band p { font-size: .86rem; color: var(--muted); margin: 0; }

/* cards & grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; box-shadow: var(--shadow); }
.card h3 { margin: 0; }
.card .grow { flex: 1; }
.ccard { padding: 0; overflow: hidden; transition: transform .15s, box-shadow .15s; text-decoration: none; color: inherit; }
.ccard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ccard .cover { aspect-ratio: 16/7; display: block; position: relative; }
.ccard .cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ccard .cover .badge { position: absolute; left: 14px; top: 14px; }
.ccard .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.meter { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.chip.sand { background: var(--sand-soft); color: var(--warn); }
.chip.good { background: var(--good-soft); color: var(--good); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.gray { background: var(--line-2); color: var(--muted); }
.chip.dark { background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px); }

/* course banner */
.banner { position: relative; border-radius: 22px; overflow: hidden; color: #fff; min-height: 230px; display: flex; align-items: flex-end; box-shadow: var(--shadow-lg); }
.banner > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%); }
.banner .in { position: relative; padding: 28px; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.banner h1 { color: #fff; margin: 0 0 6px; }
.banner p { color: #e9f1ee; margin: 0; }
.banner .crumb, .banner .crumb a { color: #dfeae6; }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.22) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 70px; height: 70px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; font: 600 1.05rem var(--display); color: #fff; text-align: center; line-height: 1.05; }
.ring small { display: block; font: 600 .6rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: #cfe; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 22px; overflow-x: auto; }
.tab { padding: 11px 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab.on { color: var(--ink); border-color: var(--brand); }

/* layout with aside */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.aside { position: sticky; top: 76px; display: grid; gap: 14px; }

/* path */
.path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.path li { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); margin: 0; position: relative; }
.path li:last-child { border-bottom: 0; }
.path .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: .85rem; background: var(--surface); }
.path .dot svg { width: 16px; height: 16px; }
.path li.done .dot { background: var(--good); border-color: var(--good); color: #fff; }
.path li.now .dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.path li.lock { opacity: .55; }
.path b { display: block; }
.path .sub { font-size: .85rem; color: var(--muted); }

/* unit list */
.ulist { display: grid; gap: 12px; }
.urow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.urow:hover { border-color: var(--brand); transform: translateY(-1px); }
.urow .n { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--sand); text-align: center; line-height: 1; }
.urow .n small { display: block; font: 700 .6rem var(--body); letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.urow h3 { margin: 0 0 4px; }
.pips { display: flex; gap: 4px; margin-top: 8px; }
.pips i { height: 6px; flex: 1; max-width: 48px; border-radius: 4px; background: var(--line-2); }
.pips i.on { background: var(--good); }
.urow.locked { opacity: .6; }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 18px; box-shadow: var(--shadow); }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel textarea, .panel input[type=text], .panel select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 1rem var(--body); }
.panel textarea { min-height: 200px; resize: vertical; }
.panel textarea:focus, .panel input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 16px; }
.kv dt { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.kv dd { margin: 0; }
.vocab { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.vocab div { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.vocab b { display: block; font-family: var(--display); }
.vocab span { font-size: .9rem; color: var(--muted); }
.eq { font-family: var(--display); font-size: 1.12rem; border-left: 3px solid var(--sand); padding: 4px 0 4px 14px; margin: 0 0 10px; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--brand); }

/* lesson stage */
.stage-wrap { background: var(--stage); border-radius: 18px; padding: 14px; color: var(--stage-ink); box-shadow: var(--shadow-lg); }
.stage { position: relative; aspect-ratio: 16/9; width: 100%; background: #000; border-radius: 10px; overflow: hidden; }
.stage .vid, .stage .vid iframe, .stage .vid > div { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.asking { aspect-ratio: auto; background: var(--stage-panel); }
.stage.asking .vid { visibility: hidden; }
.overlay { position: absolute; inset: 0; background: rgba(9,14,12,.94); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 5; }
.stage.asking .overlay { position: relative; inset: auto; min-height: inherit; background: var(--stage-panel); }
.qcard { width: min(680px, 100%); }
.qcard .tag { color: var(--stage-accent); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qcard .q { font-size: 1.15rem; margin: 6px 0 14px; color: #fff; }
.qcard h3 { color: #fff; }
.qcard ul { color: var(--stage-muted); }
.choices { display: grid; gap: 8px; }
.choice { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--stage-line); background: #111b18; color: var(--stage-ink); font: 1rem var(--body); cursor: pointer; display: flex; gap: 10px; align-items: flex-start; }
.choice .k { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--stage-line); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--stage-muted); }
.choice.sel { border-color: var(--stage-accent); background: #1c3a33; }
.choice.sel .k { background: var(--stage-accent); color: #08120f; border-color: var(--stage-accent); }
.choice.right { border-color: #6fd29a; background: #173524; }
.choice.wrong { border-color: #ff8f85; background: #3a1d1b; }
.choice:disabled { cursor: default; }
.stage-wrap input[type=text], .stage-wrap textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--stage-line); background: #0a110f; color: var(--stage-ink); font: 1.05rem var(--body); }
.stage-wrap textarea { min-height: 130px; resize: vertical; }
.fb { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; display: none; }
.fb.good { display: block; background: #15301f; color: #b9f0cb; }
.fb.bad { display: block; background: #3a1d1b; color: #ffd0ca; }
.fb.info { display: block; background: #1d2a40; color: #cfe0ff; }
.note { font-size: .8rem; color: var(--stage-muted); margin-top: 6px; }
.stage-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--stage-muted); margin-top: 10px; }
.stage-meta b { color: var(--stage-ink); }
.bar { position: relative; height: 8px; background: var(--stage-line); border-radius: 5px; margin-top: 12px; }
.bar > i { display: block; height: 100%; width: 0; background: var(--stage-accent); border-radius: 5px; transition: width .3s; }
.bar .mk { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #e2b562; border: 2px solid var(--stage); }
.bar .mk.done { background: #6fd29a; }
.bar .mk.miss { background: #ff8f85; }
.btn.on-dark { background: var(--stage-accent); color: #08120f; }
.btn.ghost-dark { background: transparent; color: var(--stage-ink); border-color: var(--stage-line); }
.btn.warn-dark { background: #e2b562; color: #1b1408; }
.qlist { list-style: none; padding: 0; margin: 0; }
.qlist li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .9rem; margin: 0; }
.qlist li:last-child { border-bottom: 0; }
.qlist .qn { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .78rem; color: var(--muted); }
.qlist li.done .qn { background: var(--good); color: #fff; }
.qlist li.miss .qn { background: var(--bad); color: #fff; }
.lsteps { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.lstep { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--muted); background: var(--surface); text-decoration: none; }
.lstep.on { border-color: var(--brand); color: var(--brand); font-weight: 700; background: var(--brand-soft); }
.lstep.done { background: var(--good-soft); color: var(--good); border-color: transparent; }

/* guided notes */
.gnotes .big { font-family: var(--display); font-size: 1.1rem; }
.gnotes ol { padding-left: 1.2em; }
.gnotes li { margin-bottom: 10px; }
.blank { display: inline-block; border: 0; border-bottom: 2px solid var(--brand); background: var(--brand-soft); color: var(--ink); font: inherit; padding: 0 6px; border-radius: 4px 4px 0 0; min-width: 4ch; }
.blank.ok { border-color: var(--good); background: var(--good-soft); }
.blank.no { border-color: var(--bad); background: var(--bad-soft); }
.example { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.example ol { margin: 8px 0 0; }

/* tests and practice */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td.num, th.num { font-variant-numeric: tabular-nums; text-align: right; }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.timer { font-family: var(--display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--bad); }
.qtest { border-top: 1px solid var(--line-2); padding-top: 16px; margin-top: 16px; }
.qtest .choices .choice, .pq .choices .choice { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.qtest .choices .choice .k, .pq .choices .choice .k { border-color: var(--line); color: var(--muted); }
.qtest .choices .choice.sel, .pq .choices .choice.sel { background: var(--brand-soft); border-color: var(--brand); }
.qtest .choices .choice.sel .k, .pq .choices .choice.sel .k { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pq .choices .choice.right { background: var(--good-soft); border-color: var(--good); }
.pq .choices .choice.wrong { background: var(--bad-soft); border-color: var(--bad); }
.qtest input[type=text], .pq input[type=text] { max-width: 260px; }
.pq .fbx { margin-top: 12px; padding: 10px 12px; border-radius: 10px; }
.pq .fbx.good { background: var(--good-soft); color: var(--good); }
.pq .fbx.bad { background: var(--bad-soft); color: var(--bad); }
.dots { display: flex; gap: 6px; flex-wrap: wrap; }
.dots i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.dots i.on { background: var(--good); }
video.rec { width: 100%; max-width: 480px; border-radius: 12px; background: #000; aspect-ratio: 4/3; }
.callout { border-left: 4px solid var(--sand); background: var(--sand-soft); padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 14px 0; }
.callout.good { border-color: var(--good); background: var(--good-soft); }
.callout.bad { border-color: var(--bad); background: var(--bad-soft); }
.callout.info { border-color: var(--brand); background: var(--brand-soft); }
.rubric th:first-child { width: 18%; }
.rubric td { font-size: .86rem; }
.rubric select { width: auto !important; }
.foot { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: .85rem; background: var(--surface-2); }
.crumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: inherit; }
.letter { font-family: var(--display); font-size: 2.6rem; font-weight: 600; line-height: 1; }
.big-num { font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; display: block; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.feature > * { min-width: 0; }
.howgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.howgrid .card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.howgrid .card .ico svg { width: 22px; height: 22px; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
  .steps-band { grid-template-columns: 1fr 1fr; }
  .steps-band > div { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 18px; }
  .grid.two { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .urow { grid-template-columns: 40px minmax(0, 1fr); }
  .urow > .go { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr; }
  .banner .in { padding: 20px; }
  .path li { grid-template-columns: 36px 1fr; }
  .path li > :last-child { grid-column: 2; }
  .stage-wrap { padding: 10px; border-radius: 14px; }
  .overlay { padding: 14px; }
  .qcard .q { font-size: 1.05rem; }
  .steps-band { grid-template-columns: 1fr; }
}
@media print {
  .top, .demo-bar, .foot, .noprint, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; border: 1px solid #ccc; }
  .blank { background: none; color: transparent; border-bottom: 1px solid #000; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .btn:hover, .ccard:hover, .urow:hover { transform: none; } }

/* fixes */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn { white-space: nowrap; }
.gnotes .blank, .panel input.blank { width: auto; display: inline-block; padding: 0 6px; border: 0; border-bottom: 2px solid var(--brand); border-radius: 4px 4px 0 0; background: var(--brand-soft); font: inherit; min-width: 5ch; max-width: 100%; }
.gnotes .blank.ok { border-color: var(--good); background: var(--good-soft); }
.gnotes .blank.no { border-color: var(--bad); background: var(--bad-soft); }
.checks li::before { content: "\2713"; border: 0; background: var(--brand-soft); color: var(--brand); font-size: .72rem; font-weight: 800; display: grid; place-items: center; width: 18px; height: 18px; top: 3px; border-radius: 50%; }
.urow .chip { white-space: normal; }
.split.under-banner { margin-top: 24px; }
.split.under-banner .panel:first-child { margin-top: 0; }
@media (max-width: 760px) {
  .top { position: static; }
  .top-in { padding: 8px 16px 0; gap: 4px; }
  .nav { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 4px 12px 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button { white-space: nowrap; }
  .demo-bar { font-size: .72rem; padding: 4px 12px; }
  .hero h1 { font-size: 2rem; }
  .banner { min-height: 190px; }
  .ring { width: 70px; height: 70px; } .ring span { width: 56px; height: 56px; font-size: .9rem; }
}
.qtimer { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.qt-track { flex: 1; height: 6px; border-radius: 4px; background: var(--stage-line); overflow: hidden; min-width: 90px; }
.qt-track i { display: block; height: 100%; width: 100%; background: #e2b562; transition: width .25s linear; }
.qtimer.low .qt-track i { background: #ff8f85; }
.qtimer.low .qt-label { color: #ffb4ab; }
.qt-label { font: 600 .85rem var(--body); color: var(--stage-ink); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.qtimer.done { opacity: .35; }
.stage-wrap input:disabled, .stage-wrap textarea:disabled { opacity: .7; }
.qcard { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qcard input, .qcard textarea { -webkit-user-select: text; user-select: text; }
.qcard.veiled > *:not(.fb) { filter: blur(9px); pointer-events: none; }
.qcard.veiled::after { content: "Question hidden while you were away. Come back to this page to keep answering. The timer is still running."; display: block; color: #ffd8a8; font-weight: 600; margin-top: 10px; }
.so-panel { position: relative; border-color: color-mix(in srgb, var(--sand) 45%, var(--line)); }
.so-panel.locked .so-list { filter: blur(5px); pointer-events: none; }
.so-panel.locked::after { content: "Somali help is closed while a question is open."; position: absolute; left: 50%; top: 60%; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); }
.so-list { display: grid; gap: 8px; }
.so-seg { border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--surface-2); }
.so-seg.now { border-color: var(--sand); }
.so-seg.ahead { opacity: .8; }
.so-text { margin-top: 10px; }
.so-text p[lang=so] { font-size: 1.02rem; }
/* records: transcript and certificate */
.doc { position: relative; background: #fffdf8; color: #1b1b1b; border: 1px solid #d8d0bf; border-radius: 6px; padding: 36px 40px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 900px; margin: 0 auto; font-size: .92rem; }
.doc h4 { font-family: var(--display); font-size: 1rem; margin: 18px 0 6px; border-bottom: 1px solid #d8d0bf; padding-bottom: 4px; }
.doc table { font-size: .85rem; } .doc th, .doc td { border-color: #e7e0d0; padding: 6px; }
.doc .wm { position: absolute; inset: 0; display: grid; place-items: center; font: 700 7rem var(--display); color: rgba(160, 40, 30, .07); transform: rotate(-24deg); pointer-events: none; letter-spacing: .1em; }
.doc-head { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center; border-bottom: 3px double #b8a98a; padding-bottom: 14px; }
.doc .seal { width: 70px; height: 70px; color: #8a6d2f; }
.doc-school { font: 600 1.5rem var(--display); color: #0f3d33; }
.doc-title { font: 600 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: #8a6d2f; text-align: right; }
.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.doc dl { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin: 0; } .doc dt { color: #6b6455; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; } .doc dd { margin: 0; font-weight: 600; }
.doc-foot { display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: end; margin-top: 34px; }
.doc .sig { border-bottom: 1px solid #333; height: 34px; margin-bottom: 4px; }
.vcode { font: 700 1rem ui-monospace, Menlo, monospace; letter-spacing: .15em; color: #0f3d33; }
.cert { max-width: 980px; aspect-ratio: 11/8.5; padding: 22px; }
.cert-in { border: 2px solid #b8a98a; outline: 6px double #d8cba8; outline-offset: -14px; height: 100%; padding: 40px 48px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.cert-in p { max-width: none; margin: 4px 0; }
.cert .seal { width: 84px; height: 84px; }
.cert-k { font: 600 .85rem var(--body); letter-spacing: .2em; text-transform: uppercase; color: #8a6d2f; }
.cert-name { font: 600 clamp(1.8rem, 4vw, 2.8rem) var(--display); color: #0f3d33; border-bottom: 1px solid #b8a98a; padding: 0 30px 4px; margin: 6px 0; }
.cert-course { font: 600 1.5rem var(--display); }
.cert .doc-foot { width: 100%; text-align: left; margin-top: 24px; }
.cert.preview .cert-in { opacity: .75; }
@media (max-width: 760px) { .doc { padding: 20px 16px; } .doc-head { grid-template-columns: 50px 1fr; } .doc-title { grid-column: 1 / -1; text-align: left; } .doc-grid, .doc-foot { grid-template-columns: 1fr; } .doc dl { grid-template-columns: 120px 1fr; } .cert { aspect-ratio: auto; } .cert-in { padding: 28px 16px; } }
@media print { .doc { box-shadow: none; border: 0; max-width: none; } .cert { aspect-ratio: auto; height: 7.4in; } @page { margin: .5in; } main.wrap { padding: 0; } .callout { display: none; } }
.doc table { table-layout: fixed; } .doc th:nth-child(1), .doc td:nth-child(1) { width: 34%; } .doc th:nth-child(2), .doc td:nth-child(2) { width: 24%; } .doc-grid table td:nth-child(1) { width: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 0 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stat b { font: 600 1.5rem var(--display); font-variant-numeric: tabular-nums; }
.panel .stats .stat { background: var(--surface-2); }
.meter { display: block; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0; }
.fld { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.fld span { color: var(--muted); }
.fld input, .fld select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 1rem var(--body); }
.pickc { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.pickc.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.thread { display: grid; gap: 8px; margin-bottom: 12px; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); }
.bubble.me { justify-self: end; background: var(--brand-soft); border-color: transparent; }
