/* ==========================================================================
   OCR RS Revision — design system
   Warm neutral, academic, high-contrast. Section accents:
   Ethics = deep red · Christian Thought = deep blue · Philosophy = deep purple.
   Light/dark via [data-theme]; mobile-first.
   ========================================================================== */

:root {
  --accent: #7a2622;          /* default deep red (ethics) */
  --accent-strong: #5e1b18;
  --accent-soft: #f3e4e2;
  --accent-tint: #fbf1f0;
  --action: #7a2622;
  --action-hover: #5e1b18;
  --on-action: #ffffff;

  --bg: #f5f1ea;              /* warm neutral page */
  --surface: #ffffff;
  --surface-2: #faf7f1;
  --ink: #22201c;             /* high-contrast text */
  --muted: #5b554c;
  --line: #e2dccf;
  --line-strong: #cfc6b4;

  --good: #1b7e3c;
  --bad: #b3261e;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20,16,10,.06), 0 8px 24px rgba(20,16,10,.06);
  --shadow-sm: 0 1px 2px rgba(20,16,10,.08);
  --maxw: 1080px;
  --content: 760px;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ========================================================================== 
   2026 interface refresh — dark-blue public-service learning system
   ========================================================================== */
:root {
  --brand-950: #06172d;
  --brand-900: #082341;
  --brand-800: #0b3766;
  --brand-700: #0d4f91;
  --brand-500: #1675cf;
  --brand-cyan: #35b6c8;
  --brand-gold: #ffcc43;
  --accent: #0d4f91;
  --accent-strong: #083a70;
  --accent-soft: #dcecff;
  --accent-tint: #edf5ff;
  --action: #0d5ea8;
  --action-hover: #08467f;
  --on-action: #fff;
  --bg: #f3f6fa;
  --surface: #fff;
  --surface-2: #eaf0f7;
  --ink: #0b1830;
  --muted: #52627a;
  --line: #d3ddea;
  --line-strong: #b5c4d7;
  --good: #087a55;
  --bad: #b4233c;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 12px 30px rgba(6,23,45,.11);
  --shadow-sm: 0 3px 12px rgba(6,23,45,.07);
  --maxw: 1180px;
  --content: 780px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
body.section-ethics { --accent:#a61e3c; --accent-strong:#79142b; --accent-tint:#fff0f3; --accent-soft:#ffdce4; --action:#9b1c38; --action-hover:#74132a; }
body.section-dct { --accent:#1261a6; --accent-strong:#0b477c; --accent-tint:#edf6ff; --accent-soft:#d9ecff; --action:#0d5ea8; --action-hover:#08467f; }
body.section-philosophy { --accent:#5a3f9b; --accent-strong:#402b76; --accent-tint:#f4f0ff; --accent-soft:#e8defe; --action:#574093; --action-hover:#3f2d70; }
[data-theme="dark"] {
  --bg:#061426; --surface:#0d213a; --surface-2:#142d4a; --ink:#f6f9fc; --muted:#b7c5d7;
  --line:#2a4463; --line-strong:#466486; --shadow:0 14px 34px rgba(0,0,0,.36); --shadow-sm:0 4px 14px rgba(0,0,0,.28);
  --accent:#73baff; --accent-strong:#b8dcff; --accent-tint:#102b49; --accent-soft:#1b4167;
  --action:#1675cf; --action-hover:#0d5da9; --good:#62d9ad; --bad:#ff8ca0;
}
[data-theme="dark"] body.section-ethics { --accent:#ff9bb0; --accent-strong:#ffd1da; --accent-tint:#351927; --accent-soft:#5c2639; --action:#b62b4b; --action-hover:#8d1d39; }
[data-theme="dark"] body.section-dct { --accent:#78bfff; --accent-strong:#c4e3ff; --accent-tint:#102b49; --accent-soft:#1b4167; --action:#1675cf; --action-hover:#0d5da9; }
[data-theme="dark"] body.section-philosophy { --accent:#c6adff; --accent-strong:#e2d7ff; --accent-tint:#271e43; --accent-soft:#44356e; --action:#7359b5; --action-hover:#594291; }

/* ---- Refreshed global chrome ---- */
body { font-size: 1rem; line-height: 1.65; }
.wrap { padding-inline: 24px; }
.site-header { background: var(--brand-950); border: 0; border-top: 4px solid var(--brand-cyan); backdrop-filter: none; }
.nav { min-height: 64px; padding: 8px 24px; gap: 12px; }
.brand, .site-header .brand { color: #fff; font-size: 1.02rem; letter-spacing: 0; }
.brand:hover, .site-header .brand:hover { color: #fff; }
.brand .mark { width: 34px; height: 34px; border-radius: 3px; background: #fff; color: var(--brand-900); box-shadow: inset 0 -4px 0 var(--brand-cyan); }
.nav-links { gap: 1px; min-width:0; flex-wrap:nowrap; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: #dce8f5; border-radius: 0; padding: 8px 9px; font-size: .84rem; border-bottom: 4px solid transparent; white-space:nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: #0b2c52; border-bottom-color: var(--brand-gold); }
.iconbtn { width: 44px; height: 44px; border-radius: 3px; border-color: #55718f; background: transparent; color: #fff; }
.iconbtn:hover { border-color: var(--brand-cyan); color: #fff; background: #0b2c52; }
.drawer { background: var(--brand-900); border-color: #284968; color: #fff; max-height: calc(100vh - 68px); overflow-y: auto; }
.drawer details, .drawer > .wrap > a.top { border-color: #315271; }
.drawer summary, .drawer .sub a, .drawer > .wrap > a, .drawer > .wrap > a.top { color: #fff; }
.drawer .sub a:hover { color: var(--brand-cyan); }
.drawer summary::after, .drawer details[open] summary::after { color: var(--brand-gold); }
@media (min-width:1200px) { .nav-links { display:flex; } .menu-toggle { display:none; } .drawer { display:none !important; } .nav-actions { margin-left:8px; } }
@media (min-width:768px) { .revbar { display:none; } body { padding-bottom:0; } }

/* Accessibility and theme safeguards kept last to win over legacy tokens. */
[data-theme="dark"] .tile-ethics { --accent:#ff9bb0; --accent-strong:#ffd1da; --accent-tint:#351927; --accent-soft:#5c2639; }
[data-theme="dark"] .tile-dct { --accent:#78bfff; --accent-strong:#c4e3ff; --accent-tint:#102b49; --accent-soft:#1b4167; }
[data-theme="dark"] .tile-philosophy { --accent:#c6adff; --accent-strong:#e2d7ff; --accent-tint:#271e43; --accent-soft:#44356e; }
:focus-visible { outline:2px solid var(--brand-950); outline-offset:2px; box-shadow:0 0 0 5px #ffbf47; }
[data-theme="dark"] :focus-visible { outline-color:#fff; }
.hero-search input:focus, .hero-search input:focus-visible { outline:3px solid var(--brand-950); outline-offset:-4px; box-shadow:0 0 0 3px #ffbf47; }
.article-count { color:var(--muted); }
.pbtn, .topic-save { min-height:44px; }
.revbar { background:#fff; border-top-color:#c9d5e3; }
.revbar a { color:#354763; min-height:56px; }
.revbar a:hover, .revbar a[aria-current="page"] { color:var(--brand-700); }

/* ---- Hero and primary controls ---- */
.home-hero { background: linear-gradient(128deg, var(--brand-950) 0%, var(--brand-900) 58%, #0b416f 100%); border: 0; color: #fff; }
.home-hero .hero-inner { padding-block: clamp(48px,7vw,82px); }
.hero-grid { display:grid; gap:36px; }
.home-hero .eyebrow { color: var(--brand-cyan); }
.home-hero h1 { max-width: 780px; margin: 10px 0 14px; font-size: clamp(2.35rem,5.7vw,4.4rem); line-height: .99; letter-spacing: -.045em; }
.home-hero .sub { max-width: 720px; color:#dce8f5; font-size:clamp(1.02rem,2.2vw,1.22rem); line-height:1.55; }
.hero-search { max-width:720px; margin:28px 0 20px; font-family:var(--font-ui); }
.hero-search > label { display:block; margin-bottom:7px; color:#fff; font-weight:800; font-size:.9rem; }
.hero-search > div { display:grid; grid-template-columns:minmax(0,1fr) auto; background:#fff; border:3px solid #fff; }
.hero-search input { min-width:0; min-height:52px; border:0; border-radius:0; padding:0 16px; color:#101828; background:#fff; font:600 1rem/1.2 var(--font-ui); }
.hero-search input:focus { outline:3px solid var(--brand-gold); outline-offset:-3px; }
.hero-search button { min-height:52px; border:0; border-left:1px solid #c7d4e3; border-radius:0; padding:0 24px; background:var(--brand-500); color:#fff; font:800 .95rem/1 var(--font-ui); cursor:pointer; }
.hero-search button:hover { background:#0b5da8; }
.home-hero .btn-primary { background:#fff; color:var(--brand-900); }
.home-hero .btn-primary:hover { background:var(--brand-cyan); color:var(--brand-950); }
.home-hero .btn-ghost { background:transparent; border-color:#6c88a5; color:#fff; }
.home-hero .btn-ghost:hover { border-color:var(--brand-cyan); color:#fff; background:#0a3157; }
.hero-trust { margin:18px 0 0; color:#c2d3e4; font:600 .82rem/1.5 var(--font-ui); }
.hero-side { display:grid; gap:14px; align-self:center; min-width:0; }
.hero-map { display:grid; overflow:hidden; background:#fff; color:#101828; border:1px solid rgba(255,255,255,.28); border-top:5px solid var(--brand-gold); border-radius:12px; box-shadow:0 22px 50px rgba(1,18,36,.24); }
.hero-map-label { margin:0; padding:16px 18px 11px; color:#52627a; font:800 .75rem/1.3 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.hero-map a { display:grid; grid-template-columns:38px minmax(0,1fr) 20px; gap:11px; align-items:center; min-height:72px; padding:13px 18px; color:#0b1830; text-decoration:none; border-top:1px solid #dce4ee; }
.hero-map a:hover { background:var(--accent-tint); color:#0b3766; }
.hero-map-number { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--accent-tint); color:var(--accent) !important; font:900 .72rem/1 var(--font-ui); }
.hero-map-copy { display:grid; gap:3px; min-width:0; }
.hero-map-copy strong { color:#0b1830; line-height:1.24; }
.hero-map-copy small { color:#66758a; font:700 .72rem/1.3 var(--font-ui); }
.hero-map a > b { color:var(--accent); font-size:1.05rem; }
.hero-news { display:grid; gap:8px; padding:18px 19px; border:1px solid rgba(112,221,241,.42); border-radius:12px; background:rgba(5,31,57,.78); color:#fff; text-decoration:none; box-shadow:0 16px 36px rgba(1,18,36,.2); }
.hero-news:hover { border-color:var(--brand-cyan); background:#082f52; }
.hero-news-kicker { color:var(--brand-cyan); font:850 .68rem/1.3 var(--font-ui); letter-spacing:.07em; text-transform:uppercase; }
.hero-news > strong { color:#fff; font:900 1.02rem/1.25 var(--font-ui); }
.hero-news-summary { color:#dce8f5; font-size:.83rem; line-height:1.45; }
.hero-news-source { color:#fff; font:850 .75rem/1.3 var(--font-ui); }
@media (min-width:1020px) { .hero-grid { grid-template-columns:minmax(0,1.55fr) minmax(320px,.72fr); align-items:center; } }
.btn { min-height:44px; border-radius:4px; padding:10px 18px; }
.btn-primary { background:var(--brand-700); }
.btn-primary:hover { background:var(--brand-800); }
.btn-ghost { box-shadow:none; }

/* ---- Homepage study pathways ---- */
.home-sections section.band { padding-block:clamp(40px,6vw,68px); border-bottom:1px solid var(--line); }
.section-heading-row { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:16px 28px; margin-bottom:22px; }
.section-heading-row .section-lead { margin-bottom:0; }
.section-title { color:var(--ink); font-size:clamp(1.55rem,3vw,2.1rem); letter-spacing:-.025em; }
.text-link { font:800 .9rem/1.2 var(--font-ui); }
.study-section { margin-top:-22px; position:relative; z-index:2; border:0 !important; }
.study-dashboard { display:grid; gap:24px; padding:24px; background:var(--surface); border:1px solid var(--line); border-top:5px solid var(--brand-cyan); box-shadow:var(--shadow); }
.continue-panel p { margin:0 0 8px; color:var(--muted); }
.continue-cards { display:grid; gap:8px; }
.continue-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 16px; padding:12px 14px; background:var(--surface-2); border-left:4px solid var(--accent); text-decoration:none; color:var(--ink); }
.continue-card-section { grid-column:1/-1; color:var(--muted); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.continue-card-title { font-weight:800; }
.continue-card-action { color:var(--accent-strong); font-weight:800; }
.progress-summary { padding:20px; background:var(--brand-900); color:#fff; align-self:stretch; }
.progress-numbers { display:flex; align-items:baseline; gap:12px; }
.progress-numbers > strong { font-size:2.35rem; line-height:1; }
.progress-track, .component-progress-track { display:block; height:8px; overflow:hidden; background:#d8e2ee; margin:14px 0 8px; }
.progress-track > span, .component-progress-track > span { display:block; height:100%; width:0; background:var(--brand-cyan); }
.progress-summary p { margin:0; color:#dce8f5; font-size:.85rem; }
@media (min-width:780px) { .study-dashboard { grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); padding:30px; } }
.component-grid { display:grid; gap:16px; }
.component-card { --accent:#0d5ea8; position:relative; display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-top:6px solid var(--accent); min-height:320px; }
.component-card.tile-philosophy { --accent:#5a3f9b; }
.component-card.tile-ethics { --accent:#007294; }
.component-card.tile-dct { --accent:#1261a6; }
.component-card > a { flex:1; display:block; padding:24px; color:var(--ink); text-decoration:none; }
.component-card > a:hover { background:var(--accent-tint); }
.component-code { display:inline-block; color:var(--accent); font:900 .74rem/1.2 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.component-card h3 { margin:10px 0; font-size:1.42rem; line-height:1.2; }
.component-card p { color:var(--muted); }
.component-link { display:block; margin-top:20px; color:var(--accent-strong); font-weight:900; }
.component-progress { padding:14px 24px 18px; border-top:1px solid var(--line); color:var(--muted); font-size:.82rem; }
.component-progress .component-progress-track { margin:7px 0 0; }
@media (min-width:720px) { .component-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px) { .component-grid { grid-template-columns:repeat(3,1fr); } }

/* ---- Editorial rail and article pages ---- */
.editorial-band { overflow:hidden; }
.article-rail-shell { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:10px; align-items:center; }
.article-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(84%,1fr); gap:16px; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; padding:4px 2px 14px; }
.article-slide { scroll-snap-align:start; min-height:350px; display:flex; flex-direction:column; position:relative; background:var(--surface); border:1px solid var(--line); border-top:6px solid var(--brand-700); }
.article-slide > a { flex:1; display:block; padding:24px; color:var(--ink); text-decoration:none; }
.article-slide > a:hover { background:var(--accent-tint); }
.article-count { float:right; color:#cad6e4; font-size:3rem; font-weight:900; line-height:.9; }
.article-section, .article-kicker { display:block; font:900 .72rem/1.25 var(--font-ui); letter-spacing:.07em; text-transform:uppercase; }
.article-section { color:var(--accent); }
.article-kicker { margin-top:6px; color:var(--muted); }
.article-slide h3, .article-card h2 { margin:18px 0 10px; font-size:clamp(1.25rem,2.6vw,1.65rem); line-height:1.17; letter-spacing:-.025em; }
.article-slide p, .article-card p { color:var(--muted); }
.article-meta { display:block; margin-top:20px; color:var(--accent-strong); font-size:.82rem; font-weight:900; }
.rail-button { width:44px; height:44px; border:1px solid var(--line-strong); background:var(--surface); color:var(--brand-800); font-size:1.25rem; cursor:pointer; }
.rail-button:hover { background:var(--brand-900); color:#fff; }
.rail-status { grid-column:2; margin:0; color:var(--muted); font-size:.78rem; }
.article-save { align-self:flex-start; min-height:44px; padding:8px 14px; border:0; border-top:1px solid var(--line); background:var(--surface-2); color:var(--accent-strong); font-weight:900; cursor:pointer; }
.article-slide > .article-save, .article-card > .article-save { width:100%; text-align:left; }
.article-save.is-saved, .article-save[aria-pressed="true"] { background:var(--brand-900); color:#fff; }
@media (min-width:680px) { .article-rail { grid-auto-columns:minmax(47%,1fr); } }
@media (min-width:1040px) { .article-rail { grid-auto-columns:minmax(31%,1fr); } }
.saved-articles { margin-top:22px; padding:20px; background:var(--surface-2); border:1px solid var(--line); }
.saved-article-cards { display:grid; gap:8px; }
.saved-article-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line); }
.saved-article-link { display:grid; padding:12px 14px; color:var(--ink); text-decoration:none; }
.saved-article-section { color:var(--muted); font-size:.72rem; font-weight:800; text-transform:uppercase; }
.saved-article-title { font-weight:800; }
.saved-article-remove { min-height:44px; border:0; border-left:1px solid var(--line); background:transparent; color:var(--bad); font-weight:800; cursor:pointer; padding:0 14px; }
.editorial-index { padding-bottom:64px; }
.editorial-head { max-width:820px; padding:52px 0 30px; }
.editorial-head h1 { margin:8px 0 12px; font-size:clamp(2.25rem,5vw,3.7rem); line-height:1.05; }
.article-grid { display:grid; gap:18px; }
.article-card { display:flex; flex-direction:column; border:1px solid var(--line); border-top:6px solid var(--brand-700); background:var(--surface); }
.article-card > a { flex:1; display:block; padding:24px; color:var(--ink); text-decoration:none; }
.article-card > a:hover { background:var(--accent-tint); }
@media (min-width:720px) { .article-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1050px) { .article-grid { grid-template-columns:repeat(3,1fr); } .article-grid .article-card:first-child { grid-column:span 2; } }
.article-page { padding-bottom:72px; }
.article-hero { display:grid; gap:28px; padding:48px 0 38px; border-bottom:1px solid var(--line); }
.article-hero h1 { max-width:850px; margin:12px 0; font-size:clamp(2.2rem,5vw,4rem); line-height:1.03; letter-spacing:-.04em; }
.article-hero .lead { max-width:780px; color:var(--muted); font-size:1.18rem; }
.article-byline { color:var(--muted); font-size:.82rem; font-weight:700; }
.article-motif { display:none; align-content:space-between; min-height:260px; padding:24px; background:linear-gradient(145deg,var(--brand-900),var(--brand-700)); color:#fff; border-bottom:12px solid var(--brand-cyan); }
.article-motif span { font-size:1.1rem; font-weight:900; }
.article-motif strong { justify-self:end; align-self:end; font-size:6rem; line-height:.8; color:#8dc9ff; }
.article-layout { display:grid; gap:44px; padding-top:28px; }
.article-body h2 { font-size:1.55rem; }
.article-body p { font-size:1.08rem; }
.article-related { align-self:start; padding:20px; background:var(--surface); border-top:5px solid var(--brand-cyan); }
.article-related h2 { margin:4px 0 12px; padding:0; border:0; font-size:1.15rem; }
.article-related a { display:block; padding:10px 0; border-top:1px solid var(--line); text-decoration:none; font-weight:800; }
.article-related .all-features { margin-top:12px; color:var(--accent-strong); }
@media (min-width:960px) { .article-hero { grid-template-columns:minmax(0,1.6fr) minmax(260px,.55fr); } .article-motif { display:grid; } .article-layout { grid-template-columns:minmax(0,780px) minmax(220px,1fr); } .article-related { position:sticky; top:92px; } }

/* ---- Topic discovery and study pages ---- */
.topic-feature-grid, .resource-grid { display:grid; gap:14px; }
.topic-feature, .resource-card { display:block; padding:20px; color:var(--ink); text-decoration:none; background:var(--surface); border:1px solid var(--line); border-left:5px solid var(--accent); }
.topic-feature:hover, .resource-card:hover { background:var(--accent-tint); }
.topic-feature > span, .resource-number { color:var(--accent); font-size:.72rem; font-weight:900; text-transform:uppercase; letter-spacing:.07em; }
.topic-feature h3, .resource-card h3 { margin:7px 0; line-height:1.25; }
.topic-feature p, .resource-card p { margin:0; color:var(--muted); font-size:.88rem; }
.resource-card strong { display:block; margin-top:18px; color:var(--accent-strong); }
@media (min-width:680px) { .topic-feature-grid { grid-template-columns:repeat(2,1fr); } .resource-grid { grid-template-columns:repeat(3,1fr); } }
@media (min-width:1040px) { .topic-feature-grid { grid-template-columns:repeat(3,1fr); } }
.support-band { border-bottom:0 !important; }
.offer-panel { border-radius:var(--radius); box-shadow:none; background:linear-gradient(135deg,var(--surface),var(--accent-tint)); }
.section-index { padding-bottom:64px; }
.section-index-head { display:grid; gap:26px; padding:34px 0; }
.section-index-head h1 { margin:8px 0; font-size:clamp(2.15rem,5vw,3.5rem); line-height:1.05; }
.section-index-head p { max-width:760px; margin:0; color:var(--muted); font-size:1.05rem; }
.section-progress { align-self:center; padding:20px; background:var(--surface); border-top:5px solid var(--accent); color:var(--muted); }
.section-progress > strong { display:block; color:var(--ink); font-size:1.45rem; }
@media (min-width:820px) { .section-index-head { grid-template-columns:minmax(0,1.4fr) minmax(240px,.6fr); align-items:center; } }
.topic-filter-bar { position:sticky; top:68px; z-index:20; display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 22px; padding:12px; background:color-mix(in srgb,var(--bg) 94%,transparent); border:1px solid var(--line); backdrop-filter:blur(8px); }
.topic-filter-bar button { min-height:44px; padding:8px 13px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink); font-weight:800; cursor:pointer; }
.topic-filter-bar button.is-active, .topic-filter-bar button[aria-pressed="true"] { background:var(--brand-900); color:#fff; border-color:var(--brand-900); }
.topic-filter-bar [role="status"] { margin-left:auto; color:var(--muted); font-size:.8rem; }
.topic-index-grid { display:grid; gap:16px; }
.topic-index-card { display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--line); border-top:5px solid var(--accent); }
.topic-index-card > a { flex:1; display:block; padding:20px; color:var(--ink); text-decoration:none; }
.topic-index-card > a:hover { background:var(--accent-tint); }
.topic-index-card h2 { margin:8px 0; padding:0; border:0; font-size:1.18rem; line-height:1.25; }
.topic-index-card p { color:var(--muted); font-size:.9rem; }
.topic-card-meta, .topic-card-action { display:block; margin-top:14px; font-size:.78rem; font-weight:800; color:var(--muted); }
.topic-card-action { color:var(--accent-strong); font-size:.86rem; }
.topic-card-footer { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:52px; padding:7px 12px 7px 20px; border-top:1px solid var(--line); color:var(--muted); font-size:.78rem; }
.topic-save { min-height:38px; border:0; background:transparent; color:var(--accent-strong); font-weight:800; cursor:pointer; }
.topic-save[aria-pressed="true"] { background:var(--brand-900); color:#fff; padding-inline:12px; }
@media (min-width:680px) { .topic-index-grid { grid-template-columns:repeat(2,1fr); } }
@media (min-width:1040px) { .topic-index-grid { grid-template-columns:repeat(3,1fr); } }
.topic-head { padding:26px 0 18px; }
.topic-head .pill { border-radius:2px; padding:6px 10px; }
.topic-head h1 { font-size:clamp(2.15rem,5vw,3.5rem); letter-spacing:-.035em; }
.topic-head .lead { max-width:760px; }
.layout { gap:42px; }
article h2 { margin-top:48px; border-bottom:1px solid var(--line); font-size:1.52rem; }
.heading-step { display:block; margin-bottom:4px; color:var(--accent); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; }
.source-extract, .eval, .box, .flashbox, .reading-list li { box-shadow:none; }
.mobile-toc { margin:4px 0 0; border:1px solid var(--line); background:var(--surface); }
.mobile-toc > span { display:block; padding:12px 16px 6px; color:var(--ink); font-weight:900; }
.mobile-toc > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); padding:0 16px 14px; }
.mobile-toc a { padding:8px 0; color:var(--muted); text-decoration:none; font-size:.83rem; }
.topic-journey { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin:44px 0; }
.topic-journey a { display:flex; flex-direction:column; min-height:96px; padding:16px; border:1px solid var(--line); background:var(--surface); color:var(--ink); text-decoration:none; }
.topic-journey a:hover { border-color:var(--accent); background:var(--accent-tint); }
.topic-journey a span { color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; }
.journey-next { text-align:right; }
@media (min-width:1024px) { .mobile-toc { display:none; } .layout { grid-template-columns:minmax(0,1fr) 270px; } .toc-side { display:block; top:92px; } }
@media (max-width:420px) { .mobile-toc > div { grid-template-columns:1fr; } }

/* ---- Footer, focus and motion ---- */
.site-footer { margin-top:0; background:var(--brand-950); border-top:5px solid var(--brand-cyan); color:#fff; }
.site-footer .brand { color:#fff !important; }
.site-footer .brand .mark { background:#fff; color:var(--brand-900); }
.site-footer .footer-heading { color:#9fb5ca; }
.site-footer a { color:#fff; }
.site-footer a:hover { color:var(--brand-cyan); }
.site-footer .foot-note { color:#b9c8d7; border-color:#294663; }
:focus-visible { outline:3px solid #ffbf47; outline-offset:3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior:auto !important; transition-duration:.01ms !important; animation-duration:.01ms !important; } .article-rail { scroll-snap-type:none; } }
@media (max-width:560px) { .wrap { padding-inline:18px; } .article-rail-shell { grid-template-columns:1fr 1fr; } .article-rail { grid-column:1/-1; grid-row:1; grid-auto-columns:88%; } .rail-button { grid-row:2; } .rail-prev { justify-self:start; } .rail-next { justify-self:end; } .rail-status { grid-column:1/-1; grid-row:2; align-self:center; justify-self:center; } .topic-journey { grid-template-columns:1fr; } .topic-journey > span:empty { display:none; } }

/* Section theming — set on <body>. */
body.section-ethics { --accent:#7a2622; --accent-strong:#5e1b18; --accent-tint:#fbf1f0; --accent-soft:#f3e4e2; --action:#7a2622; --action-hover:#5e1b18; }
body.section-dct     { --accent:#1a337e; --accent-strong:#122457; --accent-tint:#eef1fb; --accent-soft:#dde3f4; --action:#1a337e; --action-hover:#122457; }
body.section-philosophy { --accent:#4a2a75; --accent-strong:#361d57; --accent-tint:#f2edf9; --accent-soft:#e4daf1; --action:#4a2a75; --action-hover:#361d57; }

[data-theme="dark"] {
  --bg: #17150f;
  --surface: #211e17;
  --surface-2: #262319;
  --ink: #efe9dc;
  --muted: #b3ab99;
  --line: #3a352a;
  --line-strong: #4a4436;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --accent: #f3aaa3;
  --accent-strong: #ffc7c2;
  --accent-tint: #2a1d1b;
  --accent-soft: #49302d;
  --action: #8b2f2a;
  --action-hover: #6f211d;
  --good: #7dde9d;
  --bad: #ff928a;
}
[data-theme="dark"] body.section-ethics { --accent:#f3aaa3; --accent-strong:#ffc7c2; --accent-tint:#2a1d1b; --accent-soft:#49302d; --action:#8b2f2a; --action-hover:#6f211d; }
[data-theme="dark"] body.section-dct     { --accent:#adc0ff; --accent-strong:#c8d4ff; --accent-tint:#1a1f30; --accent-soft:#303a5d; --action:#2d4c99; --action-hover:#223b79; }
[data-theme="dark"] body.section-philosophy { --accent:#d1b7ef; --accent-strong:#e2cff7; --accent-tint:#241b33; --accent-soft:#46355f; --action:#6a3d91; --action-hover:#523073; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* space for mobile sticky bar */
}

a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.reading { max-width: var(--content); }

/* ---- Reading progress bar ---- */
#progressbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--accent); z-index: 60; transition: width .1s linear;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 16px;
  max-width: var(--maxw); margin: 0 auto; padding: 10px 20px;
}
.brand {
  font-family: var(--font-ui); font-weight: 800; letter-spacing: .3px;
  font-size: 1.02rem; text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
}
.brand .mark {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink:0;
  background: linear-gradient(135deg, #7a2622, #1a337e 55%, #4a2a75);
  color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 800;
}
.nav-links { display: none; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  font-family: var(--font-ui); font-size: .92rem; text-decoration: none;
  color: var(--muted); padding: 8px 11px; border-radius: 8px; font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--accent-tint); }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 8px; }
.iconbtn {
  font-family: var(--font-ui); cursor: pointer; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); border-radius: 8px;
  width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.1rem;
}
.iconbtn:hover { border-color: var(--accent); color: var(--accent); }
.nav-search { text-decoration:none; }
.nav-search svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.nav-search[aria-current="page"] { border-color:var(--brand-cyan); background:#0b2c52; }
.menu-toggle { display: grid; }
@media (min-width: 1200px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-actions { margin-left: 8px; }
}

/* ---- Mobile drawer ---- */
.drawer { display: none; border-top: 1px solid var(--line); background: var(--surface); }
.drawer.open { display: block; }
.drawer .wrap { padding: 12px 20px 20px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary {
  font-family: var(--font-ui); font-weight: 700; padding: 12px 2px; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: "＋"; color: var(--accent); font-weight: 700; }
.drawer details[open] summary::after { content: "－"; }
.drawer .sub a, .drawer > .wrap > a {
  display: block; font-family: var(--font-ui); font-size: .95rem;
  padding: 8px 2px 8px 14px; text-decoration: none; color: var(--muted);
}
.drawer .sub a:hover { color: var(--accent); }
.drawer > .wrap > a.top { padding-left: 2px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
@media (min-width: 1120px) { .drawer { display: none !important; } }

/* ---- Mobile sticky revision bar ---- */
.revbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  display: flex; background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.revbar a {
  flex: 1; text-align: center; text-decoration: none; color: var(--muted);
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600; padding: 8px 2px 7px;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
}
.revbar a .ic { font-size: 1.15rem; line-height: 1; }
.revbar a:hover, .revbar a[aria-current="page"] { color: var(--accent); }
@media (min-width: 900px) { .revbar { display: none; } body { padding-bottom: 0; } }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(1200px 400px at 15% -10%, var(--accent-soft), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 20px 52px; }
.hero .eyebrow { font-family: var(--font-ui); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-size: .78rem; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; margin: 12px 0 10px; letter-spacing: -.5px; }
.hero .sub { font-family: var(--font-ui); color: var(--muted); font-size: clamp(1rem,2.4vw,1.2rem); font-weight: 500; margin: 0 0 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  font-family: var(--font-ui); font-weight: 700; font-size: .98rem;
  text-decoration: none; border-radius: 10px; padding: 12px 20px;
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); color: var(--on-action); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Generic sections / cards ---- */
section.band { padding: 44px 0; }
.section-title { font-family: var(--font-ui); font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -.3px; }
.section-lead { color: var(--muted); margin: 0 0 22px; max-width: 68ch; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: 1fr; }
.grid.cols-3 { grid-template-columns: 1fr; }
.grid.cols-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-4 { grid-template-columns: repeat(4,1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; display: block;
}
a.card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); transition: .15s; }
.card .kicker { font-family: var(--font-ui); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.card h2, .card h3 { font-family: var(--font-ui); margin: 6px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card.topic { border-top: 4px solid var(--accent); }

.tile-ethics { --accent:#7a2622; --accent-tint:#fbf1f0; --accent-soft:#f3e4e2; }
.tile-dct { --accent:#1a337e; --accent-tint:#eef1fb; --accent-soft:#dde3f4; }
.tile-philosophy { --accent:#4a2a75; --accent-tint:#f2edf9; --accent-soft:#e4daf1; }

/* ---- Breadcrumbs ---- */
.crumbs { font-family: var(--font-ui); font-size: .82rem; color: var(--muted); padding: 16px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--line-strong); margin: 0 6px; }

/* ---- Topic page ---- */
.topic-head { padding: 8px 0 6px; }
.topic-head .pill {
  display: inline-block; font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--accent);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 12px; background: var(--action);
}
.topic-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.5px; }
.topic-head .lead { color: var(--muted); font-size: 1.12rem; margin: 0; }
.meta-row { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; align-items: center; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 26px 0 60px; }
.layout > * { min-width: 0; }
@media (min-width: 1000px) { .layout { grid-template-columns: minmax(0,1fr) 260px; align-items: start; } }

.toc-side { display: none; }
@media (min-width: 1000px) {
  .toc-side { display: block; position: sticky; top: 76px; font-family: var(--font-ui); }
  .toc-side h2 { padding: 0; border: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
  .toc-side a { display: block; font-size: .88rem; color: var(--muted); text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); }
  .toc-side a:hover { color: var(--accent); border-color: var(--accent); }
}

article h2 {
  font-family: var(--font-ui); font-size: 1.45rem; margin: 40px 0 12px;
  padding-bottom: 6px; border-bottom: 2px solid var(--accent); scroll-margin-top: 80px;
}
article h3 { font-family: var(--font-ui); font-size: 1.1rem; color: var(--accent-strong); margin: 22px 0 6px; }
article h4 { font-family: var(--font-ui); margin: 14px 0 4px; }
article p, article li { font-size: 1.05rem; }
article ul, article ol { padding-left: 22px; }
article li { margin: 5px 0; }

.scholar-ref { color: var(--accent-strong); font-weight: 600; text-decoration: none; border-bottom: 1px dotted var(--accent); cursor: help; }
.scholar-ref:hover { color: var(--accent); }

/* Boxes */
.box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; background: var(--surface); }
.keyterms { background: var(--surface-2); border-left: 4px solid var(--accent); }
.keyterms-label { margin:0 0 10px; color:var(--accent-strong); font:850 .72rem/1.2 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.keyterms dl { margin: 0; }
.keyterms dt { font-family: var(--font-ui); font-weight: 700; margin-top: 10px; }
.keyterms dt:first-child { margin-top: 0; }
.keyterms dd { margin: 2px 0 0; color: var(--muted); }
.quote { border-left: 4px solid var(--accent); background: var(--accent-tint); font-style: italic; padding: 12px 18px; margin: 14px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.quote .src { display: block; font-style: normal; font-family: var(--font-ui); font-size: .82rem; color: var(--accent-strong); margin-top: 6px; font-weight: 700; }
.tip { background: var(--accent-tint); border-left: 4px solid var(--accent); padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; }
.warn { background: color-mix(in srgb, var(--bad) 8%, var(--surface)); border-left: 4px solid var(--bad); padding: 12px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; }
.warn .label, .tip .label { font-family: var(--font-ui); font-weight: 700; }
.qbox { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 18px; margin: 16px 0; }
.qbox h3 { margin: 0 0 6px; color: var(--accent-strong); font-family: var(--font-ui); }

.eval-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 14px 0; }
@media (min-width: 700px) { .eval-grid { grid-template-columns: 1fr 1fr; } }
.eval { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.eval h3 { margin: 0 0 8px; font-family: var(--font-ui); font-size: 1rem; }
.eval.str { border-top: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.eval.weak { border-top: 4px solid var(--brand-500); background: color-mix(in srgb, var(--brand-500) 4%, var(--surface)); }
.eval ul { list-style: none; padding-left: 0; margin: 0; }
.eval li { position: relative; padding-left: 22px; }
.eval li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.eval.weak li::before { background: var(--brand-500); }
.eval h3.str { color: var(--accent-strong); } .eval h3.weak { color: var(--ink); }

table.data { width: 100%; border-collapse: collapse; margin: 16px 0; font-family: var(--font-ui); font-size: .92rem; }
table.data th { background: var(--action); color: var(--on-action); padding: 9px 12px; text-align: left; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:nth-child(even) td { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }

/* Collapsible glossary on mobile */

/* Scholar mini-cards */
.scholar-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .scholar-cards { grid-template-columns: 1fr 1fr; } }
.scholar-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; text-decoration: none; color: inherit; }
.scholar-card:hover { border-color: var(--accent); }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 800; color: var(--on-action); background: var(--action); font-size: .95rem; }
.scholar-card .nm { font-family: var(--font-ui); font-weight: 700; }
.scholar-card .dt { font-family: var(--font-ui); font-size: .8rem; color: var(--muted); }

/* Quick revision box (flashcard) */
.flashbox { background: linear-gradient(160deg, var(--accent-tint), var(--surface)); border: 1px solid var(--accent-soft); border-radius: var(--radius); padding: 18px 20px; }
.flashbox h3 { margin-top: 0; }
.flashbox ul { margin: 0; padding-left: 20px; }
.flashbox li { margin: 6px 0; }

/* Progress buttons */
.progress-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.pbtn {
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  border-radius: 20px; padding: 7px 14px; display: inline-flex; gap: 6px; align-items: center;
}
.pbtn:hover { border-color: var(--accent); }
.pbtn[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }

/* Related links */
.related a { font-family: var(--font-ui); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-ui); font-size: .85rem; text-decoration: none; color: var(--accent-strong); background: var(--accent-tint); border: 1px solid var(--accent-soft); border-radius: 20px; padding: 6px 13px; }
.chip:hover { background: var(--action); color: var(--on-action); }

/* Recommended reading */
.books { display: grid; grid-template-columns: 1fr; gap: 10px; }
.book { display: flex; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; text-decoration: none; color: inherit; }
.book:hover { border-color: var(--accent); }
.book .ic { font-size: 1.4rem; }
.book .t { font-family: var(--font-ui); font-weight: 600; font-size: .95rem; }
.book .n { font-size: .82rem; color: var(--muted); font-family: var(--font-ui); }
.book-grid { display:grid; grid-template-columns:1fr; gap:16px; margin:18px 0; }
.book-card { display:grid; grid-template-columns:92px minmax(0,1fr); gap:18px; align-items:start; min-width:0; padding:18px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }
.book-cover { position:relative; width:92px; aspect-ratio:2/3; overflow:hidden; border-radius:8px; background:linear-gradient(145deg,var(--brand-900),var(--brand-700)); box-shadow:0 8px 22px rgba(4,18,35,.18); }
.book-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:var(--surface-2); }
.book-cover img.is-missing { display:none; }
.book-cover-fallback { position:absolute; inset:0; display:grid; place-items:center; color:#fff; font:900 1.25rem/1 var(--font-ui); letter-spacing:.08em; }
.book-card-copy { min-width:0; }
.book-card-copy h3 { margin:7px 0 8px; font-size:1.02rem; line-height:1.35; }
.book-card-copy p { margin:0 0 13px; color:var(--muted); font-size:.92rem; }
.book-tier { display:inline-flex; align-items:center; min-height:24px; padding:3px 8px; border-radius:999px; background:var(--accent-tint); color:var(--accent-strong); font:800 .68rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.book-tier.tier-stretch { background:#f1e9ff; color:#57338e; }
.book-tier.tier-revision { background:#e9f3ff; color:#154e82; }
.btn-book { min-height:40px; padding:10px 14px; background:var(--brand-900); color:#fff; font-size:.82rem; }
.btn-book:hover { color:#fff; background:var(--brand-700); }
.reading-list-hero { padding:42px 0 22px; max-width:820px; }
.reading-list-page > .source-note { margin:0 0 18px; }
.reading-method { max-width:900px; }
@media (min-width:760px) {
  .book-grid-reading { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .book-grid-reading .book-card { grid-template-columns:1fr; }
  .book-grid-reading .book-cover { width:112px; }
}
@media (max-width:480px) {
  .book-card { grid-template-columns:72px minmax(0,1fr); gap:13px; padding:14px; }
  .book-cover { width:72px; }
}
.aff-note { font-family: var(--font-ui); font-size: .75rem; color: var(--muted); margin-top: 8px; }

/* ---- Search ---- */
.search-wrap { max-width: 720px; margin: 0 auto; }
#searchInput {
  width: 100%; font-family: var(--font-ui); font-size: 1.1rem; padding: 16px 18px;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink);
}
#searchInput:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.search-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sfilter { font-family: var(--font-ui); font-size: .85rem; cursor: pointer; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); border-radius: 20px; padding: 6px 13px; }
.sfilter.active { background: var(--action); color: var(--on-action); border-color: var(--action); }
#searchResults { margin-top: 16px; display: grid; gap: 10px; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; text-decoration: none; color: inherit; display: block; }
.result:hover { border-color: var(--accent); }
.result .tag { font-family: var(--font-ui); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.result .rt { font-family: var(--font-ui); font-weight: 700; margin: 2px 0; }
.result .rs { color: var(--muted); font-size: .9rem; }
.result mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.empty { color: var(--muted); text-align: center; padding: 30px; font-family: var(--font-ui); }

/* ---- Scholar hover card ---- */
#hovercard {
  position: absolute; z-index: 70; width: 300px; max-width: 88vw; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px 16px; font-family: var(--font-ui); opacity: 0; pointer-events: none; transition: opacity .12s; font-size: .9rem;
}
#hovercard.show { opacity: 1; pointer-events: auto; }
#hovercard .hc-name { font-weight: 800; color: var(--accent-strong); }
#hovercard .hc-dates { color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
#hovercard .hc-body { color: var(--ink); }
#hovercard a { font-size: .82rem; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.site-footer .wrap { padding: 34px 20px; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr repeat(4, 1fr); } }
.site-footer .footer-heading { border: 0; padding: 0; font-family: var(--font-ui); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.site-footer a { display: block; font-family: var(--font-ui); font-size: .9rem; color: var(--ink); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--accent); }
.foot-note { color: var(--muted); font-size: .82rem; font-family: var(--font-ui); margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent);
  border-radius: var(--radius); padding: 22px 24px; text-align: center;
}
.callout h2 { border: 0; margin: 0 0 8px; }

.badgerow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge { font-family: var(--font-ui); font-size: .82rem; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; color: var(--muted); }
.badge b { color: var(--ink); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Accessibility / commercial funnel ---- */
.skip-link {
  position: fixed; left: 16px; top: 10px; z-index: 100; transform: translateY(-180%);
  background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 8px;
  font-family: var(--font-ui); font-weight: 700;
}
.skip-link:focus { transform: translateY(0); color: var(--surface); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.eyebrow {
  margin: 0 0 8px; font-family: var(--font-ui); font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); font-size: .76rem;
}
.microcopy { color: var(--muted); font-family: var(--font-ui); font-size: .8rem; line-height: 1.5; }

.offer-panel {
  display: grid; gap: 28px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px); background: linear-gradient(135deg, var(--surface), var(--accent-tint));
  box-shadow: var(--shadow);
}
.offer-copy .section-lead { margin-bottom: 16px; }
.tick-list { list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--font-ui); }
.tick-list li { position: relative; padding: 6px 0 6px 28px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 900; }
.offer-cards { display: grid; gap: 12px; }
.mini-offer { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mini-offer h3 { margin: 2px 0 3px; font: 800 1rem/1.3 var(--font-ui); }
.mini-offer p { margin: 0; color: var(--muted); font-size: .9rem; }
.offer-icon { color: var(--accent); font: 800 .72rem/1 var(--font-ui); letter-spacing: .12em; }
@media (min-width: 820px) { .offer-panel { grid-template-columns: minmax(0,1.25fr) minmax(250px,.75fr); align-items: center; } }

.support-cta {
  margin: 34px 0; padding: 22px; border-radius: var(--radius); border: 1px solid var(--accent-soft);
  border-left: 5px solid var(--accent); background: linear-gradient(135deg, var(--accent-tint), var(--surface));
}
article .support-cta h2, .support-cta h2 { margin: 4px 0 6px; padding: 0; border: 0; font-size: 1.3rem; }
.support-cta p { margin: 0 0 16px; color: var(--muted); }
.support-cta .kicker { color: var(--accent); font: 800 .72rem/1.3 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; }

.support-hero { max-width: 820px; padding: clamp(42px, 8vw, 76px) 0 46px; }
.support-hero h1 { font-size: clamp(2.2rem, 6vw, 3.7rem); line-height: 1.05; letter-spacing: -.7px; margin: 8px 0 16px; }
.support-hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 66ch; }
.service-grid { display: grid; gap: 16px; }
.service-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-card.featured { border-top: 5px solid var(--accent); }
.service-card h3 { margin: 6px 0 8px; font: 800 1.25rem/1.25 var(--font-ui); }
.service-card p, .service-card li { color: var(--muted); font-size: .95rem; }
.service-card ul { padding-left: 20px; }
@media (min-width: 800px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.split-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 780px) { .split-band { grid-template-columns: minmax(0,1.3fr) minmax(260px,.7fr); } }
.numbered-steps { list-style: none; padding: 0; margin: 22px 0 0; counter-reset: steps; }
.numbered-steps li { counter-increment: steps; display: grid; grid-template-columns: 36px 1fr; gap: 4px 10px; margin: 18px 0; }
.numbered-steps li::before { content: counter(steps); grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--action); color: var(--on-action); font: 800 .85rem/1 var(--font-ui); }
.numbered-steps strong, .numbered-steps span { grid-column: 2; font-family: var(--font-ui); }
.numbered-steps span { color: var(--muted); font-size: .92rem; }
.trust-box { padding: 24px; border-radius: var(--radius); background: var(--accent-tint); border: 1px solid var(--accent-soft); }
.trust-box h3 { margin: 0 0 8px; font-family: var(--font-ui); }
.trust-box p { color: var(--muted); }

.form-section { scroll-margin-top: 80px; }
.form-intro { max-width: 700px; margin-bottom: 22px; }
.enquiry-form { padding: clamp(20px, 5vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.enquiry-form label { display: block; margin-bottom: 16px; color: var(--ink); font: 700 .9rem/1.4 var(--font-ui); }
.enquiry-form input:not([type="checkbox"]), .enquiry-form select, .enquiry-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--ink); font: 400 1rem/1.4 var(--font-ui);
}
.enquiry-form textarea { resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.enquiry-form .check-label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; font-size: .84rem; color: var(--muted); }
.check-label input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--accent); }
.form-notice { padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--accent-tint); color: var(--muted); font: 500 .84rem/1.5 var(--font-ui); }
.topic-context { margin: 0 0 18px; padding: 10px 12px; border: 1px solid var(--accent-soft); border-radius: 8px; background: var(--accent-tint); font: 600 .88rem/1.4 var(--font-ui); }
.topic-context button { margin-left: 8px; border: 0; padding: 2px 4px; background: transparent; color: var(--accent-strong); font: 700 .8rem/1 var(--font-ui); text-decoration: underline; cursor: pointer; }
.compact-form { margin: 22px 0 50px; }

.checklist-head { padding: 42px 0 24px; }
.checklist-head h1 { margin: 6px 0 10px; font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.08; }
.checklist-head .lead { color: var(--muted); }
.checklist-sheet { padding: 8px 0 18px; }
.check-section { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 24px 0; border-top: 1px solid var(--line); }
.check-number { color: var(--accent); font: 800 .8rem/1 var(--font-ui); letter-spacing: .12em; padding-top: 9px; }
article .check-section h2 { border: 0; padding: 0; margin: 0 0 12px; font-size: 1.35rem; }
.print-checks { list-style: none; padding: 0; margin: 0; }
.print-checks li { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; }
.check-box { width: 17px; height: 17px; border: 2px solid var(--line-strong); border-radius: 3px; flex: 0 0 auto; margin-top: 5px; background: var(--surface); }

.legal-page { padding-bottom: 42px; }
.legal-page article > h1 { font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.1; margin: 36px 0 10px; }
.legal-page .lead { color: var(--muted); }
.narrow-page { max-width: 760px; padding-top: clamp(50px, 12vw, 110px); padding-bottom: 80px; }
.status-card { text-align: center; padding: clamp(30px, 8vw, 60px); background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); }
.status-card .cta-row { justify-content: center; }
.status-icon { width: 56px; height: 56px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: var(--good); font: 900 1.5rem/1 var(--font-ui); }

/* ---- Past-question library ---- */
.past-hero { padding: 42px 0 22px; max-width: 760px; }
.past-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.past-filters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 62px; z-index: 20;
}
.past-filters label { display: grid; gap: 5px; font-family: var(--font-ui); font-size: .78rem; font-weight: 750; color: var(--muted); }
.past-filters select, .past-filters input {
  width: 100%; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 9px 11px; background: var(--surface); color: var(--ink); font: 500 .95rem var(--font-ui);
}
.past-filters .btn { align-self: end; min-height: 44px; }
.past-count { font: 700 .9rem var(--font-ui); color: var(--muted); margin: 20px 0 10px; }
.past-question-list { display: grid; gap: 12px; }
.past-question {
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); scroll-margin-top: 180px;
}
.past-question[hidden] { display: none; }
.past-question p { margin: 10px 0 0; font-size: 1.08rem; }
.past-question-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; color: var(--muted); font: 650 .78rem var(--font-ui); }
.past-question-meta .pill { font-size: .68rem; padding: 3px 8px; }
.past-topic-box { border-left: 4px solid var(--accent); padding: 6px 0 8px 20px; }
.past-topic-box ol { padding-left: 22px; }
.past-topic-box li { margin: 0 0 12px; padding-left: 5px; }
.past-series { display: inline-block; margin-right: 8px; padding: 2px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font: 750 .72rem var(--font-ui); white-space: nowrap; }
.source-note { margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; }
.supplementary-topics { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.supplementary-topics h2 { margin: 0 0 6px; }

/* ---- High-attainment content ---- */
.advanced-block { margin:28px 0; padding-bottom:24px; border-bottom:1px solid var(--line); }
.advanced-block + .advanced-block { margin-top:28px; }
.advanced-block h3 { margin:0 0 8px; }
.source-extracts { display: grid; gap: 14px; }
.source-extract { margin: 0; padding: 20px 22px; border-left: 4px solid var(--accent); background: var(--surface); box-shadow: var(--shadow-sm); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.source-extract blockquote { margin: 0 0 10px; font-size: 1.16rem; line-height: 1.55; }
.source-extract blockquote::before { content: "“"; color: var(--accent); font-size: 1.45em; line-height: 0; }
.source-extract blockquote::after { content: "”"; color: var(--accent); }
.source-extract figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; color: var(--muted); font: 600 .82rem/1.45 var(--font-ui); }
.source-extract .source-link { color: var(--accent); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.source-extract p { margin: 10px 0 0; color: var(--muted); font-size: .93rem; }
.section-intro { margin-top: -6px; color: var(--muted); }
.reading-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.reading-list li { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.reading-list a { display: block; text-decoration: none; }
.reading-list strong, .reading-list span { display: block; }
.reading-list span { margin-top: 3px; color: var(--muted); font-size: .92rem; }
@media (min-width: 760px) {
  .past-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .past-filters .past-search { grid-column: span 3; }
}
@media (max-width: 560px) {
  .past-filters { grid-template-columns: 1fr; position: static; }
}

@media print {
  @page { margin: 15mm; }
  body { background: #fff; color: #111; padding: 0; font-size: 10.5pt; }
  .site-header, .site-footer, .revbar, #progressbar, .crumbs, .no-print, .skip-link { display: none !important; }
  .wrap, .reading { max-width: none; padding: 0; }
  .checklist-head { padding: 0 0 10mm; }
  .checklist-head h1 { font-size: 24pt; }
  .check-section { break-inside: avoid; padding: 5mm 0; }
  article .check-section h2 { font-size: 15pt; }
  .print-checks li { font-size: 10.5pt; margin: 2.5mm 0; }
  .check-box { border-color: #555; background: #fff; }
}

/* Final token overrides sit after the legacy theme declarations. */
body.section-ethics { --accent:#a61e3c; --accent-strong:#79142b; --accent-tint:#fff0f3; --accent-soft:#ffdce4; --action:#9b1c38; --action-hover:#74132a; }
body.section-dct { --accent:#1261a6; --accent-strong:#0b477c; --accent-tint:#edf6ff; --accent-soft:#d9ecff; --action:#0d5ea8; --action-hover:#08467f; }
body.section-philosophy { --accent:#5a3f9b; --accent-strong:#402b76; --accent-tint:#f4f0ff; --accent-soft:#e8defe; --action:#574093; --action-hover:#3f2d70; }
[data-theme="dark"] {
  --bg:#061426; --surface:#0d213a; --surface-2:#142d4a; --ink:#f6f9fc; --muted:#b7c5d7;
  --line:#2a4463; --line-strong:#466486; --shadow:0 14px 34px rgba(0,0,0,.36); --shadow-sm:0 4px 14px rgba(0,0,0,.28);
  --accent:#73baff; --accent-strong:#b8dcff; --accent-tint:#102b49; --accent-soft:#1b4167;
  --action:#1675cf; --action-hover:#0d5da9; --good:#62d9ad; --bad:#ff8ca0;
}
[data-theme="dark"] body.section-ethics { --accent:#ff9bb0; --accent-strong:#ffd1da; --accent-tint:#351927; --accent-soft:#5c2639; --action:#b62b4b; --action-hover:#8d1d39; }
[data-theme="dark"] body.section-dct { --accent:#78bfff; --accent-strong:#c4e3ff; --accent-tint:#102b49; --accent-soft:#1b4167; --action:#1675cf; --action-hover:#0d5da9; }
[data-theme="dark"] body.section-philosophy { --accent:#c6adff; --accent-strong:#e2d7ff; --accent-tint:#271e43; --accent-soft:#44356e; --action:#7359b5; --action-hover:#594291; }

/* Cascade-critical refresh rules: deliberately last. */
body { font-family:var(--font-body); font-size:1rem; line-height:1.65; }
.site-header { background:var(--brand-950); border:0; border-top:4px solid var(--brand-cyan); backdrop-filter:none; }
.nav { min-height:64px; padding:8px 24px; gap:12px; }
.brand, .site-header .brand { color:#fff; font-family:var(--font-ui); font-size:1.02rem; letter-spacing:0; }
.brand:hover, .site-header .brand:hover { color:#fff; }
.brand .mark { width:34px; height:34px; border-radius:3px; background:#fff; color:var(--brand-900); box-shadow:inset 0 -4px 0 var(--brand-cyan); }
.nav-links { gap:1px; }
.nav-links a { min-height:44px; display:inline-flex; align-items:center; color:#dce8f5; border-radius:0; padding:8px 9px; font-size:.84rem; border-bottom:4px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color:#fff; background:#0b2c52; border-bottom-color:var(--brand-gold); }
.iconbtn { width:44px; height:44px; border-radius:3px; border-color:#55718f; background:transparent; color:#fff; }
.iconbtn:hover { border-color:var(--brand-cyan); color:#fff; background:#0b2c52; }
.drawer { background:var(--brand-900); border-color:#284968; color:#fff; }
.drawer summary, .drawer .sub a, .drawer > .wrap > a, .drawer > .wrap > a.top { color:#fff; }
.drawer details, .drawer > .wrap > a.top { border-color:#315271; }
.home-hero { background:linear-gradient(128deg,var(--brand-950) 0%,var(--brand-900) 58%,#0b416f 100%); border:0; color:#fff; }
.home-hero .eyebrow { color:var(--brand-cyan); }
.home-hero h1 { max-width:780px; margin:10px 0 14px; color:#fff; font-family:var(--font-ui); font-size:clamp(2.35rem,5.7vw,4.4rem); line-height:.99; letter-spacing:-.045em; }
.home-hero .sub { max-width:720px; color:#dce8f5; }
.btn { min-height:44px; border-radius:4px; padding:10px 18px; }
.btn-primary { background:var(--brand-700); }
.btn-primary:hover { background:var(--brand-800); }
.home-hero .btn-primary { background:#fff; color:var(--brand-900); }
.home-hero .btn-primary:hover { background:var(--brand-cyan); color:var(--brand-950); }
.home-hero .btn-ghost { background:transparent; border-color:#6c88a5; color:#fff; }
.home-hero .btn-ghost:hover { border-color:var(--brand-cyan); color:#fff; background:#0a3157; }
.section-title { color:var(--ink); font-size:clamp(1.55rem,3vw,2.1rem); letter-spacing:-.025em; }
.card { border-radius:var(--radius); box-shadow:none; }
.topic-head { padding:26px 0 18px; }
.topic-head .pill { border-radius:2px; padding:6px 10px; }
.topic-head h1 { font-family:var(--font-ui); font-size:clamp(2.15rem,5vw,3.5rem); letter-spacing:-.035em; }
.resource-credits { display:flex; flex-wrap:wrap; gap:7px 14px; margin:16px 0 4px; color:var(--muted); font:700 .74rem/1.35 var(--font-ui); }
.resource-credits span,.resource-credits time,.resource-credits a { display:inline-flex; align-items:center; gap:4px; }
.resource-credits strong { color:var(--accent-strong); }
.resource-credits a { font-weight:800; }
article h2 { margin-top:48px; border-bottom:1px solid var(--line); font-size:1.52rem; }
#searchInput { border-radius:4px; }
.book .ic { min-width:42px; padding:9px 6px; background:var(--brand-900); color:#fff; font:900 .62rem/1 var(--font-ui); letter-spacing:.06em; text-align:center; }

/* Interactive retrieval, comparison and conversion components */
.quote-copyable { position:relative; padding-right:112px; }
.quote-copy { position:absolute; top:10px; right:10px; min-height:34px; padding:7px 10px; border:1px solid var(--accent-soft); border-radius:7px; background:var(--surface); color:var(--accent-strong); font:800 .72rem/1 var(--font-ui); cursor:pointer; }
.quote-copy:hover { border-color:var(--accent); }
.interactive-flashbox > p { margin-top:-4px; color:var(--muted); }
.recall-grid { display:grid; grid-template-columns:1fr; gap:10px; }
.recall-card { width:100%; min-height:112px; padding:0; border:1px solid var(--accent-soft); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); text-align:left; cursor:pointer; overflow:hidden; }
.recall-card:hover { border-color:var(--accent); transform:translateY(-1px); }
.recall-card-front,.recall-card-answer { display:flex; flex-direction:column; justify-content:center; min-height:112px; padding:16px; }
.recall-card-front span { color:var(--accent-strong); font:800 .68rem/1 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.recall-card-front strong { margin-top:8px; font:800 .94rem/1.35 var(--font-ui); }
.recall-card-answer { background:var(--accent-tint); font:600 .91rem/1.5 var(--font-ui); }
.recall-card.is-revealed { border-color:var(--accent); }
.topic-quiz { margin:22px 0; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); }
.topic-quiz-head h3 { margin:3px 0 4px; }
.topic-quiz-head > p:last-child { margin:0 0 18px; color:var(--muted); }
.quiz-question { margin:0 0 16px; padding:16px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.quiz-question legend { width:100%; padding:0 0 12px; font:700 .92rem/1.45 var(--font-ui); }
.quiz-question legend span { display:block; margin-bottom:5px; color:var(--accent-strong); font-size:.68rem; letter-spacing:.08em; text-transform:uppercase; }
.quiz-options { display:grid; grid-template-columns:1fr; gap:8px; }
.quiz-options button { min-height:42px; padding:9px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); color:var(--ink); font:700 .84rem/1.3 var(--font-ui); text-align:left; cursor:pointer; }
.quiz-options button:hover { border-color:var(--accent); }
.quiz-options button.is-correct { border-color:var(--good); background:color-mix(in srgb,var(--good) 10%,var(--surface)); }
.quiz-options button.is-incorrect { border-color:var(--bad); background:color-mix(in srgb,var(--bad) 8%,var(--surface)); }
.quiz-feedback,.quiz-summary { margin:10px 0 0; font:700 .82rem/1.4 var(--font-ui); }
.quiz-summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.synoptic-grid { display:grid; grid-template-columns:1fr; gap:10px; margin:14px 0 22px; }
.synoptic-card { display:flex; flex-direction:column; gap:5px; padding:15px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:var(--radius-sm); background:var(--surface); color:var(--ink); text-decoration:none; }
.synoptic-card span { color:var(--accent-strong); font:800 .66rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.synoptic-card strong { font:800 .94rem/1.3 var(--font-ui); }
.synoptic-card small { color:var(--muted); }
.support-strip { display:flex; flex-direction:column; gap:14px; margin:22px 0; padding:17px 19px; border-left:4px solid var(--accent); border-radius:var(--radius-sm); background:var(--brand-900); color:#fff; }
.support-strip div { display:flex; flex-direction:column; gap:3px; }
.support-strip span { color:#d7e8f8; font:500 .86rem/1.4 var(--font-ui); }
.support-strip a { color:#fff; font:800 .82rem/1.3 var(--font-ui); }
.completion-offer { position:relative; margin:22px 0; padding:22px; border:1px solid var(--accent-soft); border-radius:var(--radius); background:linear-gradient(145deg,var(--accent-tint),var(--surface)); }
.completion-offer h2 { margin:4px 34px 6px 0 !important; padding:0 !important; border:0 !important; font-size:1.25rem !important; }
.completion-offer p { color:var(--muted); }
.completion-dismiss { position:absolute; top:10px; right:10px; width:34px; height:34px; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--ink); font-size:1.25rem; cursor:pointer; }
.completion-offer.is-visible { animation:offer-in .22s ease-out; }
@keyframes offer-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
@media (min-width:700px) {
  .recall-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quiz-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .synoptic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .support-strip { flex-direction:row; align-items:center; justify-content:space-between; }
}
@media (max-width:520px) { .quote-copyable { padding-right:18px; padding-bottom:54px; } .quote-copy { top:auto; bottom:10px; } }

/* Model-answer and paid-resource catalogue */
.model-answer-grid,.product-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.model-answer-card,.product-card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); overflow:hidden; }
.model-answer-card > a { display:flex; flex-direction:column; height:100%; padding:20px; color:var(--ink); text-decoration:none; }
.product-card { position:relative; display:flex; flex-direction:column; }
.product-card.featured { border:2px solid var(--accent); }
.product-card-body { display:flex; flex:1; flex-direction:column; padding:20px; }
.shop-badge { position:absolute; top:14px; right:14px; padding:6px 9px; border-radius:999px; background:var(--brand-900); color:#fff; font:900 .62rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.shop-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; margin:15px 0 3px; }
.product-card .shop-price strong { margin:0; padding:0; color:var(--ink); font:950 1.65rem/1 var(--font-ui); }
.shop-price span { color:var(--muted); font:700 .72rem/1.3 var(--font-ui); }
.bundle-saving { margin:12px 0 0; padding:12px 14px; border-left:4px solid var(--brand-gold); background:var(--surface-2); }
.product-card .bundle-saving strong { display:block; margin:0 0 3px; padding:0; color:var(--ink); font:900 .9rem/1.2 var(--font-ui); }
.shop-card-actions { display:flex; flex-wrap:wrap; gap:8px; padding:0 20px 20px; }
.shop-card-actions .btn { flex:1; justify-content:center; min-width:130px; }
.model-answer-card h2,.product-card h2 { margin:12px 0 8px; font-size:1.08rem; line-height:1.35; }
.model-answer-card p,.product-card p { color:var(--muted); font-size:.9rem; }
.model-card-meta { display:flex; flex-wrap:wrap; gap:7px; }
.model-card-meta span,.product-kind,.paragraph-kind { display:inline-flex; width:max-content; padding:5px 8px; border-radius:999px; background:var(--accent-tint); color:var(--accent-strong); font:800 .66rem/1 var(--font-ui); letter-spacing:.05em; text-transform:uppercase; }
.model-card-action,.product-card strong { margin-top:auto; padding-top:12px; color:var(--accent-strong); font:800 .82rem/1.3 var(--font-ui); }
.model-answer-hero,.product-hero { display:grid; grid-template-columns:1fr; gap:22px; padding:44px 0 28px; }
.model-answer-hero h1,.product-hero h1 { margin:8px 0 12px; max-width:900px; font-size:clamp(2rem,5vw,3.55rem); line-height:1.04; }
.model-source { color:var(--muted); font:700 .8rem/1.4 var(--font-ui); }
.model-answer-hero > aside { display:flex; flex-direction:column; justify-content:center; width:150px; min-height:150px; padding:18px; border-radius:50%; background:var(--brand-900); color:#fff; text-align:center; }
.model-answer-hero > aside span { font:900 2rem/1 var(--font-ui); }
.model-answer-hero > aside small { margin-top:5px; color:#d7e8f8; font:700 .7rem/1.25 var(--font-ui); }
.argument-map { display:grid; grid-template-columns:1fr; gap:14px; }
.argument-step { display:grid; grid-template-columns:38px 1fr; gap:12px; padding:17px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.argument-step > span { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--brand-900); color:#fff; font:800 .72rem/1 var(--font-ui); }
.argument-step h3 { margin:0 0 3px; color:var(--accent-strong); font:800 .69rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.argument-step p { margin:0 0 12px; font-size:.89rem; }
.annotated-essay { margin:26px 0; }
.annotated-paragraph { display:grid; grid-template-columns:1fr; gap:16px; margin:0 0 24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.essay-copy h2 { margin:8px 0 12px; }
.margin-comments { display:flex; flex-direction:column; gap:9px; }
.margin-comments > div { padding:12px; border-left:3px solid var(--accent); border-radius:0 7px 7px 0; background:var(--accent-tint); }
.margin-comments strong { color:var(--accent-strong); font:800 .69rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.margin-comments p { margin:5px 0 0; font:600 .8rem/1.4 var(--font-ui); }
.preview-gate { margin:30px 0; padding:28px; border-radius:var(--radius); background:linear-gradient(135deg,var(--brand-900),#102f50); color:#fff; }
.preview-gate h2 { margin:5px 0 8px !important; padding:0 !important; border:0 !important; color:#fff; }
.preview-gate p { color:#d7e8f8; }
.source-basis { display:grid; grid-template-columns:1fr; gap:20px; }
.takeaway-list { columns:1; }
.product-card ul { margin:8px 0 0; padding-left:18px; color:var(--muted); font-size:.85rem; }
.product-hero { padding-bottom:40px; }
.product-hero-action { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:20px; }
.product-hero-action > span { color:var(--muted); font:600 .76rem/1.4 var(--font-ui); }
.product-cover { display:flex; flex-direction:column; justify-content:flex-end; width:min(270px,75vw); aspect-ratio:4/5; padding:25px; border-radius:8px 20px 20px 8px; background:linear-gradient(145deg,var(--brand-900),var(--brand-700)); box-shadow:16px 18px 40px rgba(3,18,34,.22); color:#fff; }
.product-cover span { font:900 .8rem/1 var(--font-ui); letter-spacing:.16em; }
.product-cover strong { font:900 4.4rem/.95 var(--font-ui); }
.product-cover small { color:#d7e8f8; font:800 .78rem/1.3 var(--font-ui); text-transform:uppercase; }
.product-detail-grid { display:grid; grid-template-columns:1fr; gap:22px; }
.feature-ticks { padding-left:20px; }
.feature-ticks li { margin:9px 0; }
.product-topic-list { display:grid; grid-template-columns:1fr; gap:8px; padding-left:30px; }
.product-topic-list li { padding:8px 10px; border-bottom:1px solid var(--line); }
.product-answer-list { list-style:none; padding:0; }
.product-answer-list li { display:flex; flex-direction:column; gap:4px; padding:13px 0; border-bottom:1px solid var(--line); }
.product-answer-list a { font-weight:800; }
.product-answer-list span { color:var(--muted); font:700 .75rem/1.3 var(--font-ui); }
.product-action-panel { display:grid; grid-template-columns:1fr; gap:18px; padding:26px; border:1px solid var(--accent-soft); border-radius:var(--radius); background:var(--accent-tint); }
.product-interest-form { display:grid; grid-template-columns:1fr; gap:11px; max-width:620px; }
.product-interest-form label:not(.check-label) { display:grid; gap:6px; font:800 .76rem/1.2 var(--font-ui); }
.product-interest-form input[type=email] { min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:500 1rem/1 var(--font-ui); }
.original-question-list { display:grid; gap:12px; }
.original-question { display:flex; flex-direction:column; align-items:flex-start; gap:14px; padding:18px; border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:var(--radius-sm); background:var(--surface); }
.original-question h3 { margin:10px 0 8px; }
.original-question p { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.original-question p span { padding:4px 7px; border-radius:999px; background:var(--surface-2); color:var(--muted); font:700 .69rem/1 var(--font-ui); }
@media (min-width:720px) {
  .model-answer-grid,.product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .argument-map { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .annotated-paragraph { grid-template-columns:minmax(0,2fr) minmax(220px,.8fr); }
  .source-basis,.product-detail-grid { grid-template-columns:minmax(0,1.4fr) minmax(260px,.8fr); align-items:start; }
  .product-topic-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .original-question { flex-direction:row; align-items:center; justify-content:space-between; }
}
@media (min-width:900px) {
  .model-answer-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .model-answer-hero,.product-hero { grid-template-columns:minmax(0,1fr) auto; align-items:center; }
}

/* Exam countdown */
.exam-countdown-grid { display:grid; grid-template-columns:1fr; gap:12px; }
.exam-countdown-card { position:relative; padding:18px; border:1px solid var(--line); border-top:4px solid var(--accent); border-radius:var(--radius-sm); background:var(--surface); }
.exam-countdown-card h3 { margin:9px 0 4px; font-size:1rem; }
.exam-countdown-card p { margin:0 0 13px; color:var(--muted); font:600 .78rem/1.35 var(--font-ui); }
.exam-countdown-card > strong { display:block; color:var(--accent-strong); font:900 1.35rem/1 var(--font-ui); }
.exam-countdown-card.is-next { outline:3px solid var(--accent-soft); }
.exam-countdown-card.is-complete { opacity:.64; }
@media (min-width:700px) { .exam-countdown-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.product-home-band,.newsletter-band { display:grid; grid-template-columns:1fr; gap:24px; padding:28px; border-radius:var(--radius); }
.product-home-band { background:linear-gradient(135deg,var(--brand-900),#153c62); color:#fff; }
.product-home-band .section-title,.product-home-band .eyebrow { color:#fff; }
.product-home-band .section-lead { color:#d7e8f8; }
.product-home-band .btn-ghost { border-color:#a9c7e4; color:#fff; }
.product-home-stat { display:flex; flex-direction:column; justify-content:center; max-width:240px; }
.product-home-stat strong { font:900 4.5rem/.9 var(--font-ui); }
.product-home-stat span { margin-top:8px; color:#d7e8f8; font:700 .8rem/1.4 var(--font-ui); }
.newsletter-band { border:1px solid var(--line); background:var(--surface-2); }
.newsletter-form { display:grid; grid-template-columns:1fr; gap:11px; align-content:start; }
.newsletter-form > label:first-of-type { display:grid; gap:6px; font:800 .76rem/1.2 var(--font-ui); }
.newsletter-form input[type=email] { min-height:50px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; background:var(--surface); color:var(--ink); font:500 1rem/1 var(--font-ui); }
.newsletter-form .microcopy { margin:0; }
@media (min-width:760px) { .product-home-band,.newsletter-band { grid-template-columns:minmax(0,1.5fr) minmax(260px,.7fr); align-items:center; } }

/* In-depth material now sits directly inside the AO1 and AO2 reading flow. */
.ao-detail-sections { margin:30px 0 42px; border-top:3px solid var(--accent); }
.ao-detail-section { padding:28px 0 30px; border-bottom:1px solid var(--line); }
.ao-detail-title { margin:0 0 13px; color:var(--ink); font-size:1.17rem; line-height:1.3; }
.ao-detail-body > :first-child { margin-top:0; }
.ao-detail-body > :last-child { margin-bottom:0; }
@media print {
  .ao-detail-sections { border-top:1pt solid #777; }
  .ao-detail-section { padding:4mm 0; break-inside:avoid; }
}
.debate-lenses { margin:30px 0; }
.debate-lenses > h2 { margin-top:5px; }
.debate-lens { margin:18px 0; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); overflow:hidden; }
.debate-lens > header { padding:17px 19px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.debate-lens > header span { color:var(--accent-strong); font:800 .67rem/1 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.debate-lens > header h3 { margin:7px 0 0; }
.debate-lens-grid { display:grid; grid-template-columns:1fr; }
.debate-lens-grid section { padding:18px 19px; }
.debate-lens-grid section + section { border-top:1px solid var(--line); }
.debate-lens h4,.debate-lens footer strong { color:var(--accent-strong); font:800 .7rem/1 var(--font-ui); letter-spacing:.07em; text-transform:uppercase; }
.debate-lens p { margin:7px 0 0; }
.debate-lens footer { padding:17px 19px; border-top:1px solid var(--accent-soft); background:var(--accent-tint); }
@media (min-width:720px) { .debate-lens-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .debate-lens-grid section + section { border-top:0; border-left:1px solid var(--line); } }

/* Official OCR H573 hub */
.ocr-hub-hero { padding-top:42px; }
.ocr-hub-hero h1 { max-width:980px; }
.ocr-paper-grid { display:grid; grid-template-columns:1fr; gap:16px; }
.ocr-paper-card { padding:22px; border:1px solid var(--line); border-top:5px solid var(--accent); border-radius:var(--radius); background:var(--surface); }
.ocr-paper-card h2 { margin:10px 0 8px; }
.ocr-paper-card > p,.ocr-paper-card li { color:var(--muted); }
.ocr-paper-card ul { padding-left:20px; }
.ocr-paper-card li { margin:7px 0; }
.official-resource-grid .resource-card { min-height:230px; }
.ocr-secondary-links { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.ocr-secondary-links a { display:inline-flex; padding:9px 12px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--accent-strong); font:800 .74rem/1.2 var(--font-ui); }
.ocr-report-band { display:grid; grid-template-columns:1fr; gap:24px; align-items:start; }
@media (min-width:760px) { .ocr-paper-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } .ocr-report-band { grid-template-columns:minmax(0,1.45fr) minmax(260px,.55fr); } }
.page-ocr-hub .table-scroll { margin:20px 0; }
.page-ocr-hub .data td:first-child { min-width:230px; }

/* Homepage launch paths and refreshed editorial hero */
.home-hero { background:radial-gradient(circle at 78% 18%,rgba(45,196,226,.17),transparent 27%),radial-gradient(circle at 5% 90%,rgba(255,191,71,.11),transparent 25%),linear-gradient(128deg,var(--brand-950) 0%,var(--brand-900) 60%,#0b416f 100%); }
.home-hero h1 > span { color:#70ddf1; }
.home-launchpad { position:relative; z-index:3; display:grid; grid-template-columns:1fr; gap:10px; margin-top:-30px; }
.home-launchpad > a { display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:11px; align-items:start; min-height:132px; padding:18px; border:1px solid var(--line); border-top:5px solid var(--accent); border-radius:var(--radius-sm); background:var(--surface); box-shadow:var(--shadow-sm); color:var(--ink); text-decoration:none; transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.home-launchpad > a:nth-child(1) { --accent:#5a3f9b; }
.home-launchpad > a:nth-child(2) { --accent:#0d6aa8; }
.home-launchpad > a:nth-child(3) { --accent:#007294; }
.home-launchpad > a:nth-child(4) { --accent:#1261a6; }
.home-launchpad > a:hover { transform:translateY(-3px); border-color:var(--accent); box-shadow:var(--shadow); }
.home-launchpad > a > span { color:var(--accent); font:950 .7rem/1 var(--font-ui); letter-spacing:.08em; }
.home-launchpad small { display:block; margin-bottom:5px; color:var(--muted); font:850 .65rem/1 var(--font-ui); letter-spacing:.08em; text-transform:uppercase; }
.home-launchpad strong { display:block; font:900 1rem/1.2 var(--font-ui); }
.home-launchpad p { margin:7px 0 0; color:var(--muted); font-size:.78rem; line-height:1.4; }
.home-launchpad b { align-self:center; color:var(--accent); font:900 1.2rem/1 var(--font-ui); }
.home-launchpad + .study-section { margin-top:0; }
@media (min-width:620px) { .home-launchpad { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1020px) { .home-launchpad { grid-template-columns:repeat(4,minmax(0,1fr)); } }

/* Examiner-designed AI essay-review workflow */
.essay-review-hero { display:grid; grid-template-columns:1fr; gap:28px; padding:48px 0 30px; }
.essay-review-hero h1 { max-width:900px; margin:8px 0 14px; font-size:clamp(2.2rem,6vw,4.4rem); line-height:.98; letter-spacing:-.045em; }
.essay-review-hero .lead { max-width:760px; }
.hero-trust { display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; color:var(--muted); font:700 .76rem/1.45 var(--font-ui); }
.marker-score-demo { display:flex; flex-direction:column; justify-content:center; gap:10px; width:min(320px,100%); min-height:250px; padding:30px; border-radius:22px; background:linear-gradient(145deg,var(--brand-900),#133e66); box-shadow:0 24px 55px rgba(4,24,43,.22); color:#fff; }
.marker-score-demo > span { color:#9ed8f6; font:900 .7rem/1 var(--font-ui); letter-spacing:.12em; text-transform:uppercase; }
.marker-score-demo strong { display:flex; justify-content:space-between; align-items:baseline; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.16); font:800 1.05rem/1 var(--font-ui); }
.marker-score-demo b { font:900 1.75rem/1 var(--font-ui); }
.marker-score-demo small { color:#d7e8f8; font:700 .75rem/1.45 var(--font-ui); }
.marker-steps { display:grid; grid-template-columns:1fr; gap:13px; }
.marker-steps article { padding:20px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface); }
.marker-steps article > span { display:inline-flex; margin-bottom:20px; color:var(--accent-strong); font:900 .72rem/1 var(--font-ui); letter-spacing:.12em; }
.marker-steps h3 { margin:0 0 7px; }
.marker-steps p { margin:0; color:var(--muted); font-size:.9rem; }
.marker-workspace { scroll-margin-top:88px; padding:clamp(22px,5vw,40px); border:1px solid var(--accent-soft); border-radius:var(--radius); background:linear-gradient(155deg,var(--accent-tint),var(--surface) 42%); }
.marker-form-intro { max-width:780px; margin-bottom:25px; }
.marker-form-intro p:last-child { color:var(--muted); }
.marker-form { display:grid; gap:20px; max-width:980px; }
.marker-form > label { display:grid; gap:8px; color:var(--ink); font:850 .82rem/1.35 var(--font-ui); }
.marker-form .field-help { color:var(--muted); font:600 .76rem/1.4 var(--font-ui); }
.marker-form input[type=text],.marker-form select,.marker-form textarea { width:100%; min-width:0; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--ink); font:500 .98rem/1.55 var(--font-ui); }
.marker-form input[type=text],.marker-form select { min-height:50px; padding:10px 12px; }
.marker-form textarea { min-height:390px; padding:16px; resize:vertical; font-family:var(--font-body); line-height:1.65; }
.marker-form input:focus,.marker-form select:focus,.marker-form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); outline:0; }
.key-row { display:grid; grid-template-columns:1fr; gap:9px; }
.credit-balance,.marker-word-count { min-height:18px; color:var(--accent-strong); font:800 .74rem/1.35 var(--font-ui); }
.marker-word-count { justify-self:end; color:var(--muted); }
.marker-word-count.is-short { color:var(--bad); }
.marker-consents { display:grid; gap:12px; margin:0; padding:18px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-2); }
.marker-consents legend { padding:0 6px; font:900 .78rem/1 var(--font-ui); }
.marker-consents .check-label { align-items:flex-start; }
.marker-consents input { margin-top:3px; }
.marker-consents a { font-weight:800; }
.marker-submit-row { display:flex; flex-wrap:wrap; align-items:center; gap:13px; }
.marker-submit-row [role=status] { color:var(--muted); font:750 .8rem/1.4 var(--font-ui); }
.marker-form button:disabled { cursor:wait; opacity:.62; }
.marker-results { scroll-margin-top:100px; margin:38px 0; padding:clamp(22px,5vw,42px); border:1px solid var(--accent-soft); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); }
.marker-results > header { display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; padding-bottom:22px; border-bottom:1px solid var(--line); }
.marker-results > header h2 { max-width:820px; margin:6px 0 0; font-size:clamp(1.15rem,3vw,1.75rem); }
.marker-total { display:grid; grid-template-columns:auto auto; align-items:baseline; min-width:112px; color:var(--accent-strong); }
.marker-total strong { font:950 3.2rem/.9 var(--font-ui); }
.marker-total > span { font:850 1rem/1 var(--font-ui); }
.marker-total small { grid-column:1/-1; margin-top:7px; color:var(--muted); font:800 .68rem/1 var(--font-ui); text-transform:capitalize; }
.marker-disclaimer { margin:18px 0; padding:11px 14px; border-left:4px solid var(--accent); background:var(--accent-tint); color:var(--muted); font:700 .76rem/1.45 var(--font-ui); }
.marker-overview { max-width:850px; margin:28px 0; }
.marker-overview h3 { margin-bottom:7px; }
.marker-overview p { font-size:1.08rem; }
.marker-ao-grid { display:grid; grid-template-columns:1fr; gap:16px; margin:24px 0; }
.marker-ao-card,.marker-feedback-panel { padding:22px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--surface-2); }
.marker-feedback-heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:8px; margin-bottom:13px; }
.marker-feedback-heading h3 { margin:0; font-size:1rem; }
.marker-feedback-heading span { color:var(--accent-strong); font:900 .7rem/1.3 var(--font-ui); letter-spacing:.04em; text-transform:uppercase; }
.marker-rationale { margin:0 0 18px; }
.marker-feedback-columns { display:grid; grid-template-columns:1fr; gap:16px; }
.marker-feedback-columns h4 { margin:0 0 8px; color:var(--accent-strong); font:900 .68rem/1 var(--font-ui); letter-spacing:.07em; text-transform:uppercase; }
.marker-feedback-list { display:grid; gap:9px; margin:0; padding-left:20px; }
.marker-feedback-list li { padding-left:3px; }
.marker-feedback-list li strong,.marker-feedback-list li span,.marker-feedback-list li small { display:block; }
.marker-feedback-list li strong { margin-bottom:4px; }
.marker-feedback-list li span { color:var(--muted); }
.marker-feedback-list li small { margin-top:4px; color:var(--muted); font:650 .73rem/1.4 var(--font-ui); }
.marker-feedback-panel { margin:16px 0; background:var(--surface); }
.marker-next-grid { display:grid; grid-template-columns:1fr; gap:12px; margin:0; padding:0; list-style:none; counter-reset:marker-next; }
.marker-next-grid li { position:relative; padding:17px 17px 17px 52px; border:1px solid var(--line); border-radius:9px; background:var(--surface-2); counter-increment:marker-next; }
.marker-next-grid li::before { content:counter(marker-next); position:absolute; top:15px; left:15px; display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:var(--brand-900); color:#fff; font:900 .7rem/1 var(--font-ui); }
.marker-next-grid p { margin:5px 0; }
.marker-next-grid small { color:var(--muted); }
.marker-cautions { border-left:5px solid #d78a19; }
.marker-clinic blockquote { margin:12px 0; padding:14px 17px; border-left:4px solid var(--accent); background:var(--accent-tint); font-style:italic; }
.marker-redraft-challenge { margin:22px 0; padding:22px; border-radius:var(--radius-sm); background:var(--brand-900); color:#fff; }
.marker-redraft-challenge span { color:#9ed8f6; font:900 .68rem/1 var(--font-ui); letter-spacing:.09em; text-transform:uppercase; }
.marker-redraft-challenge p { margin:9px 0 0; color:#fff; font-size:1.05rem; }
.marker-limitations { margin:18px 0; padding:14px 17px; border:1px solid var(--line); border-radius:9px; }
.marker-limitations summary { cursor:pointer; font:850 .8rem/1.3 var(--font-ui); }
.marker-limitations ul { margin-top:13px; }
.marker-result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:25px; padding-top:20px; border-top:1px solid var(--line); }
.credit-pack-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.credit-pack { position:relative; display:flex; flex-direction:column; padding:22px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }
.credit-pack.featured { border:2px solid var(--accent); transform:translateY(-2px); }
.credit-pack.featured::before { content:"Recommended"; position:absolute; top:12px; right:12px; padding:5px 8px; border-radius:999px; background:var(--accent); color:#fff; font:900 .61rem/1 var(--font-ui); letter-spacing:.06em; text-transform:uppercase; }
.credit-pack > div { display:flex; align-items:baseline; gap:7px; color:var(--accent-strong); }
.credit-pack > div span { font:950 3rem/.9 var(--font-ui); }
.credit-pack > div small { font:850 .75rem/1 var(--font-ui); }
.credit-pack h3 { margin:18px 0 7px; }
.credit-pack p { flex:1; color:var(--muted); font-size:.88rem; }
.credit-pack > strong { display:block; margin:9px 0 16px; font:950 1.5rem/1 var(--font-ui); }
.credit-pending { display:block; padding:11px; border-radius:8px; background:var(--surface-2); color:var(--muted); font:800 .72rem/1.3 var(--font-ui); text-align:center; }
.marker-safeguards { display:grid; grid-template-columns:1fr; gap:24px; }
.marker-safeguards li { margin:9px 0; }
.marker-home-band { display:grid; grid-template-columns:1fr; gap:24px; padding:clamp(24px,5vw,40px); border-radius:var(--radius); background:linear-gradient(135deg,var(--brand-900),#153c62); color:#fff; }
.marker-home-band .eyebrow,.marker-home-band .section-title { color:#fff; }
.marker-home-band .section-lead,.marker-home-band .microcopy { color:#d7e8f8; }
.marker-home-band .btn-ghost { border-color:#a9c7e4; color:#fff; }
.marker-home-stat { display:flex; align-items:center; gap:16px; }
.marker-home-stat strong { font:950 5rem/.85 var(--font-ui); }
.marker-home-stat span { max-width:210px; color:#d7e8f8; font:750 .82rem/1.4 var(--font-ui); }
.shop-page { padding-bottom:clamp(48px,7vw,88px); }
.shop-hero { display:grid; grid-template-columns:1fr; gap:24px; padding:clamp(38px,6vw,70px) 0 34px; }
.shop-hero h1 { max-width:820px; margin:8px 0 14px; font-size:clamp(2.25rem,5.4vw,4.25rem); line-height:1; letter-spacing:-.04em; }
.shop-hero > aside { display:grid; gap:10px; align-content:center; padding:24px; border-radius:var(--radius); background:linear-gradient(145deg,var(--brand-950),var(--brand-700)); color:#fff; box-shadow:var(--shadow); }
.shop-hero > aside strong { font:900 1.1rem/1.2 var(--font-ui); }
.shop-hero > aside span { display:flex; align-items:center; gap:9px; color:#dce8f5; font:700 .84rem/1.35 var(--font-ui); }
.shop-hero > aside span::before { content:"✓"; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:rgba(255,255,255,.13); color:var(--brand-cyan); }
.shop-extra-grid { display:grid; grid-template-columns:1fr; gap:14px; }
.shop-extra-card { display:flex; flex-direction:column; padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow-sm); }
.shop-extra-card > span { width:max-content; padding:5px 8px; border-radius:999px; background:var(--accent-tint); color:var(--accent-strong); font:800 .66rem/1 var(--font-ui); letter-spacing:.05em; text-transform:uppercase; }
.shop-extra-card h3 { margin:13px 0 7px; }
.shop-extra-card p { flex:1; color:var(--muted); font-size:.9rem; }
.shop-extra-card a { margin-top:14px; font:850 .82rem/1.3 var(--font-ui); }
.affiliate-disclosure { margin:0 0 16px; padding:16px 18px; border-left:4px solid var(--brand-gold); background:var(--surface-2); color:var(--muted); font-size:.84rem; }
.affiliate-disclosure strong { color:var(--ink); }
@media (min-width:620px) {
  .key-row { grid-template-columns:minmax(0,1fr) auto; }
  .marker-feedback-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .marker-next-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .credit-pack-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .shop-extra-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:760px) {
  .marker-steps { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .marker-ao-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .marker-home-band { grid-template-columns:minmax(0,1.5fr) minmax(240px,.5fr); align-items:center; }
  .marker-safeguards { grid-template-columns:minmax(0,1.4fr) minmax(260px,.6fr); align-items:start; }
}
@media (min-width:900px) {
  .essay-review-hero { grid-template-columns:minmax(0,1fr) 320px; align-items:center; }
  .credit-pack-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .shop-hero { grid-template-columns:minmax(0,1.55fr) minmax(250px,.45fr); align-items:center; }
}
@media print {
  .page-essay-review .site-header,.page-essay-review .drawer,.page-essay-review .revbar,.page-essay-review .site-footer,.page-essay-review .essay-review-page > :not(.marker-results),.page-essay-review .marker-result-actions { display:none !important; }
  .page-essay-review .marker-results { display:block !important; margin:0; padding:0; border:0; box-shadow:none; }
  .page-essay-review .marker-ao-card,.page-essay-review .marker-feedback-panel { break-inside:avoid; }
}
.site-footer { margin-top:0; background:var(--brand-950); border-top:5px solid var(--brand-cyan); color:#fff; }
.site-footer .brand { color:#fff !important; }
.site-footer .footer-heading { color:#9fb5ca; }
.site-footer a { color:#fff; }
.site-footer a:hover { color:var(--brand-cyan); }
.site-footer .foot-note { color:#b9c8d7; border-color:#294663; }
:focus-visible { outline:3px solid #ffbf47; outline-offset:3px; }
@media (min-width:1024px) { .mobile-toc { display:none; } .layout { grid-template-columns:minmax(0,1fr) 270px; } .toc-side { display:block; top:92px; } }
@media (min-width:1200px) { .nav-links { display:flex; } .menu-toggle { display:none; } .drawer { display:none !important; } .nav-actions { margin-left:8px; } }
@media (min-width:768px) { .revbar { display:none; } body { padding-bottom:0; } }
