/* ============================================================
   home.css — Homepage critical path (core + home-inline-critical).
   Below-fold rules: /styles/home-deferred.css (async on index).
   Run: python3 scripts/build_css_bundles.py
   ============================================================ */

/* APScore5 bundle: core — generated by scripts/build_css_bundles.py */

/* --- styles/tokens.css --- */

/* ============================================================
   tokens.css — Design tokens only.
   Change a value here, the whole site updates. Never hard-code.
   ============================================================ */
:root {
  /* Brand colors */
  --navy: #0a0f5a;
  --navy-2: #101973;
  --navy-3: #070b43;
  --blue: #7ba3e8;
  --blue-2: #b9d1ff;
  --blue-light: #eef4ff;
  /* Header / top menu text links (medium blue) */
  --nav-link: #3b5bdb;
  --nav-link-hover: #2a35a3;
  --orange: #f59e0b;
  --orange-2: #facc15;
  --orange-dark: #d97706;

  /* Prose links in main content (see page-body-links.css) — matches header nav blue */
  --content-link: var(--nav-link);
  --content-link-hover: var(--nav-link-hover);
  --content-link-on-dark: #7ba3e8;
  --content-link-on-dark-hover: #b9d1ff;

  /* Left / right column nav (TOC, course sidebar, hub side cards) */
  --sidebar-link: var(--navy);
  --sidebar-link-hover: var(--navy-2);

  /* Site footer on navy gradient */
  --footer-link: #ffffff;
  --footer-text: rgba(255, 255, 255, 0.88);

  /* Neutrals */
  --white: #ffffff;
  --card: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #e2e8f0;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --bg-2: #f1f5f9;

  /* White text on dark navy heroes/footers — WCAG-oriented targets (.cursorrules) */
  --on-dark-body: rgba(255, 255, 255, 0.88);
  --on-dark-muted: rgba(255, 255, 255, 0.78);

  /* State */
  --success: #16a34a;
  --danger: #dc2626;

  /* Shadows */
  --shadow: 0 18px 45px rgba(10, 15, 90, 0.10);
  --shadow-soft: 0 10px 30px rgba(10, 15, 90, 0.08);
  --shadow-hover: 0 24px 60px rgba(10, 15, 90, 0.14);

  /* Radii */
  --radius: 24px;
  --radius-sm: 18px;
  --radius-pill: 999px;

  /* Layout */
  --max: 1120px;

  /* Spacing rhythm */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Type */
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Heading weights — numeric scale (Inter variable). Adjust here for global heading boldness. */
  --fw-heading: 698;
  --fw-heading-display: 898;
  --fw-heading-semibold: 798;
  --ls-h1: -0.038em;
  --ls-h2: -0.04275em;
  --ls-h3: -0.02565em;
  --ls-h4: -0.0285em;

  /* Breakpoints (referenced as media query values) */
  --bp-sm: 640px;
  --bp-md: 900px;
  --bp-lg: 1120px;
}



/* --- styles/base.css --- */

/* ============================================================
   base.css — Element resets, body defaults, typography, focus.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(123, 163, 232, 0.12), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 22%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; height: auto; }

button { font-family: inherit; }

h2, h3, h4 {
  color: var(--navy);
  margin: 0;
  font-weight: var(--fw-heading);
}

h4 {
  letter-spacing: var(--ls-h4);
  line-height: 1.25;
}

/* h1 inherits color from its parent (e.g., .hero sets white).
   Specific h1 sizing lives in components/site.css. */
h1 { margin: 0; color: inherit; }

p { margin: 0; }

/* Focus states — single source of truth for keyboard a11y */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Body scroll lock when mobile menu open */
body.menu-open { overflow: hidden; }


/* Typography defaults — heading scale */
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.48rem, 3vw, 2.18rem);
  letter-spacing: var(--ls-h2);
  line-height: 1.1;
  color: var(--navy);
  font-weight: var(--fw-heading);
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: var(--ls-h3);
  line-height: 1.2;
  font-weight: var(--fw-heading);
}

/* Image descriptions under figures — centered with the image block */
figure figcaption {
  text-align: center;
}



/* --- styles/layout.css --- */

/* ============================================================
   layout.css — main-wrap, container, grids, section rhythm.
   ============================================================ */

.main-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: grid;
  gap: 24px;
  min-width: 0;
  width: 100%;
  max-width: min(var(--max), 100%);
}

/* Shrink grid/flex children below intrinsic image/table width */
.main-wrap > *,
.main-wrap .content,
.main-wrap .content > *,
main > *,
.microtopic-main,
.microtopic-main > *,
.course-page,
.course-main,
.dtm-layout,
.dtm-main,
.dtm-main > * {
  min-width: 0;
  max-width: 100%;
}

.section,
main .section,
.microtopic-main .section {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.table-wrap,
.hug-u2-glossary-wrap,
.microtopic-main .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.section p,
.section li,
.section h2,
.section h3,
.section h4,
.microtopic-main .section p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

figure,
.dtm-figure,
.microtopic-main figure {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}



/* --- styles/components/site.css --- */

/* ============================================================
   site.css — Full home page styles, v3.
   Reference: /APScore_5_Home_Page.html sample.
   v3 changes:
     - H1 explicitly white + bold (was inheriting wrong color)
     - Fixed broken @media (640px) closing brace from sample
     - Comprehensive mobile overrides for all viewports
     - Logo display safety rules
   ============================================================ */

.topbar {
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid rgba(226,232,240,0.82);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  color: var(--navy);
  letter-spacing: -0.035em;
  font-size: 1.12rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255,255,255,0.55), transparent 26%),
    linear-gradient(135deg, var(--navy), var(--blue));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(10,15,90,0.18);
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 5px;
  border-radius: 999px;
}

.nav-item {
  position: relative;
}

.nav-trigger,
.nav-direct {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.nav-trigger:hover,
.nav-direct:hover,
.nav-item:focus-within .nav-trigger {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 6px 18px rgba(10,15,90,0.06);
}

/* Header top menu — medium blue links */
.topbar .nav-trigger,
.topbar .nav-direct,
.topbar .login-link {
  color: var(--nav-link);
}

.topbar .nav-trigger:hover,
.topbar .nav-direct:hover,
.topbar .nav-item:focus-within .nav-trigger,
.topbar .login-link:hover {
  color: var(--nav-link-hover);
  background: var(--blue-light);
}

.topbar .nav-trigger:hover,
.topbar .nav-direct:hover,
.topbar .nav-item:focus-within .nav-trigger {
  box-shadow: 0 6px 18px rgba(42, 53, 163, 0.08);
}

.topbar .mega-links a,
.topbar .dropdown-panel a {
  color: var(--nav-link);
}

.topbar .mega-links a:hover,
.topbar .dropdown-panel a:hover {
  color: var(--nav-link-hover);
  background: var(--blue-light);
}

.topbar .mega-view-all a {
  color: var(--nav-link-hover);
}

.topbar .mobile-menu a {
  color: var(--nav-link);
}

.topbar .mobile-menu a:hover {
  color: var(--nav-link-hover);
}

.chevron {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.72;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(920px, calc(100vw - 32px));
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(10,15,90,0.18);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  backdrop-filter: blur(18px);
  z-index: 120;
}

.nav-item.open .mega-panel,
.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-panel::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 22px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mega-course {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.mega-course-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mega-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mega-course h4 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: -0.019em;
  line-height: 1.18;
  font-weight: var(--fw-heading);
}

.mega-course p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.mega-links {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.mega-links a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 7px 8px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.mega-links a:hover {
  color: var(--navy);
  background: var(--blue-light);
  transform: translateX(2px);
}

.mega-view-all {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.mega-view-all a {
  color: var(--navy);
  font-weight: 950;
  font-size: 0.9rem;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 280px;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(10,15,90,0.16);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 120;
}

.nav-item.open .dropdown-panel,
.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-panel::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 22px;
}

.dropdown-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.dropdown-panel a:hover {
  background: var(--blue-light);
  color: var(--navy);
  transform: translateX(2px);
}

.dropdown-panel strong {
  display: block;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 2px;
}

.dropdown-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* nav.js injects logged-out / logged-in CTAs into #nav-cta */
.topbar #nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.topbar .nav-link {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.topbar .nav-link:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.topbar .btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #111827;
  border: 0;
  font-weight: 950;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.92rem;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.topbar .btn-orange:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.topbar .profile-wrap {
  position: relative;
}

.topbar .profile-trigger {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--blue-light);
  color: var(--navy);
  font-weight: 950;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 0.95rem;
}

.topbar .profile-trigger:hover {
  border-color: var(--navy);
}

.topbar .profile-trigger .alert-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--danger);
  border: 2px solid white;
  border-radius: 50%;
}

