/* ============================================================
   nav8.io, the student site: the campus theme, and the server-rendered
   pages (lib/students/pages: content pages, the static homepage, the 404).
   Linked only on nav8.io (lib/seo-inject.js), so nav8.ai never loads it.

   1. Theme. html[data-site="students"] re-points the global tokens
      (src/styles/tokens.css) at a light campus palette: ivory paper, white
      cards, collegiate navy headings, varsity crimson calls to action,
      library green check marks, pennant gold only as highlighter and
      sticky-note fills (never text). Fraunces for headlines, Inter for body.
      Upright only (no italic font file): emphasis is crimson plus the gold
      highlighter, so the first paint never waits on a third font.
      Every component on nav8.io that reads the tokens (buttons, the FAQ,
      the Mac and Windows modals, the consent banner, the phone CTA bar)
      follows. Contrast, all WCAG AA on #FAF7F0 and #FFF: ink 15.6:1,
      muted 6.4:1, faint 5.4:1, navy 10.7:1, crimson 7.0:1, green 7.0:1,
      white on crimson 7.5:1, ink on gold 7.6:1.
   2. Pages: classes sp-, phone first (375px), then 720px and 1024px up.
      16px gutter, no horizontal scroll (tables scroll in their own box),
      running text never below 14px (the uppercase pills 12px), tap
      targets at least 44px.
   The React homepage (src/routes/students/students.module.css) uses the
   same values.
   ============================================================ */

@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces/Fraunces-opsz-wght.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter/Inter-wght.woff2') format('woff2-variations'); font-weight: 100 900; font-style: normal; font-display: swap; }

/* ── 1. Theme ───────────────────────────────────────────── */
html[data-site='students'] {
  color-scheme: light;
  --paper: #FAF7F0; --card: #FFFFFF; --hair: #E7E1D4; --hair-strong: #CFC6B4; --input-line: #8F8574;
  --ink: #1E1E1E; --muted: #5B5B5B; --faint: #6B6560;
  --navy: #1F3A5F; --crimson: #A6192E; --crimson-deep: #8A1426; --green: #2F5D50; --gold: #E0A526;
  --highlight: linear-gradient(transparent 58%, rgba(224, 165, 38, 0.45) 58%, rgba(224, 165, 38, 0.45) 92%, transparent 92%);
  --note: #FBEFC9;
  --lift: 0 1px 0 rgba(31, 58, 95, 0.06), 0 10px 24px -18px rgba(31, 58, 95, 0.35);

  --color-canvas: var(--paper); --color-canvas-inset: #F3EEE2;
  --color-surface-1: var(--card); --color-surface-2: var(--card); --color-surface-3: #F3EEE2;
  --color-border-subtle: #EFE9DC; --color-border-default: var(--hair); --color-border-strong: var(--hair-strong); --color-border-focus: var(--navy);
  --color-text-primary: var(--ink); --color-text-secondary: var(--muted); --color-text-tertiary: var(--faint); --color-text-disabled: var(--input-line); --color-text-inverse: #FFFFFF;
  --color-brand-emerald: var(--green); --color-brand-azure: var(--crimson);
  --gradient-brand: var(--crimson); --gradient-brand-soft: var(--note);
  --shadow-aura-emerald: var(--lift); --shadow-aura-azure: var(--lift);
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; /* the system's, so nav8.ai's Geist Mono is never fetched */
  --text-meta-size: 14px; --text-body-sm-size: 15px; --text-body-size: 16px; --text-body-lg-size: 18px;
  /* Hooks the shared components read (with their nav8.ai values as fallback). */
  --sticky-bg: rgba(250, 247, 240, 0.96); --media-border: var(--hair); --input-border: var(--input-line);
  --error-text: var(--crimson); --tap-extend: -8px -4px; --btn-primary-shadow: 0 1px 0 rgba(31, 58, 95, 0.25);
}
html[data-site='students'] body { background: var(--paper); color: var(--ink); }
html[data-site='students'] ::selection { background: rgba(224, 165, 38, 0.4); color: var(--ink); }
html[data-site='students'] .skip-link { background: var(--navy); color: #fff; }
html[data-site='students'] .btn--primary:hover { background: var(--crimson-deep); }
html[data-site='students'] .access-gate-backdrop { background: rgba(31, 58, 95, 0.45); }
html[data-site='students'] .access-gate-modal { box-shadow: 0 30px 60px -20px rgba(31, 58, 95, 0.45); }
html[data-site='students'] .access-gate-modal__title { color: var(--navy); }
html[data-site='students'] .access-gate-modal__input { border-color: var(--input-line); }
html[data-site='students'] .consent-banner { box-shadow: var(--lift); }
html[data-site='students'] .access-gate-modal__close { width: 44px; height: 44px; box-sizing: border-box; }
html[data-site='students'] .access-gate-modal__waitlist-privacy { font-size: 14px; }
/* Text links set in a heading or a button row: a 44px hit area without moving the text */
.sp-card h3 a, .sp-qa h3 a, .sp-table th a { position: relative; }
.sp-card h3 a::after, .sp-qa h3 a::after { content: ''; position: absolute; inset: -10px -4px; }
.sp-table th a::after { content: ''; position: absolute; inset: -13px -4px; }

/* ── 2. Pages: shared ───────────────────────────────────── */
.sp-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 16px; }
.sp-article .sp-wrap, .sp-after { max-width: 880px; }
.sp-after { margin: 0 auto; padding-inline: 16px; }
#root[data-ssr] { overflow-x: clip; }
#root[data-ssr] a { color: inherit; overflow-wrap: anywhere; }
#root[data-ssr] a:focus-visible, #root[data-ssr] button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.sp-part a, .sp-lede a, .sp-section a, .sp-qa a, .sp-sub a, .sp-media a, .sp-close a, .sp-sources a, .sp-notfound a, .sp-textlink, .sp-fine a, .sp-card h3 a {
  color: var(--navy); text-decoration: underline; text-decoration-color: var(--crimson); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.sp-section a:hover, .sp-textlink:hover, .sp-lede a:hover { background: var(--highlight); }

