/* Fonts are loaded via <link rel="preconnect"> + stylesheet in each page's
   <head> (not @import) so they fetch in parallel with this file instead of
   waiting for it to download and parse first. */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --off-white:  #F7F7F7;
  --light-gray: #E4E4E4;
  --mid-gray:   #767676;
  --dark-gray:  #2A2A2A;
  /* Categorical palette for content-distribution bars/legends. Muted tones
     so distinct segments stay readable on both the dark hero and light bg. */
  --cat-1: #5B8FF9;
  --cat-2: #5AD8A6;
  --cat-3: #F6BD16;
  --cat-4: #E8684A;
  --cat-5: #9270CA;
  --cat-6: #269A99;
  --cat-7: #FF9D4D;
  --cat-8: #D96BA6;
  --cat-9: #8593A8;
  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --speed:      0.28s;
  --radius:     6px;
  --nav-h:      72px;

  /* Spacing scale (4px base). Every margin/gap/pad should come from this
     set, not an arbitrary number — that is what makes rhythm read as
     deliberate instead of "off". */
  --space-2xs:  4px;
  --space-xs:   8px;
  --space-sm:   12px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-2xl:  48px;
  --space-3xl:  64px;

  /* Page side gutter — one value site-wide so every block lines up. */
  --gutter:     32px;

  /* Section vertical rhythm. Two tiers, fluid so they breathe on desktop
     and tighten on mobile (no dead whitespace on small screens). Major =
     primary content sections; compact = dense sub-sections (hub lists,
     dashboard blocks, course sub-sections). */
  --section-y:     clamp(56px, 6vw, 80px);
  --section-y-sm:  clamp(40px, 5vw, 56px);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #070707;
  box-shadow: 0 4px 32px rgba(0,0,0,0.22);
}
.nav::after {
  content: '';
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.13), transparent);
  pointer-events: none;
}
.nav.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.38);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: opacity var(--speed);
  display: inline-flex;
  align-items: center;
}
.nav-logo:hover { opacity: 0.65; }
.nav-logo-img {
  display: block;
  height: 42px;
  width: 116px;
  object-fit: cover;
  object-position: center;
  /* Logo ships white-on-black; nav is black so it sits clean with no filter. */
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.01em;
  position: relative;
  transition: color var(--speed);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width var(--speed) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--white);
  color: var(--black) !important;
  border-radius: var(--radius);
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: background var(--speed), transform var(--speed) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: rgba(255,255,255,0.82) !important;
  transform: translateY(-1px);
  color: var(--black) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform var(--speed), opacity var(--speed);
}

/* ── Mobile Nav ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--speed) var(--ease),
                opacity var(--speed) var(--ease);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 18px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem !important;
  }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin: 16px 32px;
    text-align: center;
    justify-content: center;
  }
}

/* ── Page Shell ──────────────────────────────────────────────── */
.page-main { padding-top: var(--nav-h); }

/* ── Section Utilities ───────────────────────────────────────── */
.section { padding: var(--section-y) var(--gutter); }
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--gray { background: var(--off-white); }
.section--sm { padding: var(--section-y-sm) var(--gutter); }
.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 20px;
}
.section--dark .section-label { color: rgba(255,255,255,0.6); }

/* ── Typography Scale ────────────────────────────────────────── */
.display-xl {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display-lg {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-md {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.body-lg {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-gray);
  text-wrap: pretty;
}
.section--dark .body-lg { color: rgba(255,255,255,0.65); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              transform var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}
.btn-primary:hover {
  background: var(--dark-gray);
  border-color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
/* Solid light button — primary CTA on dark surfaces (white fill, ink text). */
.btn-light {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--white);
}
.btn-light:hover {
  background: rgba(255,255,255,0.86);
  border-color: rgba(255,255,255,0.86);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.btn-arrow::after { content: '→'; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: calc(88vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 28px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--black);
}
.hero-headline { margin-bottom: 24px; }
.hero-headline em {
  font-style: normal;
  position: relative;
}

.hero-sub {
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-actions { justify-content: center; }
}

/* ── Home: centered hero ─────────────────────────────────────── */
.hero--center { text-align: center; }
.hero--center .hero-inner { display: block; max-width: 820px; }
.hero--center .hero-eyebrow { justify-content: center; }
.hero--center .hero-sub { max-width: 600px; margin-left: auto; margin-right: auto; }
.hero--center .hero-actions { justify-content: center; }

/* ── Home hero: dark, atmospheric, structured ─────────────────── */
/* The front door now matches the quality of the interior exam heroes:
   near-black surface, a faint dot-grid for depth, and a credibility
   strip so the page leads with substance instead of an empty void. */
.hero--home {
  background: var(--black);
  color: var(--white);
  min-height: calc(72vh - var(--nav-h));
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}
.hero--home::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 35%, transparent 100%);
  pointer-events: none;
}
.hero--home .hero-headline { color: var(--white); }
.hero--home .hero-sub {
  color: rgba(255,255,255,0.72);
  font-size: 1.2rem;
  line-height: 1.6;
}
.hero--home .hero-sub strong { color: rgba(255,255,255,0.88); font-weight: 600; }
.hero--home .hero-eyebrow { color: rgba(255,255,255,0.55); }
.hero--home .hero-eyebrow-dot { background: var(--white); }

/* Credibility strip under the hero actions: divided figures, like the
   stat cards on the interior pages but lighter. */
.hero-stats {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: var(--space-xl);
}
.hero-stat {
  padding: 0 var(--space-2xl);
  border-right: 1px solid rgba(255,255,255,0.14);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.hero-stat-label {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 560px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .hero-stat { padding: 0 var(--space-xs); }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.68rem; }
}

/* ── Home hero: split layout + live score panel ───────────────── */
.hero-inner--split {
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 64px;
  text-align: left;
}
.hero-inner--split .hero-eyebrow { justify-content: flex-start; }
.hero-inner--split .hero-sub { max-width: 560px; }
.hero-inner--split .hero-headline { font-size: clamp(2.6rem, 6.4vw, 5.25rem); }
.hero-inner--split .hero-btn { font-size: 1.05rem; padding: 11px 28px; }

/* Stacked hero CTAs: two equal-width buttons, one above the other. */
.hero-actions--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 560px;
  margin-top: var(--space-lg);
}
.hero-actions--stack .hero-btn { justify-content: center; letter-spacing: 0.04em; }
/* SVG arrow: centered by geometry (crossbar at the viewBox midline) and
   vertically centered by the button's flex align-items, so it lands on the
   text's optical center without font-metric guesswork. */
.hero-btn-arrow {
  width: 2.07em;
  height: 1.55em;
  flex-shrink: 0;
}
.hero-btn.btn-outline-white { border-color: rgba(255,255,255,0.85); color: var(--white); }
.hero-btn.btn-outline-white:hover { color: var(--black); }