.topbar .profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px;
  display: none;
  z-index: 120;
}

.topbar .profile-menu.open {
  display: block;
}

.topbar .profile-menu a,
.topbar .profile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
}

.topbar .profile-menu a:hover,
.topbar .profile-menu button:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.login-link {
  color: var(--muted);
  font-weight: 850;
  font-size: 0.92rem;
  padding: 9px 10px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}

.login-link:hover {
  color: var(--navy);
  background: #f8fafc;
}

.nav-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #111827;
  font-weight: 950;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
  font-size: 0.92rem;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.mobile-menu-button {
  display: none;
  border: 1px solid var(--border);
  background: white;
  color: var(--navy);
  border-radius: 12px;
  padding: 9px 11px;
  font-weight: 950;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 16px;
}

.mobile-menu details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 10px;
  overflow: hidden;
}

.mobile-menu summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 950;
  padding: 13px 14px;
}

.mobile-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.mobile-menu .mobile-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--orange);
  color: #111827;
  font-weight: 950;
  border-radius: 999px;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(123, 163, 232, 0.42), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(245, 158, 11, 0.20), transparent 20rem),
    radial-gradient(circle at 55% 110%, rgba(123,163,232,0.18), transparent 24rem),
    linear-gradient(135deg, var(--navy-3), var(--navy) 48%, var(--navy-2));
  color: var(--white);
  padding: 36px 20px 44px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at top left, black, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

h1 {
  font-size: clamp(2.15rem, 4.55vw, 3.55rem);
  line-height: 1.02;
  margin: 0 0 10px;
  letter-spacing: var(--ls-h1);
  max-width: 780px;
  color: #ffffff;
  font-weight: var(--fw-heading-display);
}

.hero-subheading {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,255,255,0.88);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}

.hero p {
  font-size: 1.08rem;
  max-width: 675px;
  color: rgba(255,255,255,0.88);
  margin: 0 0 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn-primary,
.btn-secondary,
.btn-navy,
.btn-soft {
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: #111827;
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.30);
}

.btn-secondary {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  box-shadow: 0 14px 30px rgba(10, 15, 90, 0.16);
}

.btn-soft {
  background: var(--blue-light);
  color: var(--navy);
  border: 1px solid #dbeafe;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-navy:hover,
.btn-soft:hover {
  transform: translateY(-2px);
}

.hero-trust {
  margin-top: 11px;
  color: rgba(255,255,255,0.78);
  font-size: 0.92rem;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.trust-chip {
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,0.82);
  font-size: .84rem;
}

.hero-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 16px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.26);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 15rem);
  pointer-events: none;
}

.dashboard-top {
  position: relative;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.16);
  margin-bottom: 12px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dash-title strong {
  display: block;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.dash-title span {
  color: var(--muted);
  font-size: .86rem;
}

.streak-pill {
  background: #fff7ed;
  color: var(--orange-dark);
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 950;
  font-size: .84rem;
  white-space: nowrap;
}

.mission-card {
  background: linear-gradient(135deg, var(--blue-light), #ffffff);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 10px;
}

.mission-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 6px;
}

.mission-card strong {
  color: var(--navy);
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-label strong { color: var(--navy); }

.progress-bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  border-radius: 999px;
}

.hero-stat-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.hero-stat {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 11px;
}

.hero-stat strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1;
}

.hero-stat span {
  color: rgba(255,255,255,0.78);
  font-size: 0.84rem;
}

.page {
  max-width: var(--max);
  margin: -34px auto 86px;
  padding: 0 20px;
  display: grid;
  gap: 24px;
}

.panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,232,240,0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  backdrop-filter: blur(10px);
}

.panel.compact { padding: 24px; }

body.practice-hub-page .practice-content-figure {
  margin: 18px 0 22px;
  text-align: center;
}
body.practice-hub-page .practice-content-figure picture,
body.practice-hub-page .practice-content-figure img {
  display: block;
  max-width: min(100%, 716px);
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(10, 15, 90, 0.08);
}
body.practice-hub-page .practice-content-figure figcaption {
  margin: 10px auto 0;
  max-width: min(100%, 716px);
  font-size: 0.84rem;
  text-align: center;
  line-height: 1.45;
  color: #4a5276;
}

.section-eyebrow {
  color: var(--orange-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.48rem, 3vw, 2.18rem);
  letter-spacing: var(--ls-h2);
  line-height: 1.1;
  color: var(--navy);
  font-weight: var(--fw-heading);
}

h3 {
  margin: 0 0 8px;
  color: var(--navy);
  letter-spacing: var(--ls-h3);
  line-height: 1.2;
  font-weight: var(--fw-heading);
}

p { margin-top: 0; }
.muted { color: var(--muted); }

.intro-grid,
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.mini-card,
.keyword-card {
  position: relative;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(10,15,90,0.045);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  overflow: hidden;
}

.mini-card:hover,
.keyword-card:hover {
  transform: translateY(-2px);
  border-color: #c7d8ff;
  box-shadow: var(--shadow-soft);
}

.mini-card strong,
.keyword-card strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.mini-card span,
.keyword-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

.icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  margin-bottom: 12px;
  border: 1px solid #dbeafe;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.course-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(123,163,232,0.14), transparent 11rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: auto 20px 0 20px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  border-radius: 999px 999px 0 0;
  opacity: 0;
  transition: opacity .15s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-hover);
}

.course-card:hover::after { opacity: 1; }

.course-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 950;
  color: var(--orange-dark);
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.course-card ul {
  padding-left: 18px;
  color: var(--muted);
  margin: 12px 0 18px;
  font-size: 0.94rem;
}