/* Header */
.sp-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 240, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair); }
.sp-header-in { max-width: 1200px; margin: 0 auto; padding-inline: 16px; min-height: 56px; display: flex; align-items: center; gap: 12px; }
.sp-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font: 600 14px / 1 var(--font-body); white-space: nowrap; }
.sp-brand img { height: 24px; width: auto; }
.sp-brand span { padding: 4px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.sp-hnav { display: none; }
.sp-hcta, .sp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--crimson); color: #fff !important; font: 600 15px / 1 var(--font-body); white-space: nowrap; text-decoration: none !important; box-shadow: var(--btn-primary-shadow); }
.sp-hcta { margin-left: auto; }
.sp-btn { min-height: 52px; padding: 0 28px; font-size: 16px; }
.sp-hcta:hover, .sp-btn:hover { background: var(--crimson-deep); }

/* Phone call to action, in thumb reach (content pages; the homepage has its own bar) */
.sp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--sticky-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--hair); }
.sp-sticky span { flex: 1; font-size: 14px; line-height: 1.3; color: var(--muted); }
.sp-sticky .sp-btn { min-height: 48px; padding: 0 22px; }
body:has(.sp-sticky) .sp-footer { padding-bottom: 76px; }

/* Page head */
.sp-article { padding: 8px 0 0; }
.sp-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--faint); }
.sp-crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--hair-strong); }
.sp-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.sp-crumbs [aria-current] { color: var(--navy); font-weight: 500; }
.sp-kicker, .sp-label, .sp-footer-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 700 14px / 1.3 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--crimson); }
/* The pennant */
.sp-kicker::before { content: ''; flex: none; width: 18px; height: 12px; background: var(--crimson); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.sp-h1, .sp-title, .sp-display { font-family: var(--font-display); font-weight: 600; color: var(--navy); text-wrap: balance; font-optical-sizing: auto; }
.sp-h1 { margin: 8px 0 0; max-width: 22ch; font-size: 34px; line-height: 1.08; letter-spacing: -0.015em; }
.sp-lede { margin: 18px 0 0; max-width: 64ch; font-size: 18px; line-height: 1.6; color: var(--ink); }
.sp-lede b, .sp-lede strong { font-weight: 600; color: var(--navy); }
.sp-part, .sp-updated { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--faint); }

