/* ─── Feature cards ──────────────────────────────────────────────────────── */
.feature-card {
  border: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(148deg,
    rgba(15, 28, 52, 0.45) 0%,
    rgba(10, 18, 38, 0.22) 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.18s ease;
}

.feature-card:hover {
  border-color: rgba(34,211,238,0.18);
  background: linear-gradient(148deg,
    rgba(15, 28, 52, 0.62) 0%,
    rgba(10, 18, 38, 0.38) 100%
  );
  transform: translateY(-1px);
}

.feature-card:focus-visible {
  outline: 2px solid rgba(103, 232, 249, 0.75);
  outline-offset: 3px;
  border-color: rgba(34, 211, 238, 0.35);
}

/* ─── Landing polish (generate view only — preview glow / gradient language) ─ */
#generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child h1.font-display {
  background: linear-gradient(118deg, rgb(248 250 252) 0%, rgb(165 243 253) 42%, rgb(186 230 253) 72%, rgb(147 197 253) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.2));
  background-size: 200% 200%;
  animation: title-shimmer 8s ease-in-out infinite alternate;
}

#generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .flex.justify-center p.text-xs.uppercase {
  text-shadow:
    0 0 18px rgba(34, 211, 238, 0.45),
    0 0 36px rgba(56, 189, 248, 0.2);
}

#generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .hero-icon {
  box-shadow:
    0 0 3px 1px rgba(56, 189, 248, 0.14),
    0 0 44px -6px rgba(34, 211, 238, 0.38),
    0 0 88px -24px rgba(59, 130, 246, 0.22);
}

#generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child > p.text-slate-400 {
  text-shadow: 0 0 28px rgba(56, 189, 248, 0.12);
}

#generate-workspace:not(.preview-mode) #gen-form.glass-panel {
  border-color: rgba(56, 189, 248, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 28px 56px -14px rgba(0, 0, 0, 0.5),
    0 0 64px -18px rgba(34, 211, 238, 0.16),
    0 0 100px -30px rgba(59, 130, 246, 0.1);
}

#generate-workspace:not(.preview-mode) #gen-form .form-glow::before {
  opacity: 0.78;
}

#generate-workspace:not(.preview-mode) #prompt {
  border-color: rgba(56, 189, 248, 0.20);
  background: linear-gradient(168deg, rgba(8, 20, 42, 0.9) 0%, rgba(4, 12, 30, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(56, 189, 248, 0.06),
    0 0 28px -10px rgba(34, 211, 238, 0.10),
    0 0 52px -20px rgba(59, 130, 246, 0.06);
  caret-color: rgb(34, 211, 238);
}

#generate-workspace:not(.preview-mode) #prompt::placeholder {
  color: rgba(165, 230, 252, 0.48);
}

#generate-workspace:not(.preview-mode) #prompt:focus {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(56, 189, 248, 0.08),
    0 0 32px -8px rgba(34, 211, 238, 0.18),
    0 0 56px -18px rgba(59, 130, 246, 0.10);
  outline: none;
}
#generate-workspace:not(.preview-mode) #prompt:focus-visible {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.4),
    inset 0 1px 0 rgba(56, 189, 248, 0.08),
    0 0 32px -8px rgba(34, 211, 238, 0.22),
    0 0 56px -18px rgba(59, 130, 246, 0.12);
  outline: none;
}

/* Quick-fill example buttons — translucent, beveled "glass tile" look. Colour is
   per-button via --accent-rgb (set inline in workspace_left.html), retiring the
   old fragile :nth-child palette. The resting FILL + border are UNSCOPED so they
   persist while the hero fades out in preview mode (the old inline gradient did
   the same); the bevel shadow + hover lift are scoped to the live generate view.

   These buttons live inside the blue .glass-panel #gen-form, so a NAÏVELY
   translucent fill let the panel's blue bleed through and washed every subject to
   the same blue (the reason an opaque var(--space-void) base was used before). To
   stay translucent yet keep each --accent-rgb hue legible, the fill now layers:
     1. a top white sheen      (the raised-glass highlight),
     2. a vertical accent tint (brighter at top → dimmer at base = the bevel),
     3. a translucent near-void base (rgba(1,4,14,.34)) that still knocks the blue
        panel back enough for the hue to read,
   over a `backdrop-filter: blur()+saturate()` that frosts the panel behind so the
   translucency looks intentional (frosted glass) and re-saturates the accent. The
   3D effect = top inset highlight + bottom inset shadow + outer drop shadow
   (raised), inverting to an inner pressed shadow on :active. */
.quick-fill {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(var(--accent-rgb), .20) 0%, rgba(var(--accent-rgb), .07) 100%),
    rgba(1, 4, 14, .34);
  border-color: rgba(var(--accent-rgb), .3);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  backdrop-filter: blur(12px) saturate(1.25);
}

#generate-workspace:not(.preview-mode) #gen-form .quick-fill {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .16),
    inset 0 -12px 20px -14px rgba(0, 0, 0, .4),
    0 0 14px -5px rgba(var(--accent-rgb), .18),
    0 9px 22px -15px rgba(0, 0, 0, .55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#generate-workspace:not(.preview-mode) #gen-form .quick-fill:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), .5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, rgba(var(--accent-rgb), .3) 0%, rgba(var(--accent-rgb), .11) 100%),
    rgba(1, 4, 14, .3);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .24),
    inset 0 -14px 22px -14px rgba(0, 0, 0, .42),
    0 0 22px -4px rgba(var(--accent-rgb), .4),
    0 16px 32px -16px rgba(0, 0, 0, .5);
}

#generate-workspace:not(.preview-mode) #gen-form .quick-fill:active {
  transform: translateY(0) scale(0.975);
  box-shadow:
    inset 0 2px 7px 0 rgba(0, 0, 0, .5),
    inset 0 1px 0 0 rgba(255, 255, 255, .1),
    0 4px 12px -8px rgba(0, 0, 0, .55);
  transition: transform 0.10s ease-out, box-shadow 0.10s ease-out;
}

@keyframes quick-fill-rebound {
  0%   { transform: scale(0.97); }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1); }
}

#generate-workspace:not(.preview-mode) #gen-form .quick-fill.quick-fill-just-clicked {
  animation: quick-fill-rebound 0.40s cubic-bezier(0.16, 1, 0.3, 1);
}

#generate-workspace:not(.preview-mode) #submit-btn.btn-space-primary {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 4px 28px -4px rgba(34, 211, 238, 0.55),
    0 16px 52px -12px rgba(59, 130, 246, 0.38);
}

#generate-workspace:not(.preview-mode) #submit-btn.btn-space-primary:hover:not(:disabled) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.17) inset,
    0 10px 40px -6px rgba(34, 211, 238, 0.62),
    0 22px 56px -12px rgba(99, 102, 241, 0.42);
}

#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .feature-card {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 44px -14px rgba(56, 189, 248, 0.1);
}

#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .feature-card:hover {
  transform: translateY(-2px);
}

#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(1):hover {
  border-color: rgba(167, 139, 250, 0.24);
  box-shadow: 0 14px 44px -12px rgba(167, 139, 250, 0.22);
}

#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(2):hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 14px 44px -12px rgba(34, 211, 238, 0.2);
}

#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(3):hover {
  border-color: rgba(52, 211, 153, 0.22);
  box-shadow: 0 14px 44px -12px rgba(52, 211, 153, 0.2);
}

/* Soften the hard Tailwind ring-1 outlines on feature-card icon boxes into a diffuse glow */
#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(1) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(167, 139, 250, 0.12), 0 0 10px -1px rgba(167, 139, 250, 0.28);
}
#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(2) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(34, 211, 238, 0.12), 0 0 10px -1px rgba(34, 211, 238, 0.25);
}
#generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(3) > div:first-child {
  box-shadow: 0 0 0 0.5px rgba(52, 211, 153, 0.12), 0 0 10px -1px rgba(52, 211, 153, 0.25);
}

#generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .subject-badge {
  box-shadow: 0 0 16px -4px rgba(56, 189, 248, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  #generate-workspace:not(.preview-mode) #gen-form .quick-fill:hover {
    transform: none;
  }

  #generate-workspace:not(.preview-mode) #gen-form .quick-fill:active,
  #generate-workspace:not(.preview-mode) #gen-form .quick-fill.quick-fill-just-clicked {
    animation: none;
    transform: none;
  }

  #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .feature-card:hover {
    transform: translateY(-1px);
  }
}

/* ─── Subject badges ─────────────────────────────────────────────────────── */
.subject-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  vertical-align: 0.1em;
  white-space: nowrap;
  line-height: 1.35;
}

.subject-badge-igcse-physics,
.subject-badge-a-level-physics,
.subject-badge-ap-physics-1,
.subject-badge-ap-physics-2,
.subject-badge-ap-physics-c-mech,
.subject-badge-ap-physics-c-em {
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: rgb(165 243 253);
}

.subject-badge-igcse-computer-science,
.subject-badge-a-level-computer-science,
.subject-badge-ap-computer-science-a,
.subject-badge-ap-computer-science-principles {
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: rgb(221 214 254);
}

.subject-badge-igcse-mathematics,
.subject-badge-a-level-mathematics,
.subject-badge-ap-calculus-ab,
.subject-badge-ap-calculus-bc,
.subject-badge-ap-precalculus {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.25);
  color: rgb(191 219 254);
}

/* Statistics — indigo tone within the maths blue family (like Further Maths). */
.subject-badge-ap-statistics {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: rgb(199 210 254);
}

/* Further Mathematics — same blue family as Mathematics, a deeper indigo tone
   so the two A-Level maths stay distinguishable. */
.subject-badge-a-level-further-mathematics {
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  color: rgb(199 210 254);
}

.subject-badge-igcse-biology,
.subject-badge-a-level-biology,
.subject-badge-ap-biology,
.subject-badge-ap-environmental-science {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: rgb(110 231 183);
}

.subject-badge-igcse-chemistry,
.subject-badge-a-level-chemistry,
.subject-badge-ap-chemistry {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: rgb(125 211 252);
}

/* Business & Economics — a cool teal pair, kept very similar so the two commerce
   subjects blend with the cool palette. Business teal-400; Economics a lighter
   teal-300 (distinct from Physics's cyan). */
.subject-badge-igcse-business-studies,
.subject-badge-a-level-business {
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: rgb(153 246 228);
}

.subject-badge-igcse-economics,
.subject-badge-a-level-economics,
.subject-badge-ap-macroeconomics,
.subject-badge-ap-microeconomics {
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: rgb(153 246 228);
}

/* AP Human Geography — amber-gold (its own earthy family, distinct from the cool sciences). */
.subject-badge-ap-human-geography {
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.25);
  color: rgb(253 224 71);
}

/* AP 2-D Art and Design — pink (its own creative family). */
.subject-badge-ap-art-2d {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: rgb(249 168 212);
}

/* AP Drawing — burnt sienna (sanguine/sepia, the classic drawing media). */
.subject-badge-ap-drawing {
  background: rgba(194, 65, 12, 0.14);
  border: 1px solid rgba(194, 65, 12, 0.3);
  color: rgb(253 186 116);
}

/* ─── Hero icon float ────────────────────────────────────────────────────── */
.hero-icon {
  animation: float 7s ease-in-out infinite;
}