.hero-visual { position: relative; z-index: 1; width: 100%; }
.score-panel {
  padding: 0;
  transition: opacity 0.4s var(--ease);
}
/* Brief fade between one student's result and the next. */
.score-panel.is-swapping { opacity: 0.25; }
@media (prefers-reduced-motion: reduce) {
  .score-panel { transition: none; }
}
.score-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.score-who { display: flex; flex-direction: column; gap: 7px; }
.score-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}
.score-namerow { display: inline-flex; align-items: center; gap: 8px; }
.score-name {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}
.score-verified {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}
.score-loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}
.score-loc::before {
  content: "";
  width: 14px;
  height: 1.5px;
  background: currentColor;
}
.score-composite { text-align: right; }
.score-composite-num {
  display: block;
  font-family: var(--font-head);
  font-size: 4.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.score-composite-scale {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}
.sp-rows {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.sp-row {
  display: grid;
  grid-template-columns: 78px 1fr 34px;
  align-items: center;
  gap: 18px;
}
.sp-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}
.sp-track {
  height: 8px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}
.sp-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: var(--white);
}
.sp-num {
  font-family: var(--font-head);
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: right;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .hero-inner--split { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner--split .hero-actions { justify-content: flex-start; }
  .hero-visual { max-width: 440px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-fill { transition: none; }
}

/* Per-exam CTA (extends .path-card) */
.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--speed), gap var(--speed);
}
.path-cta::after { content: '→'; }
.path-card:hover .path-cta { color: var(--white); gap: 12px; }

/* ── Dashboard Command Center ────────────────────────────────── */
.dash-shell {
  background: var(--black);
  padding: var(--section-y) var(--gutter) var(--space-3xl);
  position: relative;
  overflow: hidden;
}
/* Same faint dot-grid as the exam/home heroes so the header reads as one
   family across the site. */
.dash-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.dash-shell .container {
  position: relative;
  z-index: 1;
}
.dash-greeting {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.dash-shell .display-lg {
  color: var(--white);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
}
.dash-sub {
  margin-top: 20px;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
}

/* Suites sit on an off-white block; the only divider is a hairline exactly
   at the colour change, so the transition from Recent reads as one step. */
.dash-command-section { background: var(--off-white); }
.dash-command-list { border-top: 1px solid var(--light-gray); }
.dash-command-row {
  display: block;
  width: 100%;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1.5px solid var(--light-gray);
  background: transparent;
  position: relative;
  overflow: hidden;
}
.dash-command-row:last-child { border-bottom: none; }
.dash-command-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(100%);
  transition: transform 0.36s var(--ease);
  z-index: 0;
}
.dash-command-row:hover::before { transform: translateY(0); }
.dash-cmd-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px;
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Uniform name size so every suite row reads as an equal option,
   including longer labels like "Practice". */
.dash-cmd-name {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color var(--speed);
}
.dash-cmd-meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.dash-cmd-meta span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark-gray);
  padding-right: 20px;
  margin-right: 20px;
  border-right: 1px solid var(--light-gray);
  white-space: nowrap;
  transition: color var(--speed), border-color var(--speed);
}
.dash-cmd-meta span:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
.dash-cmd-arrow {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--speed), transform var(--speed) var(--ease);
  display: inline-block;
}
.dash-command-row:hover .dash-cmd-arrow {
  transform: translateX(4px);
}
.dash-command-row:hover .dash-cmd-name,
.dash-command-row:hover .dash-cmd-arrow { color: var(--white); }
.dash-command-row:hover .dash-cmd-meta span {
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.18);
}

.dash-note {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  font-size: 0.85rem;
  color: var(--mid-gray);
}
.dash-note a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .dash-cmd-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 28px;
  }
  .dash-cmd-meta { flex-wrap: wrap; }
  .dash-cmd-meta span {
    border-right: none;
    padding-right: 16px;
    margin-right: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-command-row,
  .dash-command-row::before { transition: none; }
}

/* ── Paths / Exam Cards ──────────────────────────────────────── */
.paths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}
/* Four ACT section cards read best as a 2x2 block. */
.paths-grid--sections { grid-template-columns: repeat(2, 1fr); }

/* Simulate marquee: the full test carries the weight, tools stack beside it. */
.simulate-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}
.simulate-grid .path-card { height: 100%; }
@media (max-width: 900px) {
  .simulate-grid { grid-template-columns: 1fr; }
}

/* ── Comparison table (index) ─────────────────────────────────── */
.compare-scroll { overflow-x: auto; overflow-y: visible; padding-top: 14px; padding-bottom: 16px; }
.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}
.compare-table th,
.compare-table td {
  padding: 18px 24px;
  font-size: 0.95rem;
  text-align: left;
  vertical-align: middle;
  color: var(--dark-gray);
}
/* Row rhythm comes from hairlines under the non-featured cells only, so the
   ArmorOne column reads as one uninterrupted black panel. */
.compare-table tbody th,
.compare-table tbody td:not(.compare-us),
.compare-table thead th:not(.compare-us) {
  border-bottom: 1px solid var(--light-gray);
}
.compare-table thead th {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--black);
}
/* Featured column: a lifted, self-contained black panel. */
.compare-table .compare-us {
  background: #C4C4C4;
  color: var(--black);
  font-weight: 500;
  border-left: 3px solid var(--black);
  border-right: 3px solid var(--black);
  box-shadow: -6px 0 8px rgba(0, 0, 0, 0.35), 6px 0 8px rgba(0, 0, 0, 0.35), inset 0 -1px 0 var(--light-gray);
}
.compare-table thead .compare-us {
  font-weight: 600;
  color: var(--black);
  padding-top: 24px;
  border-radius: 12px 12px 0 0;
  border-top: 3px solid var(--black);
  box-shadow: -6px 0 8px rgba(0, 0, 0, 0.35), 6px 0 8px rgba(0, 0, 0, 0.35), 0 -6px 8px rgba(0, 0, 0, 0.35);
}
.compare-table tbody tr:last-child .compare-us {
  padding-bottom: 24px;
  border-radius: 0 0 12px 12px;
  border-bottom: 3px solid var(--black);
  box-shadow: -6px 0 8px rgba(0, 0, 0, 0.35), 6px 0 8px rgba(0, 0, 0, 0.35), 0 6px 8px rgba(0, 0, 0, 0.35);
}
.compare-note {
  margin-top: var(--space-lg);
  max-width: 68ch;
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.hero-note {
  margin-top: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}
.path-card {
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 40px 36px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
  cursor: pointer;
}
.path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.path-card:hover::before { transform: translateY(0); }
.path-card:hover {
  border-color: var(--black);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}
.path-card > * { position: relative; z-index: 1; }
.path-card:hover .path-code,
.path-card:hover .path-title,
.path-card:hover .path-desc,
.path-card:hover .path-arrow { color: var(--white); }
.path-card:hover .path-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}
.path-code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 16px;
  transition: color var(--speed);
}
.path-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--speed);
}
.path-desc {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.65;
  letter-spacing: 0.012em;
  margin-bottom: 28px;
  transition: color var(--speed);
}
.path-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.path-tag {
  padding: 4px 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: background var(--speed), border-color var(--speed), color var(--speed);
}
.path-arrow {
  font-size: 1.4rem;
  transition: transform var(--speed) var(--ease), color var(--speed);
  display: inline-block;
}
.path-card:hover .path-arrow { transform: translate(4px, -4px); }

@media (max-width: 900px) {
  .paths-grid { grid-template-columns: 1fr; }
  .path-card { padding: 32px 28px; }
}