/* Sections */
.sp-quick, .sp-section, .sp-related, .sp-sources, .sp-close { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--hair); }
.sp-quick h2, .sp-section h2, .sp-related h2, .sp-sources h2, .sp-close h2 { margin: 0 0 16px; max-width: 26ch; font: 600 27px / 1.15 var(--font-display); letter-spacing: -0.01em; color: var(--navy); text-wrap: balance; }
.sp-section > p, .sp-section > ul, .sp-section > ol, .sp-close p, .sp-qa p { max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--ink); }
.sp-section > * + * { margin-top: 16px; }
.sp-section strong, .sp-qa strong { font-weight: 600; color: var(--navy); }
.sp-quick { padding: 22px 18px; border: 1px solid var(--hair); border-top: 4px solid var(--navy); border-radius: 14px; background: var(--card); box-shadow: var(--lift); }
.sp-qa { padding: 16px 0; border-top: 1px solid var(--hair); }
.sp-qa:first-of-type { border-top: 0; padding-top: 0; }
.sp-qa h3, .sp-card h3, .sp-group h3 { margin: 0 0 8px; font: 600 20px / 1.25 var(--font-display); color: var(--navy); }
.sp-qa p { margin: 0; }
.sp-list, .sp-steps { padding-left: 0; display: grid; gap: 10px; list-style: none; }
.sp-list li { position: relative; padding-left: 24px; }
.sp-list li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 2px; background: var(--crimson); transform: rotate(45deg); }
.sp-steps { counter-reset: step; }
.sp-steps li { position: relative; counter-increment: step; padding-left: 44px; min-height: 30px; }
.sp-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font: 700 14px / 1 var(--font-body); }

/* Cards, points, callout, tags */
.sp-cards { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sp-featured + .sp-cards { margin-top: 14px; }
.sp-card { min-width: 0; padding: 20px 18px 22px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); box-shadow: var(--lift); }
.sp-hsec .sp-card { border-top: 4px solid var(--hair-strong); }
.sp-helps .sp-kicker { color: var(--green); }
.sp-helps .sp-kicker::before { background: var(--green); }
.sp-helps .sp-card { border-top-color: var(--green); }
.sp-does .sp-card { border-top-color: var(--crimson); }
.sp-how .sp-card { border-top-color: var(--navy); }
.sp-card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.sp-how { counter-reset: step; }
.sp-how .sp-card { counter-increment: step; }
.sp-how h3::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 15px / 1 var(--font-body); }
.sp-tag { display: inline-block; margin-top: 16px; padding: 8px 12px; border-radius: 3px; background: var(--note); box-shadow: 2px 3px 0 rgba(31, 58, 95, 0.08); transform: rotate(-1.2deg); font: 600 14px / 1.3 var(--font-body); color: var(--ink); }
.sp-points { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.sp-point { position: relative; padding: 16px 0 18px 40px; border-top: 1px solid var(--hair); }
.sp-point::before { content: '✓'; position: absolute; left: 0; top: 16px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; font: 700 14px / 1 var(--font-body); }
.sp-point[data-mark='no']::before { content: '✕'; background: var(--crimson); }
.sp-point strong { display: block; font-weight: 600; font-size: 17px; color: var(--navy); }
.sp-point span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.sp-callout { margin-top: 20px; max-width: 68ch; padding: 16px 18px; border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; background: var(--note); font-size: 17px; line-height: 1.55; color: var(--ink); }
.sp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 24px 0 0; }
.sp-cta-row .sp-btn { width: 100%; }

/* Tables: scroll inside the wrapper, never the page */
.sp-table { margin-top: 20px; overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--card); -webkit-overflow-scrolling: touch; }
.sp-table table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.sp-table caption { padding: 14px 16px; text-align: left; font-weight: 600; color: var(--navy); caption-side: top; }
.sp-table th, .sp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--hair); color: var(--muted); }
.sp-table thead th { font-weight: 600; color: #fff; background: var(--navy); border-top: 0; vertical-align: bottom; }
.sp-table tbody th { font-weight: 600; color: var(--navy); white-space: nowrap; }
.sp-table tbody tr:nth-child(even) { background: #FCFAF5; }

/* Media: film facade, loops. Phones get the 9:16 cuts where there are any. */
.sp-media { margin: 24px 0 0; }
.sp-facade { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--navy); cursor: pointer; }
.sp-facade img, .sp-loop, .sp-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--hair); border-radius: 14px; background: #E9E3D6; }
.sp-frame { border-color: transparent; }
.sp-fun-loop .sp-loop, .sp-film .sp-facade img { aspect-ratio: 9 / 16; max-height: 78vh; }
.sp-fun-loop, .sp-film { max-width: 440px; margin-inline: auto; }
.sp-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); display: grid; place-items: center; padding-left: 4px; border-radius: 50%; background: var(--crimson); color: #fff; font-size: 22px; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4); }
.sp-media figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--faint); }