.course-link {
  color: var(--navy);
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.practice-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.step-card {
  background:
    radial-gradient(circle at top right, rgba(123,163,232,0.22), transparent 10rem),
    var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  font-weight: 950;
  margin-bottom: 12px;
  box-shadow: 0 10px 20px rgba(10,15,90,0.16);
}

.resources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.resource-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  border-radius: 22px;
  padding: 20px;
  min-height: 178px;
  box-shadow: 0 8px 22px rgba(10,15,90,0.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  border-color: #c7d8ff;
  box-shadow: var(--shadow-soft);
}

.resource-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.resource-card a {
  color: var(--content-link);
  font-weight: 950;
}

.resource-card a:hover {
  color: var(--content-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.highlight-box {
  background:
    radial-gradient(circle at 86% 16%, rgba(245,158,11,0.22), transparent 17rem),
    radial-gradient(circle at 12% 100%, rgba(123,163,232,0.23), transparent 18rem),
    linear-gradient(135deg, var(--navy-3), var(--navy-2));
  color: white;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(10,15,90,0.20);
  overflow: hidden;
  position: relative;
}

.highlight-box h2 { color: white; }

.highlight-box p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 0;
}

.mock-widget {
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.topic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
}

.topic-row:last-child { border-bottom: 0; }
.weak { color: #fecaca; font-weight: 950; }
.ready { color: #bbf7d0; font-weight: 950; }
.warn { color: #fde68a; font-weight: 950; }

.question-demo {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #fcfdff);
  margin-top: 18px;
  box-shadow: 0 10px 26px rgba(10,15,90,0.05);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
  gap: 12px;
}

.options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.option {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px 14px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text);
}

.option:hover {
  border-color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10,15,90,0.05);
}

.option.correct {
  border-color: var(--success);
  background: #f0fdf4;
}

.option.incorrect {
  border-color: var(--danger);
  background: #fef2f2;
}

.explanation {
  display: none;
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--blue-light);
  border: 1px solid #dbeafe;
}

.feedback-row {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.feedback-tile {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: white;
}

.feedback-tile strong {
  color: var(--navy);
  display: block;
  line-height: 1.2;
}

.feedback-tile span {
  color: var(--muted);
  font-size: 0.88rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.seo-copy p { color: var(--muted); }

.list-clean {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list-clean li {
  display: flex;
  gap: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 12px 14px;
  border-radius: 16px;
}

.check {
  color: var(--orange-dark);
  font-weight: 950;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  margin-top: 18px;
  background: white;
  box-shadow: 0 8px 22px rgba(10,15,90,0.04);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: 0; }

.comparison-table th {
  background: linear-gradient(180deg, var(--blue-light), #f8fbff);
  color: var(--navy);
}

.comparison-table td { color: var(--muted); }
.comparison-table td strong { color: var(--navy); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.trust-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(10,15,90,0.04);
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  margin-bottom: 10px;
  border: 1px solid #dbeafe;
}


.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.testimonial-card {
  background:
    radial-gradient(circle at top right, rgba(123,163,232,0.16), transparent 10rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(10,15,90,0.05);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  border-color: #c7d8ff;
  box-shadow: var(--shadow-soft);
}

.stars {
  color: var(--orange-dark);
  letter-spacing: 0.05em;
  font-weight: 950;
  margin-bottom: 12px;
}

.quote {
  color: var(--text);
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 12px;
}

.student-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.proof-tile {
  background: var(--blue-light);
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
}

.proof-tile strong {
  display: block;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.proof-tile span {
  color: var(--muted);
  font-size: 0.88rem;
}


.faq-soft {
  padding: 30px;
  background:
    radial-gradient(circle at top right, rgba(123,163,232,0.18), transparent 18rem),
    linear-gradient(180deg, #ffffff, #fbfdff);
}

.faq-soft-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.faq-soft-head h2 {
  margin-bottom: 8px;
}

.faq-head-cta {
  flex-shrink: 0;
  margin-top: 8px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
}

.faq-column {
  display: grid;
  gap: 10px;
  align-content: start;
}

.faq-group-label {
  margin: 12px 0 2px;
  color: var(--orange-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.faq-group-label:first-child {
  margin-top: 0;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0;
  background: rgba(255,255,255,0.88);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(10,15,90,0.035);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.faq details:hover {
  border-color: #c7d8ff;
  box-shadow: 0 12px 26px rgba(10,15,90,0.07);
  transform: translateY(-1px);
}

.faq details[open] {
  background: white;
  border-color: #c7d8ff;
  box-shadow: 0 14px 34px rgba(10,15,90,0.09);
}

.faq summary {
  cursor: pointer;
  color: var(--navy);
  list-style: none;
  padding: 16px 44px 16px 16px;
  line-height: 1.28;
  font-size: 1.03rem;
  font-weight: 950;
  letter-spacing: -0.025em;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--navy);
  border: 1px solid #dbeafe;
  font-weight: 950;
  font-size: 1rem;
}

.faq details[open] summary::after {
  content: "–";
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--orange-dark);
}

.faq details p {
  margin: 0;
  padding: 0 16px 16px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}


.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(123,163,232,0.24), transparent 18rem),
    radial-gradient(circle at bottom left, rgba(245,158,11,0.12), transparent 18rem),
    white;
}

.final-cta p {
  max-width: 690px;
  margin: 0 auto 20px;
  color: var(--muted);
}



.footer {
  background:
    radial-gradient(circle at top left, rgba(123,163,232,0.18), transparent 20rem),
    radial-gradient(circle at top right, rgba(245,158,11,0.14), transparent 18rem),
    linear-gradient(135deg, #070b43, #0a0f5a);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px 32px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-col {
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 13px;
  color: white;
  font-size: 0.96rem;
  letter-spacing: 0.0105em;
  font-weight: var(--fw-heading);
}

.footer-col p {
  font-size: 0.92rem;
  color: var(--footer-text);
  margin: 0;
  max-width: 310px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--footer-link);
  font-size: 0.92rem;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--footer-link);
  transform: translateX(2px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 950;
  color: white;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}

.footer-mini-cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.15s ease;
}

.footer-mini-cta:hover {
  transform: translateY(-1px);
  background: var(--orange);
  border-color: var(--orange);
  color: #111827;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
}

.footer-youtube-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 7px;
  box-sizing: border-box;
  width: auto;
  max-width: 140px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.footer-youtube-link:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.footer-youtube-link:focus-visible {
  outline: 3px solid rgba(255, 211, 122, 0.85);
  outline-offset: 3px;
}

.footer-youtube-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 5px;
  background: #ff0000;
  line-height: 0;
  overflow: hidden;
}

.footer-youtube-mark svg {
  display: block;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

/* Inline SVG includes its own red plate — hide so the CSS rectangle is the frame */
.footer-youtube-mark svg path:first-of-type {
  fill: transparent !important;
}

.footer-youtube-wordmark {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 20px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--footer-text);
  text-align: left;
}

.footer-disclaimer {
  max-width: 620px;
  text-align: right;
}

.mobile-sticky {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  border-radius: 999px;
  padding: 13px 16px;
  text-align: center;
  font-weight: 950;
  box-shadow: 0 20px 44px rgba(10,15,90,0.28);
}

footer {
  padding: 34px 20px 88px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner,
  .intro-grid,
  .keyword-grid,
  .course-grid,
  .practice-strip,
  .resources-grid,
  .highlight-box,
  .two-col,
  .trust-grid,
  .testimonial-grid,
  .proof-strip,
  .faq-grid,
  .faq-soft-head,
  .feedback-row {
    grid-template-columns: 1fr;
  }

  .nav-center, .login-link, .nav-actions .nav-cta { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .page { margin-top: -24px; }
  .hero-card { max-width: 560px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .footer-disclaimer { text-align: left; }
}

@media (max-width: 640px) {
  .hero { padding: 30px 18px 40px; }
  .panel { padding: 22px; border-radius: 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary, .btn-navy, .btn-soft { width: 100%; }
  .hero-stat-grid { grid-template-columns: 1fr; }
  .question-meta { flex-direction: column; }
  .comparison-table { font-size: 0.9rem; display: block; overflow-x: auto; }
  .comparison-table th, .comparison-table td { padding: 12px; min-width: 170px; }
}

.footer {
  background:
    radial-gradient(circle at top left, rgba(123,163,232,0.18), transparent 20rem),
    radial-gradient(circle at top right, rgba(245,158,11,0.14), transparent 18rem),
    linear-gradient(135deg, #070b43, #0a0f5a);
  color: rgba(255,255,255,0.85);
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 52px 20px 32px;
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-col {
  text-align: left;
}

.footer-col h4 {
  margin: 0 0 13px;
  color: white;
  font-size: 0.96rem;
  letter-spacing: 0.0105em;
  font-weight: var(--fw-heading);
}

.footer-col p {
  font-size: 0.92rem;
  color: var(--footer-text);
  margin: 0;
  max-width: 310px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--footer-link);
  font-size: 0.92rem;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--footer-link);
  transform: translateX(2px);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 950;
  color: white;
  letter-spacing: -0.03em;
  font-size: 1.12rem;
}

.footer-mini-cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 900;
  transition: transform 0.15s ease, background 0.15s ease;
}

.footer-mini-cta:hover {
  transform: translateY(-1px);
  background: var(--orange);
  border-color: var(--orange);
  color: #111827;
}

.footer-social {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
}

.footer-youtube-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 7px;
  box-sizing: border-box;
  width: auto;
  max-width: 140px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 32px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.footer-youtube-link:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.footer-youtube-link:focus-visible {
  outline: 3px solid rgba(255, 211, 122, 0.85);
  outline-offset: 3px;
}

.footer-youtube-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  border-radius: 5px;
  background: #ff0000;
  line-height: 0;
  overflow: hidden;
}

.footer-youtube-mark svg {
  display: block;
  width: 14px;
  height: 14px;
  max-width: 14px;
  max-height: 14px;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
}

/* Inline SVG includes its own red plate — hide so the CSS rectangle is the frame */
.footer-youtube-mark svg path:first-of-type {
  fill: transparent !important;
}

.footer-youtube-wordmark {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 20px 30px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--footer-text);
  text-align: left;
}

.footer-disclaimer {
  max-width: 620px;
  text-align: right;
}

/* ============================================================
   OVERRIDES — bulletproof H1 + comprehensive mobile.
   These come last in site.css, which is imported last among
   component files, so they win the cascade.
   ============================================================ */

/* Force hero H1 white at every viewport regardless of cascade fights */
.hero h1,
.hero .h1,
section.hero h1,
.hero-inner h1 {
  color: #ffffff !important;
  font-weight: var(--fw-heading-display);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Hero subheading + paragraph — match brightness */
.hero .hero-subheading { color: rgba(255,255,255,0.92) !important; }
.hero p { color: rgba(255,255,255,0.88) !important; }

/* Logo display safety */
.brand img,
.footer-brand img { display: block; height: auto; max-width: 100%; }
.brand img { height: 44px; width: auto; }
.footer-brand img { height: 56px; width: auto; }
.footer-brand img {
  border: 1px solid rgba(147, 197, 253, 0.7);
  border-radius: 6px;
}
.footer-brand {
  display: block;
  margin-left: 0;
  padding-left: 0;
  justify-content: flex-start;
}
.footer-brand-col p {
  margin-left: 0;
  padding-left: 0;
}
.footer-brand-col .footer-mini-cta {
  margin-top: 26px !important;
}

/* ============================================================
   MOBILE — ≤640px
   ============================================================ */
@media (max-width: 640px) {
  /* HERO */
  .hero { padding: 28px 16px 36px !important; }
  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .hero h1,
  .hero .h1,
  section.hero h1 {
    font-size: 2.05rem !important;
    line-height: 1.1 !important;
    letter-spacing: -0.019em !important;
    max-width: 100% !important;
    margin: 8px 0 12px !important;
  }
  .hero-subheading {
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  .hero p {
    font-size: 0.97rem !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
  }
  .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  /* HERO BUTTONS — full width, stacked */
  .hero-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }
  .btn-primary,
  .btn-secondary,
  .btn-navy,
  .btn-soft {
    width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.96rem !important;
  }

  .hero-trust { font-size: 0.86rem; }
  .trust-chips { gap: 6px; }
  .trust-chip { font-size: 0.78rem; padding: 6px 9px; }

  /* HERO CARD (preview on right) */
  .hero-card {
    max-width: 100% !important;
    padding: 12px !important;
    border-radius: 22px !important;
  }
  .dashboard-top { padding: 12px; border-radius: 18px; }
  .dash-title strong { font-size: 0.95rem; }
  .dash-title span { font-size: 0.78rem; }
  .streak-pill { font-size: 0.78rem; padding: 5px 9px; }
  .mission-card { padding: 10px; }
  .mission-card strong { font-size: 0.95rem; line-height: 1.3; }
  .hero-stat-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .hero-stat { padding: 10px; }
  .hero-stat strong { font-size: 1.05rem; }
  .hero-stat span { font-size: 0.76rem; }

  /* PAGE & SECTIONS */
  .page {
    margin: -28px auto 80px !important;
    padding: 0 16px !important;
    gap: 16px !important;
  }
  .panel {
    padding: 20px 18px !important;
    border-radius: 18px !important;
  }
  h2 {
    font-size: 1.4rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02375em !important;
  }
  h3 {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
  }
  .section-eyebrow { font-size: 0.7rem; }

  /* ALL GRIDS → 1 column */
  .course-grid,
  .keyword-grid,
  .resources-grid,
  .practice-strip,
  .mini-grid,
  .trust-grid,
  .feedback-row,
  .testimonial-grid,
  .proof-strip,
  .faq-grid,
  .intro-grid,
  .two-col,
  .highlight-box,
  .conversion-box,
  .score-card {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .course-card,
  .resource-card,
  .mini-card,
  .keyword-card,
  .step-card,
  .trust-card,
  .testimonial-card { padding: 16px; }

  /* FAQ */
  .faq-soft { padding: 22px 18px; }
  .faq-soft-head {
    flex-direction: column !important;
    gap: 10px;
    align-items: flex-start;
  }
  .faq details { border-radius: 14px; }
  .faq summary { font-size: 0.94rem; padding: 14px; }

  /* COMPARISON TABLE — horizontal scroll */
  .comparison-table {
    display: block !important;
    overflow-x: auto !important;
    font-size: 0.85rem !important;
    white-space: normal;
  }
  .comparison-table th,
  .comparison-table td {
    min-width: 160px !important;
    padding: 10px !important;
  }

  /* DEMO QUESTION */
  .question-demo { padding: 16px; }
  .question-meta {
    flex-direction: column !important;
    gap: 6px;
    align-items: flex-start;
  }
  .option { padding: 12px; font-size: 0.92rem; }

  /* FOOTER — single column */
  .footer-inner {
    grid-template-columns: 1fr !important;
    padding: 36px 18px 20px !important;
    gap: 26px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 16px 18px 24px !important;
  }
  .footer-disclaimer {
    text-align: left !important;
    max-width: 100% !important;
  }
  .footer-brand img { height: 44px; }

  .footer-youtube-link {
    max-width: 132px;
    padding: 5px 7px;
    gap: 6px;
    border-radius: 9px;
  }

  .footer-youtube-mark {
    width: 38px;
    height: 20px;
    border-radius: 4px;
  }

  .footer-youtube-mark svg {
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
  }

  .footer-youtube-wordmark {
    font-size: 0.78rem;
  }

  /* MEGA NAV → HAMBURGER */
  .nav-center,
  .login-link,
  .nav-actions .nav-cta { display: none !important; }
  .mobile-menu-button { display: inline-flex !important; }
  .nav { padding: 12px 16px !important; }
  .brand img { height: 36px !important; }

  /* MOBILE STICKY CTA at bottom */
  .mobile-sticky {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 13px 16px;
    background: var(--orange);
    color: #111827;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    box-shadow: 0 -8px 22px rgba(10, 15, 90, 0.18);
  }
  body { padding-bottom: 60px; } /* space for sticky CTA */
}

/* Tiny phones (≤380px) */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.85rem !important;
    letter-spacing: -0.01425em !important;
  }
  h2 { font-size: 1.25rem !important; }
  .hero-stat-grid { grid-template-columns: 1fr !important; }
  .panel { padding: 18px 16px !important; }
  .badge { font-size: 0.74rem; }
}

/* iPhone/mobile layout hardening without altering existing media blocks */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip;
  }

  body {
    font-size: 16px;
  }

  .hero-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 8.2vw, 2.4rem) !important;
    line-height: 1.12 !important;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-card {
    order: 2;
    width: 100%;
    max-width: 100%;
  }

  .hero-inner > div:first-child {
    order: 1;
    min-width: 0;
  }

  .mobile-menu-button {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 16px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 140;
    display: none;
    max-width: none;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    padding: 88px 16px 24px;
  }

  .mobile-menu.is-open {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-menu details,
  .mobile-menu a {
    margin-top: 8px;
  }

  .mobile-menu summary,
  .mobile-menu a,
  .mobile-menu .mobile-cta {
    min-height: 44px;
    padding: 16px;
    font-size: 1rem;
  }

  a,
  button,
  summary {
    min-height: 44px;
  }

  .comparison-table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: thin;
  }

  .comparison-table::after {
    content: "Swipe ->";
    position: sticky;
    right: 10px;
    bottom: 6px;
    float: right;
    font-size: 0.78rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 8px;
    margin: 6px 0;
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 180px !important;
    white-space: normal;
  }

  .faq summary {
    min-height: 44px;
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .two-col,
  .highlight-box {
    grid-template-columns: 1fr !important;
  }

  .page,
  .panel,
  .hero,
  .nav,
  .footer-inner,
  .footer-bottom {
    max-width: 100%;
  }

  .footer-brand {
    justify-content: flex-start !important;
  }

  .footer-brand img {
    height: 48px !important;
    width: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .nav-item:hover .mega-panel,
  .nav-item:hover .dropdown-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
  }

  .nav-item.open .mega-panel,
  .nav-item.open .dropdown-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 320px) {
  .hero {
    padding: 24px 12px 30px !important;
  }

  .nav {
    padding: 10px 12px !important;
    gap: 8px;
  }

  .hero h1 {
    font-size: 1.68rem !important;
    line-height: 1.14 !important;
  }

  .hero-subheading,
  .hero p {
    font-size: 0.95rem !important;
  }

  .page {
    padding: 0 12px !important;
  }

  .panel {
    padding: 16px 12px !important;
  }

  .btn-primary,
  .btn-secondary,
  .btn-navy,
  .btn-soft,
  .mobile-menu summary,
  .mobile-menu a,
  .mobile-menu .mobile-cta {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .comparison-table th,
  .comparison-table td {
    min-width: 150px !important;
    padding: 10px 8px !important;
  }

  .faq summary {
    padding-right: 40px !important;
  }
}

/* Mobile overflow hardening across page types (pillar, unit, microtopic, courses, DTM cluster) */
@media (max-width: 760px) {
  .page,
  .hero,
  .hero-inner,
  .footer,
  .footer-inner,
  .signup-main,
  .signup-topbar-inner,
  .signup-hero-inner,
  .main-wrap,
  .maptypes-layout,
  .maptypes-main,
  .course-page,
  .courses-page,
  .courses-hero-inner,
  .course-hero-inner,
  .dtm-layout,
  .dtm-main,
  .dtm-path-bar,
  .dtm-bc .inner,
  .dtm-hero-grid,
  .stages-jump,
  .resource-wrap,
  .about-page,
  .about-layout,
  .about-main,
  .microtopic-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .main-wrap > *,
  .maptypes-layout > *,
  .course-page > *,
  .courses-page > *,
  .courses-hero-inner > *,
  .course-hero-inner > *,
  .hero-inner > *,
  .signup-hero-inner > *,
  .dtm-layout > *,
  .dtm-main > *,
  .about-layout > *,
  .resource-wrap > * {
    min-width: 0;
    max-width: 100%;
  }

  .section,
  main .section,
  .microtopic-main .section,
  .dtm-main .section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    box-sizing: border-box;
  }

  .stage-rail,
  .hug-u2-pattern-grid {
    max-width: 100%;
  }

  main img,
  main svg,
  main video,
  main canvas,
  .section img,
  .dtm-figure img,
  figure img {
    max-width: 100% !important;
    width: auto;
    height: auto;
  }

  main iframe {
    max-width: 100% !important;
  }

  main table,
  .section table,
  table.data {
    display: block;
    max-width: none;
    overflow-x: visible;
  }

  .table-wrap,
  main .table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 380px) {
  .footer-youtube-link {
    max-width: 128px;
    padding: 5px 6px;
    gap: 5px;
  }

  .footer-youtube-mark {
    width: 36px;
    height: 19px;
  }

  .footer-youtube-mark svg {
    width: 11px;
    height: 11px;
    max-width: 11px;
    max-height: 11px;
  }

  .footer-youtube-wordmark {
    font-size: 0.74rem;
  }
}



/* --- styles/components/page-body-links.css --- */

/* ============================================================
   page-body-links.css — Medium blue prose links in main content.
   Microtopic / unit / pillar: excludes hero regions.
   Excludes .btn*, pills, sticky CTAs. Tokens in tokens.css.
   ============================================================ */

main.microtopic-main .section a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.microtopic-main .alert-banner a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.microtopic-main .quick-check-card a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.main-wrap .content .section a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.main-wrap .content .side-nav a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.course-page .course-main section a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.about-page .about-main a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.about-page .about-copy a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.about-page .side-note a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main .resource-wrap a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main .resource-card a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
section.panel.final-engagement a:not([class*="btn"]):not(.pill):not(.mobile-sticky) {
  color: var(--content-link);
  text-decoration: none;
}

main.microtopic-main .section a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.microtopic-main .alert-banner a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.microtopic-main .quick-check-card a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.main-wrap .content .section a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.main-wrap .content .side-nav a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.course-page .course-main section a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.about-page .about-main a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.about-page .about-copy a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.about-page .side-note a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main .resource-wrap a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main .resource-wrap .resource-card a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main .resource-card a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
section.panel.final-engagement a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover {
  color: var(--content-link-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Navy conversion strips */
main.course-page .course-main section.conversion-box a:not([class*="btn"]):not(.pill):not(.mobile-sticky),
main.microtopic-main .exam-convert-block a:not([class*="btn"]):not(.pill):not(.mobile-sticky) {
  color: var(--content-link-on-dark);
  text-decoration: none;
}

main.course-page .course-main section.conversion-box a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover,
main.microtopic-main .exam-convert-block a:not([class*="btn"]):not(.pill):not(.mobile-sticky):hover {
  color: var(--content-link-on-dark-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   White-surface breadcrumbs & sidebars (not dark heroes)
   ============================================================ */

.dtm-bc a,
nav[aria-label="Breadcrumb"][style*="#fff"] a[href] {
  color: var(--content-link) !important;
  text-decoration: none;
}

.dtm-bc a:hover,
nav[aria-label="Breadcrumb"][style*="#fff"] a[href]:hover {
  color: var(--content-link-hover) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dtm-bc [aria-current="page"],
nav[aria-label="Breadcrumb"][style*="#fff"] [aria-current="page"] {
  color: var(--content-link-hover) !important;
  font-weight: 600;
}

main.main-wrap .sidebar .side-nav a,
main.main-wrap .sidebar .side-toc a,
aside.sidebar .side-nav a,
aside.sidebar .side-toc a,
.side-card .side-nav a,
.side-card .side-toc a,
.side-card ul a:not([class*="btn"]),
.course-sidebar a:not([class*="btn"]):not(.footer-mini-cta),
.dtm-sidebar nav a,
.mal-sidebar nav a,
.mal-sidebar .side-toc a,
.mal-sidebar .side-card a:not([class*="btn"]),
.hub-sidebar a:not([class*="btn"]):not(.hub-sidebar-reset-link),
.hub-sidebar .side-toc a,
.sidebar-stage-nav a,
.sidebar-page-nav a,
.sidebar-jump-list a,
aside.maptypes-toc a,
.maptypes-toc > ol > li > a,
.maptypes-toc > ul > li > a,
body.dtm-hub .dtm-sidebar a:not([class*="btn"]):not(.path-card),
body.malthus-hub .mal-sidebar a:not([class*="btn"]):not(.path-card),
body.study-hub .hub-sidebar a:not([class*="btn"]):not(.hub-sidebar-reset-link) {
  color: var(--sidebar-link);
  text-decoration: none;
}

main.main-wrap .sidebar .side-nav a:hover,
main.main-wrap .sidebar .side-toc a:hover,
aside.sidebar .side-nav a:hover,
aside.sidebar .side-toc a:hover,
.side-card .side-nav a:hover,
.side-card .side-toc a:hover,
.side-card ul a:not([class*="btn"]):hover,
.course-sidebar a:not([class*="btn"]):not(.footer-mini-cta):hover,
.dtm-sidebar nav a:hover,
.mal-sidebar nav a:hover,
.mal-sidebar .side-toc a:hover,
.mal-sidebar .side-card a:not([class*="btn"]):hover,
.hub-sidebar a:not([class*="btn"]):not(.hub-sidebar-reset-link):hover,
.hub-sidebar .side-toc a:hover,
.sidebar-stage-nav a:hover,
.sidebar-page-nav a:hover,
.sidebar-jump-list a:hover,
aside.maptypes-toc a:hover,
.maptypes-toc > ol > li > a:hover,
.maptypes-toc > ul > li > a:hover,
body.dtm-hub .dtm-sidebar a:not([class*="btn"]):not(.path-card):hover,
body.malthus-hub .mal-sidebar a:not([class*="btn"]):not(.path-card):hover,
body.study-hub .hub-sidebar a:not([class*="btn"]):not(.hub-sidebar-reset-link):hover {
  color: var(--sidebar-link-hover);
  background: var(--blue-light);
  text-decoration: none;
}

.maptypes-toc > ol > li.maptypes-toc-link--active > a,
.maptypes-toc > ol > li > a.maptypes-toc-link--active,
.maptypes-toc > ul > li > a[aria-current="page"],
.sidebar-stage-nav a.is-active,
.sidebar-page-nav a.is-active,
.side-toc a.is-active,
.hub-sidebar .side-toc a.is-active {
  color: var(--sidebar-link-hover);
  font-weight: 700;
}

/* Site footer — white links on navy (WCAG AA) */
.footer-col a,
.footer a:not([class*="btn"]):not(.footer-mini-cta):not(.footer-youtube-link),
.footer-bottom a,
.footer-disclaimer a {
  color: var(--footer-link);
}

.footer-col a:hover,
.footer a:not([class*="btn"]):not(.footer-mini-cta):not(.footer-youtube-link):hover,
.footer-bottom a:hover,
.footer-disclaimer a:hover {
  color: var(--footer-link);
}

.footer-col p,
.footer-bottom,
.footer-disclaimer {
  color: var(--footer-text);
}

.footer-col h4,
.footer-brand {
  color: var(--footer-link);
}



/* --- styles/components/signup.css --- */

/* ============================================================
   signup.css — Signup page (/signup.html)
   Scoped with html.page-signup. Contrast: light text on navy bands,
   dark text on light surfaces per .cursorrules.
   ============================================================ */

html.page-signup {
  --signup-navy: #0a0f5a;
  --signup-navy-2: #1c2580;
  --signup-gold: #ffd37a;
  --signup-gold-hover: #ffc85a;
  --signup-border: #eef2ff;
  --signup-border-input: #e0e7ff;
  --signup-ink: #1f2545;
  --signup-muted: #4a5276;
  --signup-card: #ffffff;
  --signup-page-bg: #fbfcff;
  --signup-success: #16a34a;
  --signup-error: #dc2626;
}

html.page-signup body {
  background: var(--signup-page-bg);
  color: var(--signup-ink);
}

.signup-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--signup-border);
}

/* ----- Minimal header ----- */
.signup-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signup-topbar .brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.signup-topbar .brand img {
  height: 42px;
  width: auto;
  display: block;
}

.signup-signin-link {
  font-size: 0.9rem;
  color: var(--signup-muted);
  text-decoration: none;
  font-weight: 500;
}

.signup-signin-link span {
  color: var(--signup-navy);
  font-weight: 700;
}

.signup-signin-link:hover span {
  text-decoration: underline;
}

/* ----- Hero ----- */
.signup-main {
  padding: 0 24px 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.signup-hero {
  padding-top: 16px;
  padding-bottom: 40px;
}

/* Form column first, wider card + 2-col form fields; lead column flexes. */
.signup-hero-inner {
  display: grid;
  grid-template-columns: minmax(520px, 720px) minmax(260px, 1fr);
  gap: 28px 32px;
  align-items: start;
}

/* Two columns inside the card: name | email, password | parent, then full-width rows. */
.signup-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
}

.signup-form-grid .signup-form-field {
  margin-bottom: 14px;
}

.signup-form-grid .signup-form-field--full {
  grid-column: 1 / -1;
}

.signup-eyebrow-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--signup-border-input);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--signup-navy);
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(10, 15, 90, 0.06);
}

.signup-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.0285em;
  font-weight: var(--fw-heading-display);
  color: var(--signup-navy);
  margin: 0 0 16px;
  max-width: 22ch;
}

.signup-gradient-accent {
  background: linear-gradient(135deg, #ffd37a 0%, #f59e0b 55%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.signup-hero-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--signup-ink);
  margin: 0 0 22px;
  max-width: 42ch;
}

.signup-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.signup-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--signup-border-input);
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--signup-ink);
}

.signup-benefit-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signup-benefit-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.signup-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(10, 15, 90, 0.06);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.signup-benefit-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--signup-navy);
}