/* ── Homepage diagnostic entry point ────────────────────────── */
.home-diagnostic-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-2xl);
  color: var(--black);
}
.home-diagnostic-card .section-label {
  color: var(--mid-gray);
}
.home-diagnostic-copy h2 { margin-bottom: var(--space-md); }
.home-diagnostic-copy > p {
  max-width: 680px;
  color: var(--dark-gray);
  line-height: 1.7;
}
.home-diagnostic-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}
.home-diagnostic-action > span {
  position: absolute;
  top: 100%;
  margin-top: var(--space-sm);
  color: var(--mid-gray);
  font-size: 0.72rem;
}
.diagnostic-btn {
  padding: 15px 34px;
  font-size: 1rem;
  background: var(--light-gray);
  color: var(--black);
  border: 2px solid var(--black);
}
.diagnostic-btn:hover {
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .home-diagnostic-card {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  .home-diagnostic-action { align-items: stretch; min-width: 0; }
  .home-diagnostic-action .btn { justify-content: center; }
  .home-diagnostic-action > span { text-align: center; }
}

/* ── Personal diagnostic ────────────────────────────────────── */
.diagnostic-lead {
  max-width: 680px;
  margin-top: var(--space-sm);
  color: var(--dark-gray);
  line-height: 1.7;
}
.diagnostic-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.diagnostic-runner,
.diagnostic-results {
  max-width: 820px;
  margin: 0 auto;
}
.diagnostic-progress-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.diagnostic-progress-head > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.diagnostic-section-label {
  padding-left: var(--space-sm);
  border-left: 1px solid var(--light-gray);
  font-size: 0.86rem;
  font-weight: 600;
}
.diagnostic-counter { color: var(--mid-gray); font-size: 0.82rem; }
.diagnostic-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--light-gray);
}
.diagnostic-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--black);
  transition: width var(--speed) var(--ease);
}
.diagnostic-question-card {
  min-height: 450px;
  margin-top: var(--space-lg);
  padding: var(--space-2xl);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
}
.diagnostic-question-number {
  color: var(--mid-gray);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.diagnostic-question {
  max-width: 720px;
  margin-top: var(--space-md);
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.42;
  letter-spacing: -0.02em;
}
.diagnostic-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}
.diagnostic-choice {
  min-height: 68px;
  padding: var(--space-md);
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-align: left;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}
.diagnostic-choice:hover { border-color: var(--black); }
.diagnostic-choice.selected {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}
.diagnostic-choice-letter {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
}
.diagnostic-choice-body { font-size: 0.85rem; line-height: 1.5; }
.diagnostic-prompt {
  margin-top: var(--space-lg);
  color: var(--mid-gray);
  font-size: 0.76rem;
}
.diagnostic-rationales {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}
.diagnostic-rationales > h4 {
  margin-bottom: var(--space-xs);
  font-family: var(--font-head);
  font-size: 1rem;
}
.diagnostic-rationale {
  padding: var(--space-md);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--off-white);
}
.diagnostic-rationale.is-correct {
  border-color: #A9D9BC;
  background: #F4FBF6;
}
.diagnostic-rationale.is-selected {
  border-color: #E6B1AA;
  background: #FFF7F6;
}
.diagnostic-rationale-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
}
.diagnostic-rationale-head strong {
  font-size: 0.8rem;
  line-height: 1.45;
}
.diagnostic-rationale-head span {
  flex: 0 0 auto;
  color: var(--mid-gray);
  font-size: 0.67rem;
  font-weight: 600;
  white-space: nowrap;
}
.diagnostic-rationale.is-correct .diagnostic-rationale-head span { color: #237A4B; }
.diagnostic-rationale.is-selected .diagnostic-rationale-head span { color: #B53A2D; }
.diagnostic-rationale > p {
  margin-top: var(--space-xs);
  color: var(--dark-gray);
  font-size: 0.78rem;
  line-height: 1.6;
}
.diagnostic-controls,
.diagnostic-result-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.diagnostic-breakdown {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
}
.diagnostic-result-row-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
  font-size: 0.84rem;
}
.diagnostic-result-row-head span { color: var(--mid-gray); }
.diagnostic-result-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--light-gray);
}
.diagnostic-result-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--black);
}
.diagnostic-recommendation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
  padding: var(--space-xl);
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
}
.diagnostic-recommendation .diagnostic-kicker { color: rgba(255,255,255,0.56); }
.diagnostic-recommendation h3 {
  margin-top: var(--space-xs);
  font-family: var(--font-head);
  font-size: 1.4rem;
  line-height: 1.25;
}
.diagnostic-recommendation p {
  max-width: 580px;
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  line-height: 1.65;
}
.diagnostic-answer-review {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1.5px solid var(--light-gray);
}
.diagnostic-answer-review > h3 {
  margin-top: var(--space-xs);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.diagnostic-answer-review > p {
  max-width: 660px;
  margin-top: var(--space-sm);
  color: var(--dark-gray);
  font-size: 0.88rem;
  line-height: 1.65;
}
.diagnostic-review-list {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.diagnostic-review-card {
  padding: var(--space-xl);
  border: 1.5px solid var(--light-gray);
  border-left-width: 5px;
  border-radius: 10px;
  background: var(--white);
}
.diagnostic-review-card.is-correct { border-left-color: #237A4B; }
.diagnostic-review-card.is-incorrect { border-left-color: #B53A2D; }
.diagnostic-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.diagnostic-review-card-head span:first-child { color: var(--mid-gray); }
.diagnostic-review-card.is-correct .diagnostic-review-card-head span:last-child { color: #237A4B; }
.diagnostic-review-card.is-incorrect .diagnostic-review-card-head span:last-child { color: #B53A2D; }
.diagnostic-review-card > h4 {
  margin-top: var(--space-md);
  font-family: var(--font-head);
  font-size: 1.1rem;
  line-height: 1.45;
}
.diagnostic-review-answer {
  display: grid;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius);
  background: var(--off-white);
}
.diagnostic-review-answer p {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
}
.diagnostic-disclaimer {
  margin-top: var(--space-lg);
  color: var(--mid-gray);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}
.diagnostic-choice:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .diagnostic-choices { grid-template-columns: 1fr; }
  .diagnostic-question-card { min-height: 0; padding: var(--space-lg); }
  .diagnostic-choice { align-items: flex-start; }
  .diagnostic-review-card { padding: var(--space-lg); }
  .diagnostic-review-card-head { align-items: flex-start; }
  .diagnostic-rationale-head { flex-direction: column; gap: var(--space-xs); }
  .diagnostic-recommendation { grid-template-columns: 1fr; }
  .diagnostic-recommendation .btn { justify-content: center; }
  .diagnostic-controls,
  .diagnostic-result-actions { flex-direction: column-reverse; }
  .diagnostic-controls .btn,
  .diagnostic-result-actions .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .diagnostic-progress > span { transition: none; }
}

/* ── Features ────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 0;
  background: var(--white);
  border: 1.5px solid var(--black);
  border-radius: 10px;
  overflow: hidden;
}
.feature-item {
  padding: 36px 44px;
  border-right: 1.5px solid var(--black);
  border-bottom: 1.5px solid var(--black);
  transition: background var(--speed);
}
.feature-item:nth-child(2n) { border-right: none; }
.feature-item:nth-last-child(-n+2) { border-bottom: none; }
.feature-item:hover { background: var(--off-white); }
.feature-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.65;
  letter-spacing: 0.012em;
}
@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1.5px solid var(--black); }
  .feature-item:last-child { border-bottom: none; }
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
  padding: var(--section-y) var(--gutter);
  background: var(--black);
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  color: var(--white);
  margin-bottom: 28px;
}
.cta-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-actions .btn-outline-white {
  border-width: 2px;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--speed);
}
.footer-links a:hover { color: var(--white); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ── Exam Page Hero ──────────────────────────────────────────── */
.exam-hero {
  min-height: 56vh;
  display: flex;
  align-items: flex-end;
  padding: 80px 32px;
  background: var(--black);
  position: relative;
  overflow: hidden;
}
.exam-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.exam-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.exam-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.hero-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.hero-tag-row .exam-hero-tag { margin-bottom: 0; }
.hero-back {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color var(--speed) var(--ease),
              border-color var(--speed) var(--ease),
              background var(--speed) var(--ease);
}
.hero-back:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.08);
}
.hero-back-arrow {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform var(--speed) var(--ease);
}
.hero-back:hover .hero-back-arrow { transform: translateX(-3px); }
@media (max-width: 540px) {
  .hero-back { padding: 6px 13px; font-size: 0.72rem; }
}
.exam-hero-title {
  color: var(--white);
  margin-bottom: 20px;
}
.exam-hero-sub {
  color: rgba(255,255,255,0.55);
  font-size: 1.1rem;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ── Subjects Grid (placeholder) ─────────────────────────────── */
/* Overview hub heroes (act) — compact, no full-viewport scroll wall. */
.exam-hero:not(.course-hero) {
  min-height: auto;
  padding: 72px 32px 56px;
}
.subjects-section {
  padding: var(--section-y-sm) var(--gutter);
  background: var(--off-white);
}
.subjects-header {
  max-width: 1200px;
  margin: 0 auto 32px;
}
.subjects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.subject-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
  cursor: pointer;
}
a.subject-card {
  text-decoration: none;
  color: inherit;
}
.subject-card:hover {
  border-color: var(--black);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.subject-card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.subject-card-meta {
  font-size: 0.78rem;
  color: var(--mid-gray);
}
.subject-card-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
  border: 1px solid var(--light-gray);
  padding: 5px 12px;
  border-radius: 4px;
}
@media (max-width: 900px) {
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .subjects-grid { grid-template-columns: 1fr; }
  .subject-card { flex-wrap: wrap; gap: var(--space-xs); }
  .subject-card-badge { flex-shrink: 0; }
}

/* ── Coming Soon Overlay ─────────────────────────────────────── */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}
.coming-soon-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mid-gray);
}

