/* ============================================================
   SimMedAi static pages — one stylesheet for every prerendered page under public/
   (compare, examprep, features, magnets). 2026-10-17 modern pass + colour pass.

   Theme: the SAME theme as the signed-in app, light and night. The surface, text,
   border, brand and accent values below are copied literally from src/styles/base.css
   (html[data-theme="light"] / html[data-theme="dark"]); night follows
   prefers-color-scheme. The decorative layer (hue palette, shimmer, micro-motion)
   mirrors src/styles/public-site.css with the same names and values.

   Generated pages get this file from their generator template (gen_*_pages.py);
   hand-written pages link it directly. Content lives in the HTML; this file is only
   the look, so a restyle never touches what answer engines read.
   Contrast: text colours are the app's audited tokens (>= 4.5:1 on every surface).
   All motion stops under prefers-reduced-motion.
   ============================================================ */

:root {
  /* App light theme (base.css html[data-theme="light"]) */
  --bg: #F6F3ED;            /* Washi  (--bg-primary) */
  --bg-2: #EFEAE0;          /* Oat    (--bg-secondary) */
  --elev: #FDFBF7;          /* Paper  (--bg-card) */
  --input: #FBF8F2;         /* Rice   (--bg-input) */
  --ink: #26221C;           /* Sumi Ink (--text-primary) */
  --ink-2: #5C554A;         /* Walnut   (--text-secondary) */
  --muted: #665F53;         /* Driftwood (--text-muted) */
  --line: rgba(60, 52, 40, 0.09);   /* --border-subtle */
  --line-2: rgba(60, 52, 40, 0.16); /* --border-color */
  --brand: #3E5C50;         /* Deep Pine (--color-primary) */
  --brand-2: #486156;       /* --color-primary-light */
  --brand-dark: #2F4A40;    /* --color-primary-dark */
  --brand-soft: color-mix(in srgb, #3E5C50 11%, transparent);
  --on-brand: #FFFFFF;      /* --on-accent */
  --clay: #854D2D;          /* Clay (--color-accent) */
  --grad-text: linear-gradient(100deg, #2F4A40 0%, #23946F 45%, #1B8A93 75%, #2F4A40 100%);
  /* Decorative hues (public-site.css --hue-*): rims, glows, accents — never text. */
  --hue-pine: #3E7A66; --hue-emerald: #23946F; --hue-teal: #1B8A93; --hue-sky: #2C7DB5;
  --hue-indigo: #5161B5; --hue-violet: #7F52C4; --hue-rose: #C24D74; --hue-clay: #C2622F;
  --hue-ochre: #B98316; --hue-amber: #CF7428;
  --shadow-sm: 0 1px 2px rgba(60, 52, 40, 0.06);
  --shadow: 0 1px 2px rgba(60, 52, 40, 0.05), 0 14px 34px -14px rgba(60, 52, 40, 0.20);
  --shadow-lg: 0 2px 6px rgba(60, 52, 40, 0.06), 0 34px 70px -26px rgba(60, 52, 40, 0.32);
  --r: 22px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* legacy names still referenced by a few inline styles in older pages */
  --pine: var(--brand);
  --paper: var(--bg);
  --surface: var(--elev);
  --border: var(--line-2);
  --text: var(--ink);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    /* App night theme (base.css html[data-theme="dark"]) */
    --bg: #151917;          /* Pine Black */
    --bg-2: #1A1F1C;
    --elev: #1F2522;
    --input: #151917;
    --ink: #F1EEE7;         /* Paper */
    --ink-2: #BDB7AA;
    --muted: #A8A396;
    --line: rgba(241, 238, 231, 0.07);
    --line-2: rgba(241, 238, 231, 0.14);
    --brand: #83B8A6;
    --brand-2: #A3CCBE;
    --brand-dark: #6DAB96;
    --brand-soft: color-mix(in srgb, #83B8A6 12%, transparent);
    --on-brand: #101613;    /* night ink on an accent fill */
    --clay: #D4A284;
    --grad-text: linear-gradient(100deg, #A3CCBE 0%, #7FE0BE 40%, #E7B48F 75%, #A3CCBE 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 18px 42px -18px rgba(0, 0, 0, 0.65);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 40px 80px -30px rgba(0, 0, 0, 0.8);
  }
  a { color: var(--brand); }
}

/* ── Keyframes (same names/feel as public-site.css) ── */
@keyframes sm-shimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes sm-sweep { 0% { transform: translateX(-120%) skewX(-18deg); } 60%, 100% { transform: translateX(220%) skewX(-18deg); } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: var(--bg); color: var(--ink);
  font-size: 1rem; line-height: 1.65;
  overflow-x: clip;
}
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header__in { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.035em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-brand:hover { text-decoration: none; }
.site-brand__mark {
  position: relative; overflow: hidden;
  width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; flex-shrink: 0;
  color: #fff; background: linear-gradient(135deg, #2FA07B 0%, #2C6E5A 50%, #1B3F33 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 6px 16px -6px rgba(35, 120, 92, 0.75);
}
.site-brand__mark::after { content: ''; position: absolute; inset: 0; width: 50%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-120%) skewX(-18deg); animation: sm-sweep 5s ease-in-out 2s infinite; }
.site-links { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.site-links a:not(.btn) { padding: 8px 12px; border-radius: 999px; font-size: 0.9rem; font-weight: 550; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color 0.15s, background-color 0.15s; }
.site-links a:not(.btn):hover { color: var(--ink); background: var(--brand-soft); }
.site-links .btn { margin-left: 8px; min-height: 38px; height: 38px; padding: 0 16px; font-size: 0.875rem; }

/* ── Layout ── */
.wrap { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.wrap > main { display: block; }
footer.wrap, .wrap footer, body > footer {
  position: relative;
  margin-top: 56px; padding-top: 24px; padding-bottom: 32px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; text-align: left;
}
footer.wrap::before, .wrap footer::before, body > footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--hue-emerald), var(--hue-teal), var(--hue-violet), transparent); opacity: 0.6;
}
body > footer { max-width: 860px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
footer.wrap { padding-top: 24px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer p { color: var(--muted); margin: 0; }
footer p + p { margin-top: 6px; }

/* ── Type ── */
h1 {
  font-size: clamp(2rem, 2.6vw + 1.2rem, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.04em;
  color: var(--ink); margin: 0 0 14px; text-wrap: balance;
}
/* Shimmering gradient text — available as .grad for a highlighted phrase. */
.grad { background-image: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sm-shimmer 7s linear infinite; }
/* Soft entrance for the opening block of every page (CSS only, no JS). */
.wrap > main > :is(h1, .answer-box, .tldr, .meta-line, .updated, .crumb, nav.crumbs, .lede, .sub),
main.wrap > :is(h1, .answer-box, .tldr, .meta-line, .updated, .crumb, nav.crumbs, .lede, .sub) { animation: sm-rise 0.7s var(--ease-out) both; }
.wrap > main > :is(.answer-box, .tldr), main.wrap > :is(.answer-box, .tldr) { animation-delay: 0.12s; }
h2 { font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.65rem); line-height: 1.2; font-weight: 750; letter-spacing: -0.03em; color: var(--ink); margin: 48px 0 14px; text-wrap: balance; }
h3 { font-size: 1.0625rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.012em; color: var(--ink); margin: 28px 0 8px; }
p { color: var(--ink-2); margin: 0 0 14px; font-size: 1rem; }
p + p { margin-top: 0; }
ul, ol { color: var(--ink-2); margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--hue-emerald); }
strong { color: var(--ink); font-weight: 650; }
em { color: inherit; }
.lede, .sub { font-size: 1.125rem; line-height: 1.6; color: var(--muted); max-width: 680px; margin-bottom: 32px; }
.meta-line, .updated { color: var(--muted); font-size: 0.875rem; margin: 0 0 28px; }
.crumb, nav.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 20px; }
.crumb a, nav.crumbs a { color: var(--muted); text-decoration: none; }
.crumb a:hover, nav.crumbs a:hover { color: var(--ink); text-decoration: underline; }
/* The SimMedAi row in a comparison table: tinted, same weight as its neighbours. */
tr.hl > * { background: color-mix(in srgb, var(--hue-emerald) 9%, transparent); }
tr.hl > :first-child { box-shadow: inset 3px 0 0 var(--hue-emerald); }

/* ── Buttons ── */
.btn, .btn-ghost, .cta > a:not(.btn):not(.btn-ghost) {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn:active, .btn-ghost:active { transform: translateY(1px) scale(0.99); }
.btn, .cta > a:not(.btn):not(.btn-ghost) {
  color: var(--on-brand);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 82%, var(--hue-emerald)) 0%, var(--brand) 60%, color-mix(in srgb, var(--brand) 80%, black) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 10px 26px -12px color-mix(in srgb, var(--brand) 80%, transparent);
}
/* Shine: a light band sweeps across on hover. */
.btn::after, .cta > a:not(.btn):not(.btn-ghost)::after {
  content: ''; position: absolute; inset: -2px auto -2px 0; width: 45%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-120%) skewX(-18deg);
}
.btn:hover::after, .cta > a:not(.btn):not(.btn-ghost):hover::after { animation: sm-sweep 0.9s ease-out; }
.btn:hover, .cta > a:not(.btn):not(.btn-ghost):hover { color: var(--on-brand); transform: translateY(-2px); text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset, 0 16px 34px -14px color-mix(in srgb, var(--brand) 90%, transparent); }
.btn-ghost { color: var(--ink); background: var(--elev); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { color: var(--ink); border-color: color-mix(in srgb, var(--brand) 50%, var(--line-2)); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .btn, .cta > a:not(.btn):not(.btn-ghost) { background: linear-gradient(135deg, #A3CCBE 0%, var(--brand) 55%, #6DAB96 100%); }
}
.cta, .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }

/* ── Callouts ── */
.answer-box, .tldr {
  position: relative; border-radius: var(--r); padding: 22px 24px; margin: 8px 0 36px;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--hue-emerald) 12%, var(--elev)) 0%, var(--elev) 60%);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: var(--shadow);
}
/* Hue rim: an accent bar down the left edge whose colours slowly drift. */
.answer-box::before, .tldr::before {
  content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--hue-emerald), var(--hue-teal), var(--hue-indigo), var(--hue-violet), var(--hue-emerald));
  background-size: 100% 200%; animation: sm-shimmer 6s linear infinite;
}
.answer-box p, .tldr p { color: var(--ink); margin: 0; }
.answer-box strong, .tldr strong { color: var(--brand); }
.tldr { margin: 20px 0 10px; }
/* A .cta box (a paragraph + a button) on the guides hub */
div.cta:has(> p) {
  position: relative; overflow: hidden;
  display: block; border-radius: var(--r); padding: 24px; margin-top: 40px;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--hue-clay) 10%, var(--elev)) 0%, var(--elev) 60%);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  box-shadow: var(--shadow-sm);
}
div.cta:has(> p) p { color: var(--ink); margin-bottom: 16px; }
.student-note {
  max-width: 860px; margin: 32px auto; padding: 18px 22px; border-radius: 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.student-note strong { color: var(--ink); }
.student-note a { font-weight: 600; }
.disclosure { font-size: 0.875rem; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; }

/* ── Tables ── */
.table-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line-2); border-radius: var(--r); margin: 20px 0 28px;
  background: var(--elev); box-shadow: var(--shadow);
}
.table-scroll:focus-visible { outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.table-scroll table { min-width: 640px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th, thead td { background: linear-gradient(180deg, color-mix(in srgb, var(--hue-emerald) 7%, var(--bg-2)), var(--bg-2)); color: var(--ink); font-size: 0.8125rem; font-weight: 650; white-space: nowrap; }
td { color: var(--ink-2); }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr > * { transition: background-color 0.2s; }
tbody tr:hover > * { background: color-mix(in srgb, var(--hue-emerald) 6%, transparent); }
td strong { color: var(--ink); }

/* ── FAQ ── */
.faq-item {
  position: relative;
  border: 1px solid var(--line-2); border-radius: 16px; padding: 18px 22px; margin-bottom: 10px;
  background: var(--elev); box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease-out);
}
.faq-item::before {
  content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--hue-emerald), var(--hue-teal)); opacity: 0; transition: opacity 0.25s;
}
.faq-item:hover, .faq-item:focus-within, .faq-item[open] { border-color: color-mix(in srgb, var(--brand) 40%, var(--line-2)); box-shadow: var(--shadow); }
.faq-item:hover::before, .faq-item:focus-within::before, .faq-item[open]::before { opacity: 1; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ── Cards (guides hub, features index) ── */
a.card {
  display: block; position: relative; isolation: isolate; text-decoration: none; color: inherit;
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 22px 24px 22px; margin-bottom: 12px;
  background: var(--elev); box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.35s ease;
}
/* Soft coloured glow on hover; each card takes the next hue. */
a.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--card-hue, var(--hue-emerald)) 13%, transparent), transparent 60%);
  transition: opacity 0.35s ease;
}
a.card:nth-of-type(6n+1) { --card-hue: var(--hue-emerald); } a.card:nth-of-type(6n+2) { --card-hue: var(--hue-sky); }
a.card:nth-of-type(6n+3) { --card-hue: var(--hue-violet); } a.card:nth-of-type(6n+4) { --card-hue: var(--hue-clay); }
a.card:nth-of-type(6n+5) { --card-hue: var(--hue-teal); } a.card:nth-of-type(6n+6) { --card-hue: var(--hue-rose); }
a.card::after {
  content: '→'; position: absolute; right: 22px; top: 22px; color: var(--muted);
  font-weight: 600; transition: transform 0.2s ease, color 0.2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--card-hue, var(--hue-emerald)) 45%, var(--line-2)); }