.signup-benefit-item p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--signup-muted);
}

/* ----- Form card ----- */
.signup-form-card {
  position: sticky;
  top: 88px;
  background: var(--signup-card);
  border-radius: 18px;
  padding: 26px 24px 24px;
  border: 1px solid var(--signup-border-input);
  box-shadow: 0 18px 48px rgba(10, 15, 90, 0.1);
}

.signup-form-card h3 {
  margin: 0 0 6px;
  font-size: 1.28rem;
  font-weight: 950;
  color: var(--signup-navy);
}

.signup-form-subtitle {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--signup-muted);
}

.signup-form-field {
  margin-bottom: 16px;
}

.signup-form-field--premium {
  margin-bottom: 18px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 211, 122, 0.12) 0%,
    rgba(255, 255, 255, 0.96) 38%,
    rgba(240, 244, 255, 0.55) 100%
  );
  border: 1px solid rgba(224, 231, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 32px rgba(10, 15, 90, 0.07);
}

.signup-premium-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.signup-form-field--premium .signup-premium-label-row label {
  margin-bottom: 0;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.signup-optional-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signup-navy);
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 255, 0.9) 100%);
  border: 1px solid rgba(10, 15, 90, 0.12);
  box-shadow: 0 2px 6px rgba(10, 15, 90, 0.06);
}