/* ══ Course Pages (ArmorOne brand) ══════════════════════════════ */

.course-hero { min-height: auto; padding-top: 40px; padding-bottom: 40px; }
.course-hero + .section { padding-top: 56px; }
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 4px;
}
.course-meta-item {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
}

/* Exam overview stats */
.exam-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.exam-stat {
  flex: 1 1 110px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  padding: 14px 16px;
}
.exam-stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
}
.exam-stat-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-gray);
}

/* Score composition */
.score-row {
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 16px 24px;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}
.score-row-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 130px;
}
.score-bar-wrap { flex: 1; min-width: 240px; }
.score-bar {
  height: 10px;
  border-radius: 6px;
  background: var(--light-gray);
  overflow: hidden;
  display: flex;
  margin-bottom: 10px;
}
.score-bar-mc { height: 100%; background: var(--cat-1); }
.score-bar-fr { height: 100%; background: var(--cat-2); }
.score-legend { display: flex; gap: 24px; flex-wrap: wrap; }
.score-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--dark-gray);
  font-weight: 500;
}
.score-dot { width: 10px; height: 10px; border-radius: 2px; }
.score-dot.dot-fill { background: var(--cat-1); }
.score-dot.dot-muted { background: var(--cat-2); }

/* Score bar inside dark course hero */
.score-row--hero {
  display: block;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 36px;
}
.score-row--hero .score-row-title {
  display: block;
  min-width: 0;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.score-row--hero .score-bar-wrap { min-width: 0; }
.score-row--hero .score-bar {
  height: 8px;
  background: rgba(255,255,255,0.15);
  margin-bottom: 14px;
  gap: 2px;
}
.score-row--hero .score-bar-mc { background: var(--cat-1); }
.score-row--hero .score-bar-fr { background: var(--cat-2); }
/* Multi-topic distribution segments (rendered by topic-cards.js). */
.score-row--hero .score-bar-seg { height: 100%; }
.score-row--hero .seg-0 { background: var(--cat-1); }
.score-row--hero .seg-1 { background: var(--cat-2); }
.score-row--hero .seg-2 { background: var(--cat-3); }
.score-row--hero .seg-3 { background: var(--cat-4); }
.score-row--hero .seg-4 { background: var(--cat-5); }
.score-row--hero .seg-5 { background: var(--cat-6); }
.score-row--hero .seg-6 { background: var(--cat-7); }
.score-row--hero .seg-7 { background: var(--cat-8); }
.score-row--hero .seg-8 { background: var(--cat-9); }
.score-row--hero .score-legend { gap: 20px; }
.score-row--hero .score-legend-item {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}
.score-row--hero .score-dot.dot-fill { background: var(--cat-1); }
.score-row--hero .score-dot.dot-muted { background: var(--cat-2); }

/* Practice cards (modeled on .path-card) */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.practice-grid.practice-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}
.practice-card {
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 32px 28px;
  background: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.practice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.practice-card:hover::before { transform: translateY(0); }
.practice-card:hover {
  border-color: var(--black);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}
.practice-card > * { position: relative; z-index: 1; }
.practice-card-code {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 18px;
  transition: color var(--speed);
}
.practice-card-title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 6px;
  transition: color var(--speed);
}
.practice-card-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mid-gray);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  transition: color var(--speed);
}
.practice-card-desc {
  font-size: 0.875rem;
  color: var(--dark-gray);
  line-height: 1.65;
  letter-spacing: 0.012em;
  flex: 1;
  margin-bottom: 20px;
  transition: color var(--speed);
}
.practice-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}
.practice-tag {
  padding: 4px 11px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: background var(--speed), border-color var(--speed), color var(--speed);
}
.practice-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--light-gray);
  transition: border-color var(--speed);
}
.practice-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--speed);
}
.practice-card-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--speed);
}

.act-bank-status {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.act-bank-status.is-error {
  color: #a63a32;
}

.practice-card.is-loading,
.practice-card.is-unavailable {
  cursor: wait;
  opacity: 0.65;
  pointer-events: none;
}

.practice-card.is-unavailable {
  cursor: not-allowed;
}
.practice-card-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2E7D32;
}
.practice-card:hover .practice-card-code,
.practice-card:hover .practice-card-title,
.practice-card:hover .practice-card-cta { color: var(--white); }
.practice-card:hover .practice-card-sub,
.practice-card:hover .practice-card-desc,
.practice-card:hover .practice-card-status { color: rgba(255,255,255,0.72); }
.practice-card:hover .practice-tag {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.8);
}
.practice-card:hover .practice-card-foot { border-color: rgba(255,255,255,0.2); }