/* Related, sources, closing */
.sp-group { margin-top: 22px; }
.sp-links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
.sp-links li { min-width: 0; border-top: 1px solid var(--hair); }
.sp-links a { display: block; padding: 12px 0 6px; min-height: 44px; font-size: 17px; font-weight: 600; color: var(--navy); text-decoration: none; }
.sp-links a:hover { text-decoration: underline; text-decoration-color: var(--crimson); }
.sp-links span { display: block; padding-bottom: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sp-sources ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sp-sources h2 { font-size: 20px; }
.sp-sources li, .sp-sources a { font-size: 14px; color: var(--muted); }
.sp-sources ul { gap: 0; }
.sp-sources a { display: inline-flex; align-items: center; min-height: 44px; }
.sp-close { margin-bottom: 40px; padding: 26px 18px 28px; border: 1px solid var(--hair); border-top: 4px solid var(--crimson); border-radius: 14px; background: var(--card); box-shadow: var(--lift); }
.sp-close p { margin-top: 0; }
.sp-notfound { padding: 32px 0 0; }

/* Homepage (static copy of the React page) */
.sp-hero { padding: 28px 0 48px; scroll-margin-top: 56px; background: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(31, 58, 95, 0.07) 35px 36px); }
.sp-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border: 1px solid var(--hair-strong); border-radius: 999px; background: var(--card); font: 600 14px / 1.3 var(--font-body); color: var(--navy); }
.sp-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); flex: none; }
.sp-h1-home { margin-top: 18px; max-width: 30ch; font-size: 20px; line-height: 1.3; font-weight: 500; color: var(--muted); }
.sp-display { margin: 10px 0 0; max-width: 14ch; font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
.sp-em { font-style: normal; font-weight: 600; color: var(--crimson); background: var(--highlight); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sp-hero .sp-lede { margin-top: 18px; font-size: 17px; }
.sp-hero .sp-cta-row { margin-top: 24px; }
.sp-fine { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--faint); }
.sp-hero .sp-media { margin-top: 32px; }
.sp-hsec { padding: 48px 0; border-top: 1px solid var(--hair); scroll-margin-top: 56px; }
.sp-title { margin: 0; max-width: 20ch; font-size: 32px; line-height: 1.1; letter-spacing: -0.015em; }
.sp-sub { margin: 14px 0 0; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.sp-tools { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.sp-tools li { padding: 8px 14px; border: 1px solid var(--hair-strong); border-radius: 999px; background: var(--card); font-size: 15px; color: var(--ink); }
.sp-tools li:last-child { border-color: var(--navy); background: var(--navy); color: #fff; }
.sp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; margin-top: 24px; }
.sp-two .sp-points { margin-top: 0; }
.sp-integrity { background: #F3EEE2; }
.sp-faq { margin-top: 24px; max-width: 820px; }
.sp-badge { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 999px; vertical-align: 0.15em; background: var(--crimson); color: #fff; font: 700 12px / 1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.sp-tapline { margin: 20px 0 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.sp-quotes { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sp-quote { margin: 0; padding: 20px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--card); }
.sp-quote blockquote { margin: 0; font: 500 19px / 1.45 var(--font-display); color: var(--navy); }
.sp-quote figcaption { margin-top: 12px; font-size: 14px; color: var(--faint); }
.sp-close-home { background: var(--navy); border-top: 0; }
.sp-close-home .sp-title, .sp-close-home .sp-sub { color: #fff; }
.sp-close-home .sp-title { max-width: 18ch; font-size: 36px; line-height: 1.05; }
.sp-close-home .sp-em { color: #fff; background: linear-gradient(transparent 60%, rgba(224, 165, 38, 0.55) 60%, rgba(224, 165, 38, 0.55) 92%, transparent 92%); }
.sp-close-home .sp-fine { color: #D9DFE8; }

/* TL;DR, definition, example, integrity note, FAQ; draft banner */
.sp-tldr, .sp-definition, .sp-example { margin-top: 20px; max-width: 68ch; padding: 18px; border: 1px solid var(--hair); border-radius: 12px; background: var(--card); }
.sp-tldr { border-left: 4px solid var(--green); }
.sp-tldr ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.sp-tldr li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.55; color: var(--ink); }
.sp-tldr li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--green); }
.sp-definition { border-left: 4px solid var(--navy); font-size: 17px; line-height: 1.6; color: var(--ink); }
.sp-definition dfn { font-style: normal; font-weight: 600; color: var(--navy); background: var(--highlight); }
.sp-example { margin-inline: 0; background: var(--note); border-color: #EAD9A6; }
.sp-example figcaption { margin-bottom: 12px; font-size: 17px; font-weight: 600; color: var(--navy); }
.sp-example figcaption .sp-label { display: inline-flex; margin: 0 10px 0 0; padding: 3px 8px; border: 1px solid var(--crimson); border-radius: 999px; }
.sp-example dl { margin: 0; display: grid; }
.sp-example dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-top: 1px solid #EAD9A6; font-size: 16px; line-height: 1.55; }
.sp-example dt { font-weight: 600; color: var(--navy); }
.sp-example dd { margin: 0; color: var(--ink); }
.sp-example-note { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--faint); }
.sp-integrity-note .sp-label { color: var(--green); }
.sp-integrity-note p:last-child { margin: 0; }
.sp-faqlist { margin-top: 12px; }
.sp-draft { margin: 0; padding: 10px 16px; background: var(--note); border-bottom: 1px solid #EAD9A6; text-align: center; font-size: 14px; font-weight: 600; color: #6B4A00; }

/* Footer */
.sp-footer { margin-top: 40px; border-top: 1px solid var(--hair); background: #F3EEE2; }
.sp-footer-guides { max-width: 1200px; margin: 0 auto; padding: 32px 16px 0; }
.sp-footer-title { margin-bottom: 14px; }
.sp-footer-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 32px; }
.sp-footer-cols ul { margin: 0; padding: 0; list-style: none; }
.sp-footer-cols a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink); }
.sp-footer-cols a:hover { color: var(--crimson); }
.sp-footer-in { max-width: 1200px; margin: 0 auto; padding: 24px 16px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--faint); }
.sp-footer-in img { height: 22px; width: auto; }
.sp-footer-links { display: flex; gap: 4px; margin-left: -10px; }
.sp-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--navy); }

/* ── Tablet: 720px and up ───────────────────────────────── */
@media (min-width: 720px) {
  .sp-wrap, .sp-after, .sp-header-in, .sp-footer-guides, .sp-footer-in { padding-inline: 28px; }
  .sp-h1 { font-size: 46px; }
  .sp-quick h2, .sp-section h2, .sp-related h2, .sp-sources h2, .sp-close h2 { font-size: 34px; }
  .sp-quick, .sp-close { padding: 28px 30px; }
  .sp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .sp-points, .sp-links, .sp-two, .sp-quotes, .sp-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-two .sp-points { grid-template-columns: minmax(0, 1fr); }
  .sp-cta-row .sp-btn { width: auto; }
  .sp-example dl > div { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; }
  .sp-hero { padding: 48px 0 72px; }
  .sp-h1-home { font-size: 22px; }
  .sp-display { font-size: 64px; }
  .sp-hsec { padding: 72px 0; }
  .sp-title { font-size: 44px; }
  .sp-close-home .sp-title { font-size: 52px; }
  .sp-fun-loop .sp-loop, .sp-film .sp-facade img { aspect-ratio: 16 / 9; max-height: none; }
  .sp-fun-loop, .sp-film { max-width: none; }
  .sp-play { width: 84px; height: 84px; font-size: 26px; }
  .sp-footer-links { margin-left: auto; }
}
/* ── Desktop: 1024px and up ─────────────────────────────── */
@media (min-width: 1024px) {
  .sp-wrap, .sp-after, .sp-header-in, .sp-footer-guides, .sp-footer-in { padding-inline: 40px; }
  .sp-header-in { min-height: 64px; gap: 20px; }
  .sp-hnav { display: flex; gap: 2px; margin-left: auto; }
  .sp-hnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink); font-size: 15px; }
  .sp-hnav a:hover { background: #F0EADC; color: var(--navy); }
  .sp-hcta { margin-left: 8px; }
  .sp-sticky { display: none; }
  body:has(.sp-sticky) .sp-footer { padding-bottom: 0; }
  .sp-h1 { font-size: 56px; }
  .sp-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-hero { padding: 64px 0 88px; background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(31, 58, 95, 0.07) 39px 40px); }
  .sp-display { font-size: 88px; }
  .sp-hsec { padding: 96px 0; }
  .sp-title { font-size: 54px; }
  .sp-close-home .sp-title { font-size: 68px; }
}