a.card:hover::before { opacity: 1; }
a.card:hover::after { transform: translateX(4px); color: var(--brand); }
a.card h2 { font-size: 1.125rem; margin: 0 0 6px; padding-right: 28px; letter-spacing: -0.02em; }
a.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.tag {
  position: relative; overflow: hidden;
  display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.02em;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 12px;
}
.tag::after { content: ''; position: absolute; inset: 0; width: 40%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--hue-emerald) 26%, transparent), transparent); transform: translateX(-120%) skewX(-18deg); animation: sm-sweep 4.5s ease-in-out infinite; }

/* ── Pill link rows (exam-prep index, related links) ── */
.row, .related { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.related { margin-top: 12px; }
.related li { margin: 0; }
.row a, .related a {
  display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px;
  font-size: 0.875rem; font-weight: 550; color: var(--brand); text-decoration: none;
  background: var(--elev); white-space: nowrap; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.2s;
}
.row a:hover, .related a:hover { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.wrap > main > h2 + .row, main.wrap > h2 + .row { margin-top: 4px; }

/* ── RFQ form ── */
.rfq {
  position: relative;
  border-radius: var(--r); padding: clamp(22px, 3vw, 32px); margin-top: 56px;
  background: var(--elev); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.rfq::before { /* colour rim along the top */
  content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--hue-emerald), var(--hue-teal), var(--hue-indigo), var(--hue-violet), var(--hue-rose), var(--hue-emerald)); background-size: 200% 100%; animation: sm-shimmer 6s linear infinite;
}
.rfq h2 { margin-top: 0; }
.rfq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin: 18px 0; }
.rfq input, .rfq textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--input); color: var(--ink); font: inherit; font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.rfq input:hover, .rfq textarea:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line-2)); }
.rfq input::placeholder, .rfq textarea::placeholder { color: var(--muted); }
.rfq input:focus, .rfq textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--elev); }
.rfq textarea { grid-column: 1 / -1; min-height: 96px; resize: vertical; }
.rfq .fine, .fine { font-size: 0.8125rem; color: var(--muted); margin-top: 12px; }