/* Exam format table */
.exam-table {
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  overflow: hidden;
}
.exam-table-head {
  display: grid;
  grid-template-columns: 130px 1fr 140px 110px;
  padding: 16px 28px;
  background: var(--black);
}
.exam-table-head span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.exam-table-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px 110px;
  padding: 20px 28px;
  align-items: center;
  border-top: 1px solid var(--light-gray);
}
.exam-table-row:first-of-type { border-top: none; }
.exam-table-row--total { background: var(--off-white); }
.etr-section { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.etr-desc { font-size: 0.875rem; color: var(--dark-gray); line-height: 1.5; letter-spacing: 0.01em; padding-right: 16px; }
.etr-desc strong { color: var(--black); font-weight: 600; }
.etr-count { font-size: 0.88rem; font-weight: 500; }
.etr-time { font-size: 0.88rem; color: var(--dark-gray); }
.exam-table-row--total .etr-section,
.exam-table-row--total .etr-desc,
.exam-table-row--total .etr-count,
.exam-table-row--total .etr-time { font-weight: 700; color: var(--black); }

/* Responsive */
@media (max-width: 900px) {
  .practice-grid,
  .practice-grid.practice-grid--two { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 720px) {
  .exam-table-head { display: none; }
  .exam-table-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px 18px; }
  .etr-desc { grid-column: 1 / -1; order: 3; padding-right: 0; }
}

/* ══ Auth / Onboarding ═══════════════════════════════════════════ */

/* Nav account greeting (signed-in display name) */
.nav-account {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 500;
}

/* ── Onboarding page ─────────────────────────────────────────── */
.onb-page { background: var(--off-white); }
.onb-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 64px;
}
.onb-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  padding: 40px 36px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
.onb-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 16px;
}
.onb-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.onb-sub {
  font-size: 0.9rem;
  color: var(--mid-gray);
  margin-bottom: 24px;
}
.onb-field { margin-bottom: 16px; }
.onb-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 6px;
}
.onb-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color var(--speed) var(--ease);
}
.onb-input:focus { outline: none; border-color: var(--black); }
.onb-btn { display: block; width: fit-content; margin: 8px auto 0; text-align: center; }
.onb-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--mid-gray);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.onb-divider::before, .onb-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}
.onb-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.onb-google:hover { border-color: var(--black); background: var(--off-white); }
.onb-error {
  display: none;
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #a12622;
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.onb-error.show { display: block; }
.onb-toggle {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--mid-gray);
}
.onb-toggle a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  margin-left: 4px;
}
.onb-note {
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--mid-gray);
  text-align: center;
  line-height: 1.55;
}

/* ── Placeholder contrast (WCAG AA: ≥4.5:1) ─────────────────── */
.onb-input::placeholder { color: #6B6B6B; }

/* ── Focus-visible ───────────────────────────────────────────── */
.btn:focus-visible,
.onb-google:focus-visible,
.onb-input:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.path-card:focus-visible,
.practice-card:focus-visible,
.subject-card:focus-visible,
.dash-command-row:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card,
  .path-card::before,
  .practice-card,
  .practice-card::before,
  .subject-card {
    transition: none;
  }
  .nav,
  .nav-links,
  .btn {
    transition: none;
  }
}

/* ── Utility Spacing (values snap to the --space scale) ──────── */
.mt-32 { margin-top: var(--space-xl); }
.mb-14 { margin-bottom: var(--space-md); }
.mb-44 { margin-bottom: var(--space-2xl); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.pt-40 { padding-top: 40px; }
.pt-48 { padding-top: var(--space-2xl); }

/* ── Score Bar Widths ────────────────────────────────────────── */
.w-30  { width: 30%; }
.w-33  { width: 33.3%; }
.w-38  { width: 37.5%; }
.w-40  { width: 40%; }
.w-45  { width: 45%; }
.w-50  { width: 50%; }
.w-55  { width: 55%; }
.w-60  { width: 60%; }
.w-63  { width: 62.5%; }
.w-67  { width: 66.7%; }
.w-70  { width: 70%; }

/* ── CTA Dark Section Layout ─────────────────────────────────── */
.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}
.cta-flex .display-md { margin-top: 12px; }

/* ── Tag / Button Group ──────────────────────────────────────── */
.tag-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Practice Section Intro Text ─────────────────────────────── */
.practice-intro { max-width: 560px; margin-bottom: 48px; }

/* ── Stat Blocks (ACT hub) ───────────────────────────────────── */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { border: 1.5px solid var(--light-gray); border-radius: 8px; padding: 24px; }
.info-value {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}
.info-label { font-size: 0.78rem; color: var(--dark-gray); }
/* Stat cards folded into the dark overview hero. */
.exam-hero .info-card { border-color: rgba(255,255,255,0.18); padding: 20px 22px; }
.exam-hero .info-value { color: var(--white); }
.exam-hero .info-label { color: rgba(255,255,255,0.55); }

/* ── Two-Column Content Layout ───────────────────────────────── */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 900px) {
  .content-cols { grid-template-columns: 1fr; gap: 48px; }
}

/* ── Available Badge ─────────────────────────────────────────── */
.badge--available {
  color: #2E7D32;
  border-color: #a5d6a7;
  background: #f0faf0;
}

/* ── Dashboard gateway + onboarding chips ────────────────────── */
.onb-hidden { display: none; }
.onb-field-hidden { display: none; }

.dash-block { padding: var(--section-y-sm) var(--gutter); }
.dash-block .container { padding: 0; }
.dash-block-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.dash-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.dash-block-head .dash-block-title { margin-bottom: 0; }
.dash-block-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid-gray);
  white-space: nowrap;
  transition: color var(--speed);
}
.dash-block-link:hover { color: var(--black); }