/* Pause decorative animations in background tabs */
html.doc-background-paused .space-aurora,
html.doc-background-paused .space-stars,
html.doc-background-paused .space-stars::after,
html.doc-background-paused .star,
html.doc-background-paused .form-glow::before,
html.doc-background-paused .hero-icon,
html.doc-background-paused #gen-left-col > .hero-collapse:first-child h1.font-display {
  animation-play-state: paused;
}

/* Keyframes float / title-shimmer / hero-in / hero-in-fade now live in the bundled
   03-core-ui.css (.site-hero module) so every page has them; the rules below reuse them. */
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  #gen-left-col > .hero-collapse:first-child p.uppercase {
  animation: hero-in 0.28s ease 0ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  #gen-left-col > .hero-collapse:first-child h1 {
  animation: hero-in 0.28s ease 80ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  #gen-left-col > .hero-collapse:first-child > p.text-slate-400 {
  animation: hero-in 0.28s ease 160ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode) #gen-form.glass-panel {
  animation: hero-in 0.28s ease 260ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(1) {
  animation: hero-in 0.28s ease 380ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(2) {
  animation: hero-in 0.28s ease 440ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(3) {
  animation: hero-in 0.28s ease 500ms both;
}

/* Feature-card icon settle on first paint — keyframe lives in 04-generation.css */
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(1) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 460ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(2) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 520ms both;
}
body:not(.page-entered) #generate-workspace:not(.preview-mode)
  .hero-collapse.mt-14 .feature-card:nth-child(3) > div:first-child {
  animation: icon-settle-in 0.20s cubic-bezier(0.34, 1.56, 0.64, 1) 580ms both;
}

/* ─── Subject badge hover glow ───────────────────────────────────────────── */
.subject-badge {
  transition: filter 0.15s ease;
  cursor: default;
}

.subject-badge-igcse-computer-science:hover,
.subject-badge-a-level-computer-science:hover { filter: brightness(1.18) drop-shadow(0 0 6px rgba(167, 139, 250, 0.45)); }
.subject-badge-igcse-physics:hover,
.subject-badge-a-level-physics:hover          { filter: brightness(1.18) drop-shadow(0 0 6px rgba(34, 211, 238, 0.45)); }
.subject-badge-igcse-chemistry:hover,
.subject-badge-a-level-chemistry:hover        { filter: brightness(1.18) drop-shadow(0 0 6px rgba(56, 189, 248, 0.45)); }
.subject-badge-igcse-mathematics:hover,
.subject-badge-a-level-mathematics:hover      { filter: brightness(1.18) drop-shadow(0 0 6px rgba(96, 165, 250, 0.45)); }
.subject-badge-a-level-further-mathematics:hover { filter: brightness(1.18) drop-shadow(0 0 6px rgba(129, 140, 248, 0.45)); }
.subject-badge-igcse-biology:hover,
.subject-badge-a-level-biology:hover          { filter: brightness(1.18) drop-shadow(0 0 6px rgba(16, 185, 129, 0.45)); }
.subject-badge-igcse-business-studies:hover,
.subject-badge-a-level-business:hover         { filter: brightness(1.18) drop-shadow(0 0 6px rgba(45, 212, 191, 0.45)); }
.subject-badge-igcse-economics:hover,
.subject-badge-a-level-economics:hover        { filter: brightness(1.18) drop-shadow(0 0 6px rgba(94, 234, 212, 0.45)); }

/* ─── Practice subject card ─────────────────────────────────────────────────
   Per-subject accent driven by a CSS variable so one rule set covers all cards.
   Each slug below picks the accent RGB used by the icon, hover border/gradient,
   arrow, and focus ring. Palette mirrors .subject-badge-* in this file. The base card
   rules (default accent, icon, arrow, hover, focus, [hidden]) live in 03-core-ui.css, in
   the bundle: the landing `/` needs only those, and loaded this whole sheet for them. */
.practice-card[data-subject="igcse_physics"],
.practice-card[data-subject="a_level_physics"]          { --accent-rgb:  34, 211, 238; }
.practice-card[data-subject="igcse_computer_science"],
.practice-card[data-subject="a_level_computer_science"] { --accent-rgb: 167, 139, 250; }
.practice-card[data-subject="igcse_mathematics"],
.practice-card[data-subject="a_level_mathematics"]      { --accent-rgb:  96, 165, 250; }
.practice-card[data-subject="a_level_further_mathematics"] { --accent-rgb: 129, 140, 248; }
.practice-card[data-subject="igcse_biology"],
.practice-card[data-subject="a_level_biology"]          { --accent-rgb:  16, 185, 129; }
.practice-card[data-subject="igcse_chemistry"],
.practice-card[data-subject="a_level_chemistry"]        { --accent-rgb: 56, 189, 248; }
.practice-card[data-subject="igcse_business_studies"],
.practice-card[data-subject="a_level_business"]         { --accent-rgb: 45, 212, 191; }
.practice-card[data-subject="igcse_economics"],
.practice-card[data-subject="a_level_economics"]        { --accent-rgb: 94, 234, 212; }
/* AP (College Board) — each reuses its family accent, matching the A-Level row. */
.practice-card[data-subject="ap_physics_1"],
.practice-card[data-subject="ap_physics_2"],
.practice-card[data-subject="ap_physics_c_mech"],
.practice-card[data-subject="ap_physics_c_em"]          { --accent-rgb:  34, 211, 238; }
.practice-card[data-subject="ap_computer_science_a"],
.practice-card[data-subject="ap_computer_science_principles"] { --accent-rgb: 167, 139, 250; }
.practice-card[data-subject="ap_precalculus"],
.practice-card[data-subject="ap_calculus_ab"],
.practice-card[data-subject="ap_calculus_bc"]           { --accent-rgb:  96, 165, 250; }
.practice-card[data-subject="ap_statistics"]            { --accent-rgb:  56, 189, 248; }
.practice-card[data-subject="ap_biology"]               { --accent-rgb:  16, 185, 129; }
.practice-card[data-subject="ap_chemistry"]             { --accent-rgb: 168, 85, 247; }
.practice-card[data-subject="ap_environmental_science"] { --accent-rgb: 132, 204,  22; }
.practice-card[data-subject="ap_microeconomics"],
.practice-card[data-subject="ap_macroeconomics"]        { --accent-rgb: 94, 234, 212; }
.practice-card[data-subject="ap_human_geography"]       { --accent-rgb: 234, 179,   8; }
.practice-card[data-subject="ap_art_2d"]                { --accent-rgb: 236,  72, 153; }
.practice-card[data-subject="ap_drawing"]               { --accent-rgb: 194,  65,  12; }
.practice-card[data-subject="ap_cybersecurity"]         { --accent-rgb: 148, 163, 184; }
.practice-card[data-subject="ap_us_history"],
.practice-card[data-subject="ap_world_history"],
.practice-card[data-subject="ap_european_history"]      { --accent-rgb: 217, 119,   6; }
.practice-card[data-subject="ap_english_language"],
.practice-card[data-subject="ap_english_literature"]    { --accent-rgb: 251, 113, 133; }
.practice-card[data-subject="ap_psychology"]            { --accent-rgb: 232, 121, 249; }


/* ─── /know topic page: the "Interactive lessons on this topic" rows ──────────
   Each row carries its own --accent-rgb (know.py gives every lesson its own hue,
   drifting from the topic's), so hover/focus tint in that lesson's colour rather
   than one shared cyan. Lives here because know/topic.html already loads this
   sheet for .practice-card-icon-bg — 17-learn.css (which owns the visually
   similar .lx-lesson-link) is a /learn-only sheet and keys off --lx-accent. */
.know-lesson-link:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background-color: rgba(var(--accent-rgb), 0.08);
}
.know-lesson-link:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.6);
  outline-offset: 1px;
}

/* ─── Quick-fill 2-col grid on mobile: last button spans full width if alone ── */
@media (max-width: 639px) {
  .quick-fill:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ─── Learn subtopic content: markdown-rendered Core/Supplement table ──────── */
.reading-prose, .learn-content-body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.learn-content-body {
  overflow-wrap: break-word; /* Keep long terms and slash-separated phrases inside narrow readers. */
  color: rgb(255, 255, 255);                       /* white — normal body text */
  background-color: rgb(3, 9, 26);                 /* darker navy — higher contrast */
}
/* Subtopic disclosure (folded by default; chevron rotates on open). */
.learn-subtopic-chevron { transition: transform .2s ease; }
.learn-subtopic[open] > summary .learn-subtopic-chevron { transform: rotate(90deg); }
/* Interleaved per-section unit: each section is a collapsed fold whose summary is the
   numbered heading. The <h2> sits in a flex summary row, so neutralise the UA serif/margin;
   sized a touch above the row default (the text-sm version read as "too small"). */
.learn-unit { position: relative; }                /* anchor the syllabus toggle onto the headline */
.learn-unit > summary { min-height: 2.75rem; }     /* stable headline height so the toggle centres */
.learn-unit-title {
  font-family: inherit;                            /* sans, not the UA serif h2 default */
  font-size: 1.0625rem;                            /* 17px — bigger than the row default */
  font-weight: 600;
  margin: 0;
}
/* Tiny figure preview on the COLLAPSED section header — so figures are visible at a glance
   without opening every fold. Hidden once the section is open (the full figure shows in the
   body). cover crops to a neat tile; white bg sits behind transparent SVG/PNG diagrams. */
/* ⚠️ A rendered PDF page is WHITE PAPER, so on the navy page these read as light leaks —
   nine 44x32 white chips glaring down the right edge of the topic list — rather than as
   pictures. Framed the way .lx-figure frames a figure (17-learn.css): a hairline, a drop
   shadow, and enough dimming that the paper sits behind the page instead of in front of it.
   The dimming stays in LIGHT mode too, where it is what separates white paper from a white
   card; only the shadow and hairline are re-aimed there, by the generated block. */
.learn-unit-thumb {
  flex: none;
  width: 2.75rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 0.3rem;
  background: #0b1020;
  padding: 2px;                                    /* the matte, so the page sits IN a frame */
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  filter: brightness(0.86) contrast(1.04);
}
.learn-unit[open] > summary .learn-unit-thumb { display: none; }
/* The "Syllabus" toggle lives in the open section body, but its summary is lifted onto the
   headline row (right of the title, left of the section chevron) — so it appears only once the
   section is open, and closed it adds ~0 height so the handout body sits right under the
   headline. text-[11px] isn't in the compiled Tailwind, so size/position live here. */
.learn-syllabus-fold { margin-bottom: 0; }
.learn-syllabus-fold[open] { margin-bottom: 0.75rem; }
.learn-syllabus-summary {
  position: absolute;
  top: 0;
  right: 2.5rem;                                    /* clear the section chevron */
  height: 2.75rem;                                 /* match the headline → vertical centre */
  font-size: 0.6875rem;                            /* 11px — small, subtle */
  font-weight: 500;
  letter-spacing: 0.02em;
}
/* Handout/Vocabulary download buttons lift onto the TOPIC title row (same trick as the syllabus
   toggle): they live at the top of the open topic body but are absolutely positioned onto the
   summary, right of the title and left of the topic chevron — so they appear only once the topic
   is open and cost no extra row. (3.25rem = h-7 badge + py-3, the topic summary's height.) */
.learn-topic-rel {
  position: relative;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;  /* handout font, everywhere in the box */
  /* Darker than the page (better contrast) but keep depth: a dark top→bottom gradient instead of a
     flat fill, a lit top edge + drop shadow for the raised/glass 3D look (backdrop-blur + border
     come from the Tailwind classes and stay). */
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.36));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 12px 30px -14px rgba(0, 0, 0, 0.6);
}
.learn-topic-rel > summary { min-height: 3.25rem; }
.learn-topic-tools {
  position: absolute;
  top: 0;
  right: 3rem;                                     /* clear the topic chevron */
  height: 3.25rem;                                 /* match the topic summary → vertical centre */
}
/* ⚠️ THE LIFT ONLY WORKS WHILE THE ROW FITS THE RESERVED PADDING BELOW, AND THE ROW'S LENGTH
   IS NOT BOUNDED. It carries one chip per document — handout, vocabulary list, one per weekly
   vocab test (a topic spans two or three weeks), video, slides — and since the 2-up rollout
   EVERY document also renders a "2-up" sibling, so the chip count roughly doubled under a
   reservation that was never revisited. Measured 2026-09-19 on /know/igcse_computer_science/2
   at 1440px: 13 children, 926px wide, against a 21rem (336px) reservation — the row printed
   straight through the topic list under it, at every width, in both themes.
   So the lift is now CONDITIONAL: past four chips the row drops into normal flow and wraps,
   exactly as the phone rule below already does. Four chips is what the reservation covers —
   handout + 2-up + vocabulary + 2-up measured 277px = 17.3rem — hence the 18rem below.
   Adding a new chip type does not need a new number here; it just crosses the threshold
   sooner and lands in flow, which is safe. */