.signup-premium-hint {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--signup-muted);
}

.signup-form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--signup-navy);
  margin-bottom: 6px;
}

.signup-field-hint {
  margin: -2px 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--signup-muted);
}

.signup-form-field input,
.signup-form-field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  font-size: 16px;
  border: 1.5px solid var(--signup-border-input);
  border-radius: 12px;
  background: #fff;
  color: var(--signup-ink);
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.signup-form-field input::placeholder {
  color: #9ca3af;
}

.signup-form-field input:focus,
.signup-form-field select:focus {
  outline: none;
  border-color: var(--signup-navy);
  box-shadow: 0 0 0 3px rgba(10, 15, 90, 0.12);
}

.signup-form-field--premium input {
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(10, 15, 90, 0.14);
  box-shadow: inset 0 2px 5px rgba(10, 15, 90, 0.05);
}

.signup-form-field--premium input:focus {
  border-color: #e8b84a;
  box-shadow:
    0 0 0 3px rgba(255, 211, 122, 0.45),
    inset 0 2px 5px rgba(10, 15, 90, 0.04);
}

.signup-form-field.is-error input,
.signup-form-field.is-error select {
  border-color: var(--signup-error);
}

.signup-form-field--premium.is-error input:focus {
  border-color: var(--signup-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18);
}