/* Recent-class cards (reuse the path-card hover-fill pattern) */
.dash-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 14px;
}
.dash-continue-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 22px 24px;
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.dash-continue-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.dash-continue-card:hover::before { transform: translateY(0); }
.dash-continue-card:hover {
  border-color: var(--black);
  box-shadow: 0 14px 40px rgba(0,0,0,0.16);
  transform: translateY(-3px);
}
.dash-continue-card > * { position: relative; z-index: 1; transition: color var(--speed); }
.dash-continue-card:hover > * { color: var(--white); }
.dash-continue-code {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
  color: var(--dark-gray);
  transition: color var(--speed), border-color var(--speed);
}
.dash-continue-card:hover .dash-continue-code {
  color: var(--white);
  border-color: rgba(255,255,255,0.32);
}
.dash-continue-title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 18px;
}
.dash-continue-cta {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-continue-arrow { display: inline-block; transition: transform var(--speed) var(--ease); }
.dash-continue-card:hover .dash-continue-arrow { transform: translateX(4px); }

.dash-empty {
  font-size: 0.92rem;
  color: var(--mid-gray);
  border: 1.5px dashed var(--light-gray);
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
}

/* ── Dashboard: three tiles ──────────────────────────────────── */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.dash-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 40px 40px 34px;
  border: 1.5px solid var(--light-gray);
  border-radius: 0;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  transition: border-color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.dash-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform 0.4s var(--ease);
  z-index: 0;
}
.dash-tile:hover::before { transform: translateY(0); }
.dash-tile:hover {
  border-color: var(--black);
  box-shadow: 0 22px 60px rgba(0,0,0,0.20);
  transform: translateY(-6px);
}
.dash-tile > * { position: relative; z-index: 1; transition: color var(--speed); }
.dash-tile:hover > * { color: var(--white); }
.dash-tile-index {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mid-gray);
}
.dash-tile-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-top: 16px;
}
.dash-tile-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--mid-gray);
  margin-top: 12px;
}
.dash-tile-stats {
  display: flex;
  gap: 26px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1.5px solid var(--light-gray);
  transition: border-color var(--speed);
}
.dash-tile:hover .dash-tile-stats { border-color: rgba(255,255,255,0.24); }
.dash-tile-stat { display: flex; flex-direction: column; gap: 3px; }
.dash-tile-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.dash-tile-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.dash-tile-tags {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mid-gray);
}
.dash-tile-cta {
  margin-top: auto;
  padding-top: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dash-tile-arrow { display: inline-block; transition: transform var(--speed) var(--ease); }
.dash-tile:hover .dash-tile-arrow { transform: translateX(5px); }

@media (max-width: 900px) {
  .dash-tiles { grid-template-columns: 1fr; }
  .dash-tile { min-height: 0; padding: 36px 32px 30px; }
  .dash-tile-title { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-tile,
  .dash-tile::before { transition: none; }
}

/* Quick-launch links */
.dash-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.dash-quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}
.dash-quick-link:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.dash-quick-arrow { transition: transform var(--speed) var(--ease); }
.dash-quick-link:hover .dash-quick-arrow { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .dash-continue-card,
  .dash-continue-card::before { transition: none; }
}

/* ── Unlimited Practice: Builder ─────────────────────────────── */
.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled:hover { transform: none; box-shadow: none; background: var(--black); border-color: var(--black); }

.builder {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 36px 32px;
  max-width: 760px;
}
.builder-step { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--light-gray); }
.builder-step-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.builder-step-num {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--mid-gray);
}
.builder-step-label {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.opt-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.opt-hint { font-size: 0.85rem; color: var(--mid-gray); }
.opt-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}
.opt-btn:hover { border-color: var(--black); }
.opt-btn.selected { background: var(--black); border-color: var(--black); color: var(--white); }
.builder-foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.builder-summary { font-size: 0.9rem; color: var(--mid-gray); font-weight: 500; }

.size-fields { display: flex; flex-wrap: wrap; gap: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark-gray);
}
.field-row { display: flex; align-items: center; gap: 14px; }
.field-input {
  width: 130px;
  padding: 10px 14px;
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
}
.field-input:focus { outline: none; border-color: var(--black); }
.field-input:disabled { background: var(--off-white); color: var(--mid-gray); }
.field-check { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; font-weight: 500; color: var(--dark-gray); cursor: pointer; }
.field-note { font-size: 0.82rem; color: var(--mid-gray); margin-top: 14px; }

/* Topic practice uses the same single-card launch rhythm as the diagnostic. */
.topic-start-mode #practice-config-hero { display: none; }
.topic-start-mode #practice-config-section {
  min-height: calc(100vh - var(--nav-h));
  padding: 24px var(--gutter) var(--section-y-sm);
  background: var(--off-white);
}
.topic-start-mode #practice-config-section > .container {
  width: min(760px, 100%);
  margin: var(--space-xl) auto 0;
  padding: var(--space-xl);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  background: var(--white);
}
.topic-start-mode #practice-builder-label { color: var(--mid-gray); }
.topic-start-mode #practice-builder-title {
  max-width: 680px;
  margin-top: var(--space-md);
}
.topic-start-mode #practice-builder-intro {
  max-width: 650px;
  margin-top: var(--space-sm);
  color: var(--dark-gray);
  line-height: 1.7;
}
.topic-start-mode .builder {
  max-width: none;
  margin-top: var(--space-lg);
  padding: var(--space-lg) 0 0;
  border: 0;
  border-top: 1px solid var(--light-gray);
  border-radius: 0;
}
.topic-start-mode .builder-step {
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}
.topic-start-mode .builder-step-head { margin-bottom: var(--space-sm); }
.topic-start-mode .builder-foot { gap: var(--space-sm); }
.practice-start-back {
  margin-top: var(--space-md);
  text-align: center;
}
.practice-start-back a {
  color: var(--mid-gray);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.practice-start-back a:hover { color: var(--black); }

@media (max-width: 720px) {
  .topic-start-mode #practice-config-section { padding: 20px 16px var(--space-2xl); }
  .topic-start-mode #practice-config-section > .container {
    margin-top: var(--space-sm);
    padding: var(--space-lg);
  }
  .topic-start-mode .size-fields { flex-direction: column; gap: var(--space-lg); }
  .topic-start-mode .field { width: 100%; }
  .topic-start-mode .field-input { width: 100%; }
  .topic-start-mode .field-row { flex-wrap: wrap; }
  .topic-start-mode .field-row .field-input { flex: 1 1 160px; }
  .topic-start-mode .builder-foot { align-items: stretch; }
  .topic-start-mode .builder-foot .btn { width: 100%; justify-content: center; }
  .topic-start-mode .builder-summary { width: 100%; }
}