.learn-topic-tools:has(> :nth-child(5)) {
  position: static;
  height: auto;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 0 0.75rem;
}
/* Long-title safety: when a unit/topic is open, the absolute syllabus toggle / download buttons
   overlay the right of the headline — reserve room so a long heading can't slide under them. */
.learn-unit[open] > summary .learn-unit-title { padding-right: 5.5rem; }
.learn-topic-rel[open] > summary .learn-topic-title { padding-right: 18rem; }
/* Topics that also carry a "View Slides" button need a third slot in the lifted tools row;
   reserve generously so a long heading can't slide under the three buttons. */
.learn-topic-rel.learn-topic-has-slides[open] > summary .learn-topic-title { padding-right: 21rem; }
/* …but a topic whose row dropped into flow reserves nothing — the heading gets its full
   width back, the same way the phone rule below does. */
.learn-topic-rel[open]:has(.learn-topic-tools:has(> :nth-child(5))) > summary .learn-topic-title,
.learn-topic-rel.learn-topic-has-slides[open]:has(.learn-topic-tools:has(> :nth-child(5))) > summary .learn-topic-title {
  padding-right: 0;
}
/* Match the slides button height to the handout/vocab download buttons (py-1) so all three
   align on the lifted row (the shared .slides-launch macro is py-1.5, a touch taller). */
/* The lifted tools row is only 3.25rem tall, so the chips in it are shorter than the
   same buttons elsewhere. Every chip in the row must agree, or the odd one out reads as
   a different control: "Watch lesson" stood 30px beside 26px neighbours. */
.learn-topic-tools .slides-launch,
.learn-topic-tools .video-launch { padding-top: 0.25rem; padding-bottom: 0.25rem; }
/* Phones: no chip row fits the narrow title row, so EVERY topic drops its tools group into
   normal flow under the summary, wrapping, and the heading gets its full width back. This used
   to apply only to topics with slides; the rest kept the lifted row, which is right-anchored —
   so a topic with a handout, a vocab list, two weekly vocab tests and a video ran its left end
   ~570px OFF-SCREEN to the left, where no scroll can reach (measured at 375px on
   /know/a_level_physics, and on every /know/<subject>/<n> page). */
@media (max-width: 639px) {
  .learn-topic-tools {
    position: static;
    height: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0 0 0.75rem;
  }
  .learn-topic-tools > a,
  .learn-topic-tools > button { min-height: 2.25rem; }
  .learn-topic-rel[open] > summary .learn-topic-title,
  .learn-topic-rel.learn-topic-has-slides[open] > summary .learn-topic-title { padding-right: 0; }
}
.learn-content-body table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  line-height: 1.55;
}
/* Preserve comparison columns on phones; scroll the table inside the reader. */
@media (max-width: 639px) {
  .learn-content-body table:not(.ap-ced) {
    position: relative; /* Keep absolutely positioned maths inside the scrolling table. */
    display: block;
    max-width: 100%;
    overflow-x: auto;
    table-layout: auto;
  }
  .learn-content-body table:not(.ap-ced) :is(th, td) { min-width: 8rem; }
}
.learn-content-body thead th {
  text-align: left;
  font-weight: 600;
  color: rgb(165, 243, 252);                       /* cyan-200 */
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.03);
}
.learn-content-body tbody td {
  vertical-align: top;
  padding: 0.7rem 0.85rem;
  color: rgb(255, 255, 255);                       /* white — match body */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.learn-content-body tbody tr:nth-child(odd) td {
  background-color: rgba(255, 255, 255, 0.015);
}
.learn-content-body tbody tr:last-child td {
  border-bottom: none;
}
.learn-content-body tbody td:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
/* Syllabus learning-objectives (the content_body macro — NOT handouts) render in
   near-white slate-100 to match the A-Level numbered-list benchmark. IGCSE
   subjects whose objectives are tables would otherwise inherit the yellow body. */
.learn-content-body--syllabus,
.learn-content-body--syllabus tbody td {
  color: rgb(241, 245, 249);                       /* slate-100 — matches .learn-content-body ol */
}
.learn-content-body .math.inline,
.learn-content-body .math.block {
  color: rgb(255, 255, 255);                       /* white — formulas and numbers */
}

/* AP College Board CED "Required Course Content" — its native three columns
   (Enduring Understanding | Learning Objective | Essential Knowledge), built by
   web/ap_syllabus_table.py. The Enduring-Understanding cell rowspans its Learning
   Objectives. Wrapped so the wide table scrolls on phones instead of crushing. */
.ap-ced-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0.15rem 0;
}
/* Keep positioned maths inside this reader's horizontal syllabus scroll panel. */
#site-main section[data-subject="ap_precalculus"] .ap-ced-wrap { position: relative; }

/* Preserve the reviewed numeric comparison tables instead of squeezing their cells. */
#site-main section[data-subject="ap_precalculus"] .learn-unit:has([data-viz-type="exponential_model"], [data-viz-type="model_validation"]) .learn-content-body table:not(.ap-ced) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  table-layout: auto;
  white-space: nowrap;
}
html:not([data-theme="light"]) #site-main section[data-subject="ap_precalculus"] .learn-unit:has([data-viz-type="exponential_model"], [data-viz-type="model_validation"]) .learn-content-body table:not(.ap-ced) :is(th, td) {
  background: var(--reading-surface, #01040e);
}

.learn-content-body table.ap-ced {
  min-width: 640px;                                 /* scroll rather than crush the 3 columns on phones */
}
.learn-content-body table.ap-ced th,
.learn-content-body table.ap-ced td {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
.learn-content-body table.ap-ced th:last-child,
.learn-content-body table.ap-ced td:last-child { border-right: none; }
.learn-content-body table.ap-ced td { padding: 0.7rem 0.85rem; }
.learn-content-body table.ap-ced td > :first-child { margin-top: 0; }
.learn-content-body table.ap-ced td > :last-child { margin-bottom: 0; }
.learn-content-body table.ap-ced td p { margin: 0 0 0.4rem; }
/* The spanning Enduring-Understanding cell — faint sky wash so the grouping reads
   at a glance; its code label (and each Learning-Objective code) in sky-300. */
.learn-content-body table.ap-ced td.ap-eu {
  background-color: rgba(56, 189, 248, 0.045);
}
.learn-content-body table.ap-ced td.ap-eu strong,
.learn-content-body table.ap-ced td.ap-lo p:first-child strong:first-child {
  color: rgb(125, 211, 252);                        /* sky-300 — the EU / LO code label */
  font-weight: 600;
}
/* Essential-Knowledge list: tighten so the bullets sit close inside the cell. */
.learn-content-body table.ap-ced td.ap-ek ul { margin: 0; padding-left: 1.05rem; }
.learn-content-body table.ap-ced td.ap-ek > ul > li { margin-bottom: 0.4rem; }
.learn-content-body table.ap-ced td.ap-ek > ul > li:last-child { margin-bottom: 0; }
.learn-content-body table.ap-ced td.ap-ek ul ul { margin: 0.25rem 0 0; }
/* AP history CEDs print ILLUSTRATIVE EXAMPLES in the page's margin rail rather
   than inside a column. They are real course content, so they follow the table
   as their own aside instead of being folded into the last cell. */
.learn-content-body .ap-ced-extras {
  margin: 0.6rem 0 0.15rem;
  padding: 0.6rem 0.85rem;
  border-left: 2px solid rgba(56, 189, 248, 0.35);
  background-color: rgba(56, 189, 248, 0.035);
  border-radius: 0 0.35rem 0.35rem 0;
}
.learn-content-body .ap-ced-extras > :first-child { margin-top: 0; }
.learn-content-body .ap-ced-extras > :last-child { margin-bottom: 0; }
.learn-content-body .ap-ced-extras p strong { color: rgb(125, 211, 252); font-weight: 600; }
.learn-content-body .ap-ced-extras ul { margin: 0.35rem 0 0; padding-left: 1.05rem; }
.learn-content-body .ap-ced-extras ul ul { margin: 0.2rem 0 0.35rem; }

/* Textbook figures: white padded card so dark/transparent line art stays legible on navy. */
.learn-content-body img {
  display: block;
  max-width: min(100%, 44rem);   /* responsive shrink + ceiling for the widest figures */
  height: auto;                  /* wins over the inline height attr → aspect ratio preserved under clamp */
  box-sizing: border-box;        /* white-card padding counts within the injected width */
  margin: 1.25rem auto 0;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.5rem;
}
/* Caption directly after a figure (image + *caption* on consecutive lines, no blank line). */
.learn-content-body img + em {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: rgb(148, 163, 184);                       /* slate-400 */
  margin: 0.35rem 0 0.75rem;
}
/* H3 sub-section headers (IGCSE Physics 1.5.1, 1.5.2, …) between tables. */
.learn-content-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgb(165, 243, 252);                       /* cyan-200 */
}
.learn-content-body h3:first-child {
  margin-top: 0;
}
/* A-Level numbered list of learning outcomes. */
.learn-content-body ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin: 0;
  color: rgb(241, 245, 249);                       /* slate-100 */
}
.learn-content-body ol > li {
  margin: 0.35rem 0;
  padding-left: 0.25rem;
}
.learn-content-body ol > li::marker {
  color: rgb(148, 163, 184);                       /* slate-400 */
  font-variant-numeric: tabular-nums;
}
/* Handout markdown elements (handouts use ##/###/#### + paragraphs, bullets, inline + fenced code). */
.learn-content-body h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: rgb(165, 243, 252);                       /* cyan-200 — matches h3 family */
}
.learn-content-body h2:first-child { margin-top: 0; }
.learn-content-body h4 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 1.0rem;
  font-weight: 700;
  color: rgb(255, 255, 255);                       /* white — sub-subsection heading */
}
.learn-content-body p { margin: 0.75rem 0; }
.learn-content-body p:first-child { margin-top: 0; }
.learn-content-body p:last-child { margin-bottom: 0; }
.learn-content-body ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 0.75rem 0;
}
.learn-content-body ul > li {
  margin: 0.35rem 0;
  padding-left: 0.25rem;
}
.learn-content-body ul > li::marker {
  color: rgb(148, 163, 184);                       /* slate-400 */
}
.learn-content-body strong {
  font-weight: 700;
  color: rgb(253, 224, 71);                        /* yellow-300 — emphasis brighter than body */
}
.learn-content-body em { font-weight: 600; }
.learn-content-body code {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.92em;
  color: rgb(255, 255, 255);                       /* white — inline code */
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.25rem;
  padding: 0.05rem 0.35rem;
}
.learn-content-body pre {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.95rem;
  line-height: 1.5;
}
.learn-content-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 1em;
  color: rgb(255, 255, 255);                       /* white — fenced code blocks */
}

