:root {
  --blue: #0b3d91;
  --blue-deep: #06275f;
  --blue-ink: #112d57;
  --blue-soft: #eaf2ff;
  --blue-pale: #f5f8ff;
  --gold: #f5b800;
  --gold-soft: #fff4c9;
  --red: #d62828;
  --red-soft: #fff0ef;
  --green: #2d9661;
  --mint: #e7f8ef;
  --ink: #172b4d;
  --ink-soft: #50647f;
  --ink-muted: #71819a;
  --line: #dfe7f2;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-soft: #f7faff;
  --shadow-sm: 0 7px 18px rgba(16, 51, 100, .08);
  --shadow-md: 0 18px 40px rgba(16, 51, 100, .12);
  --shadow-lg: 0 28px 70px rgba(6, 39, 95, .18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 34px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --container: 1180px;
  color-scheme: light;
}

body[data-theme='dark'] {
  --blue-soft: #112c5a;
  --blue-pale: #0d1e38;
  --ink: #edf4ff;
  --ink-soft: #bdcae0;
  --ink-muted: #8ea0bd;
  --line: #263a59;
  --surface: #0d1d35;
  --surface-raised: #132745;
  --surface-soft: #10223e;
  --mint: #102d29;
  --gold-soft: #3a3116;
  --red-soft: #3a1e27;
  --shadow-sm: 0 7px 18px rgba(0, 0, 0, .15);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, .2);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--surface-soft); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.65; transition: background .2s ease, color .2s ease; }
body, button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { border: 0; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(245, 184, 0, .35); }
:focus-visible { outline: 3px solid rgba(245, 184, 0, .9); outline-offset: 3px; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -50px; left: 16px; padding: 10px 14px; background: var(--gold); color: var(--blue-deep); border-radius: 8px; font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-heading); line-height: 1.16; letter-spacing: -.035em; }
h1 { font-size: clamp(2.45rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--blue); font-family: var(--font-heading); font-size: .68rem; font-weight: 800; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.eyebrow.light { color: rgba(255, 255, 255, .72); }
.section-intro p, .section-heading-row p, .hero-lede, .page-hero p { color: var(--ink-soft); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; font-size: .82rem; }
.text-link:hover { color: var(--red); }
.light-link { color: var(--gold); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 17px; border-radius: 11px; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-deep); }
.button-gold { background: var(--gold); color: var(--blue-deep); }
.button-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--blue); }
.button-quiet { background: transparent; color: var(--ink-soft); }
.button.disabled { opacity: .5; pointer-events: none; }
.buttonless { border: 0; background: none; padding-inline: 0; }

.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.header-top { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-deep); }
body[data-theme='dark'] .brand { color: #fff; }
.brand-mark { position: relative; display: inline-grid; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 14px; background: var(--blue); box-shadow: 0 8px 18px rgba(11, 61, 145, .2); }
.brand-orbit { position: absolute; width: 29px; height: 17px; border: 2px solid var(--gold); border-radius: 50%; transform: rotate(-34deg); }
.brand-core { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 184, 0, .18); }
.brand-word { display: flex; flex-direction: column; font-family: var(--font-heading); font-size: 1.28rem; font-weight: 800; line-height: 1; letter-spacing: -.05em; }
.brand-word > span { color: var(--red); }
.brand-word small { margin-top: 4px; color: var(--ink-muted); font-family: var(--font-body); font-size: .49rem; font-weight: 700; letter-spacing: .02em; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.search-box { position: relative; display: flex; align-items: center; gap: 8px; width: min(300px, 36vw); min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink-muted); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .8rem; }
.search-box input::placeholder { color: var(--ink-muted); }
.search-box kbd { padding: 2px 5px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-muted); font-size: .65rem; }
.search-box.large { width: 100%; min-height: 52px; padding-inline: 16px; background: var(--surface); }
.search-box.large input { font-size: .88rem; }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink-soft); transition: color .18s, background .18s, transform .18s; }
.icon-button:hover { color: var(--blue); background: var(--blue-soft); transform: translateY(-1px); }
.icon-button.ghost { width: 32px; height: 32px; border: 0; background: transparent; }
.icon-button.ghost.is-saved, .saved-button { color: var(--red); }
.mobile-menu { display: none; }
.desktop-nav { display: flex; align-items: center; gap: 27px; min-height: 47px; }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 11px 0 15px; color: var(--ink-muted); font-size: .77rem; font-weight: 700; }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--blue); }
.desktop-nav a.active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); content: ''; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.search-results { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; width: min(380px, 80vw); padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); box-shadow: var(--shadow-md); }
.search-results a { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 9px; }
.search-results a:hover { background: var(--blue-soft); }
.search-results a > span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.search-results strong, .search-results small { display: block; }
.search-results strong { font-size: .77rem; }
.search-results small { margin-top: 2px; color: var(--ink-muted); font-size: .66rem; line-height: 1.35; }
.search-empty { padding: 16px; color: var(--ink-muted); font-size: .76rem; }