/* ── Unlimited Practice: Runner ──────────────────────────────── */
.runner { padding: 120px 0 96px; min-height: 70vh; }
.runner-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1.5px solid var(--light-gray);
}
.runner-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.runner-badge {
  padding: 5px 12px;
  background: var(--black);
  color: var(--white);
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.runner-subject { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; }
.runner-diff {
  padding: 5px 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
}
.runner-focus {
  padding: 5px 12px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-gray);
}
.runner-type {
  padding: 5px 12px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark-gray);
}
.runner-controls-top { display: flex; align-items: center; gap: 18px; }
.runner-counter { font-size: 0.82rem; color: var(--mid-gray); font-weight: 600; }
.runner-timer {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--black);
}
.runner-timer--out { color: #c0392b; }

.q-card {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  padding: 40px 36px;
  max-width: 800px;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.q-number {
  font-family: var(--font-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 14px;
}
.q-stimulus {
  max-height: 430px;
  overflow: auto;
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  background: var(--off-white);
  color: var(--dark-gray);
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-wrap;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.q-text { font-size: 1.2rem; line-height: 1.5; font-weight: 500; margin-bottom: 28px; }
.q-choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: border-color var(--speed), background var(--speed);
}
.choice:hover { border-color: var(--black); }
.choice.selected { border-color: var(--black); background: var(--off-white); }
.choice-letter {
  flex: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--light-gray);
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}
.choice.selected .choice-letter { background: var(--black); border-color: var(--black); color: var(--white); }
.choice.is-correct,
.choice.is-correct:hover { border-color: #237A4B; background: #edf8f1; }
.choice.is-correct .choice-letter { border-color: #237A4B; background: #237A4B; color: var(--white); }
.choice.is-incorrect,
.choice.is-incorrect:hover { border-color: #B53A2D; background: #fff4f1; }
.choice.is-incorrect .choice-letter { border-color: #B53A2D; background: #B53A2D; color: var(--white); }
.choice:disabled { cursor: default; opacity: 1; }
.choice-body { font-size: 0.95rem; color: var(--dark-gray); }
.q-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--mid-gray);
  font-style: italic;
}
.q-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 800px;
  margin-top: 28px;
}
.q-progress { font-size: 0.82rem; color: var(--mid-gray); font-weight: 600; }

/* ── ACT Full Practice Test ─────────────────────────────────── */
.act-test-shell {
  min-height: calc(100vh - var(--nav-h));
  padding: 36px var(--gutter) var(--section-y);
  background: var(--off-white);
}
.act-test-toolbar {
  position: sticky;
  top: var(--nav-h);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin: -36px calc(var(--gutter) * -1) var(--space-xl);
  padding: 16px max(var(--gutter), calc((100vw - 1200px) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--light-gray);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
}
.act-test-toolbar-main,
.act-test-toolbar-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-sm); }
.act-test-toolbar-main > strong { font-family: var(--font-head); font-size: 1rem; }
.act-test-toolbar-main > span:last-child { color: var(--mid-gray); font-size: 0.76rem; font-weight: 600; }
.act-test-timer {
  min-width: 68px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}
.act-test-timer.is-low { color: #B53A2D; }
.act-section-intro {
  max-width: 760px;
  margin: 72px auto 0;
  padding: var(--space-2xl);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  background: var(--white);
}
.act-section-intro > p { margin: var(--space-md) 0 var(--space-lg); color: var(--dark-gray); line-height: 1.7; }
.act-intro-meta { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-xl); }
.act-intro-meta span {
  padding: 5px 11px;
  border: 1px solid var(--light-gray);
  border-radius: 999px;
  color: var(--mid-gray);
  font-size: 0.72rem;
  font-weight: 600;
}
.act-question-view {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.25fr) 190px;
  gap: var(--space-lg);
  align-items: start;
}
.act-question-view[hidden] { display: none; }
.act-question-view:has(.act-stimulus[hidden]) { grid-template-columns: minmax(0, 1fr) 190px; }
.act-stimulus,
.act-question-card,
.act-question-nav {
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  background: var(--white);
}
.act-stimulus {
  position: sticky;
  top: 150px;
  max-height: calc(100vh - 180px);
  overflow: auto;
  padding: var(--space-lg);
  white-space: pre-wrap;
  color: var(--dark-gray);
  font-family: Georgia, serif;
  font-size: 0.91rem;
  line-height: 1.72;
}
.act-stimulus h3 { margin-bottom: var(--space-md); font-family: var(--font-head); font-size: 1rem; line-height: 1.35; }
.act-stimulus p { margin-bottom: var(--space-md); color: var(--dark-gray); font-family: Georgia, serif; font-size: 0.91rem; line-height: 1.72; }
.act-stimulus p:last-child { margin-bottom: 0; }
.act-stimulus table { width: 100%; border-collapse: collapse; margin-top: var(--space-md); font-size: 0.78rem; }
.act-stimulus th,
.act-stimulus td { padding: 8px; border: 1px solid var(--light-gray); text-align: center; }
.act-stimulus th { background: var(--off-white); font-weight: 700; }
.act-question-card { min-height: 450px; padding: var(--space-xl); }
.act-question-kicker {
  margin-bottom: var(--space-md);
  color: var(--mid-gray);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.act-question-card > h2 { margin-bottom: var(--space-xl); font-family: var(--font-head); font-size: 1.25rem; line-height: 1.48; }
.act-answer-choices { display: grid; gap: var(--space-sm); }
.act-answer-choice {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  min-height: 60px;
  padding: 13px 15px;
  border: 1.5px solid var(--light-gray);
  border-radius: 7px;
  background: var(--white);
  color: var(--black);
  text-align: left;
  transition: border-color var(--speed), background var(--speed), color var(--speed);
}
.act-answer-choice:hover { border-color: var(--black); }
.act-answer-choice.selected { border-color: var(--black); background: var(--black); color: var(--white); }
.act-answer-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 700;
}
.act-answer-body { font-size: 0.86rem; line-height: 1.48; }
.act-question-controls { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); }
.act-question-controls .btn:disabled { opacity: 0.35; pointer-events: none; }
.act-submit-note { min-height: 24px; margin-top: var(--space-sm); color: #8D241A; font-size: 0.78rem; font-weight: 600; }
.act-question-nav { position: sticky; top: 150px; padding: var(--space-md); }
.act-question-nav-head { display: flex; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.act-question-nav-head strong { font-family: var(--font-head); font-size: 0.82rem; }
.act-question-nav-head span { color: var(--mid-gray); font-size: 0.66rem; text-align: right; }
.act-question-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; max-height: 370px; overflow: auto; }
.act-question-grid button {
  aspect-ratio: 1;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  background: var(--white);
  color: var(--mid-gray);
  font-size: 0.66rem;
  font-weight: 600;
}
.act-question-grid button.is-answered { background: #E9E9E9; color: var(--black); }
.act-question-grid button.is-current { border-color: var(--black); box-shadow: inset 0 0 0 1px var(--black); }
.act-submit-section { width: 100%; justify-content: center; margin-top: var(--space-md); padding-left: 12px; padding-right: 12px; }
.act-resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  border-radius: 10px;
  background: var(--black);
  color: var(--white);
}
.act-resume-banner > div { display: grid; gap: 3px; }
.act-resume-banner strong { font-family: var(--font-head); }
.act-resume-banner span { color: rgba(255,255,255,0.62); font-size: 0.78rem; }
.act-pause-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(10,10,10,0.82);
}
.act-pause-overlay[hidden] { display: none; }
.act-pause-card { width: min(460px, 100%); padding: var(--space-2xl); border-radius: 12px; background: var(--white); text-align: center; }
.act-pause-card p { margin: var(--space-md) 0 var(--space-xl); color: var(--mid-gray); }
.act-test-results { max-width: 980px; margin: 40px auto 0; }
.act-results-lead { margin-top: var(--space-sm); color: var(--mid-gray); }
.act-composite-card {
  display: grid;
  place-items: center;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
  text-align: center;
}
.act-composite-card span { color: rgba(255,255,255,0.6); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.act-composite-card strong { font-family: var(--font-head); font-size: 4rem; line-height: 1.1; }
.act-composite-card small { color: rgba(255,255,255,0.55); }
.act-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); margin-top: var(--space-lg); }
.act-result-card { display: grid; gap: 4px; padding: var(--space-lg); border: 1.5px solid var(--light-gray); border-radius: 10px; background: var(--white); }
.act-result-card span { color: var(--mid-gray); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.act-result-card strong { font-family: var(--font-head); font-size: 2.25rem; }
.act-result-card small { color: var(--mid-gray); }
.act-review { display: grid; gap: var(--space-sm); margin-top: var(--space-xl); }
.act-review-section { border: 1.5px solid var(--light-gray); border-radius: 10px; background: var(--white); overflow: hidden; }
.act-review-section summary { padding: var(--space-lg); cursor: pointer; font-family: var(--font-head); font-weight: 600; }
.act-review-body { display: grid; gap: var(--space-sm); padding: 0 var(--space-lg) var(--space-lg); }
.act-review-item { padding: var(--space-md); border: 1px solid var(--light-gray); border-left-width: 4px; border-radius: 7px; }
.act-review-item.is-correct { border-left-color: #237A4B; }
.act-review-item.is-incorrect { border-left-color: #B53A2D; }
.act-review-item-head { display: flex; justify-content: space-between; margin-bottom: var(--space-xs); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.act-review-item.is-correct .act-review-item-head strong { color: #237A4B; }
.act-review-item.is-incorrect .act-review-item-head strong { color: #B53A2D; }
.act-review-item h4 { font-family: var(--font-head); font-size: 0.92rem; line-height: 1.45; }
.act-review-answer { margin-top: var(--space-sm); font-size: 0.78rem; font-weight: 600; }
.act-review-explanation { margin-top: var(--space-xs); color: var(--mid-gray); font-size: 0.78rem; line-height: 1.55; }
.act-review-selected-explanation { margin-top: var(--space-xs); padding: var(--space-sm); border-radius: 6px; background: #fff4f1; color: #8a2f25; font-size: 0.78rem; line-height: 1.55; }
.act-results-actions { display: flex; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-xl); }
.act-answer-choice:focus-visible,
.act-question-grid button:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; }
@media (max-width: 1050px) {
  .act-question-view,
  .act-question-view:has(.act-stimulus[hidden]) { grid-template-columns: minmax(0, 1fr) 170px; }
  .act-stimulus { position: static; grid-column: 1 / -1; max-height: 420px; }
}
@media (max-width: 720px) {
  .act-test-shell { padding-left: 16px; padding-right: 16px; }
  .act-test-toolbar { position: static; margin-left: -16px; margin-right: -16px; padding: 14px 16px; }
  .act-test-toolbar-main > span:last-child { display: none; }
  .act-question-view,
  .act-question-view:has(.act-stimulus[hidden]) { grid-template-columns: 1fr; }
  .act-question-nav { position: static; }
  .act-results-grid { grid-template-columns: repeat(2, 1fr); }
  .act-section-intro,
  .act-question-card { padding: var(--space-lg); }
  .act-resume-banner,
  .act-results-actions { flex-direction: column; align-items: stretch; }
  .act-resume-banner .btn,
  .act-results-actions .btn { justify-content: center; }
}

/* ── Practice by Unit list ─────────────────────────────────── */
.unit-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.unit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.unit-row:hover { border-color: var(--black); box-shadow: 0 6px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.unit-row--all { background: var(--off-white); border-color: var(--black); }
.unit-row-main { flex: 1; min-width: 0; }
.unit-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 6px; }
.unit-row-title { font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.unit-row-weight {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
  padding: 3px 9px;
  border: 1.5px solid var(--light-gray);
  border-radius: 4px;
}
.unit-row-desc { font-size: 0.88rem; color: var(--mid-gray); line-height: 1.45; }
.unit-row-cta { flex: none; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
  .unit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Score Calculators ─────────────────────────────────────── */
.calc-section { padding-top: 40px; }
.calc-container { max-width: 980px; }

.calc-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: 6px;
  margin-bottom: 28px;
}
.calc-tab {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mid-gray);
  padding: 10px 26px;
  border-radius: 4px;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.calc-tab:hover { color: var(--black); }
.calc-tab.is-active { background: var(--black); color: var(--white); }

.calc-subject-row { margin-bottom: 28px; max-width: 460px; }
.calc-select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 13px 16px;
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  color: var(--black);
  transition: border-color var(--speed) var(--ease);
}
.calc-select:focus { outline: none; border-color: var(--black); }

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.calc-panel {
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 14px;
  padding: 28px;
}
.calc-panel-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.calc-fields { display: flex; flex-direction: column; gap: 16px; }
.calc-field { display: flex; flex-direction: column; gap: 7px; }
.calc-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dark-gray);
}
.calc-input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  background: var(--off-white);
  border: 1.5px solid var(--light-gray);
  border-radius: 10px;
  color: var(--black);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.calc-input:focus { outline: none; border-color: var(--black); background: var(--white); }
.calc-disclaimer {
  margin-top: 18px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--mid-gray);
}

.calc-result-panel {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
  text-align: center;
  position: sticky;
  top: 96px;
}
.calc-result-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}
.calc-result-value {
  font-family: var(--font-head);
  font-size: 4.6rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 10px 0 6px;
}
.calc-result-sub { font-size: 0.86rem; color: var(--light-gray); line-height: 1.45; }
.calc-breakdown {
  margin-top: 22px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.86rem;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.calc-breakdown-row span:first-child { color: var(--light-gray); }
.calc-breakdown-row span:last-child { font-weight: 600; }
.calc-breakdown-row--cut { font-size: 0.76rem; }
.calc-breakdown-row--cut span { color: var(--mid-gray) !important; font-weight: 500; }

.calc-fineprint {
  margin-top: 28px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--mid-gray);
  max-width: 760px;
}

@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result-panel { position: static; }
  .calc-result-value { font-size: 3.8rem; }
}