.signup-form-field .signup-field-error {
  display: none;
  font-size: 0.84rem;
  color: var(--signup-error);
  margin-top: 4px;
}

.signup-form-field.is-error .signup-field-error {
  display: block;
}

.signup-field-label-row {
  margin-bottom: 8px;
}

.signup-form-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signup-course-chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--signup-border-input);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--signup-navy);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.signup-course-chip:hover {
  border-color: rgba(10, 15, 90, 0.35);
}

.signup-course-chip.is-selected {
  background: rgba(10, 15, 90, 0.08);
  border-color: var(--signup-navy);
  font-weight: 850;
}

.signup-course-chip:focus-visible {
  outline: 2px solid var(--signup-navy);
  outline-offset: 2px;
}

#signupCoursesField.is-error .signup-form-chip-grid {
  padding: 6px;
  margin: -6px;
  border-radius: 12px;
  box-shadow: 0 0 0 1.5px var(--signup-error);
}

.signup-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--signup-gold);
  color: var(--signup-navy);
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.signup-submit:hover {
  background: var(--signup-gold-hover);
}

.signup-submit:focus-visible {
  outline: 2px solid var(--signup-navy);
  outline-offset: 3px;
}

/* Decision-time trust row directly under primary CTA */
.signup-form-trust-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 750;
  color: var(--signup-ink);
}