/* ─── On-page per-handout vocab glossary list ──────────────────────────────────
   Mirrors .learn-content-body table (fixed columns, cyan header, dividers) so the
   term list reads as part of the handout, not a cramped 14/11px afterthought.
   Kept in the page's sans UI font (matches the "VOCABULARY" label + Train button it
   sits with, and pinyin tone-marks scan cleanly) — switch font-family to
   'Source Serif 4', Georgia, serif here if you'd rather it match the prose. */
.learn-vocab-table {
  width: auto;                         /* hug content — don't stretch columns to fill the box */
  max-width: 100%;
  border-collapse: collapse;
  table-layout: auto;                  /* each column sizes to its own content (below) */
  font-size: 1rem;                     /* up from text-sm (14px) */
  line-height: 1.5;
}
/* Every column hugs its own content — a natural gap comes from the cell padding, and the table
   (width:auto above) doesn't stretch anything wider than necessary. Long terms wrap (break-word
   below) rather than forcing a huge column or overflowing on a narrow (mobile) width. */
.learn-vocab-table col.col-en,
.learn-vocab-table col.col-zh,
.learn-vocab-table col.col-py { width: auto; }
.learn-vocab-table thead th {
  text-align: left;
  font-size: 0.78rem;                  /* up from text-[11px]; small-caps column label */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(165, 243, 252);          /* cyan-200 — matches .learn-content-body header */
  padding: 0 0.85rem 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.learn-vocab-table tbody td {
  vertical-align: top;
  padding: 0.5rem 0.85rem 0.5rem 0;
  color: rgb(241, 245, 249);          /* slate-100 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-wrap: break-word;          /* long terms wrap when squeezed, but never collapse the column's min width */
}
.learn-vocab-table thead th:last-child,
.learn-vocab-table tbody td:last-child { padding-right: 0; }
.learn-vocab-table tbody tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.015); }
.learn-vocab-table tbody tr:last-child td { border-bottom: none; }
.learn-vocab-table tbody td:nth-child(2) { font-size: 1.075rem; }       /* CJK optically larger */
/* A Han cell's own minimum is one character, so on a phone the pinyin column took the width and
   化合物 broke as 化合 / 物. Four characters stay together; longer meanings still wrap. */
.learn-vocab-table tbody td:nth-child(2) { min-width: calc(4.2em + 0.85rem); }
.learn-vocab-table tbody td:nth-child(3) { color: rgb(148, 163, 184); } /* pinyin muted (slate-400) */
/* Hand-picked concept icon before the English term (same map as Morning Reading; built by
   web/templating.py:vocab_icon). The per-row COLOUR is set INLINE by that helper (mixed hues,
   cycled by row index), so it can't be lost if this sheet is edited; here we only size/space
   the glyph. Web only; the vocab PDFs render greyscale on a separate path. */
.learn-vocab-table .vocab-icon {
  display: inline-block;
  width: 1.25em; height: 1.25em;      /* a touch bigger for legibility */
  margin-right: 0.6em;                /* a bit more breathing room before the word */
  vertical-align: -0.25em;            /* centre the larger glyph on the text */
}
.learn-vocab-table .vocab-icon svg { display: block; width: 100%; height: 100%; }
/* Hanging indent on the term column — see the twin rule in 17-learn.css for the why.
   Keep the two copies in step: this sheet serves /know, that one /learn. */
.learn-vocab-table tbody td:first-child {
  padding-inline-start: 1.85em;   /* inline-start: right-to-left pages hang from the right */
  text-indent: -1.85em;
}

/* The pronunciation under each English term (web/templating.py:vocab_ipa, shared data with the
   PDFs). Optional help, so small and muted like the pinyin. It is a block inside the term cell,
   so the hanging indent above must be undone on it: text-indent inherits, and without an icon
   the first line starts 1.85em left of the padding edge. */
.learn-vocab-table .vocab-ipa {
  display: block;
  text-indent: 0;
  margin-left: -1.85em;
  font-size: 0.72em;
  line-height: 1.35;
  color: rgb(148, 163, 184);           /* slate-400, as the pinyin column */
  font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", "Segoe UI", "Lucida Grande",
               "Noto Sans", Arial, sans-serif;   /* faces that carry the IPA symbols */
  letter-spacing: 0.01em;
}
.learn-vocab-table .vocab-icon ~ .vocab-ipa { margin-left: 0; }  /* under the word, not the icon */

/* Learn hero styling moved to the shared .site-hero module (bundled 03-core-ui.css);
   /know now renders via the partials/hero.html macro, and reduced-motion is handled
   once for .site-hero in the bundled 10-accessibility-motion.css. */

/* ─── Deep-linked subject cards (/eXam/practice#<slug>) ──────────────────────
   The home page's per-subject Practice button links here rather than to the take-page,
   so the visitor picks a topic before a question is drawn. The site header is
   `sticky top-0`, so without headroom the card lands UNDER it — and this must be CSS,
   not a JS offset: the browser performs its own anchor jump on arrival, before the
   landing's script runs, so a JS-only fix would be visibly corrected a beat late. */
.practice-subject-anchor { scroll-margin-top: 5.5rem; }

/* The practice landing's focused view: one subject, a full-width topic overview.
   The head sets data-practice-pending before paint for saved pins and deep links. */
html[data-practice-pending] #practice-browse,
#practice-browse[hidden], #practice-focused[hidden],
#practice-focus-empty[hidden] { display: none !important; }

html[data-practice-focused] #site-main > .site-hero { display: none !important; }
.practice-focus-shell { margin-top: 0.5rem; scroll-margin-top: 5.5rem; }
.practice-focus-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.5rem;
}
.practice-focus-eyebrow {
  color: #94a3b8; font-size: 0.75rem; font-weight: 750;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.practice-show-all {
  flex: none; border: 1px solid rgba(148, 163, 184, 0.25); border-radius: 999px;
  padding: 0.45rem 0.85rem; color: #cbd5e1; background: rgba(255, 255, 255, 0.045);
  font-size: 0.78rem; font-weight: 650; transition: background 0.15s, border-color 0.15s;
}
.practice-show-all:hover, .practice-show-all:focus-visible {
  border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.1);
  outline: none;
}
.practice-focus-empty {
  border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 1.25rem;
  padding: 2rem; color: #cbd5e1; background: rgba(255, 255, 255, 0.035);
}
.practice-acc { background: #080f1e; }
#practice-focus-body > .practice-acc {
  border-color: rgba(var(--accent-rgb, 34, 211, 238), 0.24);
  border-radius: 1.5rem;
  background: linear-gradient(155deg, rgba(var(--accent-rgb, 34, 211, 238), 0.07), transparent 26%), #080f1e;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.19);
}
#practice-focus-body > .practice-acc > summary { padding: 0.8rem 1rem; gap: 0.75rem; }
#practice-focus-body > .practice-acc > summary .practice-card-icon-bg {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
}
#practice-focus-body > .practice-acc > summary .practice-card-icon { width: 1.25rem; height: 1.25rem; }
#practice-focus-body > .practice-acc > summary .practice-subject-name {
  font-size: 1.25rem; line-height: 1.25;
  white-space: normal; overflow: visible;
}
#practice-focus-body > .practice-acc > summary .text-xs { margin-top: 0.1rem; font-size: 0.7rem; color: #a8bacb; }
.practice-topic-content { padding: 0.55rem 0.7rem 0.75rem; }
.practice-random {
  min-height: 2.5rem; margin-bottom: 0.35rem; padding: 0.45rem 0.7rem;
  border: 1px solid rgba(34, 211, 238, 0.23); border-radius: 0.7rem;
  color: #d8f7fd; background: rgba(34, 211, 238, 0.08);
}
.practice-random:hover, .practice-random:focus-visible {
  border-color: rgba(34, 211, 238, 0.52); background: rgba(34, 211, 238, 0.14);
}
.practice-topic-grid { display: flex; flex-direction: column; gap: 0.35rem; }
.practice-topic-card {
  position: relative; min-width: 0; overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb, 148, 163, 184), 0.23); border-radius: 0.85rem;
  background: linear-gradient(125deg, rgba(var(--accent-rgb, 148, 163, 184), 0.035), transparent 28%), #070e1d;
  box-shadow: inset 3px 0 rgba(var(--accent-rgb, 148, 163, 184), 0.55);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.practice-unit-choice { width: 100%; min-width: 0; }