.hero-section { overflow: hidden; background: var(--blue); color: #fff; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 492px; gap: 60px; }
.hero-copy { position: relative; z-index: 1; padding: 66px 0 78px; }
.hero-copy h1 { max-width: 650px; color: #fff; }
.hero-copy h1 span { color: var(--gold); }
.hero-lede { max-width: 575px; margin: 23px 0 30px; color: rgba(255, 255, 255, .78); font-size: 1rem; }
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 11px; margin-top: 42px; color: rgba(255, 255, 255, .84); }
.hero-proof strong, .hero-proof small { display: block; }
.hero-proof strong { font-size: .72rem; }
.hero-proof small { margin-top: 3px; color: rgba(255, 255, 255, .58); font-size: .7rem; }
.avatar-stack { display: inline-flex; align-items: center; }
.avatar-stack i { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -7px; border: 2px solid var(--blue); border-radius: 50%; background: var(--gold); color: var(--blue-deep); font-size: .61rem; font-style: normal; font-weight: 800; }
.avatar-stack i:first-child { margin-left: 0; background: var(--red); color: #fff; }
.avatar-stack i:nth-child(2) { background: #79d2a0; }
.hero-art { position: relative; min-height: 420px; }
.hero-glow { position: absolute; top: 50%; left: 50%; width: 305px; height: 305px; transform: translate(-50%, -49%); border-radius: 50%; background: rgba(245, 184, 0, .14); filter: blur(2px); }
.hero-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(255, 255, 255, .23); border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-one { width: 360px; height: 190px; }
.orbit-two { width: 455px; height: 280px; transform: translate(-50%, -50%) rotate(58deg); border-color: rgba(245, 184, 0, .42); }
.hero-cell { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 188px; height: 188px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.5); border-radius: 47% 53% 52% 48%; background: radial-gradient(circle at 35% 28%, #a9dbff, #488bc9 47%, #175098 100%); color: #e7f5ff; box-shadow: 0 0 0 15px rgba(105, 173, 233, .14), 0 30px 80px rgba(0, 0, 0, .22); }
.hero-cell .icon { opacity: .93; }
.hero-cell-dot { position: absolute; top: 45px; right: 47px; width: 17px; height: 17px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(245, 184, 0, .22); }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255, 255, 255, .1); color: #fff; font-size: .67rem; font-weight: 700; backdrop-filter: blur(8px); }
.chip-dna { top: 68px; right: 6%; }
.chip-leaf { bottom: 102px; left: 4%; }
.chip-microscope { right: 1%; bottom: 37px; }
.hero-caption { position: absolute; right: 13%; bottom: 0; display: grid; gap: 2px; padding: 12px 16px; border-left: 2px solid var(--gold); background: rgba(4, 26, 65, .33); }
.hero-caption strong { font-size: .7rem; }
.hero-caption span { color: rgba(255,255,255,.62); font-size: .63rem; }

.class-strip { display: grid; grid-template-columns: .74fr 1.26fr; align-items: end; gap: 48px; padding: 72px 0 32px; }
.class-strip h2 { margin-bottom: 9px; }
.class-strip p { max-width: 370px; }
.class-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.class-tab { display: grid; gap: 7px; min-height: 124px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border .18s; }
.class-tab:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.class-tab .icon { align-self: end; color: var(--blue); }
.class-tab > span:nth-child(2) { color: var(--ink-soft); font-size: .7rem; font-weight: 700; }
.class-tab-label { color: var(--blue); font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; }
.class-ss2 .class-tab-label { color: #af7e00; }
.class-ss3 .class-tab-label { color: var(--red); }
.home-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 28px 0 72px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.stat-card span:not(.stat-icon) { grid-column: 2; color: var(--ink-muted); font-size: .68rem; }
.stat-card strong { align-self: end; color: var(--ink); font-family: var(--font-heading); font-size: 1.2rem; line-height: 1; }
.stat-icon { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.stat-icon.gold { background: var(--gold-soft); color: #a87500; }
.stat-icon.coral { background: var(--red-soft); color: var(--red); }
.stat-icon.blue { background: #e7f3fb; color: #247ba0; }
.topic-section, .saved-section { padding-bottom: 78px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading-row h2 { margin-bottom: 8px; }
.section-heading-row p { margin: 0; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.topic-card { position: relative; display: flex; flex-direction: column; min-height: 258px; overflow: hidden; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.topic-card:hover { transform: translateY(-4px); border-color: rgba(11, 61, 145, .32); box-shadow: var(--shadow-md); }
.topic-card-top, .topic-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.topic-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--blue); background: var(--blue-soft); }
.accent-mint .topic-icon, .accent-mint .topic-heading-icon { color: #218356; background: var(--mint); }
.accent-gold .topic-icon, .accent-gold .topic-heading-icon { color: #a87500; background: var(--gold-soft); }
.accent-coral .topic-icon, .accent-coral .topic-heading-icon { color: var(--red); background: var(--red-soft); }
.accent-green .topic-icon { color: #25804f; background: #e9f7eb; }
.topic-card-copy { padding: 21px 0 12px; }
.topic-card-copy .eyebrow { margin-bottom: 7px; color: var(--ink-muted); font-size: .59rem; }
.topic-card h3 { font-size: 1.08rem; }
.topic-card h3 a:hover { color: var(--blue); }
.topic-card-copy p { display: -webkit-box; overflow: hidden; margin: 8px 0 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.topic-card-bottom { margin-top: auto; color: var(--ink-muted); font-size: .66rem; }
.mini-progress, .progress-track { overflow: hidden; height: 5px; border-radius: 8px; background: var(--line); }
.mini-progress { margin-top: 12px; }
.mini-progress span, .progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.topic-card.compact { min-height: 220px; }
.study-callout { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 19px; margin-bottom: 88px; padding: 27px 29px; border: 1px solid rgba(245,184,0,.4); border-radius: var(--radius-lg); background: linear-gradient(100deg, var(--gold-soft), var(--surface)); }
.study-callout h2 { margin-bottom: 7px; font-size: 1.35rem; }
.study-callout p { max-width: 630px; margin: 0; color: var(--ink-soft); font-size: .78rem; }
.callout-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--gold); color: var(--blue-deep); }
.callout-icon.small { width: 34px; height: 34px; border-radius: 11px; }

.page-hero { overflow: hidden; background: var(--blue-soft); }
.page-hero.accent-mint { background: var(--mint); }
.page-hero.accent-gold { background: var(--gold-soft); }
.page-hero.accent-coral { background: var(--red-soft); }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; min-height: 330px; gap: 50px; }
.page-hero-inner > div:first-child { max-width: 680px; padding: 46px 0; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin-bottom: 31px; color: var(--ink-muted); font-size: .68rem; }
.breadcrumbs a:hover { color: var(--blue); }
.page-hero h1 { max-width: 700px; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-hero p { max-width: 630px; margin: 18px 0 0; font-size: .95rem; }
.class-hero-badge { display: grid; place-items: center; width: 148px; height: 148px; border: 1px solid rgba(11,61,145,.14); border-radius: 50%; background: rgba(255,255,255,.6); color: var(--blue); box-shadow: var(--shadow-sm); }
.class-hero-badge span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; background: rgba(255,255,255,.75); }
.class-hero-badge strong { margin-top: -2px; font-family: var(--font-heading); font-size: 1.8rem; line-height: 1; }
.class-hero-badge small { color: var(--ink-muted); font-size: .62rem; }
.content-section { padding-top: 63px; padding-bottom: 90px; }
.learning-overview { display: grid; grid-template-columns: 1fr 320px; align-items: center; gap: 60px; padding-bottom: 35px; }
.learning-overview h2 { margin-bottom: 9px; }
.learning-overview p { max-width: 625px; color: var(--ink-soft); }
.overview-progress { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.progress-wrap { display: grid; gap: 8px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; color: var(--ink-muted); font-size: .67rem; }
.progress-meta strong { color: var(--blue); font-family: var(--font-heading); font-size: .75rem; }
.small-note { display: block; margin-top: 11px; color: var(--ink-muted); font-size: .66rem; }
.class-topic-grid { grid-template-columns: repeat(3, 1fr); }

.topic-hero { background: var(--blue-soft); }
.topic-hero.accent-mint { background: var(--mint); }
.topic-hero.accent-gold { background: var(--gold-soft); }
.topic-hero.accent-coral { background: var(--red-soft); }
.topic-hero-inner { padding: 42px 0 48px; }
.topic-heading { display: flex; align-items: flex-start; gap: 16px; max-width: 780px; }
.topic-heading-icon { display: grid; flex: 0 0 auto; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: var(--blue); background: rgba(255,255,255,.7); }
.topic-heading h1 { font-size: clamp(2rem, 4vw, 3.35rem); }
.topic-heading p { max-width: 680px; margin: 13px 0 0; color: var(--ink-soft); }
.topic-actions { display: flex; align-items: center; gap: 10px; margin: 31px 0 23px; flex-wrap: wrap; }
.topic-hero .progress-wrap { max-width: 320px; }
.topic-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 62px; padding-top: 60px; padding-bottom: 100px; }
.lesson-content { min-width: 0; }
.lesson-block { padding-bottom: 54px; margin-bottom: 54px; border-bottom: 1px solid var(--line); }
.lesson-block:last-child { margin-bottom: 0; }
.block-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 27px; }
.block-number { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; font-family: var(--font-heading); font-size: .67rem; font-weight: 700; }
.block-heading h2 { font-size: 1.65rem; }
.check-list, .bullet-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.check-list .icon { margin-top: 4px; color: var(--green); }
.note-section { max-width: 780px; margin: 0 0 31px; }
.note-section h3 { margin-bottom: 11px; font-size: 1.2rem; }
.note-section p, .bullet-list { color: var(--ink-soft); }
.note-section p:last-child { margin-bottom: 0; }
mark { padding: 0 2px; border-radius: 3px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.bullet-list { margin-top: 14px; padding-left: 20px; list-style: disc; }
.bullet-list li { padding-left: 5px; margin-bottom: 7px; }
.study-pair { display: grid; grid-template-columns: 1fr .78fr; gap: 17px; border: 0; }
.worked-example, .did-you-know { padding: 23px; border-radius: var(--radius-md); }
.worked-example { background: var(--blue); color: #fff; }
.worked-example .eyebrow { color: var(--gold); }
.worked-example h3 { color: #fff; font-size: 1.05rem; }
.worked-example ol { display: grid; gap: 9px; margin: 18px 0 0; padding: 0 0 0 18px; color: rgba(255,255,255,.77); font-size: .77rem; }
.did-you-know { display: flex; align-items: flex-start; gap: 12px; border: 1px solid rgba(245,184,0,.42); background: var(--gold-soft); }
.did-you-know .eyebrow { color: #a87500; }
.did-you-know p { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.diagram-block { padding-bottom: 55px; }
.diagram-placeholder { max-width: 760px; }
.diagram-surface { position: relative; min-height: 315px; overflow: hidden; border: 1px solid rgba(11,61,145,.13); border-radius: var(--radius-lg); background: radial-gradient(circle at center, rgba(118,183,232,.18), transparent 43%), var(--blue-pale); }
.diagram-center { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; gap: 8px; width: 126px; height: 126px; transform: translate(-50%, -50%); border: 1px dashed rgba(11,61,145,.36); border-radius: 50%; background: var(--surface); color: var(--blue); }
.diagram-center span { font-family: var(--font-heading); font-size: .65rem; font-weight: 800; }
.diagram-label { position: absolute; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-soft); font-size: .66rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.d-label-1 { top: 22%; left: 11%; }
.d-label-2 { top: 20%; right: 10%; }
.d-label-3 { right: 11%; bottom: 21%; }
.diagram-line { position: absolute; height: 1px; background: rgba(11,61,145,.28); transform-origin: left center; }
.line-1 { top: 39%; left: 25%; width: 20%; transform: rotate(13deg); }
.line-2 { top: 38%; right: 25%; width: 20%; transform: rotate(164deg); }
.line-3 { right: 25%; bottom: 37%; width: 19%; transform: rotate(20deg); }
.diagram-caption { margin: 10px 0 0; color: var(--ink-muted); font-size: .66rem; font-style: italic; }
.revision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.revision-card { padding: 15px; border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.revision-card span { display: block; margin-bottom: 18px; color: var(--gold); font-family: var(--font-heading); font-size: .69rem; font-weight: 800; }
.revision-card p { margin: 0; color: var(--ink-soft); font-size: .75rem; line-height: 1.5; }
.revision-prompts { margin-top: 25px; padding: 20px; border-radius: var(--radius-md); background: var(--blue-soft); }
.revision-prompts h3 { margin-bottom: 11px; font-size: .94rem; }
.revision-prompts p { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; color: var(--ink-soft); font-size: .75rem; }
.revision-prompts p .icon { color: var(--blue); }
.section-lede { color: var(--ink-soft); }
.question-list { display: grid; gap: 10px; }
.practice-question { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.practice-question summary { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; padding: 15px 17px; cursor: pointer; list-style: none; }
.practice-question summary::-webkit-details-marker { display: none; }
.question-num { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-heading); font-size: .67rem; font-weight: 800; }
.practice-question summary small { display: block; margin-bottom: 4px; color: var(--red); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.practice-question summary > span:nth-child(2) { color: var(--ink); font-size: .8rem; font-weight: 600; }
.summary-icon { color: var(--ink-muted); transition: transform .2s; }
.practice-question[open] .summary-icon { transform: rotate(180deg); }
.question-body { padding: 0 17px 17px 68px; }
.question-options { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.option-pill { padding: 7px 10px; border-radius: 7px; background: var(--surface-soft); color: var(--ink-soft); font-size: .7rem; }
.answer-box { padding: 13px 15px; border-left: 3px solid var(--gold); background: var(--gold-soft); }
.answer-box strong { color: #9b7100; font-size: .72rem; }
.answer-box p { margin: 5px 0 2px; color: var(--ink); font-size: .78rem; font-weight: 700; }
.answer-box small { color: var(--ink-soft); font-size: .69rem; }
.lesson-aside { min-width: 0; }
.sticky-card { position: sticky; top: 20px; }
.aside-card { display: grid; gap: 15px; padding: 19px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.aside-label { color: var(--ink-muted); font-family: var(--font-heading); font-size: .65rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.aside-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--blue); font-size: .72rem; font-weight: 700; text-align: left; }
.aside-link:hover { color: var(--red); }
.term-list { display: flex; flex-wrap: wrap; gap: 7px; }
.term-list span { padding: 6px 8px; border-radius: 7px; background: var(--red-soft); color: var(--red); font-size: .65rem; font-weight: 700; }

.compact-hero .page-hero-inner { min-height: 260px; }
.page-hero-symbol { display: grid; place-items: center; width: 126px; height: 126px; border: 1px solid rgba(11,61,145,.12); border-radius: 50%; background: rgba(255,255,255,.55); color: var(--blue); }
.filter-bar { display: flex; align-items: end; justify-content: space-between; gap: 25px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.filter-bar h2 { font-size: 1.7rem; }
.filter-controls { display: flex; gap: 10px; }
.filter-controls label { display: grid; gap: 5px; color: var(--ink-muted); font-size: .62rem; font-weight: 700; }
.filter-controls select { min-width: 125px; padding: 10px 28px 10px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface); color: var(--ink); font-size: .72rem; }
.past-list { display: grid; gap: 13px; padding: 28px 0 60px; }
.past-card { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.past-card-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; color: var(--ink-muted); font-size: .64rem; }
.question-year { color: var(--blue); font-weight: 800; }
.class-pill { padding: 4px 7px; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: .6rem; font-weight: 800; }
.class-pill.ss2 { background: var(--gold-soft); color: #9a7100; }
.class-pill.ss3 { background: var(--red-soft); color: var(--red); }
.past-card h3 { max-width: 850px; font-size: 1rem; }
.past-card details { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.past-card summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--blue); font-size: .71rem; font-weight: 700; list-style: none; }
.past-card summary::-webkit-details-marker { display: none; }
.past-answer { margin-top: 12px; padding: 13px; border-radius: 10px; background: var(--blue-soft); color: var(--ink-soft); font-size: .74rem; }
.past-answer p { margin: 0 0 5px; }
.past-answer p:last-child { margin-bottom: 0; }

.quiz-start-section { padding: 72px 0 105px; }
.quiz-start-card { display: grid; grid-template-columns: 1.35fr .65fr; min-height: 365px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.quiz-start-copy { padding: 50px; }
.quiz-start-copy h2 { max-width: 480px; margin-bottom: 10px; }
.quiz-start-copy > p { color: var(--ink-soft); }
.quiz-class-picker { display: flex; gap: 8px; margin: 26px 0 29px; }
.quiz-class-option { display: grid; gap: 4px; min-width: 91px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; }
.quiz-class-option:hover, .quiz-class-option.selected { border-color: var(--gold); background: var(--gold-soft); }
.quiz-class-option span { font-family: var(--font-heading); font-size: .9rem; font-weight: 800; }
.quiz-class-option small { color: var(--ink-muted); font-size: .6rem; }
.quiz-preview { display: grid; place-items: center; padding: 40px; background: var(--blue); color: #fff; }
.preview-ring { display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--gold); }
.preview-ring strong { margin-top: -16px; color: #fff; font-family: var(--font-heading); font-size: 1.4rem; }
.preview-ring span { margin-top: -19px; color: rgba(255,255,255,.62); font-size: .62rem; }
.preview-list { display: grid; gap: 9px; margin-top: 25px; color: rgba(255,255,255,.75); font-size: .7rem; }
.preview-list span { display: flex; align-items: center; gap: 7px; }
.preview-list .icon { color: var(--gold); }
.quiz-active-page, .quiz-result-page { min-height: 680px; padding: 72px 0 110px; background: var(--blue-pale); }
.quiz-active-inner { max-width: 840px; }
.quiz-topline { display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.quiz-topline h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.quiz-timer { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--blue); }
.quiz-timer strong { font-family: var(--font-heading); font-size: .9rem; }
.quiz-timer.urgent { border-color: var(--red); color: var(--red); }
.quiz-progress-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 31px 0 20px; color: var(--ink-muted); font-size: .68rem; }
.quiz-question-card { display: grid; grid-template-columns: 65px 1fr; gap: 22px; padding: 34px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.quiz-question-number { color: var(--gold); font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.quiz-question-copy h2 { max-width: 630px; margin-bottom: 28px; font-size: clamp(1.3rem, 3vw, 1.85rem); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option { display: flex; align-items: center; gap: 11px; min-height: 57px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: .76rem; text-align: left; transition: border .18s, background .18s, transform .18s; }
.quiz-option:hover { transform: translateY(-2px); border-color: var(--blue); }
.quiz-option.selected { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.quiz-option > span { display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--surface-soft); color: var(--ink-muted); font-family: var(--font-heading); font-size: .68rem; font-weight: 800; }
.quiz-option.selected > span { background: var(--blue); color: #fff; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; }
.quiz-result-card { max-width: 820px; padding: 48px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); text-align: center; }
.result-badge { display: inline-grid; place-items: center; gap: 3px; width: 92px; height: 92px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.result-badge.perfect { background: var(--gold-soft); color: #a87500; }
.result-badge span { font-size: .6rem; font-weight: 700; }
.quiz-result-card > h1 { margin-top: 25px; color: var(--blue); font-size: 4rem; }
.quiz-result-card > h2 { font-size: 1.4rem; }
.quiz-result-card > p { max-width: 490px; margin: 10px auto 28px; color: var(--ink-soft); font-size: .8rem; }
.correction-list { display: grid; gap: 9px; text-align: left; }
.correction { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border-radius: 10px; background: var(--surface-soft); }
.correction.correct { border-left: 3px solid var(--green); }
.correction.incorrect { border-left: 3px solid var(--red); }
.correction-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: #fff; }
.correct .correction-icon { background: var(--green); }
.incorrect .correction-icon { background: var(--red); }
.correction strong, .correction p, .correction small { display: block; }
.correction strong { font-size: .7rem; }
.correction p { margin: 3px 0; color: var(--ink); font-size: .73rem; }
.correction small { color: var(--ink-muted); font-size: .66rem; }
.result-actions { display: flex; justify-content: center; gap: 10px; margin-top: 27px; flex-wrap: wrap; }

.glossary-section { padding: 58px 0 105px; }
.glossary-search { max-width: 700px; margin: 0 auto; text-align: center; }
.glossary-search > label { display: block; margin-bottom: 10px; color: var(--ink); font-family: var(--font-heading); font-size: .8rem; font-weight: 800; }
.alphabet { display: flex; justify-content: center; gap: 5px; margin-top: 18px; flex-wrap: wrap; }
.alphabet button { width: 27px; height: 27px; border-radius: 7px; background: var(--surface); color: var(--blue); font-size: .67rem; font-weight: 800; }
.alphabet button:hover { background: var(--gold); color: var(--blue-deep); }
.glossary-result-meta { display: flex; align-items: center; justify-content: space-between; margin: 50px 0 16px; color: var(--ink-muted); font-size: .7rem; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.glossary-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.term-letter { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-family: var(--font-heading); font-weight: 800; }
.glossary-card h3 { font-size: .9rem; }
.glossary-card p { margin: 5px 0 0; color: var(--ink-soft); font-size: .71rem; line-height: 1.5; }

.ava-page { padding: 80px 0 110px; background: var(--blue-pale); }
.ava-layout { display: grid; grid-template-columns: .83fr 1.17fr; align-items: center; gap: 65px; }
.ava-intro h1 { margin-bottom: 16px; }
.ava-intro > p { max-width: 440px; color: var(--ink-soft); font-size: .9rem; }
.ava-avatar { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: var(--gold); color: var(--blue-deep); }
.ava-avatar.large { width: 58px; height: 58px; margin-bottom: 26px; border-radius: 18px; box-shadow: 0 10px 25px rgba(245,184,0,.25); }
.ava-prompts { display: grid; gap: 8px; margin-top: 27px; }
.ava-prompts > span { color: var(--ink-muted); font-family: var(--font-heading); font-size: .66rem; font-weight: 800; text-transform: uppercase; }
.ava-prompts button { justify-self: start; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--blue); font-size: .7rem; }
.ava-prompts button:hover { border-color: var(--gold); background: var(--gold-soft); }
.chat-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.chat-header strong, .chat-header span { display: block; }
.chat-header strong { font-size: .78rem; }
.chat-header span { color: var(--ink-muted); font-size: .64rem; }
.online-dot { margin-left: auto; color: var(--green) !important; font-size: .6rem !important; font-weight: 700; }
.online-dot::before { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--green); content: ''; }
.chat-messages { display: grid; gap: 16px; min-height: 360px; max-height: 390px; padding: 23px 19px; overflow-y: auto; background: var(--surface-soft); }
.chat-message { display: flex; max-width: 82%; gap: 8px; }
.chat-message > div { padding: 11px 13px; border-radius: 12px 12px 12px 3px; background: var(--surface); box-shadow: var(--shadow-sm); }
.chat-message.student { justify-self: end; justify-content: flex-end; }
.chat-message.student > div { border-radius: 12px 12px 3px 12px; background: var(--blue); color: #fff; }
.chat-message p { margin: 0; font-size: .76rem; line-height: 1.52; }
.chat-message small { display: block; margin-top: 6px; color: var(--ink-muted); font-size: .58rem; }
.student small { color: rgba(255,255,255,.6); }
.chat-mini-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--gold); color: var(--blue-deep); font-family: var(--font-heading); font-size: .65rem; font-weight: 800; }
.chat-form { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }
.chat-form input { min-width: 0; flex: 1; padding: 11px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-soft); color: var(--ink); font-size: .75rem; }
.chat-form .button { width: 43px; min-height: 43px; padding: 0; }
.chat-disclaimer { margin: 0; padding: 0 14px 13px; color: var(--ink-muted); font-size: .6rem; text-align: center; }

.about-section, .contact-section { padding: 75px 0 110px; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.about-grid > div:first-child p { max-width: 530px; color: var(--ink-soft); font-size: .9rem; }
.about-grid h2 { margin-bottom: 18px; }
.promise-card, .contact-card, .contact-form { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.promise-row { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.promise-row:first-child { padding-top: 0; }
.promise-row:last-child { padding-bottom: 0; border-bottom: 0; }
.promise-row > span { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.promise-row strong { font-size: .78rem; }
.promise-row p { margin: 4px 0 0; color: var(--ink-muted); font-size: .71rem; line-height: 1.5; }
.contact-card h2 { margin-bottom: 13px; }
.contact-card > p { margin-bottom: 25px; color: var(--ink-soft); font-size: .82rem; }
.contact-line { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: var(--blue); font-size: .76rem; font-weight: 700; }
.contact-line:hover { color: var(--red); }
.contact-form { display: grid; gap: 15px; }
.contact-form label { display: grid; gap: 7px; color: var(--ink); font-size: .7rem; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; resize: vertical; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--surface-soft); color: var(--ink); font-size: .76rem; }
.form-status { margin: 0; color: var(--green); font-size: .7rem; }

.empty-state { display: grid; justify-items: center; min-height: 490px; padding: 90px 0; text-align: center; }
.empty-state-icon { display: grid; place-items: center; width: 65px; height: 65px; margin-bottom: 19px; border-radius: 20px; background: var(--blue-soft); color: var(--blue); }
.empty-state h2, .empty-state h1 { margin-bottom: 9px; }
.empty-state p { max-width: 420px; color: var(--ink-soft); }
.empty-state.small { grid-column: 1 / -1; min-height: 260px; padding: 45px 0; }
.coming-soon-stamp { display: grid; gap: 5px; max-width: 175px; padding: 17px; border: 1px dashed rgba(11,61,145,.3); border-radius: 15px; background: rgba(255,255,255,.55); color: var(--blue); }
.coming-soon-stamp strong { font-family: var(--font-heading); font-size: .75rem; }
.coming-soon-stamp small { color: var(--ink-muted); font-size: .64rem; }

.site-footer { background: var(--blue-deep); color: rgba(255,255,255,.75); }
.footer-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; width: min(calc(100% - 40px), var(--container)); margin-inline: auto; padding: 56px 0 45px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-word small { color: rgba(255,255,255,.5); }
.footer-brand > p { max-width: 360px; margin-top: 18px; color: rgba(255,255,255,.6); font-size: .72rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.footer-links div { display: grid; align-content: start; gap: 10px; }
.footer-links strong { margin-bottom: 3px; color: var(--gold); font-family: var(--font-heading); font-size: .72rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .7rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(calc(100% - 40px), var(--container)); margin-inline: auto; padding: 16px 0 20px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .63rem; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 8px; background: rgba(255,255,255,.1); color: #fff; }
.socials a:hover { background: var(--gold); color: var(--blue-deep); }
.bottom-nav { display: none; }
.noscript-shell { width: min(calc(100% - 40px), 760px); margin: 90px auto; padding: 45px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.noscript-shell h1 { margin: 8px 0 16px; }
.noscript-shell p { color: var(--ink-soft); }
.noscript-links { display: flex; gap: 10px; margin: 25px 0 34px; flex-wrap: wrap; }
.noscript-links a { padding: 10px 14px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700; }
.noscript-shell li { color: var(--ink-soft); font-size: .8rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr .8fr; gap: 20px; }
  .hero-art { transform: scale(.82); transform-origin: right center; }
  .class-strip { grid-template-columns: 1fr; gap: 25px; }
  .topic-grid, .class-topic-grid { grid-template-columns: repeat(2, 1fr); }
  .topic-layout { grid-template-columns: 1fr; gap: 20px; }
  .lesson-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .sticky-card { position: static; }
  .aside-card { margin-bottom: 0; }
  .quiz-start-card { grid-template-columns: 1fr; }
  .quiz-preview { min-height: 280px; }
  .ava-layout { gap: 35px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 70px; font-size: 14px; }
  .container, .header-inner, .footer-inner, .footer-bottom { width: min(calc(100% - 28px), var(--container)); }
  h1 { font-size: 2.6rem; }
  .header-top { min-height: 68px; }
  .header-actions { gap: 7px; }
  .search-box { width: 42px; height: 40px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .search-box input, .search-box kbd { display: none; }
  .search-box:focus-within { width: min(250px, 56vw); padding: 0 10px; border: 1px solid var(--line); background: var(--surface-soft); justify-content: flex-start; }
  .search-box:focus-within input { display: block; }
  .search-results { right: -37px; width: min(350px, calc(100vw - 28px)); }
  .desktop-nav { display: none; position: absolute; top: 68px; right: 14px; left: 14px; flex-direction: column; align-items: stretch; gap: 0; padding: 9px 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-md); }
  .desktop-nav.menu-open { display: flex; }
  .desktop-nav a { padding: 11px 4px; }
  .desktop-nav a.active::after { display: none; }
  .mobile-menu { display: inline-grid; }
  .hero-grid { display: block; min-height: 0; }
  .hero-copy { padding: 54px 0 12px; }
  .hero-lede { font-size: .88rem; }
  .hero-proof { margin-top: 29px; }
  .hero-art { min-height: 306px; transform: none; }
  .hero-glow { width: 250px; height: 250px; }
  .hero-orbit { transform: translate(-50%, -50%) scale(.72) rotate(-25deg); }
  .orbit-two { transform: translate(-50%, -50%) scale(.72) rotate(58deg); }
  .hero-cell { transform: translate(-50%, -50%) scale(.8); }
  .chip-dna { top: 27px; right: 7%; }
  .chip-leaf { bottom: 57px; left: 2%; }
  .chip-microscope { right: 1%; bottom: 13px; }
  .hero-caption { right: 10%; bottom: 3px; }
  .class-strip { padding-top: 52px; }
  .class-tabs { grid-template-columns: 1fr; }
  .class-tab { min-height: 83px; grid-template-columns: auto 1fr auto; align-items: center; }
  .class-tab .icon { align-self: center; }
  .class-tab-label { font-size: 1.1rem; }
  .home-stats { grid-template-columns: 1fr 1fr; padding-bottom: 54px; }
  .section-heading-row { display: block; }
  .section-heading-row .text-link { margin-top: 15px; }
  .topic-grid, .class-topic-grid, .glossary-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 240px; }
  .study-callout { grid-template-columns: auto 1fr; padding: 21px; }
  .study-callout .button { grid-column: 1 / -1; justify-self: start; }
  .page-hero-inner { min-height: 0; padding: 24px 0 34px; align-items: flex-start; }
  .page-hero-inner > div:first-child { padding: 17px 0 0; }
  .page-hero-symbol, .class-hero-badge { display: none; }
  .breadcrumbs { margin-bottom: 23px; }
  .page-hero h1 { font-size: 2.45rem; }
  .page-hero p { font-size: .83rem; }
  .content-section { padding-top: 43px; padding-bottom: 78px; }
  .learning-overview { display: block; }
  .overview-progress { margin-top: 23px; }
  .topic-hero-inner { padding: 25px 0 35px; }
  .topic-heading { gap: 11px; }
  .topic-heading-icon { width: 49px; height: 49px; border-radius: 14px; }
  .topic-heading h1 { font-size: 2.15rem; }
  .topic-heading p { font-size: .79rem; }
  .topic-actions { align-items: stretch; flex-direction: column; }
  .topic-actions .button { justify-content: flex-start; }
  .topic-layout { padding-top: 39px; padding-bottom: 75px; }
  .lesson-block { padding-bottom: 38px; margin-bottom: 38px; }
  .block-heading { margin-bottom: 21px; }
  .block-heading h2 { font-size: 1.42rem; }
  .study-pair { grid-template-columns: 1fr; }
  .revision-grid { grid-template-columns: 1fr; }
  .diagram-surface { min-height: 260px; }
  .diagram-center { transform: translate(-50%, -50%) scale(.85); }
  .diagram-label { font-size: .59rem; }
  .lesson-aside { display: grid; grid-template-columns: 1fr; }
  .question-body { padding-left: 17px; }
  .practice-question summary { grid-template-columns: 32px 1fr auto; gap: 9px; padding-inline: 12px; }
  .filter-bar { display: block; }
  .filter-controls { margin-top: 21px; }
  .filter-controls label { flex: 1; }
  .filter-controls select { width: 100%; }
  .past-card { padding: 17px; }
  .quiz-start-section { padding: 48px 0 75px; }
  .quiz-start-copy { padding: 27px; }
  .quiz-class-picker { gap: 5px; }
  .quiz-class-option { min-width: 0; flex: 1; }
  .quiz-preview { min-height: 245px; padding: 25px; }
  .quiz-active-page, .quiz-result-page { padding: 47px 0 75px; }
  .quiz-topline h1 { font-size: 2.15rem; }
  .quiz-timer { padding: 8px 10px; }
  .quiz-question-card { grid-template-columns: 1fr; gap: 8px; padding: 23px 17px; }
  .quiz-question-number { font-size: 1.45rem; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-actions { align-items: stretch; flex-direction: column-reverse; }
  .quiz-actions .button { width: 100%; }
  .quiz-result-card { padding: 28px 17px; }
  .glossary-section, .about-section, .contact-section, .ava-page { padding: 48px 0 78px; }
  .glossary-result-meta { margin-top: 34px; }
  .ava-layout, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 37px; }
  .chat-messages { min-height: 320px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 43px 0 30px; }
  .footer-links { gap: 12px; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; padding-bottom: 82px; }
  .footer-bottom > span:nth-child(2) { display: none; }
  .bottom-nav { position: fixed; z-index: 40; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: 68px; border-top: 1px solid var(--line); background: rgba(255,255,255,.95); box-shadow: 0 -8px 25px rgba(6,39,95,.1); backdrop-filter: blur(13px); }
  body[data-theme='dark'] .bottom-nav { background: rgba(13,29,53,.95); }
  .bottom-nav a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--ink-muted); font-size: .58rem; font-weight: 700; }
  .bottom-nav a.active { color: var(--blue); }
  .bottom-nav a.active .icon { color: var(--gold); }
  .noscript-shell { margin: 46px auto; padding: 28px 22px; }
}

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