.signup-form-sample {
  margin: 14px 0 0;
  text-align: left;
}

.signup-form-sample a {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--signup-navy-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signup-form-sample a:hover {
  color: var(--signup-navy);
}

.signup-form-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--signup-muted);
  line-height: 1.45;
}

.signup-form-legal {
  margin-top: 14px;
  font-size: 0.78rem;
  color: #64748b;
  text-align: left;
  line-height: 1.45;
}

.signup-form-legal a {
  color: var(--signup-navy);
  font-weight: 700;
}

.signup-success {
  text-align: center;
  padding: 12px 8px 8px;
}

.signup-success h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--signup-navy);
}

.signup-success p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--signup-muted);
}

.signup-success strong {
  color: var(--signup-navy);
}

/* ----- Dark bands ----- */
.signup-dark-band {
  width: 100%;
  background: linear-gradient(165deg, #060a38 0%, #0a0f5a 42%, #152a9a 100%);
  color: #ffffff;
  padding: 52px 24px;
  position: relative;
  overflow: hidden;
}

.signup-dark-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 80% 20%, rgba(255, 211, 122, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(123, 163, 232, 0.14), transparent 50%);
}

.signup-dark-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.signup-section-title {
  margin: 0 0 28px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 950;
  color: #ffffff;
  text-align: center;
}

.signup-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.signup-step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px 20px 22px;
  min-height: 180px;
}

.signup-step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2.25rem;
  font-weight: 950;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1;
  user-select: none;
}

.signup-step-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.signup-step-heading {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 900;
  color: #ffffff;
}

.signup-step-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

/* ----- Stats strip ----- */
.signup-stat-strip {
  padding: 44px 24px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-top: 1px solid var(--signup-border);
  border-bottom: 1px solid var(--signup-border);
}

.signup-stat-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.signup-stat-item {
  text-align: center;
  padding: 16px 12px;
}

.signup-stat-value {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 950;
  color: var(--signup-navy);
  letter-spacing: -0.03em;
}

.signup-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--signup-muted);
}

/* ----- Testimonials ----- */
.signup-testimonials {
  padding: 52px 24px 56px;
  max-width: 1320px;
  margin: 0 auto;
}

.signup-testimonials h2 {
  margin: 0 0 28px;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 950;
  color: var(--signup-navy);
  text-align: center;
}

.signup-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.signup-testimonial-card {
  background: #fff;
  border: 1px solid var(--signup-border-input);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 28px rgba(10, 15, 90, 0.06);
}

.signup-testimonial-card blockquote {
  margin: 0 0 14px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--signup-ink);
}

.signup-testimonial-card footer {
  font-size: 0.82rem;
  color: var(--signup-muted);
}

/* ----- Final CTA ----- */
.signup-final-cta-wrap {
  display: flex;
  justify-content: center;
}

.signup-glass-card {
  max-width: 640px;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 32px 28px 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
}

.signup-eyebrow-chip--dark {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.signup-glass-card h3 {
  margin: 18px 0 12px;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 950;
  color: #ffffff;
  line-height: 1.2;
}

.signup-glass-card > p {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.signup-final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--signup-gold);
  color: var(--signup-navy);
  font-weight: 950;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.signup-final-cta-btn:hover {
  background: var(--signup-gold-hover);
}

.signup-final-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.92);
}

@media (prefers-reduced-motion: reduce) {
  .signup-submit:hover,
  .signup-final-cta-btn:hover {
    transform: none;
  }
}