.practice-topic-card[hidden] { display: none !important; }
.practice-topic-card:hover, .practice-topic-card:focus-within {
  border-color: rgba(var(--accent-rgb, 148, 163, 184), 0.65);
  box-shadow: inset 3px 0 rgba(var(--accent-rgb, 148, 163, 184), 0.9), 0 5px 20px rgba(0, 0, 0, 0.15);
}
.practice-topic-main {
  display: flex; min-width: 0; flex: 1; align-items: center; gap: 0.7rem;
  min-height: 3.35rem; padding: 0.5rem 0.75rem; color: #f1f5f9;
}
.practice-topic-card--preview .practice-topic-main {
  width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer;
}
.practice-topic-card--with-actions .practice-topic-main { padding-right: 15.25rem; }  /* Watch lesson + View Slides ≈ 14rem; the ⌄ must clear them */
.practice-unit-choice[open] > .practice-topic-main { border-bottom: 1px solid rgba(var(--accent-rgb, 148, 163, 184), 0.2); }
.practice-topic-main:focus-visible { outline: 2px solid rgba(34, 211, 238, 0.8); outline-offset: -2px; border-radius: 0.7rem; }
.practice-topic-number {
  display: inline-flex; min-width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center;
  padding: 0 0.3rem; border: 1px solid rgba(var(--accent-rgb, 148, 163, 184), 0.3); border-radius: 0.45rem;
  background: rgba(var(--accent-rgb, 148, 163, 184), 0.1);
  color: rgb(var(--accent-rgb, 203, 213, 225)); font-size: 0.76rem; font-weight: 750; font-variant-numeric: tabular-nums;
}
.practice-topic-icon { display: inline-flex; flex: none; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border-radius: 0.45rem; }
.practice-topic-icon svg { width: 1.1rem; height: 1.1rem; }
.practice-topic-text { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.practice-topic-arrow { color: #64748b; font-size: 0.95rem; transition: color 0.15s, transform 0.15s; }
.practice-topic-card:hover .practice-topic-arrow { color: rgb(var(--accent-rgb, 148, 163, 184)); transform: translate(2px, -2px); }
.practice-topic-title { display: block; overflow-wrap: anywhere; font-size: 0.98rem; font-weight: 600; line-height: 1.25; }
.practice-topic-meta { display: block; margin-top: 0.15rem; color: #a7b8ca; font-size: 0.74rem; line-height: 1.25; }
/* Topic progress line (first-try accuracy / outstanding mistakes). */
.practice-topic-progress { display: block; margin-top: 0.12rem; color: #7f93a8; font-size: 0.72rem; line-height: 1.3; }
.practice-topic-progress .practice-topic-fix { color: #fcd34d; text-decoration: underline; text-underline-offset: 2px; }
.practice-topic-progress .practice-topic-fix:hover { color: #fde68a; }
html[data-theme="light"] .practice-topic-progress { color: rgb(71 85 105); }
html[data-theme="light"] .practice-topic-progress .practice-topic-fix { color: rgb(180 83 9); }
.practice-topic-correct { display: inline-flex; align-items: center; gap: 0.25rem; color: #6ee7b7; }
.practice-topic-correct svg { width: 0.8rem; height: 0.8rem; }
.practice-topic-actions {
  position: absolute; z-index: 1; top: 0.48rem; right: 0.55rem;
  display: flex; align-items: center; gap: 0.35rem;
}
.practice-topic-actions .video-launch, .practice-topic-actions .slides-launch { border-radius: 0.5rem; }
.practice-topic-pager {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.55rem 0.15rem 0.05rem; color: #94a3b8; font-size: 0.75rem;
}
.practice-topic-pager[hidden] { display: none !important; }
.practice-topic-pager button {
  border: 1px solid rgba(148, 163, 184, 0.22); border-radius: 0.6rem;
  padding: 0.4rem 0.7rem; color: #dbeafe; background: rgba(255, 255, 255, 0.045);
}
.practice-topic-pager button:hover:not(:disabled), .practice-topic-pager button:focus-visible {
  border-color: rgba(34, 211, 238, 0.55); background: rgba(34, 211, 238, 0.11); outline: none;
}
.practice-topic-pager button:disabled { opacity: 0.4; cursor: default; }
.practice-topic-retry {
  padding: 1rem; border: 1px dashed rgba(34, 211, 238, 0.45);
  border-radius: 0.85rem; color: #67e8f9; text-align: left;
}
#practice-focus-body > a.practice-card, #practice-focus-body > .practice-subject-anchor:not(.practice-acc) {
  width: 100%; min-height: 5rem;
}
@media (max-width: 680px) {
  .practice-topic-content { padding: 0.5rem; }
  .practice-topic-main { gap: 0.4rem; padding-inline: 0.55rem; }
  .practice-topic-card--with-actions .practice-topic-main { padding-right: 5.25rem; }
  .practice-topic-icon { width: 1.7rem; height: 1.7rem; }
  .practice-topic-arrow { display: none; }
  .practice-topic-actions { top: 0.55rem; right: 0.4rem; gap: 0.2rem; }
  .practice-topic-actions .video-launch, .practice-topic-actions .slides-launch { font-size: 0; gap: 0; padding: 0.35rem; }
  .practice-topic-actions .video-launch svg, .practice-topic-actions .slides-launch svg { width: 1rem; height: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .practice-topic-card, .practice-topic-arrow { transition: none; }
}

/* The AI Learn card at the top of /learn (roadmap Plan 21). It lives HERE, in the sheet the
   /learn landing actually links — it was first written into 17-learn.css, which only the lesson
   pages load, and rendered on /learn as a bare line of text. */
.learn-ailearn-card {
  display: grid;
  gap: 0.2rem;
  margin: 0 0 1.2rem;
  padding: 0.9rem 1.15rem;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 1rem;
  background: rgba(56, 189, 248, 0.07);
}
.learn-ailearn-card:hover { border-color: rgba(56, 189, 248, 0.6); background: rgba(56, 189, 248, 0.12); }
.learn-ailearn-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #38bdf8; }
.learn-ailearn-title { font-size: 1.05rem; font-weight: 700; color: #f8fafc; }
.learn-ailearn-blurb { font-size: 0.85rem; color: #cbd5e1; }
/* TOEFL Junior practice cards (toefl_junior/_practice_cards.html): copied in 43-ielts.css for the hub; change both. Focused
   /eXam/practice view. Dark glass like .practice-card, tinted by --accent-rgb. */
.tj-pcards { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.tj-pcard { display: flex; align-items: center; gap: .9rem; height: 100%; padding: .95rem 1rem; border-radius: 1rem;
  border: 1px solid rgba(var(--accent-rgb), .22); background: linear-gradient(180deg, rgba(var(--accent-rgb), .08), rgba(255, 255, 255, .015)), #0a1122;
  color: #f1f5f9; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.tj-pcard:hover, .tj-pcard:focus-visible { border-color: rgba(var(--accent-rgb), .6); transform: translateY(-1px); box-shadow: 0 6px 22px -10px rgba(var(--accent-rgb), .55); outline: none; }
.tj-pcard--mock { border-color: rgba(var(--accent-rgb), .4); background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .02)), #0a1122; }
.tj-pcard-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: .85rem;
  background: rgba(var(--accent-rgb), .14); color: rgb(var(--accent-rgb)); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .3); }
.tj-pcard-svg { width: 1.6rem; height: 1.6rem; }
.tj-pcard-body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.tj-pcard-title { font-weight: 650; font-size: 1rem; line-height: 1.3; color: #f8fafc; }
.tj-pcard-meta { font-size: .82rem; color: #cbd5e1; }
.tj-pcard-lock { display: inline-block; width: .85em; height: .85em; vertical-align: -.08em; margin-right: .2em; }
.tj-pcard-arrow { color: rgba(var(--accent-rgb), .9); }
.tj-pcard-chev { width: 1.1rem; height: 1.1rem; }
.practice-focus-tj { margin-top: .5rem; }
.practice-focus-tj[hidden] { display: none; }
.practice-focus-tj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .9rem; }
.practice-focus-tj-title { font-size: 1.25rem; font-weight: 700; color: #f8fafc; margin: 0; }
.practice-focus-tj-link { font-size: .88rem; color: rgb(125, 211, 252); text-decoration: none; }
.practice-focus-tj-link:hover { text-decoration: underline; }
.practice-focus-vocab { margin-top: 1.75rem; }
.practice-focus-vocab[hidden] { display: none; }
.pv-deck + .pv-deck { margin-top: 1.25rem; }
.pv-deck-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin: 0 0 .65rem; }
.pv-deck-head .pv-deck-name { margin-inline-end: auto; }
.pv-deck-name { margin: 0; font-size: 1rem; font-weight: 650; color: #e2e8f0; }
.pv-all { display: inline-flex; align-items: center; padding: .45rem .95rem; border-radius: 999px; font-size: .88rem; font-weight: 650; text-decoration: none;
  color: #04131a; background: linear-gradient(135deg, rgb(103 232 249), rgb(94 234 212)); box-shadow: 0 8px 20px -12px rgb(45 212 191 / .9); }
.pv-all:hover { filter: brightness(1.08); }
.pv-all:focus-visible, .pv-list:focus-visible { outline: 2px solid rgb(103 232 249); outline-offset: 2px; }
.pv-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.pv-list { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .55rem .7rem; border-radius: .8rem; text-decoration: none;
  border: 1px solid rgb(255 255 255 / .08); background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
  transition: border-color .15s, background-color .15s; }
.pv-list:hover { border-color: rgb(103 232 249 / .5); background: rgb(103 232 249 / .08); }
.pv-num { display: inline-flex; flex: none; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; padding: 0 .3rem; border-radius: .55rem;
  font-size: .8rem; font-weight: 700; color: rgb(103 232 249); background: rgb(103 232 249 / .12); font-variant-numeric: tabular-nums; }
.pv-text { display: grid; min-width: 0; }
.pv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 600; color: #f1f5f9; }
.pv-count { font-size: .76rem; color: #cbd5e1; }
@media (max-width: 640px) {
  .pv-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
  .pv-list { align-items: flex-start; gap: .45rem; padding: .5rem .55rem; }
  .pv-num { min-width: 1.6rem; height: 1.6rem; font-size: .74rem; }
  .pv-title { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .82rem; line-height: 1.25; }
}
html[data-theme="light"] .pv-deck-name { color: rgb(30 41 59); }
html[data-theme="light"] .pv-list { border-color: rgb(15 23 42 / .12); background: #fff; }
html[data-theme="light"] .pv-list:hover { border-color: rgb(8 145 178 / .5); background: rgb(236 254 255); }
html[data-theme="light"] .pv-num { color: rgb(14 116 144); background: rgb(8 145 178 / .1); }
html[data-theme="light"] .pv-title { color: rgb(15 23 42); }
html[data-theme="light"] .pv-count { color: rgb(71 85 105); }
/* ─── Speaker button after each English vocab term (web/templating.py:vocab_say,
   js/vocab-say.js). Deliberately quiet: a small muted glyph that brightens on hover/focus,
   so a table of twenty words does not turn into a column of buttons. */
.vocab-term { white-space: normal; }
.vocab-say {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35em; height: 1.35em; margin-left: 0.3em; padding: 0;
  vertical-align: -0.18em; text-indent: 0;
  border: 0; border-radius: 999px; background: transparent;
  color: rgb(148 163 184 / 0.55); cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.vocab-say svg { width: 0.85em; height: 0.85em; }
.vocab-say:hover, .vocab-say:focus-visible { color: rgb(103 232 249); background: rgb(103 232 249 / 0.10); outline: none; }
.vocab-say.is-playing { color: rgb(103 232 249); }
html[data-theme="light"] .vocab-say { color: rgb(71 85 105 / 0.6); }
html[data-theme="light"] .vocab-say:hover, html[data-theme="light"] .vocab-say:focus-visible,
html[data-theme="light"] .vocab-say.is-playing { color: rgb(8 145 178); background: rgb(8 145 178 / 0.10); }
@media print { .vocab-say { display: none; } }
/* ── Hub subject cards (owner 2026-11-21: /eXam/practice, /learn, /know and /vocab read as
   empty lists of identical grey rows). Pages opt in with body_class 'hub-cards'. Each card
   takes its subject's colour: a wash from the corner, an edge, a larger icon tile. ── */
body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) {
  border-color: rgba(var(--accent-rgb, 148, 163, 184), .3) !important;
  background-image: radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb, 148, 163, 184), .2), transparent 62%),
                    linear-gradient(150deg, #0f182d, #070b17 82%) !important;
  box-shadow: inset 3px 0 rgb(var(--accent-rgb, 148, 163, 184)), 0 12px 26px -18px rgba(0, 0, 0, .8);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card):hover,
body.hub-cards :is(.practice-acc, .vl-card)[open] {
  border-color: rgba(var(--accent-rgb, 148, 163, 184), .65) !important;
  box-shadow: inset 3px 0 rgb(var(--accent-rgb, 148, 163, 184)), 0 16px 30px -16px rgba(var(--accent-rgb, 148, 163, 184), .45);
}
body.hub-cards :is(a.practice-card.lib-card, .practice-acc:not([open]), .vl-card:not([open])):hover { transform: translateY(-2px); }
body.hub-cards :is(a.practice-card.lib-card, .practice-acc > summary) { min-height: 4.6rem; }
body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) .practice-card-icon-bg {
  width: 2.9rem; height: 2.9rem; border-radius: .8rem;
  background: rgba(var(--accent-rgb, 148, 163, 184), .16);
  border: 1px solid rgba(var(--accent-rgb, 148, 163, 184), .45);
  box-shadow: 0 0 22px rgba(var(--accent-rgb, 148, 163, 184), .14);
}
body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) .practice-card-icon-bg svg {
  width: 1.6rem; height: 1.6rem; color: rgb(var(--accent-rgb, 148, 163, 184));
}
body.hub-cards :is(a.practice-card.lib-card, .practice-acc > summary) .text-sm { font-size: 1rem; }
body.hub-cards :is(a.practice-card.lib-card, .practice-acc > summary) .text-xs {
  color: rgb(var(--accent-rgb, 148, 163, 184)); filter: brightness(1.25); font-weight: 600;
}
html[data-theme="light"] body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) {
  background-image: radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb, 148, 163, 184), .16), transparent 64%),
                    linear-gradient(150deg, #fff, #f4f8ff 85%) !important;
}
html[data-theme="light"] body.hub-cards :is(a.practice-card.lib-card, .practice-acc > summary) .text-xs {
  color: color-mix(in srgb, rgb(var(--accent-rgb, 148, 163, 184)) 55%, #173550); filter: none;
}
@media (prefers-reduced-motion: reduce) {
  body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) { transition: none; }
  body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card):hover { transform: none; }
}
/* ── Hub spotlight: the picked subject on /eXam/practice, /learn, /know, /vocab ─────────────
   (web/hub_spotlight.py, partials/hub_spotlight.html, hub-spotlight.js). Fills what used to be
   one lone card on an empty page: a header with the subject's counts, big unit/topic cards,
   tiles to its other areas. */
#hub-spotlight { margin: 1.5rem 0 2.5rem; }
[data-subject-card].spot-replaced { display: none !important; }
.spot { --a: var(--accent-rgb, 125, 211, 252); }
.spot-head {
  position: relative; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 1.6rem 1.75rem; border-radius: 1.5rem; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--a), .30), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(var(--a), .14), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(8, 12, 28, .92));
  border: 1px solid rgba(var(--a), .38);
  box-shadow: 0 18px 50px -24px rgba(var(--a), .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.spot-icon {
  display: grid; place-items: center; flex: none; width: 5.2rem; height: 5.2rem; border-radius: 1.4rem;
  color: rgb(var(--a));
  background: radial-gradient(circle at 30% 25%, rgba(var(--a), .38), rgba(var(--a), .12) 60%, rgba(2, 6, 23, .4));
  border: 1px solid rgba(var(--a), .55);
  box-shadow: 0 0 34px rgba(var(--a), .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.spot-icon svg { width: 2.9rem; height: 2.9rem; }
.spot-head-text { flex: 1 1 18rem; min-width: 0; }
.spot-eyebrow { margin: 0 0 .15rem; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(var(--a), .95); }
.spot-title { margin: 0; font-family: Outfit, ui-sans-serif, system-ui, sans-serif; font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.1; color: #f8fafc; }
.spot-stats { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.spot-stats li { padding: .3rem .7rem; border-radius: 999px; font-size: .82rem; color: #cbd5e1; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); }
.spot-stats b { color: #fff; font-weight: 700; }
.spot-cta {
  display: inline-flex; align-items: center; gap: .55rem; flex: none; padding: .85rem 1.3rem; border-radius: 1rem;
  font-weight: 700; color: #0b1020; text-decoration: none;
  background: linear-gradient(135deg, rgb(var(--a)), rgba(var(--a), .78));
  box-shadow: 0 10px 28px -10px rgba(var(--a), .8);
  transition: transform .18s ease, box-shadow .18s ease;
}
.spot-cta svg { width: 1.1rem; height: 1.1rem; }
.spot-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(var(--a), .95); }
.spot-h { display: flex; align-items: center; gap: .6rem; margin: 2rem 0 .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #94a3b8; }
.spot-h span { padding: .05rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #e2e8f0; letter-spacing: 0; }
.spot-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(148, 163, 184, .3), transparent); }
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .9rem; }
.spot-card {
  --c: var(--accent-rgb, 125, 211, 252);
  position: relative; display: flex; flex-direction: column; gap: .3rem; min-height: 9.5rem; padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 1.2rem; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--c), .16), rgba(15, 23, 42, .78) 55%);
  border: 1px solid rgba(var(--c), .3);
  box-shadow: inset 3px 0 0 rgba(var(--c), .75);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  animation: spot-in .45s ease both; animation-delay: calc(var(--k, 0) * 35ms);
}
.spot-card:hover { transform: translateY(-3px); border-color: rgba(var(--c), .65); box-shadow: inset 3px 0 0 rgb(var(--c)), 0 16px 36px -18px rgba(var(--c), .7); }
.spot-card-icon {
  display: grid; place-items: center; width: 3.2rem; height: 3.2rem; margin-bottom: .45rem; border-radius: .95rem;
  color: rgb(var(--c)); background: rgba(var(--c), .16); border: 1px solid rgba(var(--c), .4);
}
.spot-card-icon svg { width: 1.9rem; height: 1.9rem; }
.spot-card-num { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(var(--c), .95); }
.spot-card-title { font-family: Outfit, ui-sans-serif, system-ui, sans-serif; font-size: 1.08rem; font-weight: 600; line-height: 1.25; color: #f1f5f9; }
.spot-card-meta { margin-top: auto; padding-top: .35rem; font-size: .8rem; color: #94a3b8; }
.spot-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .8rem; }
.spot-area {
  --c: var(--accent-rgb);
  display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.05rem; border-radius: 1.1rem; text-decoration: none; color: inherit;
  background: linear-gradient(160deg, rgba(var(--c), .2), rgba(15, 23, 42, .8) 70%);
  border: 1px solid rgba(var(--c), .35);
  transition: transform .18s ease, border-color .18s ease;
}
.spot-area:hover { transform: translateY(-3px); border-color: rgba(var(--c), .75); }
.spot-area.is-here { opacity: .55; }
.spot-area-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: .4rem; border-radius: .85rem; color: rgb(var(--c)); background: rgba(var(--c), .16); }
.spot-area-icon svg { width: 1.6rem; height: 1.6rem; }
.spot-area-name { font-weight: 700; font-size: 1rem; color: #f8fafc; }
.spot-area-count { font-size: .8rem; color: #94a3b8; }
.spot-area-count b { color: #e2e8f0; }
@keyframes spot-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .spot-head { padding: 1.2rem; gap: 1rem; }
  .spot-icon { width: 4rem; height: 4rem; }
  .spot-icon svg { width: 2.2rem; height: 2.2rem; }
  .spot-cta { width: 100%; justify-content: center; }
  .spot-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .spot-card { min-height: 8.5rem; padding: .9rem; }
  .spot-card-icon { width: 2.6rem; height: 2.6rem; }
  .spot-areas { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spot-card { animation: none; } .spot-card, .spot-area, .spot-cta { transition: none; } }
html[data-theme="light"] .spot-head { background: radial-gradient(120% 140% at 0% 0%, rgba(var(--a), .22), transparent 55%), #fff; box-shadow: 0 14px 40px -24px rgba(var(--a), .6); }
html[data-theme="light"] .spot-title, html[data-theme="light"] .spot-card-title, html[data-theme="light"] .spot-area-name { color: #0f172a; }
html[data-theme="light"] .spot-stats li { color: #334155; background: rgba(15, 23, 42, .04); border-color: rgba(15, 23, 42, .1); }
html[data-theme="light"] .spot-stats b, html[data-theme="light"] .spot-area-count b { color: #0f172a; }
html[data-theme="light"] .spot-card { background: linear-gradient(160deg, rgba(var(--c), .14), #fff 60%); }
html[data-theme="light"] .spot-area { background: linear-gradient(160deg, rgba(var(--c), .16), #fff 70%); }
html[data-theme="light"] .spot-card-meta, html[data-theme="light"] .spot-area-count { color: #475569; }
.spot > .spot-h:first-child { margin-top: .5rem; }
.spot-videos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 1fr); gap: .9rem; overflow-x: auto; padding-bottom: .4rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.spot-video { display: flex; flex-direction: column; gap: .5rem; text-decoration: none; color: inherit; scroll-snap-align: start; animation: spot-in .45s ease both; animation-delay: calc(var(--k, 0) * 40ms); }
.spot-video-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: #0b1222; border: 1px solid rgba(255, 255, 255, .1); transition: transform .18s ease, border-color .18s ease; }
.spot-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spot-video:hover .spot-video-thumb { transform: translateY(-3px); border-color: rgba(var(--a), .7); }
.spot-video-dur { position: absolute; right: .45rem; bottom: .45rem; padding: .1rem .4rem; border-radius: .4rem; font-size: .72rem; font-weight: 600; color: #fff; background: rgba(2, 6, 23, .82); }
.spot-video-title { font-weight: 600; font-size: .92rem; line-height: 1.3; color: #e2e8f0; }
html[data-theme="light"] .spot-video-title { color: #0f172a; }
@media (prefers-reduced-motion: reduce) { .spot-video { animation: none; } }

/* ── IELTS & TOEFL on /eXam/practice (eXam/_english_exam_cards.html) ── */
.ee-lead { margin: 0 0 .9rem; max-width: 52rem; font-size: .92rem; color: rgba(203, 213, 225, .8); }
.ee-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.ee-card { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.05rem; border-radius: 1rem;
  text-decoration: none; color: inherit; border: 1px solid rgba(var(--accent-rgb), .3);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .03) 60%);
  transition: border-color .15s, transform .15s; }
.ee-card:hover, .ee-card:focus-visible { border-color: rgba(var(--accent-rgb), .75); transform: translateY(-2px); outline: none; }
.ee-card--feature { grid-column: span 2; background: radial-gradient(130% 160% at 0% 0%, rgba(var(--accent-rgb), .3), transparent 60%),
  linear-gradient(160deg, rgba(56, 189, 248, .12), rgba(var(--accent-rgb), .04)); }
@media (max-width: 40rem) { .ee-card--feature { grid-column: auto; } }
.ee-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.ee-icon { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: .65rem;
  color: rgb(var(--accent-rgb)); background: rgba(var(--accent-rgb), .14); border: 1px solid rgba(var(--accent-rgb), .3); }
.ee-icon svg { width: 1.15rem; height: 1.15rem; }
.ee-card-top .ee-exam { margin-right: auto; }
.ee-exam { font-size: .72rem; font-weight: 800; letter-spacing: .14em; color: rgb(var(--accent-rgb)); }
.ee-badge { padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, rgb(139, 92, 246), rgb(56, 189, 248)); }
.ee-title { font-weight: 700; font-size: 1.02rem; color: #fff; }
.ee-card--feature .ee-title { font-size: 1.2rem; }
.ee-meta { font-size: .82rem; color: rgba(203, 213, 225, .78); }
.practice-focus-ee { margin-top: .5rem; }
/* Practice landing: a Start pill on each subject card goes straight to a random question
   (usage 11-28: a question was three folds away and few got there). */
.practice-card-start {
  display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0;
  padding: .4rem .8rem; border-radius: 999px; font-size: .8125rem; font-weight: 700; line-height: 1;
  color: #fff; background: rgba(var(--accent-rgb, 56, 189, 248), .28);
  border: 1px solid rgba(var(--accent-rgb, 56, 189, 248), .6);
  transition: background .15s, transform .15s;
}
.practice-card-start svg { width: .8rem; height: .8rem; }
.practice-card-start:hover, .practice-card-start:focus-visible {
  background: rgba(var(--accent-rgb, 56, 189, 248), .45); transform: translateY(-1px); outline: none;
}
html[data-theme="light"] .practice-card-start { color: rgb(15 23 42); background: rgba(var(--accent-rgb, 56, 189, 248), .16); }

/* ▼▼ LIGHT THEME — GENERATED by scripts/build_light_theme.py from the rules above. Do not edit by hand: run the builder. Hand tuning goes in 36-theme-light.css. ▼▼ */
html[data-theme="light"] .feature-card{border-color:rgb(15 23 42/0.07);background-image:linear-gradient(148deg,
    rgb(242 244 248/0.45) 0%,
    rgb(246 247 250/0.22) 100%
  )}
html[data-theme="light"] .feature-card:hover{background-image:linear-gradient(148deg,
    rgb(242 244 248/0.62) 0%,
    rgb(246 247 250/0.38) 100%
  )}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child h1.font-display{background-image:linear-gradient(118deg, rgb(38 66 94) 0%, rgb(0 111 125) 42%, rgb(1 87 132) 72%, rgb(0 63 133) 100%);filter:none}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .flex.justify-center p.text-xs.uppercase{text-shadow:none}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .hero-icon{box-shadow:0px 13px 44px -6px rgb(15 23 42/0.084),0px 26px 88px -24px rgb(15 23 42/0.05)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child > p.text-slate-400{text-shadow:none}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-form.glass-panel{box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.12),0px 28px 56px -14px rgb(15 23 42/0.16),0px 19px 64px -18px rgb(15 23 42/0.05),0px 30px 100px -30px rgb(15 23 42/0.05)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #prompt{background-image:linear-gradient(168deg, rgb(245 247 250/0.9) 0%, rgb(248 249 252/0.94) 100%);box-shadow:inset 0px 1px rgb(15 23 42/0.03),0px 8px 28px -10px rgb(15 23 42/0.05),0px 16px 52px -20px rgb(15 23 42/0.05);caret-color:rgb(6 107 122)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #prompt::placeholder{color:rgb(1 81 109/0.85)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #prompt:focus{box-shadow:0px 0px 0px 1px rgb(14 158 180/0.204),inset 0px 1px rgb(15 23 42/0.03),0px 10px 32px -8px rgb(15 23 42/0.05),0px 17px 56px -18px rgb(15 23 42/0.05)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #prompt:focus-visible{box-shadow:0px 0px 0px 2px rgb(14 158 180/0.55),inset 0px 1px rgb(15 23 42/0.03),0px 10px 32px -8px rgb(15 23 42/0.05),0px 17px 56px -18px rgb(15 23 42/0.05)}
html[data-theme="light"] .quick-fill{background:linear-gradient(180deg, rgb(15 23 42/0.06) 0%, rgb(15 23 42/0) 45%),
    linear-gradient(180deg, rgba(var(--accent-rgb), .20) 0%, rgba(var(--accent-rgb), .07) 100%),
    rgb(252 252 253/0.34)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-form .quick-fill{box-shadow:inset 0px -12px 20px -14px rgb(15 23 42/0.128),0px 4px 14px -5px rgb(15 23 42/0.12),0px 9px 22px -15px rgb(15 23 42/0.176)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-form .quick-fill:hover{background:linear-gradient(180deg, rgb(15 23 42/0.1) 0%, rgb(15 23 42/0) 45%),
    linear-gradient(180deg, rgba(var(--accent-rgb), .3) 0%, rgba(var(--accent-rgb), .11) 100%),
    rgb(252 252 253/0.3);box-shadow:inset 0px -14px 22px -14px rgb(15 23 42/0.134),0px 7px 22px -4px rgb(15 23 42/0.12),0px 16px 32px -16px rgb(15 23 42/0.16)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-form .quick-fill:active{box-shadow:inset 0px 2px 7px rgb(15 23 42/0.16),0px 4px 12px -8px rgb(15 23 42/0.176)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #submit-btn.btn-space-primary{box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.16),0px 4px 28px -4px rgb(15 23 42/0.176),0px 16px 52px -12px rgb(15 23 42/0.122)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #submit-btn.btn-space-primary:hover:not(:disabled){box-shadow:inset 0px 0px 0px 1px rgb(15 23 42/0.16),0px 10px 40px -6px rgb(15 23 42/0.198),0px 22px 56px -12px rgb(15 23 42/0.134)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .feature-card{border-color:rgb(15 23 42/0.112);box-shadow:0px 13px 44px -14px rgb(15 23 42/0.05)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(1):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.07)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(2):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.064)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(3):hover{box-shadow:0px 14px 44px -12px rgb(15 23 42/0.064)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(1) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(54 10 184/0.204),0px 3px 10px -1px rgb(15 23 42/0.062)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(2) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(14 158 180/0.204),0px 3px 10px -1px rgb(15 23 42/0.055)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) .hero-collapse.mt-14 .grid > .feature-card:nth-child(3) > div:first-child{box-shadow:0px 0px 0px 0.5px rgb(35 159 114/0.204),0px 3px 10px -1px rgb(15 23 42/0.055)}
html[data-theme="light"] #generate-workspace:not(.preview-mode) #gen-left-col > .hero-collapse:first-child .subject-badge{box-shadow:0px 5px 16px -4px rgb(15 23 42/0.05)}
html[data-theme="light"] .subject-badge-igcse-physics,html[data-theme="light"] .subject-badge-a-level-physics,html[data-theme="light"] .subject-badge-ap-physics-1,html[data-theme="light"] .subject-badge-ap-physics-2,html[data-theme="light"] .subject-badge-ap-physics-c-mech,html[data-theme="light"] .subject-badge-ap-physics-c-em{color:rgb(0 111 125)}
html[data-theme="light"] .subject-badge-igcse-computer-science,html[data-theme="light"] .subject-badge-a-level-computer-science,html[data-theme="light"] .subject-badge-ap-computer-science-a,html[data-theme="light"] .subject-badge-ap-computer-science-principles{color:rgb(23 0 133)}
html[data-theme="light"] .subject-badge-igcse-mathematics,html[data-theme="light"] .subject-badge-a-level-mathematics,html[data-theme="light"] .subject-badge-ap-calculus-ab,html[data-theme="light"] .subject-badge-ap-calculus-bc,html[data-theme="light"] .subject-badge-ap-precalculus{color:rgb(0 59 133)}
html[data-theme="light"] .subject-badge-ap-statistics{color:rgb(0 27 133)}
html[data-theme="light"] .subject-badge-a-level-further-mathematics{color:rgb(0 27 133)}
html[data-theme="light"] .subject-badge-igcse-biology,html[data-theme="light"] .subject-badge-a-level-biology,html[data-theme="light"] .subject-badge-ap-biology,html[data-theme="light"] .subject-badge-ap-environmental-science{color:rgb(16 111 73)}
html[data-theme="light"] .subject-badge-igcse-chemistry,html[data-theme="light"] .subject-badge-a-level-chemistry,html[data-theme="light"] .subject-badge-ap-chemistry{color:rgb(0 90 133)}
html[data-theme="light"] .subject-badge-igcse-business-studies,html[data-theme="light"] .subject-badge-a-level-business{color:rgb(7 110 90)}
html[data-theme="light"] .subject-badge-igcse-economics,html[data-theme="light"] .subject-badge-a-level-economics,html[data-theme="light"] .subject-badge-ap-macroeconomics,html[data-theme="light"] .subject-badge-ap-microeconomics{color:rgb(7 110 90)}
html[data-theme="light"] .subject-badge-ap-human-geography{color:rgb(114 95 0)}
html[data-theme="light"] .subject-badge-ap-art-2d{color:rgb(127 6 72)}
html[data-theme="light"] .subject-badge-ap-drawing{color:rgb(133 68 0)}
html[data-theme="light"] .subject-badge-igcse-computer-science:hover,html[data-theme="light"] .subject-badge-a-level-computer-science:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-physics:hover,html[data-theme="light"] .subject-badge-a-level-physics:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-chemistry:hover,html[data-theme="light"] .subject-badge-a-level-chemistry:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-mathematics:hover,html[data-theme="light"] .subject-badge-a-level-mathematics:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-a-level-further-mathematics:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-biology:hover,html[data-theme="light"] .subject-badge-a-level-biology:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-business-studies:hover,html[data-theme="light"] .subject-badge-a-level-business:hover{filter:brightness(1.18)}
html[data-theme="light"] .subject-badge-igcse-economics:hover,html[data-theme="light"] .subject-badge-a-level-economics:hover{filter:brightness(1.18)}
html[data-theme="light"] .learn-content-body{color:rgb(51 63 82);background-color:rgb(249 250 252)}
html[data-theme="light"] .learn-unit-thumb{background-color:rgb(247 247 251);border-color:rgb(15 23 42/0.14);box-shadow:0px 2px 6px rgb(15 23 42/0.144)}
html[data-theme="light"] .learn-topic-rel{background-image:linear-gradient(to bottom, rgb(255 255 255/0.2), rgb(255 255 255/0.36));box-shadow:0px 12px 30px -14px rgb(15 23 42/0.192)}
html[data-theme="light"] .learn-content-body thead th{color:rgb(1 111 124);border-bottom-color:rgb(15 23 42/0.168);background-color:rgb(15 23 42/0.03)}
html[data-theme="light"] .learn-content-body tbody td{color:rgb(51 63 82);border-bottom-color:rgb(15 23 42/0.07)}
html[data-theme="light"] .learn-content-body tbody tr:nth-child(odd) td{background-color:rgb(15 23 42/0.015)}
html[data-theme="light"] .learn-content-body tbody td:first-child{border-right-color:rgb(15 23 42/0.084)}
html[data-theme="light"] .learn-content-body--syllabus,html[data-theme="light"] .learn-content-body--syllabus tbody td{color:rgb(38 66 94)}
html[data-theme="light"] .learn-content-body .math.inline,html[data-theme="light"] .learn-content-body .math.block{color:rgb(51 63 82)}
html[data-theme="light"] .learn-content-body table.ap-ced th,html[data-theme="light"] .learn-content-body table.ap-ced td{border-right-color:rgb(15 23 42/0.084)}
html[data-theme="light"] .learn-content-body table.ap-ced td.ap-eu strong,html[data-theme="light"] .learn-content-body table.ap-ced td.ap-lo p:first-child strong:first-child{color:rgb(0 90 133)}
html[data-theme="light"] .learn-content-body .ap-ced-extras p strong{color:rgb(0 90 133)}
html[data-theme="light"] .learn-content-body img + em{color:rgb(61 75 94)}
html[data-theme="light"] .learn-content-body h3{color:rgb(1 111 124)}
html[data-theme="light"] .learn-content-body ol{color:rgb(38 66 94)}
html[data-theme="light"] .learn-content-body ol > li::marker{color:rgb(61 75 94)}
html[data-theme="light"] .learn-content-body h2{color:rgb(1 111 124)}
html[data-theme="light"] .learn-content-body h4{color:rgb(51 63 82)}
html[data-theme="light"] .learn-content-body ul > li::marker{color:rgb(61 75 94)}
html[data-theme="light"] .learn-content-body strong{color:rgb(114 95 0)}
html[data-theme="light"] .learn-content-body code{color:rgb(51 63 82);background-color:rgb(15 23 42/0.06);border-color:rgb(15 23 42/0.112)}
html[data-theme="light"] .learn-content-body pre{background-color:rgb(255 255 255/0.35);border-color:rgb(15 23 42/0.112)}
html[data-theme="light"] .learn-content-body pre code{color:rgb(51 63 82)}
html[data-theme="light"] .learn-vocab-table thead th{color:rgb(1 111 124);border-bottom-color:rgb(15 23 42/0.168)}
html[data-theme="light"] .learn-vocab-table tbody td{color:rgb(38 66 94);border-bottom-color:rgb(15 23 42/0.07)}
html[data-theme="light"] .learn-vocab-table tbody tr:nth-child(odd) td{background-color:rgb(15 23 42/0.015)}
html[data-theme="light"] .learn-vocab-table tbody td:nth-child(3){color:rgb(61 75 94)}
html[data-theme="light"] .learn-vocab-table .vocab-ipa{color:rgb(61 75 94)}
html[data-theme="light"] .practice-focus-eyebrow{color:rgb(61 75 94)}
html[data-theme="light"] .practice-show-all{color:rgb(48 65 85);background-color:rgb(15 23 42/0.045)}
html[data-theme="light"] .practice-focus-empty{color:rgb(48 65 85);background-color:rgb(15 23 42/0.035)}
html[data-theme="light"] .practice-acc{background-color:rgb(248 249 251)}
html[data-theme="light"] #practice-focus-body > .practice-acc{background:linear-gradient(155deg, rgba(var(--accent-rgb, 34, 211, 238), 0.07), transparent 26%), rgb(248 249 251);box-shadow:0px 18px 50px rgb(15 23 42/0.061)}
html[data-theme="light"] #practice-focus-body > .practice-acc > summary .text-xs{color:rgb(49 67 84)}
html[data-theme="light"] .practice-random{color:rgb(3 109 129)}
html[data-theme="light"] .practice-topic-card{background:linear-gradient(125deg, rgba(var(--accent-rgb, 148, 163, 184), 0.035), transparent 28%), rgb(248 249 251);box-shadow:inset 3px 0px rgb(15 23 42/0.14)}
html[data-theme="light"] .practice-topic-card:hover,html[data-theme="light"] .practice-topic-card:focus-within{box-shadow:inset 3px 0px rgb(15 23 42/0.14),0px 5px 20px rgb(15 23 42/0.048)}
html[data-theme="light"] .practice-topic-main{color:rgb(38 66 94)}
html[data-theme="light"] .practice-topic-number{color:color-mix(in srgb,rgb(var(--accent-rgb, 203, 213, 225)) 44%,#0f172a)}
html[data-theme="light"] .practice-topic-arrow{color:rgb(87 101 122)}
html[data-theme="light"] .practice-topic-card:hover .practice-topic-arrow{color:color-mix(in srgb,rgb(var(--accent-rgb, 148, 163, 184)) 44%,#0f172a)}
html[data-theme="light"] .practice-topic-meta{color:rgb(49 66 84)}
html[data-theme="light"] .practice-topic-progress{color:rgb(71 88 106)}
html[data-theme="light"] .practice-topic-progress .practice-topic-fix{color:rgb(126 96 0)}
html[data-theme="light"] .practice-topic-progress .practice-topic-fix:hover{color:rgb(117 94 0)}
html[data-theme="light"] .practice-topic-correct{color:rgb(16 111 73)}
html[data-theme="light"] .practice-topic-pager{color:rgb(61 75 94)}
html[data-theme="light"] .practice-topic-pager button{color:rgb(0 57 132);background-color:rgb(15 23 42/0.045)}
html[data-theme="light"] .practice-topic-retry{color:rgb(2 111 126)}
html[data-theme="light"] .learn-ailearn-eyebrow{color:rgb(2 107 154)}
html[data-theme="light"] .learn-ailearn-title{color:rgb(38 66 94)}
html[data-theme="light"] .learn-ailearn-blurb{color:rgb(48 65 85)}
html[data-theme="light"] .tj-pcard{background:linear-gradient(180deg, rgba(var(--accent-rgb), .08), rgb(15 23 42/0.015)), rgb(246 248 250);color:rgb(38 66 94)}
html[data-theme="light"] .tj-pcard:hover,html[data-theme="light"] .tj-pcard:focus-visible{box-shadow:0px 6px 22px -10px rgb(15 23 42/0.14)}
html[data-theme="light"] .tj-pcard--mock{background:linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgb(15 23 42/0.02)), rgb(246 248 250)}
html[data-theme="light"] .tj-pcard-ico{color:color-mix(in srgb,rgb(var(--accent-rgb)) 44%,#0f172a);box-shadow:inset 0px 0px 0px 1px color-mix(in srgb,rgba(var(--accent-rgb), .3) 62%,#0f172a)}
html[data-theme="light"] .tj-pcard-title{color:rgb(38 66 94)}
html[data-theme="light"] .tj-pcard-meta{color:rgb(48 65 85)}
html[data-theme="light"] .tj-pcard-arrow{color:color-mix(in srgb,rgba(var(--accent-rgb), .9) 44%,#0f172a)}
html[data-theme="light"] .practice-focus-tj-title{color:rgb(38 66 94)}
html[data-theme="light"] .practice-focus-tj-link{color:rgb(0 90 133)}
html[data-theme="light"] .pv-deck-name{color:rgb(44 63 88)}
html[data-theme="light"] .pv-all{box-shadow:0px 8px 20px -12px rgb(15 23 42/0.2)}
html[data-theme="light"] .pv-list{border-color:rgb(15 23 42/0.112);background-image:linear-gradient(180deg, rgb(15 23 42/0.06), rgb(15 23 42/0.02))}
html[data-theme="light"] .pv-num{color:rgb(2 111 126)}
html[data-theme="light"] .pv-title{color:rgb(38 66 94)}
html[data-theme="light"] .pv-count{color:rgb(48 65 85)}
html[data-theme="light"] .vocab-say{color:rgb(61 75 94/0.85)}
html[data-theme="light"] .vocab-say:hover,html[data-theme="light"] .vocab-say:focus-visible{color:rgb(2 111 126)}
html[data-theme="light"] .vocab-say.is-playing{color:rgb(2 111 126)}
html[data-theme="light"] body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card){background-image:radial-gradient(ellipse at 0% 0%, rgba(var(--accent-rgb, 148, 163, 184), .2), transparent 62%),
                    linear-gradient(150deg, rgb(243 245 249), rgb(249 250 252) 82%)!important;box-shadow:inset 3px 0px rgb(15 23 42/0.14),0px 12px 26px -18px rgb(15 23 42/0.2)}
html[data-theme="light"] body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card):hover,html[data-theme="light"] body.hub-cards :is(.practice-acc, .vl-card)[open]{box-shadow:inset 3px 0px rgb(15 23 42/0.14),0px 16px 30px -16px rgb(15 23 42/0.14)}
html[data-theme="light"] body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) .practice-card-icon-bg{box-shadow:0px 7px 22px rgb(15 23 42/0.12)}
html[data-theme="light"] body.hub-cards :is(.practice-card.lib-card, .practice-acc, .vl-card) .practice-card-icon-bg svg{color:color-mix(in srgb,rgb(var(--accent-rgb, 148, 163, 184)) 44%,#0f172a)}
html[data-theme="light"] body.hub-cards :is(a.practice-card.lib-card, .practice-acc > summary) .text-xs{color:color-mix(in srgb,rgb(var(--accent-rgb, 148, 163, 184)) 44%,#0f172a)}
html[data-theme="light"] .spot-head{background-image:radial-gradient(120% 140% at 0% 0%, rgba(var(--a), .30), transparent 55%),
    radial-gradient(90% 120% at 100% 100%, rgba(var(--a), .14), transparent 60%),
    linear-gradient(180deg, rgb(244 245 249/0.82), rgb(248 249 251/0.92));box-shadow:0px 18px 50px -24px rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-icon{color:color-mix(in srgb,rgb(var(--a)) 44%,#0f172a);background-image:radial-gradient(circle at 30% 25%, rgba(var(--a), .38), rgba(var(--a), .12) 60%, rgb(250 251 252/0.4));box-shadow:0px 10px 34px rgb(15 23 42/0.12)}
html[data-theme="light"] .spot-eyebrow{color:color-mix(in srgb,rgba(var(--a), .95) 44%,#0f172a)}
html[data-theme="light"] .spot-title{color:rgb(38 66 94)}
html[data-theme="light"] .spot-stats li{color:rgb(48 65 85);background-color:rgb(15 23 42/0.05);border-color:rgb(15 23 42/0.126)}
html[data-theme="light"] .spot-stats b{color:rgb(51 63 82)}
html[data-theme="light"] .spot-cta{box-shadow:0px 10px 28px -10px rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-cta:hover{box-shadow:0px 14px 34px -10px rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-h{color:rgb(61 75 94)}
html[data-theme="light"] .spot-h span{background-color:rgb(15 23 42/0.07);color:rgb(44 63 88)}
html[data-theme="light"] .spot-card{background-image:linear-gradient(160deg, rgba(var(--c), .16), rgb(244 245 249/0.78) 55%);box-shadow:inset 3px 0px rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-card:hover{box-shadow:inset 3px 0px rgb(15 23 42/0.14),0px 16px 36px -18px rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-card-icon{color:color-mix(in srgb,rgb(var(--c)) 44%,#0f172a)}
html[data-theme="light"] .spot-card-num{color:color-mix(in srgb,rgba(var(--c), .95) 44%,#0f172a)}
html[data-theme="light"] .spot-card-title{color:rgb(38 66 94)}
html[data-theme="light"] .spot-card-meta{color:rgb(61 75 94)}
html[data-theme="light"] .spot-area{background-image:linear-gradient(160deg, rgba(var(--c), .2), rgb(244 245 249/0.8) 70%)}
html[data-theme="light"] .spot-area-icon{color:color-mix(in srgb,rgb(var(--c)) 44%,#0f172a)}
html[data-theme="light"] .spot-area-name{color:rgb(38 66 94)}
html[data-theme="light"] .spot-area-count{color:rgb(61 75 94)}
html[data-theme="light"] .spot-area-count b{color:rgb(44 63 88)}
html[data-theme="light"] .spot-video-thumb{background-color:rgb(246 247 250);border-color:rgb(15 23 42/0.14)}
html[data-theme="light"] .spot-video-dur{color:rgb(51 63 82);background-color:rgb(250 251 252/0.82)}
html[data-theme="light"] .spot-video-title{color:rgb(44 63 88)}
html[data-theme="light"] .ee-lead{color:rgb(48 65 85/0.85)}
html[data-theme="light"] .ee-icon{color:color-mix(in srgb,rgb(var(--accent-rgb)) 44%,#0f172a)}
html[data-theme="light"] .ee-exam{color:color-mix(in srgb,rgb(var(--accent-rgb)) 44%,#0f172a)}
html[data-theme="light"] .ee-badge{color:rgb(51 63 82)}
html[data-theme="light"] .ee-title{color:rgb(51 63 82)}
html[data-theme="light"] .ee-meta{color:rgb(48 65 85/0.85)}
html[data-theme="light"] .practice-card-start{color:rgb(51 63 82)}
/* ▲▲ LIGHT THEME END ▲▲ */
