RezinaLMS-CustomerEnd/packages/features/src/styles.css
kirukib 1fccdc07c9 feat(demo): real payment logos, Vimeo placeholder video, new footer, sample assessments
- Telebirr and CBE Birr logos from ethiopianlogos.com; Visa, Mastercard, PayPal and Zelle
  added as checkout methods with their logos (all simulated in ETB)
- Lessons without an upload play a Vimeo placeholder; progress tracked over the player API
- Footer redesigned: wordmark, short story, instructors, makeup-palette art, link columns
- Multiple-choice assessments: seed quizzes for three courses, quiz page with grading and
  review, results on My progress and in admin (student detail, curriculum tab)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 14:04:37 +03:00

592 lines
53 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Layout: student = quiet single column with Ge'ez titles given room; admin = Logosmental-style sidebar shell, dense tables.
Tokens mirror design/tokens.json (§11.3). Components never use raw colors. */
:root {
--ink: #1D3557; --ink-2: #37627D; --ink-3: #4F7590;
--paper: #FFFFFF; --canvas: #F1FAEE; --mist: #EDF8F8; --line: #D7E5EE;
--accent: #E63946; --accent-ink: #FFFFFF; --accent-soft: #FAD7DA; --accent-hover: #CB1928;
--brand-2: #457B9D; --brand-2-soft: #DCF0F1; --brand-3: #A8DADC;
--success: #2E7D5B; --success-soft: #E3F4EA; --alert: #CB1928; --alert-soft: #FAD7DA; --warn-soft: #FDF1D8;
--info-soft: #DCF0F1; --on-ink: #FFFFFF;
--tone-rose: #FAD7DA; --tone-clay: #F1FAEE; --tone-plum: #D7E5EE; --tone-sand: #DCF0F1; --tone-sage: #CAE9EA; --tone-ink: #C4D4EB;
--f-latin: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
--f-eth: 'Noto Sans Ethiopic', 'Atkinson Hyperlegible', system-ui, sans-serif;
--f-serif: 'Noto Serif Ethiopic', 'Noto Sans Ethiopic', Georgia, serif;
--fs-sm: 14px; --fs-base: 16px; --fs-lg: 20px; --fs-xl: 25px; --fs-2xl: 31px; --fs-3xl: 39px;
--r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
--shadow: 0 1px 2px rgba(29, 53, 87, .06), 0 1px 1px rgba(29, 53, 87, .03);
--shadow-pop: 0 12px 32px rgba(29, 53, 87, .16);
color-scheme: light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
--info-soft: #163637; --on-ink: #0C1623;
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
color-scheme: dark;
}
}
:root[data-theme="dark"] {
--ink: #EDF8F8; --ink-2: #B9E2E3; --ink-3: #88B1CB;
--paper: #0C1623; --canvas: #060B12; --mist: #122035; --line: #1B313E;
--accent: #EB5F6B; --accent-ink: #FFFFFF; --accent-soft: #3A1418; --accent-hover: #F08790;
--brand-2: #6097B9; --brand-2-soft: #163637; --brand-3: #70C3C6;
--success: #5CC08F; --success-soft: #173328; --alert: #F08790; --alert-soft: #3A1418; --warn-soft: #3A321A;
--info-soft: #163637; --on-ink: #0C1623;
--tone-rose: #3A1418; --tone-clay: #1A2E1E; --tone-plum: #1B313E; --tone-sand: #163637; --tone-sage: #1F4446; --tone-ink: #172B46;
color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: var(--fs-base)/1.5 var(--f-latin); -webkit-font-smoothing: antialiased; }
:lang(am), :lang(ti), .eth { font-family: var(--f-eth); line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; text-wrap: balance; font-weight: 700; }
h1:lang(am), h1:lang(ti), h2:lang(am), h2:lang(ti), .serif { font-family: var(--f-serif); line-height: 1.45; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, video { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid transparent; background: var(--ink); color: var(--on-ink); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.12); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); filter: none; }
.btn-quiet { background: transparent; color: var(--ink); padding: 0 10px; min-height: 36px; }
.btn-quiet:hover { background: var(--mist); filter: none; }
.btn-danger { background: var(--alert); color: var(--on-ink); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: var(--fs-sm); }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--mist); }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { border-color: var(--ink-3); outline: none; box-shadow: 0 0 0 3px var(--brand-2-soft); }
.hint { font-size: var(--fs-sm); color: var(--ink-3); }
.err { font-size: var(--fs-sm); color: var(--alert); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.otp { letter-spacing: .5em; font-size: var(--fs-xl); text-align: center; font-variant-numeric: tabular-nums; }
/* ---------- pills, cards ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.pill-ok { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--ink); }
.pill-bad { background: var(--alert-soft); color: var(--alert); }
.pill-info { background: var(--info-soft); color: var(--ink); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.panel { background: var(--mist); border-radius: var(--r-lg); padding: 20px; }
.banner { padding: 12px 16px; border-radius: var(--r-md); background: var(--warn-soft); font-size: var(--fs-sm); }
.banner-bad { background: var(--alert-soft); color: var(--alert); }
.banner-ok { background: var(--success-soft); color: var(--success); }
.empty { padding: 32px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.skel { background: linear-gradient(90deg, var(--mist), var(--line), var(--mist)); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--r-md); }
@keyframes skel { to { background-position: -200% 0; } }
.bar { height: 6px; border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand-2); border-radius: inherit; transition: width .6s ease; }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--on-ink); padding: 12px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-pop); z-index: 50; max-width: calc(100% - 32px); font-weight: 700; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab { background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--ink-3); font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.seg { display: inline-flex; background: var(--mist); border-radius: var(--r-pill); padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: var(--r-pill); cursor: pointer; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.modal-back { position: fixed; inset: 0; background: rgba(16, 20, 31, .5); display: grid; place-items: center; padding: 16px; z-index: 40; }
.modal { background: var(--paper); border-radius: var(--r-lg); padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 16px; }
.feedback-btn { white-space: nowrap; }
@media (max-width: 700px) { .feedback-btn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .feedback-btn { padding: 0; width: 36px; } }
.demo-strip { background: var(--ink); color: var(--on-ink) !important; color: var(--ink); font-size: 12px; text-align: center; padding: 4px 16px; }
/* ---------- student shell ---------- */
.s-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.s-top-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 0; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--accent); display: grid; place-items: center; font-family: var(--f-serif); font-size: 19px; }
.s-nav { display: none; gap: 4px; }
.s-nav button { background: none; border: 0; padding: 8px 12px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; color: var(--ink-2); }
.s-nav button[aria-current="page"] { background: var(--mist); color: var(--ink); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: var(--r-pill); border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--mist); }
.dot { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--alert); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.s-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 120px; display: flex; flex-direction: column; gap: 40px; }
.s-tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: env(safe-area-inset-bottom, 0px); }
.s-tabs button { background: none; border: 0; padding: 8px 2px 10px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.s-tabs button[aria-current="page"] { color: var(--ink); }
.s-tabs button[aria-current="page"] svg { color: var(--ink); background: var(--brand-2-soft); border-radius: var(--r-pill); }
@media (min-width: 900px) { .s-nav { display: flex; } .s-tabs { display: none; } .s-main { padding-bottom: 64px; } }
.lang-select { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 6px 10px; font-size: var(--fs-sm); font-weight: 700; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-h h2 { font-size: var(--fs-xl); }
.hero { display: grid; gap: 32px; padding: 8px 0; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.15fr 1fr; padding: 24px 0 8px; } }
.hero h1 { font-size: clamp(31px, 6vw, 52px); max-width: 16ch; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }
.facts li { list-style: none; display: flex; align-items: center; gap: 8px; }
.facts li svg { color: var(--success); }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-pop); min-width: 0; }
.hero-card .cover { aspect-ratio: 4 / 3; }
.foot { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
.foot-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: var(--fs-sm); color: var(--ink-2); }
.foot-in h3 { font-size: var(--fs-sm); color: var(--ink); margin-bottom: 8px; }
.foot-in .stack-sm button, .foot-in .stack-sm a { text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .foot { padding-bottom: 32px; } }
.hero p.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
.steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--mist); border-radius: var(--r-md); }
.steps li::before { counter-increment: s; content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; }
.pay-logos { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-logo { padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.pay-logo i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
/* course cards */
.cover { position: relative; border-radius: var(--r-md); aspect-ratio: 16 / 10; overflow: hidden; display: flex; align-items: flex-end; padding: 14px; background: var(--tone-ink); max-width: 100%; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover { flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cover .ttl { position: relative; font-family: var(--f-serif); font-weight: 700; font-size: clamp(18px, 2.4vw, 26px); line-height: 1.35; color: var(--ink); opacity: .82; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: 92%; order: 2; }
.cover .pill { position: relative; order: 1; background: var(--paper); }
.cover.has-img .ttl { display: none; }
.tone-rose { background: var(--tone-rose); } .tone-clay { background: var(--tone-clay); } .tone-plum { background: var(--tone-plum); }
.tone-sand { background: var(--tone-sand); } .tone-sage { background: var(--tone-sage); } .tone-ink { background: var(--tone-ink); }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 10px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; }
.ccard h3 { font-size: var(--fs-lg); }
.ccard:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.ccard .meta { font-size: var(--fs-sm); color: var(--ink-3); }
.continue { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); }
.continue .bar { background: rgba(255, 255, 255, .18); }
@media (min-width: 720px) { .continue { grid-template-columns: 260px 1fr; align-items: center; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.chip { flex: none; border: 1px solid var(--line); background: var(--paper); padding: 8px 14px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
/* course page */
.c-hero { display: grid; gap: 24px; }
@media (min-width: 900px) { .c-hero { grid-template-columns: 1fr 360px; align-items: start; } }
.c-hero h1 { font-size: clamp(31px, 5vw, 44px); }
.buybox { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.price { font-size: var(--fs-2xl); font-weight: 700; }
.outcomes { display: grid; gap: 12px; padding: 0; margin: 0; counter-reset: o; }
.outcomes li { list-style: none; display: flex; gap: 12px; align-items: flex-start; }
.outcomes li::before { counter-increment: o; content: counter(o); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: var(--fs-sm); font-weight: 700; }
.journey { display: flex; flex-direction: column; gap: 16px; padding: 0; margin: 0; }
.journey > li { list-style: none; display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.journey .node { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; background: var(--paper); }
.journey .node.done { background: var(--success); border-color: var(--success); color: #fff; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; color: inherit; }
.lesson-row:hover { background: var(--mist); }
.lesson-row[aria-current="true"] { background: var(--info-soft); }
.lesson-row .ic { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--mist); color: var(--ink-2); }
.lesson-row .ic.done { background: var(--success-soft); color: var(--success); }
/* player */
.p-wrap { display: grid; gap: 20px; }
@media (min-width: 1024px) { .p-wrap { grid-template-columns: 340px 1fr; align-items: start; } .p-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; } .p-side-order { order: -1; } }
.screen { position: relative; background: #0C1623; color: #fff; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; }
.screen video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.screen .sim { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 24px; text-align: center; background: radial-gradient(circle at 30% 20%, #29495E, #0C1623 70%); }
.screen .sim h2 { font-family: var(--f-serif); font-size: clamp(22px, 4vw, 36px); color: #fff; }
.screen .sim .muted { color: #B9BFCE; }
.wm { position: absolute; font-size: 12px; color: rgba(255, 255, 255, .28); pointer-events: none; user-select: none; animation: wm 40s linear infinite alternate; font-variant-numeric: tabular-nums; }
@keyframes wm { 0% { left: 6%; top: 10%; } 33% { left: 60%; top: 30%; } 66% { left: 20%; top: 70%; } 100% { left: 70%; top: 80%; } }
.controls { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.controls .row { gap: 6px; }
.controls button, .controls select { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: var(--r-sm); min-height: 36px; min-width: 36px; padding: 0 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: 700; }
.controls select option { color: #000; }
.controls input[type="range"] { width: 100%; accent-color: var(--accent); }
.ring { width: 56px; height: 56px; }
.ring circle { fill: none; stroke-width: 6; }
.ring .bg { stroke: var(--mist); }
.ring .fg { stroke: var(--success); stroke-linecap: round; transition: stroke-dashoffset 1s ease; transform: rotate(-90deg); transform-origin: center; }
.done-flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--success-soft); color: var(--success); font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--ink-2); }
.notif-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.notif-item.unread { }
.notif-item .unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.notif-item .read-dot { width: 10px; flex: none; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }
/* ---------- admin shell (Logosmental structure) ---------- */
.a-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; background: var(--canvas); }
@media (min-width: 1024px) { .a-shell { grid-template-columns: 264px 1fr; } }
.a-side { background: var(--paper); border-right: 1px solid var(--line); padding: 16px 12px; display: none; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.a-side.open { display: flex; position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 35; box-shadow: var(--shadow-pop); }
@media (min-width: 1024px) { .a-side { display: flex; } .a-side.open { position: sticky; width: auto; box-shadow: none; } .a-menu { display: none !important; } }
.a-group { display: flex; flex-direction: column; gap: 2px; }
.a-group-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 10px 4px; font-weight: 700; }
.a-link { display: flex; align-items: center; gap: 12px; padding: 6px 10px; border-radius: var(--r-md); background: none; border: 0; cursor: pointer; text-align: left; font-weight: 700; color: var(--ink-2); width: 100%; position: relative; }
.a-link .tile { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--mist); color: var(--ink-2); flex: none; }
.a-link:hover { background: var(--mist); }
.a-link[aria-current="page"] { background: var(--mist); color: var(--ink); }
.a-link[aria-current="page"] .tile { background: var(--ink); color: var(--on-ink); }
.a-link[aria-current="page"]::after { content: ''; position: absolute; right: 6px; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--ink); }
.a-link .count { margin-left: auto; margin-right: 10px; background: var(--alert); color: #fff; font-size: 11px; border-radius: 9px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 5px; }
.a-me { margin-top: auto; padding: 12px; border-radius: var(--r-md); background: var(--ink); color: var(--on-ink); display: flex; flex-direction: column; gap: 8px; }
.a-me select { background: rgba(255, 255, 255, .12); color: inherit; border: 0; border-radius: var(--r-sm); padding: 6px 8px; font-size: var(--fs-sm); }
.a-me select option { color: #000; }
.a-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 15; }
.a-main { padding: 24px 16px 96px; display: flex; flex-direction: column; gap: 24px; min-width: 0; max-width: 1280px; width: 100%; margin: 0 auto; }
@media (min-width: 720px) { .a-main { padding: 28px 28px 96px; } }
.a-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.a-head .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.a-head h1 { font-size: var(--fs-2xl); }
.a-head p { color: var(--ink-2); }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px 14px 10px; } .stat .val { font-size: var(--fs-xl); } .stat .note { font-size: 12px; } }
.stat { background: var(--paper); border-radius: var(--r-lg); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat .lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.stat .now { white-space: nowrap; }
.stat .val { font-size: var(--fs-2xl); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .note { border-top: 1px solid var(--line); padding-top: 10px; font-size: var(--fs-sm); color: var(--ink-3); }
.stat .note.bad { color: var(--alert); } .stat .note.ok { color: var(--success); }
.stat .now { font-size: 10px; background: var(--mist); color: var(--ink-2); padding: 2px 6px; border-radius: 6px; letter-spacing: .04em; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.filters .field { flex: 1 1 160px; }
.filters .field.search { flex: 2 1 240px; }
.filters .input { min-height: 40px; padding: 8px 10px; background: var(--paper); }
.tbl-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 12px 14px; background: var(--canvas); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--mist); }
.tbl .r { text-align: right; }
.a-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.a-card h2 { font-size: var(--fs-lg); }
.a-grid-2 { display: grid; gap: 16px; }
@media (min-width: 1000px) { .a-grid-2 { grid-template-columns: 1.4fr 1fr; align-items: start; } .a-grid-2.even { grid-template-columns: 1fr 1fr; } }
.chapter-box { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--canvas); }
.lesson-edit { display: grid; gap: 10px; grid-template-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
@media (min-width: 900px) { .lesson-edit { grid-template-columns: 1fr auto; align-items: center; } }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--fs-sm); }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.timeline { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; }
.timeline li { list-style: none; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
.timeline li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); margin-top: 6px; }
.timeline li::after { content: ''; position: absolute; left: 4px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.chart { width: 100%; height: auto; display: block; }
.chart text { fill: var(--ink-3); font-size: 11px; font-family: var(--f-latin); }
.chart .grid { stroke: var(--line); }
.chart .barfill { fill: var(--ink); }
.chart .barfill.hl { fill: var(--accent); }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 3fr auto; gap: 10px; align-items: center; font-size: var(--fs-sm); }
.hbar .track { height: 10px; background: var(--mist); border-radius: var(--r-pill); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--ink); border-radius: inherit; }
.matrix td, .matrix th { text-align: center; } .matrix td:first-child, .matrix th:first-child { text-align: left; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.brand > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.s-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: nowrap; }
@media (max-width: 600px) { .lang-select { max-width: 96px; } .s-top-in { gap: 8px; } .hide-sm { display: none !important; } }
@media (max-width: 380px) { .brand > span:last-child { display: none; } }
/* compact course rows on phones (§11.2: catalog cards are compact; the Continue card stays wide) */
@media (max-width: 599px) {
.grid-cards { grid-template-columns: 1fr; gap: 14px; }
.ccard { display: grid; grid-template-columns: 104px 1fr; gap: 2px 14px; align-items: start; }
.ccard .cover { grid-row: 1 / span 4; aspect-ratio: 1; padding: 8px; }
.ccard .cover .ttl { font-size: 13px; -webkit-line-clamp: 4; }
.ccard .cover .pill { display: none; }
.ccard h3 { font-size: var(--fs-base); }
}
/* curriculum editor: one compact row per lesson */
.lesson-line { display: grid; gap: 8px 10px; grid-template-columns: 28px minmax(0, 1fr) 76px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; }
.lesson-line .tools { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lesson-line .notes { grid-column: 2 / -1; }
@media (min-width: 1100px) { .lesson-line { grid-template-columns: 28px minmax(0, 1fr) 76px auto; } .lesson-line .tools { grid-column: auto; justify-content: flex-end; } }
.lesson-line .input { min-height: 38px; padding: 6px 10px; }
.lesson-line .check { font-size: var(--fs-sm); align-items: center; }
/* audit fixes: no sideways scroll at 360–400px */
@media (max-width: 600px) { .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stat { min-width: 0; } .stat .lbl { flex-wrap: wrap; letter-spacing: .03em; } .stat .lbl span { overflow-wrap: anywhere; } }
@media (max-width: 440px) { .brand > span:last-child { display: none; } .lang-select { max-width: 92px; } }
.cover .ttl { margin-top: auto; }
.hero-card .cover { aspect-ratio: 16 / 10; }
.hero-card .cover .ttl { font-size: clamp(24px, 3.2vw, 36px); }
.ccard .cover { aspect-ratio: 16 / 9; }
@media (max-width: 599px) { .ccard .cover .ttl { display: none; } }
/* touch targets: 40px minimum everywhere, 44px on touch screens */
.btn-sm { min-height: 40px; }
@media (pointer: coarse) { .btn-sm, .controls button, .controls select { min-height: 44px; min-width: 44px; } .lesson-row { min-height: 56px; } }
.pay-logo { gap: 10px; }
/* ================= v3: cleaner shell, landing, course page, sign-in (inspo: e-Learning landing, OnlineLMS, Slothui course) ================= */
:root { --f-head: 'Plus Jakarta Sans', var(--f-latin); --shadow-soft: 0 1px 2px rgba(29, 53, 87, .04), 0 8px 24px rgba(29, 53, 87, .07); --hero-a: #F1FAEE; --hero-b: #DCF0F1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0C1623; --hero-b: #163637; } }
:root[data-theme="dark"] { --shadow-soft: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25); --hero-a: #0C1623; --hero-b: #163637; }
h1:lang(en), h2:lang(en), h3:lang(en), h1:lang(om), h2:lang(om), h3:lang(om), .a-shell h1, .a-shell h2, .brand { font-family: var(--f-head); letter-spacing: -.01em; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: var(--fs-base); }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.card { box-shadow: var(--shadow-soft); border-color: transparent; }
.lesson-row { border-radius: var(--r-sm); }
/* navbar: brand | links | actions */
.s-top { background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.s-top-in { max-width: 1200px; min-height: 64px; padding: 8px 20px; }
.s-nav { margin-left: 24px; }
.s-nav button { padding: 8px 14px; font-weight: 600; color: var(--ink-3); position: relative; }
.s-nav button:hover { color: var(--ink); }
.s-nav button[aria-current="page"] { background: none; color: var(--ink); }
.s-nav button[aria-current="page"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); }
.s-actions { gap: 8px; }
.lang-pick { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-2); cursor: pointer; }
.lang-pick select { border: 0; background: transparent; font-size: var(--fs-sm); font-weight: 700; cursor: pointer; max-width: 120px; padding: 4px 2px; }
.lang-pick:focus-within { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 56px; height: 56px; font-size: var(--fs-lg); background: var(--tone-plum); color: var(--ink); }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 6px; display: flex; flex-direction: column; z-index: 30; }
.menu-head { display: flex; flex-direction: column; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop button { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; text-align: left; font-weight: 600; color: var(--ink-2); }
.menu-pop button:hover { background: var(--mist); color: var(--ink); }
.menu-pop button:last-child { border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); margin-top: 4px; }
@media (max-width: 600px) { .lang-pick { padding: 0 4px 0 10px; } .lang-pick select { max-width: 76px; } }
/* landing */
.s-main { max-width: 1200px; padding-left: 20px; padding-right: 20px; gap: 64px; }
.l-hero { margin: -24px calc(50% - 50vw) 0; padding: 48px max(20px, calc(50vw - 580px)) 72px; background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); }
.l-hero-in { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .l-hero-in { grid-template-columns: 1.05fr 1fr; } }
.l-hero h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.12; max-width: 15ch; }
.l-hero h1:lang(am), .l-hero h1:lang(ti) { line-height: 1.35; }
.l-hero .lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
.eyebrow-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--paper); font-size: var(--fs-sm); font-weight: 700; box-shadow: var(--shadow); }
.eyebrow-pill svg { color: var(--accent); }
.play-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; }
.hero-art { position: relative; padding: 24px 0 24px 24px; }
.hero-frame { position: relative; display: block; width: 100%; border: 0; padding: 10px; background: var(--paper); border-radius: 24px; box-shadow: var(--shadow-pop); cursor: pointer; transform: rotate(1.5deg); }
.hero-frame .cover { aspect-ratio: 4 / 3; border-radius: 16px; padding: 28px; }
.hero-frame .cover .ttl { font-size: clamp(26px, 3.4vw, 40px); }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #1D3557; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding-left: 4px; transition: transform .2s; }
.hero-frame:hover .play-big, .c-screen:hover .play-big { transform: translate(-50%, -50%) scale(1.08); }
.float { position: absolute; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.float-a { left: 0; bottom: 0; align-items: flex-start; } .float-a strong { font-size: var(--fs-xl); line-height: 1; } .float-a span { font-size: 12px; color: var(--ink-3); }
.float-b { right: -8px; top: 0; max-width: 240px; }
.float-b strong { font-size: var(--fs-sm); }
@media (max-width: 600px) { .hero-art { padding: 16px 0 28px; } .float-a { left: -4px; } .float-b { right: 0; } .hero-frame { transform: none; } }
.statbar { margin-top: -104px; position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); padding: 8px; }
@media (min-width: 760px) { .statbar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.statbar > div { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0; }
.statbar strong { display: block; font-size: var(--fs-xl); font-family: var(--f-head); line-height: 1.1; }
.statbar span { font-size: var(--fs-sm); color: var(--ink-3); }
.stat-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-2-soft); color: var(--brand-2) !important; }
.section-c { text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.section-c h2, .section-h h2 { font-size: clamp(25px, 3vw, 34px); }
.section-c p { color: var(--ink-3); max-width: 52ch; }
.section-h { align-items: flex-end; }
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cat-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; text-align: left; padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); cursor: pointer; transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); border-color: transparent; }
.cat-card h3 { font-size: var(--fs-lg); margin-top: 6px; }
.cat-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--ink); }
.cat-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--fs-sm); margin-top: 4px; }
.how-panel { display: grid; gap: 32px; padding: 32px; border-radius: 24px; background: var(--canvas); }
@media (min-width: 900px) { .how-panel { grid-template-columns: 2fr 1fr; align-items: end; } }
.how-panel h2 { font-size: var(--fs-xl); }
.steps { padding: 0; margin: 0; }
.steps li { background: var(--paper); }
.cta-band { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; padding: 36px; border-radius: 24px; background: var(--ink); color: var(--on-ink); }
.cta-band h2 { font-size: var(--fs-xl); } .cta-band p { opacity: .8; }
/* course cards */
.ccard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; gap: 0; transition: box-shadow .2s, transform .2s; }
.ccard:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); border-color: transparent; }
.ccard:hover h3 { text-decoration: none; }
.ccard-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 8px 6px; min-width: 0; }
.ccard .meta { display: flex; gap: 14px; flex-wrap: wrap; }
.ccard .meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ccard-by { font-size: var(--fs-sm); color: var(--ink-2); }
.ccard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); }
.ccard-cta { font-size: var(--fs-sm); font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); }
.ccard:hover .ccard-cta { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (max-width: 599px) {
.ccard { padding: 8px; grid-template-columns: 96px 1fr; gap: 0 12px; }
.ccard .cover { grid-row: auto; }
.ccard-body { padding: 2px 0; gap: 4px; } .ccard-by { display: none; } .ccard-foot { padding-top: 8px; } .ccard-cta { display: none; }
}
/* course page */
.c-page { display: flex; flex-direction: column; gap: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-3); font-size: var(--fs-sm); }
.crumbs button { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink-3); font-weight: 600; display: inline-flex; }
.crumbs button:hover { color: var(--ink); }
.crumbs button[aria-current="page"] { color: var(--ink); }
.c-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .c-layout { grid-template-columns: minmax(0, 1fr) 380px; } .c-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.c-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.c-main h1 { font-size: clamp(30px, 4vw, 42px); }
.c-sub { font-size: var(--fs-lg); color: var(--ink-2); }
.c-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 0; margin: 0; }
.c-meta li { list-style: none; display: flex; gap: 10px; align-items: flex-start; }
.c-meta li > svg { color: var(--ink-3); margin-top: 2px; }
.c-meta strong { display: block; } .c-meta span { font-size: var(--fs-sm); color: var(--ink-3); }
.c-media { border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-soft); overflow: hidden; }
.c-screen { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; background: none; }
.c-screen[disabled] { cursor: default; }
.c-screen .cover { aspect-ratio: 16 / 8; border-radius: 0; padding: 32px; }
.c-screen .cover .ttl { font-size: clamp(28px, 4vw, 48px); }
.c-actions { display: flex; align-items: center; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.c-overview { display: grid; gap: 28px; }
@media (min-width: 760px) { .c-overview { grid-template-columns: 1.3fr 1fr; } }
.c-summary { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 4px 18px; background: var(--canvas); border-radius: var(--r-lg); align-self: start; }
.c-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.c-summary > div:last-child { border-bottom: 0; }
.c-summary dt { display: flex; gap: 8px; align-items: center; color: var(--ink-3); }
.c-summary dd { margin: 0; font-weight: 700; text-align: right; }
.c-side { display: flex; flex-direction: column; gap: 16px; }
.buybox { position: static; }
.c-content { padding: 0; overflow: hidden; }
.c-content-h { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.c-content-h h2 { font-size: var(--fs-lg); }
.ch { border-bottom: 1px solid var(--line); }
.ch:last-child { border-bottom: 0; }
.ch > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; }
.ch > summary::-webkit-details-marker { display: none; }
.ch > summary strong { display: block; }
.ch > summary svg { color: var(--ink-3); transition: transform .2s; flex: none; }
.ch[open] > summary svg { transform: rotate(180deg); }
.ch > summary:hover { background: var(--canvas); }
.ch .lesson-row { padding: 12px 20px; border-radius: 0; }
.ch .lesson-row[aria-current="true"] { box-shadow: inset 3px 0 0 var(--accent); }
.tab-n { margin-left: 6px; background: var(--alert); color: #fff; font-size: 11px; border-radius: 9px; padding: 1px 6px; }
/* sign-in */
.auth { display: grid; width: 100%; max-width: 980px; margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-soft); }
@media (min-width: 860px) { .auth { grid-template-columns: 1fr 1.1fr; min-height: 560px; } }
.auth-side { background: linear-gradient(160deg, #1D3557, #29495E 70%, #457B9D); color: #fff; padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: flex-end; }
.auth-side .logo { margin-bottom: auto; }
.auth-side h2 { font-size: var(--fs-2xl); color: #fff; } .auth-side p { opacity: .8; }
.auth-side .facts { color: rgba(255, 255, 255, .85); flex-direction: column; } .auth-side .facts svg { color: var(--brand-3); }
@media (max-width: 859px) { .auth-side { display: none; } }
.auth-main { padding: 36px clamp(20px, 5vw, 48px); display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.auth-main h1 { font-size: var(--fs-2xl); }
.auth-h2 { font-size: var(--fs-base); color: var(--ink-2); }
.auth-tabs { align-self: flex-start; }
.auth-tabs button { padding: 8px 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: var(--fs-sm); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* admin */
.stats-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (min-width: 1100px) { .stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { box-shadow: var(--shadow-soft); border-color: transparent; }
.a-tabs { gap: 18px; }
.a-tabs .a-card { border: 0; padding: 0; box-shadow: none; }
.a-tabs .a-card > .row-between h2 { display: none; }
.a-tabs .stats .stat { box-shadow: none; border: 1px solid var(--line); }
.a-out { background: rgba(255, 255, 255, .12); color: inherit; }
@media (max-width: 899px) { .l-hero { padding-bottom: 32px; } .statbar { margin-top: -8px; } }
/* ================= v4: Summer Ocean Breeze palette (white base; navy text, red for calls to action, blues for UI state) ================= */
.btn-accent:hover { background: var(--accent-hover); filter: none; }
.logo { display: inline-grid; flex: none; }
.logo svg { display: block; }
.l-hero { position: relative; overflow: hidden; }
.l-hero::before, .l-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.l-hero::before { width: 420px; height: 420px; right: -120px; top: -160px; background: var(--brand-3); opacity: .35; }
.l-hero::after { width: 220px; height: 220px; left: -80px; bottom: -90px; background: var(--accent); opacity: .08; }
.l-hero-in { position: relative; }
.l-hero h1 em { font-style: normal; color: var(--accent); }
.eyebrow-pill { color: var(--ink); }
.play-dot { background: var(--accent); color: #fff; }
.play-big { color: var(--accent); }
.float-a strong { color: var(--accent); }
.facts li svg { color: var(--brand-2); }
.statbar strong { color: var(--ink); }
.cat-card { border-color: var(--line); }
.cat-card:hover .cat-link { color: var(--accent); }
.how-panel { background: var(--canvas); border: 1px solid color-mix(in srgb, var(--brand-3) 40%, transparent); }
.steps li::before { background: var(--accent); color: #fff; }
.pay-logo { background: var(--paper); }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #1D3557, #29495E 60%, #457B9D); color: #fff; }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: #A8DADC; opacity: .18; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.continue { background: linear-gradient(120deg, #1D3557, #29495E); color: #fff; }
.continue .bar > i { background: #A8DADC; }
.a-link[aria-current="page"]::after { background: var(--accent); }
.a-me { background: linear-gradient(160deg, #1D3557, #29495E); color: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.ccard:hover .ccard-cta { background: var(--accent); border-color: var(--accent); color: #fff; }
.a-shell { background: var(--paper); }
.pay-mark { width: 48px; height: 28px; flex: none; display: grid; place-items: center; }
.pay-mark img { width: 48px; height: 28px; object-fit: contain; }
.pay-logo { padding: 8px 14px 8px 10px; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* footer (inspo: Juggle about/footer): wordmark + story left, palette art right, quiet uppercase link columns */
.foot { background: var(--paper); border-top: 1px solid var(--line); margin-top: 48px; padding: 64px 20px calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }
.foot-wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.foot-top { display: grid; gap: 40px; }
@media (min-width: 860px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: end; } }
.foot-story { display: flex; flex-direction: column; min-width: 0; }
.foot-word { font-family: var(--f-head); font-size: clamp(40px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.foot-tag { margin-top: 18px; font-weight: 700; color: var(--ink); }
.foot-desc { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-2); max-width: 42ch; }
.foot-people { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.foot-people strong { display: block; color: var(--ink); }
.foot-people span { font-size: var(--fs-sm); color: var(--ink-3); }
.foot-box { width: 100%; max-width: 340px; justify-self: end; }
.foot-box svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(29, 53, 87, .18)); transition: transform .4s ease; }
.foot-box:hover svg { transform: rotate(-1.5deg) translateY(-4px); }
@media (max-width: 859px) { .foot-box { max-width: 260px; justify-self: start; } }
.foot-cols { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foot-cols h3 { font-family: var(--f-latin); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot-cols button, .foot-cols a, .foot-cols span { display: block; width: fit-content; text-align: left; background: none; border: 0; padding: 5px 0; color: var(--ink); text-decoration: none; cursor: pointer; font-size: var(--fs-base); }
.foot-cols span { cursor: default; color: var(--ink-2); }
.foot-cols button:hover, .foot-cols a:hover { color: var(--accent); }
.foot-cols button[aria-current="true"] { font-weight: 700; }
.foot-base { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.foot-rights { margin-left: auto; letter-spacing: .06em; text-transform: none; }
/* assessments */
.quiz { display: flex; flex-direction: column; gap: 24px; max-width: 760px; width: 100%; margin: 0 auto; }
.quiz-head { display: flex; gap: 16px; align-items: flex-start; }
.quiz-head h1 { font-size: clamp(26px, 3.4vw, 34px); }
.quiz-ic { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--brand-2-soft); color: var(--brand-2); }
.quiz-result { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--r-lg); }
.quiz-result.ok { background: var(--success-soft); } .quiz-result.ok strong { color: var(--success); }
.quiz-result.bad { background: var(--warn-soft); }
.quiz-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.quiz-q fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 0; min-width: 0; background: var(--paper); box-shadow: var(--shadow-soft); }
.quiz-q legend { float: left; width: 100%; display: flex; gap: 12px; align-items: flex-start; font-weight: 700; font-size: var(--fs-lg); line-height: 1.4; margin-bottom: 14px; padding: 0; }
.quiz-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: var(--fs-sm); }
.quiz-opts { clear: both; display: flex; flex-direction: column; gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-opt:hover { border-color: var(--brand-2); }
.quiz-opt:has(input:checked) { border-color: var(--brand-2); background: var(--info-soft); }
.quiz-opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand-2); flex: none; }
.quiz-opt.right, .quiz-opt.right:has(input:checked) { border-color: var(--success); background: var(--success-soft); }
.quiz-opt.wrong, .quiz-opt.wrong:has(input:checked) { border-color: var(--alert); background: var(--alert-soft); }
fieldset[disabled] .quiz-opt { cursor: default; }
.quiz-explain { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--brand-3); background: var(--mist); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-2); }
.quiz-foot { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
@media (min-width: 900px) { .quiz-foot { bottom: 16px; } }
.ch .lesson-row .pill { flex: none; }
.lesson-row .quiz-ok, .lesson-row .quiz-todo { display: block; font-weight: 700; }
.lesson-row .quiz-ok { color: var(--success); } .lesson-row .quiz-todo { color: var(--alert); }