@media (max-width: 980px) {
  .signup-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .signup-form-grid {
    grid-template-columns: 1fr;
  }

  .signup-form-card {
    position: relative;
    top: auto;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }

  .signup-steps-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .signup-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .signup-trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .signup-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .signup-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .signup-submit,
  .signup-final-cta-btn {
    width: 100%;
  }

  .signup-final-checks {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .signup-stat-grid {
    grid-template-columns: 1fr;
  }
}



/* --- styles/components/overflow-contain.css --- */

/* ============================================================
   overflow-contain.css — Prevent horizontal page overflow
   (mobile clipping of sections, images, and tables).
   ============================================================ */

/* Shrink grid/flex columns below intrinsic media/table width */
.main-wrap,
.main-wrap > *,
.maptypes-layout,
.maptypes-layout > *,
.maptypes-main,
.maptypes-main > *,
.course-page,
.course-main,
.course-main > *,
.microtopic-main,
.microtopic-main > *,
.dtm-layout,
.dtm-layout > *,
.dtm-main,
.dtm-main > *,
.about-layout,
.about-main,
.resource-wrap,
.resource-wrap > *,
.content {
  min-width: 0;
}

.section,
main .section,
.content .section,
.microtopic-main .section,
.dtm-main .section,
.maptypes-main .section {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

figure,
.dtm-figure,
.microtopic-main figure,
.section figure {
  max-width: 100%;
}

.section :is(img, video, canvas, svg),
.dtm-figure img,
.microtopic-main img,
.content img,
main img {
  max-width: 100%;
  height: auto;
}

.table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tables only scroll inside .table-wrap — never widen the page */
.table-wrap > table,
.table-wrap table.data {
  display: table;
  width: max-content;
  max-width: none;
}

/* Bare tables in content: scroll in place instead of expanding layout */
.content > table,
.section > table,
.dtm-main > table,
.dtm-main .section > table,
.microtopic-main > table,
.microtopic-main .section > table,
.maptypes-main > table,
.maptypes-main .section > table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hero / hub two-column grids: no rigid min track below tablet width */
@media (max-width: 1024px) {
  .hero-inner,
  .microtopic-hero-inner,
  .dtm-hero-grid,
  .signup-hero-inner,
  .hero.unit-hero .hero-inner,
  body.unit-v2 .hero.unit-hero .hero-inner {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 760px) {
  .page,
  .hero,
  .hero-inner,
  .footer,
  .footer-inner,
  .main-wrap,
  .maptypes-layout,
  .maptypes-main,
  .course-page,
  .course-main,
  .dtm-layout,
  .dtm-main,
  .dtm-path-bar,
  .dtm-bc .inner,
  .dtm-hero-grid,
  .resource-wrap,
  .about-layout,
  .about-main,
  .microtopic-main {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: clip;
  }

  .section,
  main .section,
  .microtopic-main .section,
  .dtm-main .section {
    overflow-x: clip;
  }
}



/* --- styles/utilities.css --- */

/* ============================================================
   utilities.css — Small atomic helpers.
   ============================================================ */

.muted { color: var(--muted); }

.sep {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.section-eyebrow,
.kicker {
  color: var(--orange-dark);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 8px;
  display: inline-block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible on keyboard focus (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  background: var(--card);
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  box-shadow: var(--shadow-soft);
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* Practice hub — stems & spacing (tokens only) */
.practice-q-stem {
  margin-top: 0;
  font-size: clamp(1rem, 2.8vw, 1.08rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.practice-next-after-item {
  margin-top: var(--space-3);
}
.practice-ad-full .practice-ad-label {
  margin: 0 0 var(--space-2) 0;
}
.practice-ad-full .full-ad {
  margin-bottom: var(--space-3);
}
.practice-hub-page .course-main {
  line-height: 1.6;
}
.practice-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.practice-chip-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}
.practice-chip-grid a:hover,
.practice-chip-grid a:focus-visible {
  border-color: var(--navy);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.practice-weak-rail {
  border-left: 4px solid var(--orange);
  padding-left: var(--space-4);
  margin-top: var(--space-4);
}
.course-page .quiz-ui .answer-block.is-correct {
  border-color: var(--success);
  background: rgba(22, 163, 74, 0.08);
}
.course-page .quiz-ui .answer-block.is-incorrect {
  border-color: var(--danger);
  background: rgba(220, 38, 38, 0.06);
}


/* --- home-inline-critical --- */

/* Homepage above-the-fold + LCP figure (critical) */
    .home-hero-inner { align-items: stretch; gap: 32px; }
    .home-hero-copy { position: relative; z-index: 1; }
    .home-hero-primary-row {
      display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
      margin-top: 20px;
    }
    .home-hero-primary-row .btn-primary {
      box-shadow: 0 14px 32px rgba(245, 158, 11, 0.35);
    }
    .home-hero-trust-chips {
      display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px;
    }
    .home-hero-trust-chips span {
      border: 1px solid rgba(255,255,255,0.2);
      background: rgba(255,255,255,0.1);
      padding: 8px 12px; border-radius: 999px;
      color: rgba(255,255,255,0.9); font-size: 0.84rem; font-weight: 650;
    }
    .home-hero-tertiary {
      display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 16px;
      font-size: 0.92rem;
    }
    .home-hero-link {
      color: rgba(255,255,255,0.88); font-weight: 750; text-decoration: underline;
      text-underline-offset: 3px;
    }
    .home-hero-link:hover { color: #fff; }
    .home-hero-dashboard .dashboard-top { margin-bottom: 0; }
    .home-dash-unit {
      font-size: 0.9rem; color: var(--muted); margin-bottom: 8px;
    }
    .home-dash-unit strong { color: var(--navy); font-weight: 800; }
    .home-dash-bar { margin-bottom: 14px; }
    .home-dash-fill { width: 72% !important; }
    .home-dash-meta {
      display: grid; gap: 8px; margin-bottom: 14px;
      font-size: 0.88rem;
    }
    .home-dash-weak { color: #b45309; font-weight: 700; }
    .home-dash-next { color: var(--navy); font-weight: 650; }
    .home-dash-label { color: var(--muted); font-weight: 600; margin-right: 4px; }
    .home-dash-actions { display: flex; gap: 8px; flex-wrap: wrap; }
    .home-dash-pill {
      display: inline-flex; align-items: center; gap: 6px;
      font-size: 0.78rem; font-weight: 800;
      padding: 6px 11px; border-radius: 999px;
      background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a5f;
    }
    .home-dash-stats {
      margin-top: 12px;
    }
    .home-dash-stat-note {
      grid-column: 1 / -1;
      font-size: 0.8rem; color: rgba(255,255,255,0.72);
      text-align: center; margin-top: 4px;
    }
    @media (max-width: 767px) {
      .hero-inner.home-hero-inner h1 {
        font-size: clamp(1.85rem, 5.5vw, 2.4rem) !important;
        line-height: 1.08 !important;
      }
    }
    .home-trust-strip {
      background: #fff;
      border-bottom: 1px solid #e8eef7;
      padding: 14px 16px 16px;
    }
    .home-trust-strip-inner {
      max-width: min(1120px, 100%);
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    @media (min-width: 900px) {
      .home-trust-strip-inner {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
      }
    }
    /* .page uses negative margin (+ !important on small breakpoints) to tuck under hero; trust strip is between hero and main */
    .home-trust-strip + main.page {
      margin-top: 20px !important;
    }
    .home-trust-item {
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      padding: 11px 12px;
      background: linear-gradient(180deg, #fbfcff, #ffffff);
      box-shadow: 0 6px 16px rgba(10, 15, 90, 0.05);
      text-align: center;
    }
    .home-trust-item strong {
      display: block;
      color: #0a0f5a;
      font-size: 0.9rem;
      font-weight: 800;
      margin-bottom: 3px;
      letter-spacing: -0.02em;
    }
    .home-trust-item span {
      font-size: 0.8rem;
      color: #4a5276;
      font-weight: 600;
    }
    .answer-box {
      margin: 14px 0 18px;
      padding: 14px 16px 14px 18px;
      border-radius: 14px;
      background: linear-gradient(135deg, #eff6ff 0%, #fffbeb 100%);
      border: 1px solid #e2e8f0;
      border-left: 4px solid #f59e0b;
      color: #1f2545;
      line-height: 1.55;
      font-size: 0.96rem;
    }
    .answer-box strong { color: #0a0f5a; }
    .home-content-figure {
      margin: 20px auto 24px;
      max-width: min(880px, 100%);
    }
    .home-content-figure--wide {
      max-width: min(920px, 100%);
    }
    .home-content-figure--loop {
      margin-top: 16px;
      margin-bottom: 18px;
    }
    .home-content-figure img {
      display: block;
      width: 100%;
      max-width: 100%;
      height: auto;
      border-radius: 14px;
      border: 1px solid #e2e8f0;
      box-shadow: 0 10px 28px rgba(10, 15, 90, 0.07);
    }
    .home-content-figure figcaption {
      margin-top: 8px;
      font-size: 0.86rem;
      color: #4a5276;
      line-height: 1.45;
    }
    .home-content-figure--loop figcaption {
      font-size: 0.84rem;
      margin-top: 6px;
    }
    /* YouTube click-to-load facade (homepage daily video) */
    .youtube-facade {
      position: relative;
      aspect-ratio: 16 / 9;
      width: 100%;
      overflow: hidden;
      border-radius: 16px;
      background: #0a0f5a;
    }
    .youtube-facade__play {
      display: block;
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      border: 0;
      cursor: pointer;
      position: relative;
      background: transparent;
    }
    .youtube-facade__play:focus-visible {
      outline: 3px solid #ffb23f;
      outline-offset: 3px;
    }
    .youtube-facade__thumb {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .youtube-facade__icon {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      pointer-events: none;
      background: rgba(10, 15, 90, 0.28);
      transition: background 0.15s ease;
    }
    .youtube-facade__play:hover .youtube-facade__icon,
    .youtube-facade__play:focus-visible .youtube-facade__icon {
      background: rgba(10, 15, 90, 0.12);
    }
    .youtube-facade__icon svg {
      width: clamp(56px, 14vw, 80px);
      height: auto;
      filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.35));
    }