/* ── Calculator sliders ────────────────────────────────────── */
.calc-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.calc-field-value {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  white-space: nowrap;
}
.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  margin: 2px 0;
  border-radius: 999px;
  background: linear-gradient(to right, var(--black) 0%, var(--black) var(--fill, 0%), var(--light-gray) var(--fill, 0%), var(--light-gray) 100%);
  cursor: pointer;
  outline: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--black);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: transform var(--speed) var(--ease);
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-slider::-webkit-slider-thumb:active { transform: scale(1.05); }
.calc-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--black);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  cursor: pointer;
}
.calc-slider::-moz-range-progress { background: var(--black); height: 8px; border-radius: 999px; }
.calc-slider::-moz-range-track { background: var(--light-gray); height: 8px; border-radius: 999px; }
.calc-slider:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,0.18); }

/* ── Desmos test calculator (desmos-calc.js) ─────────────────────────────
 * Graphing calculator shown only on math practice questions. A toggle button
 * rendered inside the question opens a draggable, resizable floating panel.
 * The panel's left/top/width/height are set at runtime while dragging or
 * resizing; the corner anchor here is the default resting spot.               */
.desmos-slot { display: flex; justify-content: flex-end; margin: 4px 0 var(--space-sm); }

.desmos-panel {
  position: fixed;
  right: var(--space-lg);
  bottom: calc(var(--space-lg) + 64px);
  z-index: 401;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 2 * var(--space-lg)));
  height: min(520px, calc(100vh - 2 * var(--space-lg)));
  min-width: 300px;
  min-height: 300px;
  background: var(--white);
  border: 1.5px solid var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.desmos-panel-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  z-index: 2;
  cursor: nwse-resize;
  touch-action: none;
  background: linear-gradient(135deg, transparent 50%, var(--mid-gray) 50%, var(--mid-gray) 62%, transparent 62%, transparent 74%, var(--mid-gray) 74%, var(--mid-gray) 86%, transparent 86%);
}
.desmos-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--off-white);
  border-bottom: 1px solid var(--light-gray);
  cursor: move;
  touch-action: none;
  user-select: none;
}
.desmos-panel-title {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-gray);
}
.desmos-panel-close {
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--mid-gray);
  cursor: pointer;
  padding: 0 4px;
}
.desmos-panel-close:hover { color: var(--black); }
.desmos-panel-body { flex: 1; min-height: 0; }

.btn.desmos-toggle[hidden], .desmos-panel[hidden] { display: none; }