/* ── Lead-magnet sheets (printable, noindex) ── */
body:has(> main.sheet) { padding: 40px 16px; }
.sheet {
  position: relative; overflow: hidden;
  display: block; max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 44px);
  background: var(--elev); border: 1px solid var(--line-2); border-radius: 24px; box-shadow: var(--shadow);
}
.sheet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--hue-emerald), var(--hue-teal), var(--hue-indigo), var(--hue-violet)); }
.sheet h1 { font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem); margin-bottom: 6px; }
.sheet h2 { font-size: 1.15rem; margin: 30px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sheet li { font-size: 0.95rem; }
.sheet .sub { font-size: 0.95rem; margin-bottom: 24px; }
.check { padding-left: 0; }
.check li { list-style: none; position: relative; padding-left: 30px; }
.check li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border: 1.5px solid var(--hue-emerald); border-radius: 5px;
}
.note { margin-top: 24px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.sheet .cta { justify-content: center; margin-top: 32px; }
.print-btn {
  float: right; margin-left: 12px; font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; color: var(--ink); background: var(--elev); border: 1px solid var(--line-2);
}
.print-btn:hover { border-color: var(--brand); }
@media print {
  .site-header, .cta, .print-btn { display: none !important; }
  body, body:has(> main.sheet) { padding: 0; background: #fff; color: #000; }
  .sheet { border: 0; box-shadow: none; padding: 0; }
  .sheet::before, footer::before { display: none; }
  *, *::before, *::after { animation: none !important; }
}

/* ── Phones ── */
@media (max-width: 720px) {
  .site-header__in { height: 58px; padding: 0 16px; }
  .site-links a:not(.btn) { display: none; }
  .site-links .btn { margin-left: 0; }
  .wrap { padding: 32px 16px 64px; }
  body > footer { padding-left: 16px; padding-right: 16px; }
  .answer-box, .tldr { padding: 18px 18px 18px 20px; }
  .btn, .btn-ghost, .cta > a:not(.btn):not(.btn-ghost) { white-space: normal; text-align: center; }
  .cta .btn, .cta .btn-ghost, .cta-row .btn, .cta-row .btn-ghost { flex: 1 1 100%; }
  .student-note { margin: 24px 16px; }
  .row a, .related a { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
