/* Finance Guide: fynbos green, marigold gold, Bricolage Grotesque display, Inter text. Light-first, follows the system theme. */
@font-face { font-family: "Bricolage"; src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --bg: #F6F7F2; --surface: #FFFFFF; --surface-2: #EEF2EA; --ink: #0F1F17; --ink-2: #2B3B32; --muted: #5B6B62;
  --line: #E1E7DD; --line-2: #CAD4C6;
  --brand: #0F4C3A; --brand-2: #12805C; --brand-soft: #E1F0E7;
  --gold: #F4B740; --gold-soft: #FDF0CF; --gold-ink: #6B4A00;
  --good: #12805C; --bad: #B4412F; --bad-soft: #FBE8E3; --warn: #7A5300; --warn-soft: #FFF5DC;
  --night: #0F4C3A; --on-night: #F1F7F3; --on-night-muted: rgba(241, 247, 243, .74);
  --shadow-sm: 0 1px 2px rgba(15, 31, 23, .06), 0 2px 8px rgba(15, 31, 23, .04);
  --shadow: 0 2px 6px rgba(15, 31, 23, .05), 0 14px 36px rgba(15, 31, 23, .08);
  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px; --read: 720px; --r-sm: 10px; --r: 16px; --r-lg: 24px;
  --link: var(--brand-2);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1511; --surface: #111E18; --surface-2: #16261F; --ink: #E8F1EB; --ink-2: #C6D4CB; --muted: #93A69A;
    --line: #1F3229; --line-2: #2D4438;
    --brand: #1A6B52; --brand-2: #5FD3A4; --brand-soft: #12302A;
    --gold: #F6C25B; --gold-soft: #2E2612; --gold-ink: #F6C25B;
    --good: #5FD3A4; --bad: #F09A88; --bad-soft: #351C17; --warn: #F0C76A; --warn-soft: #2A2312;
    --night: #0E3A2D; --on-night: #EAF4EE;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 14px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1511; --surface: #111E18; --surface-2: #16261F; --ink: #E8F1EB; --ink-2: #C6D4CB; --muted: #93A69A;
  --line: #1F3229; --line-2: #2D4438;
  --brand: #1A6B52; --brand-2: #5FD3A4; --brand-soft: #12302A;
  --gold: #F6C25B; --gold-soft: #2E2612; --gold-ink: #F6C25B;
  --good: #5FD3A4; --bad: #F09A88; --bad-soft: #351C17; --warn: #F0C76A; --warn-soft: #2A2312;
  --night: #0E3A2D; --on-night: #EAF4EE;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 14px 40px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; font: 17px/1.7 var(--sans); color: var(--ink); background: var(--bg); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
a:hover { color: var(--ink); text-decoration-color: var(--gold); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 99; border-radius: var(--r-sm); }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; }
::selection { background: var(--gold); color: #1B1300; }

/* Gold highlighter on key words */
.hl { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--gold) 70%, transparent) 58%, color-mix(in srgb, var(--gold) 70%, transparent) 92%, transparent 92%); padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-2); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }
.text-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.text-link:hover { color: var(--brand-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(15, 31, 23, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; min-height: 72px; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; }
.brand:hover { color: var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; flex: none; display: block; }
.wordmark-text { font: 700 23px/1 var(--display); letter-spacing: -.035em; color: var(--ink); }
.wordmark-text b { font-weight: 700; color: var(--brand-2); }
.header-right { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { margin: 0; }
.nav-item > a, .mega > summary { display: block; padding: 9px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font: 500 15px/1.2 var(--sans); cursor: pointer; list-style: none; transition: background .15s, color .15s; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .15s; }
.mega[open] > summary::after { transform: translateY(0) rotate(-135deg); }
.nav-item > a:hover, .mega > summary:hover, .mega[open] > summary { background: var(--surface-2); color: var(--ink); }
.nav-item > a[aria-current], .mega > summary[aria-current] { color: var(--brand-2); }
.search-open { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 14px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; margin-left: 8px; box-shadow: var(--shadow-sm); }
.search-open:hover { border-color: var(--line-2); color: var(--ink); }
.search-open kbd { font: 600 11px var(--sans); background: var(--surface-2); border-radius: 6px; padding: 2px 7px; color: var(--muted); }

/* Mega menus */
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(15, 31, 23, .12); }
.mega-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: 340px; }
.mega-rail { list-style: none; margin: 0; padding: 22px 18px 22px 0; border-right: 1px solid var(--line); }
.mega-rail li { margin: 0 0 2px; }
.mega-tab { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 500 15px var(--sans); }
.mega-tab .icon { width: 20px; height: 20px; color: var(--muted); }
.mega-tab .caret { width: 14px; height: 14px; margin-left: auto; opacity: 0; transition: opacity .15s, transform .15s; }
.mega-tab.is-active { background: var(--brand-soft); color: var(--ink); }
.mega-tab.is-active .icon { color: var(--brand-2); }
.mega-tab.is-active .caret { opacity: 1; transform: translateX(2px); }
.mega-panes { padding: 30px 0 34px 36px; }
.mega-pane[hidden] { display: none; }
.pane-head { display: block; text-decoration: none; color: var(--ink); padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.pane-head img { display: none; }
.pane-text { display: flex; flex-direction: column; gap: 6px; }
.pane-kicker { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); }
.pane-title { font: 700 28px/1.1 var(--display); letter-spacing: -.03em; }
.pane-blurb { font-size: 15px; color: var(--muted); max-width: 56ch; }
.pane-cta { font-weight: 600; font-size: 14px; color: var(--ink); }
.pane-head:hover .pane-cta { color: var(--brand-2); }
.pane-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pane-cols ul, .guide-links { list-style: none; padding: 0; margin: 0; }
.pane-cols li, .guide-links li { margin: 0 0 10px; line-height: 1.4; }
.pane-cols a, .guide-links a { color: var(--ink); text-decoration: none; font-size: 15px; }
.pane-cols a:hover, .guide-links a:hover { color: var(--brand-2); }
.mega-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 12px; }
.mega-h .icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--brand-2); }
.mega-kick { display: block; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.guides-layout { display: grid; grid-template-columns: 1fr 1fr 300px; gap: 40px; padding-top: 32px; padding-bottom: 36px; }
.guide-links li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.guides-card { background: var(--night); color: var(--on-night); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-self: start; position: relative; overflow: hidden; }
.guides-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: var(--gold); opacity: .18; }
.guides-card p { margin: 0; color: var(--on-night-muted); font-size: 15px; }
.guides-card .guides-card-title { font: 700 21px/1.2 var(--display); color: var(--on-night); }
.guides-card .btn { background: var(--gold); color: #1B1300; border-color: var(--gold); align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; }
.guides-card .btn .icon { width: 16px; height: 16px; }
.guides-card-link { color: var(--on-night); font-size: 14px; font-weight: 600; text-decoration: none; }
.guides-card-link:hover { color: var(--gold); }

/* Mobile menu */
.mobilenav { display: none; }
@media (max-width: 900px) {
  .mainnav { display: none; }
  .mobilenav { display: block; }
  .mobilenav > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--sans); padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); }
  .mobilenav > summary::-webkit-details-marker { display: none; }
  .mobilenav > summary .icon { width: 18px; height: 18px; }
  .mobilenav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 22px; box-shadow: 0 24px 48px rgba(15, 31, 23, .14); max-height: calc(100vh - 80px); overflow-y: auto; }
  .mobilenav-panel ul { list-style: none; padding: 0; margin: 0; }
  .mobilenav-panel li { padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .mobilenav-panel a { color: var(--ink); text-decoration: none; }
  .mobilenav-panel .mega-h { margin: 18px 0 2px; font-size: 12px; }
  .mobile-profs li { padding: 0 !important; }
  .mobile-profs a { display: flex; align-items: center; gap: 12px; padding: 13px 2px; font-size: 16px; font-weight: 500; }
  .mobile-profs .icon { width: 20px; height: 20px; color: var(--brand-2); }
  .mobile-profs .caret { width: 14px; height: 14px; margin-left: auto; color: var(--muted); }
  .mobilenav-pages { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px !important; }
  .mobilenav-pages li { border-bottom: 0 !important; padding: 4px 0 !important; }
  .mobilenav-pages a { font-size: 14px; color: var(--muted) !important; font-weight: 600; }
  .search-open { padding: 9px; margin-left: 0; } .search-open-label, .search-open kbd { display: none; }
}
@media (max-width: 420px) { .wordmark-text { font-size: 20px; } .brand-mark { width: 32px; height: 32px; } .wordmark { gap: 8px; } }
/* Small phones (iPhone SE etc.): icon-only menu button so the header never clips */
@media (max-width: 400px) { .mobilenav > summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .mobilenav > summary { padding: 10px; } .header-right { gap: 6px; } .wordmark-text { font-size: 19px; } }

/* ---------- Layout + type ---------- */
main.wrap { padding-top: 40px; padding-bottom: 112px; }
.content { max-width: var(--read); margin: 0; min-width: 0; }
.type-home .content, .type-hub .content { max-width: none; }
.page-grid { display: grid; grid-template-columns: minmax(0, var(--read)) minmax(220px, 280px); justify-content: space-between; gap: 64px; }
.page-aside { padding-top: 120px; }
.aside-inner { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 16px; }
.aside-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.aside-toc, .aside-nav { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.4; }
.aside-toc li, .aside-nav li { margin: 0; }
.aside-toc a, .aside-nav a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.aside-toc a:hover, .aside-nav a:hover { background: var(--surface-2); color: var(--ink); }
.aside-toc a.is-active, .aside-nav a[aria-current] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.aside-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 1081px) { .page-grid .content > .toc { display: none; } }
@media (max-width: 1080px) { .page-grid { grid-template-columns: minmax(0, 1fr); } .page-aside { display: none; } }

h1, h2, h3, h4, .newsletter-title, .related-title { font-family: var(--display); color: var(--ink); font-weight: 700; letter-spacing: -.03em; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; margin: 14px 0 22px; letter-spacing: -.04em; }
h2 { font-size: clamp(25px, 3vw, 31px); line-height: 1.15; margin: 64px 0 16px; }
h3 { font-size: 21px; line-height: 1.25; margin: 36px 0 10px; letter-spacing: -.02em; }
h4 { font-size: 16px; letter-spacing: -.01em; }
p, ul, ol { margin: 0 0 20px; }
li { margin-bottom: 7px; }
.content > ul li::marker, .content > ol li::marker { color: var(--brand-2); font-weight: 600; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 19px; color: var(--ink-2); }
code { font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; font-size: 15px; }
pre code { background: none; padding: 0; }
.content a:not(.btn):not(.prof-card):not(.sr-item):not(.tool-card) { font-weight: 500; }

/* Breadcrumbs, byline */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-2); }
.byline { display: flex; gap: 12px; align-items: center; font-size: 15px; margin-bottom: 18px; }
.byline span { display: block; }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.byline-photo { border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.disclosure { font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 32px; }
.disclosure a { color: var(--ink); }

/* TOC (mobile/tablet) */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 28px 0 40px; }
.toc summary { font: 600 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; color: var(--muted); }
.toc ol { margin: 10px 0 2px; padding-left: 20px; font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: 999px; padding: 11px 20px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .btn:hover { color: #0B1511; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:hover { color: #0B1511; } }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 28px 0 36px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
th { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; background: var(--surface-2); }
tbody tr:hover td { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }

/* ---------- Article components ---------- */
.verdict { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 10px; margin: 36px 0 44px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.verdict::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--brand-2), var(--gold)); }
.verdict-title { font: 700 20px var(--display); letter-spacing: -.02em; margin: 0 0 6px; }
.verdict ul { list-style: none; padding: 0; margin: 0; }
.verdict li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.verdict li:first-child { border-top: 0; }
.verdict li > span:first-child { flex: 1 1 300px; }
.verdict .pick-label { display: inline-block; font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-ink); background: var(--gold-soft); padding: 3px 8px; border-radius: 6px; margin-bottom: 4px; }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.pros, .cons { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.pros h4, .cons h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-family: var(--sans); }
.pros h4 { color: var(--good); } .cons h4 { color: var(--bad); }
.pros ul, .cons ul { margin: 0; padding-left: 18px; font-size: 15px; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.callout { padding: 18px 22px; margin: 32px 0; background: var(--brand-soft); border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--brand-2) 22%, transparent); }
.callout-compliance { background: var(--warn-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.callout p { font-size: 15.5px; } .callout p:last-child { margin-bottom: 0; }
.test-notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 18px; margin: 20px 0; font-size: 15px; }
.score { display: inline-block; font-weight: 700; color: var(--brand-2); font-size: 15px; }
figure { margin: 36px 0; }
figure img { border-radius: var(--r); display: block; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
figcaption a { color: var(--muted); }
.compare-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 640px) { .compare-pair { grid-template-columns: 1fr; } }
mark.todo, .todo { background: #FFE58A; color: #3B2F00; padding: 0 4px; border-radius: 4px; }
.article-hero { margin: 4px 0 30px; }
.article-hero img, .hub-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); display: block; }
.article-hero.is-shot img { object-position: top; border: 1px solid var(--line); }
.hub-hero { margin: 8px 0 36px; }
.hub-hero img { aspect-ratio: 21 / 8; }
@media (max-width: 640px) { .hub-hero img { aspect-ratio: 16 / 9; } }
.shot { margin: 28px 0 34px; }
.shot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.inline-photo img { width: 100%; height: auto; display: block; }

/* ---------- Home ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 56px; align-items: center; padding: 28px 0 24px; position: relative; }
.home-hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 26%, transparent), transparent 64%); pointer-events: none; }
.hero-pill { display: inline-flex; align-items: center; gap: 10px; font: 600 13px var(--sans); color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px 7px 10px; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.hero-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px var(--brand-soft); }
.home-hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .96; letter-spacing: -.055em; margin: 0 0 22px; }
.home-hero .lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 7px 7px 18px; max-width: 560px; box-shadow: var(--shadow); margin: 0 0 18px; }
.hero-search:focus-within { border-color: var(--brand-2); }
.hero-search .icon { width: 22px; height: 22px; color: var(--brand-2); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 16px var(--sans); padding: 10px 0; outline: none; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; }
.hero-links a { color: var(--ink-2); text-decoration: none; background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-weight: 500; }
.hero-links a:hover { background: var(--brand-soft); color: var(--ink); }

/* Coming-up calendar card */
.calendar { background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: 22px 22px 14px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.calendar::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid color-mix(in srgb, var(--gold) 22%, transparent); pointer-events: none; }
.calendar-h { display: flex; align-items: center; gap: 8px; font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 8px; }
.calendar ol { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.calendar li { margin: 0; border-top: 1px solid rgba(241, 247, 243, .12); }
.calendar li:first-child { border-top: 0; }
.calendar li > a, .calendar li > div { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 4px; color: var(--on-night); text-decoration: none; border-radius: 12px; }
.calendar li > a:hover { background: rgba(241, 247, 243, .06); }
.cal-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; border-radius: 12px; background: rgba(241, 247, 243, .08); font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--on-night-muted); }
.cal-date b { font: 700 21px/1 var(--display); color: var(--on-night); letter-spacing: -.02em; }
.cal-text { display: flex; flex-direction: column; min-width: 0; }
.cal-text strong { font: 600 15.5px/1.3 var(--sans); }
.cal-text span { font-size: 13px; color: var(--on-night-muted); line-height: 1.4; }
.cal-days { font: 600 12px var(--sans); white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: rgba(241, 247, 243, .1); color: var(--on-night); }
.cal-days.is-soon { background: var(--gold); color: #1B1300; }

.section-label { display: flex; align-items: center; gap: 12px; font: 700 clamp(24px, 3vw, 32px)/1.1 var(--display); letter-spacing: -.035em; color: var(--ink); margin: 88px 0 24px; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Topic cards */
.prof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; }
.prof-card { --tone: var(--brand-soft); --tone-ink: var(--brand-2); display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; min-height: 210px; }
.prof-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.prof-chip { width: 48px; height: 48px; border-radius: 14px; background: var(--tone); color: var(--tone-ink); display: grid; place-items: center; margin-bottom: 10px; }
.prof-icon { width: 26px; height: 26px; }
.prof-name { font: 700 21px/1.15 var(--display); letter-spacing: -.03em; }
.prof-blurb { font-size: 15px; line-height: 1.5; color: var(--muted); }
.prof-more { margin-top: auto; padding-top: 10px; font: 600 14px var(--sans); color: var(--tone-ink); }
.prof-card.tone-1 { --tone: var(--gold-soft); --tone-ink: var(--gold-ink); }
.prof-card.tone-2 { --tone: #E4ECF7; --tone-ink: #2F5A9A; }
.prof-card.tone-3 { --tone: #F6E6EE; --tone-ink: #9A3A68; }
.prof-card.tone-4 { --tone: #FFF0E0; --tone-ink: #A2560E; }
.prof-card.tone-5 { --tone: #E7EEF0; --tone-ink: #2F6370; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prof-card.tone-2 { --tone: #172338; --tone-ink: #9DBBEB; } :root:not([data-theme="light"]) .prof-card.tone-3 { --tone: #33182A; --tone-ink: #EDA1C6; } :root:not([data-theme="light"]) .prof-card.tone-4 { --tone: #33220F; --tone-ink: #F3B67A; } :root:not([data-theme="light"]) .prof-card.tone-5 { --tone: #142A2F; --tone-ink: #8FCAD6; } }
:root[data-theme="dark"] .prof-card.tone-2 { --tone: #172338; --tone-ink: #9DBBEB; } :root[data-theme="dark"] .prof-card.tone-3 { --tone: #33182A; --tone-ink: #EDA1C6; } :root[data-theme="dark"] .prof-card.tone-4 { --tone: #33220F; --tone-ink: #F3B67A; } :root[data-theme="dark"] .prof-card.tone-5 { --tone: #142A2F; --tone-ink: #8FCAD6; }

/* Guide cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { margin: 0; }
.card a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 12px 12px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 8px; background: var(--surface-2); border-radius: 16px; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card-thumb.is-shot img { object-position: top; }
.card a:hover .card-thumb img { transform: scale(1.04); }
.card-kicker, .card-title, .card-desc, .card-meta { padding: 0 8px; }
.card-kicker { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); margin-top: 4px; }
.card-title { font: 700 20px/1.2 var(--display); letter-spacing: -.025em; }
.card-desc { font-size: 15px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 6px; }

/* Free calculators band */
.tools-band { margin: 96px 0 0; padding: clamp(28px, 4vw, 48px); background: var(--night); color: var(--on-night); border-radius: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; align-items: center; position: relative; overflow: hidden; }
.tools-band::before { content: ""; position: absolute; left: -120px; bottom: -160px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 30%, transparent), transparent 65%); }
.tools-band .eyebrow { color: var(--gold); }
.tools-band h2 { color: var(--on-night); margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; }
.tools-band-head { position: relative; }
.tools-band-head p:last-child { color: var(--on-night-muted); margin: 0; }
.tools-band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; position: relative; }
.tool-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r); background: rgba(241, 247, 243, .07); border: 1px solid rgba(241, 247, 243, .14); color: var(--on-night); text-decoration: none; transition: background .2s, transform .2s, border-color .2s; }
.tool-tile:hover { background: rgba(241, 247, 243, .12); border-color: var(--gold); transform: translateY(-2px); color: var(--on-night); }
.tool-tile .icon { width: 28px; height: 28px; color: var(--gold); margin-bottom: 6px; }
.tool-tile strong { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; }
.tool-tile span { font-size: 14.5px; line-height: 1.5; color: var(--on-night-muted); }
.tool-tile em { font-style: normal; font-weight: 600; font-size: 14px; color: var(--gold); margin-top: 6px; }

/* Our standards */
.standards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; margin: 96px 0 0; }
.standards h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 46px); line-height: 1.02; letter-spacing: -.045em; }
.standards-lede { font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.standards-stats { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 26px 0 28px; }
.standards-stats div { margin: 0; }
.standards-stats dt { font: 700 40px/1 var(--display); letter-spacing: -.04em; color: var(--brand-2); }
.standards-stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.standards-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.standards-rules li { display: flex; gap: 16px; margin: 0; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.standards-rules .icon { width: 28px; height: 28px; padding: 8px; box-sizing: content-box; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); }
.standards-rules strong { display: block; font: 700 18px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }
.standards-rules p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Hubs ---------- */
.type-hub .content > h1 { max-width: 20ch; }
.type-hub .content > p:first-of-type { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }
.type-hub .callout { max-width: 820px; }
.guide-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 36px 0 24px; }
.guide-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.guide-tabs::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 14px/1.2 var(--sans); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.guide-filter { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; background: var(--surface); min-width: 240px; }
.guide-filter .icon { width: 16px; height: 16px; color: var(--muted); }
.guide-filter input { border: 0; outline: 0; background: transparent; font: 15px/1.4 var(--sans); color: var(--ink); width: 100%; }
.guide-filter:focus-within { border-color: var(--brand-2); }
.guide-more { text-align: center; margin: 20px 0 8px; }
.guide-browser .card[hidden] { display: none; }
@media (max-width: 640px) { .guide-filter { width: 100%; } }

/* ---------- Newsletter ---------- */
.newsletter { margin: 96px 0 24px; padding: clamp(26px, 4vw, 44px); background: var(--gold-soft); border-radius: 28px; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 34px solid color-mix(in srgb, var(--gold) 35%, transparent); pointer-events: none; }
.newsletter > * { position: relative; max-width: 620px; }
.newsletter-title { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.035em; }
.newsletter > p { color: var(--ink-2); margin: 0 0 16px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.newsletter-form input, .slidein-form input { flex: 1 1 220px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 16px var(--sans); }
.newsletter-form input:focus, .slidein-form input:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }

.fine { font-size: 13px; margin: 0; color: var(--muted); }
.newsletter-done { margin: 4px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 15px; }
.newsletter-error { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; color: var(--bad); }


/* ---------- Article end matter ---------- */
.sources { margin-top: 72px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sources h2 { font-size: 22px; margin: 0 0 4px; }
.sources > p { font-size: 14px; }
.sources ol { font-size: 14px; padding-left: 22px; margin: 0; }
.sources li { margin-bottom: 6px; word-break: break-word; }
.sources li::marker { color: var(--muted); }
.author-box { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; margin: 40px 0 16px; border-top: 1px solid var(--line); }
.author-box img { border-radius: 14px; flex: none; object-fit: cover; }
.author-box p { margin: 0 0 6px; font-size: 15px; }
.author-name { font-weight: 600; }
.author-name a { color: var(--ink); }
.related { margin-top: 48px; }
.related-title { font-size: 24px; margin: 0 0 18px; }
.support-line { font-size: 15px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 32px; }
.changelog { font-size: 13px; color: var(--muted); margin-top: 28px; }
.voices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 36px; }
.voice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0; }
.voice p { margin: 0 0 6px; font-size: 16px; line-height: 1.5; }
.voice cite { font-style: normal; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .voices { grid-template-columns: 1fr; } }

/* Feedback */
.feedback { margin: 56px 0 8px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.feedback-q { margin: 0; font: 700 18px/1.3 var(--display); letter-spacing: -.02em; }
.feedback-btns { display: flex; gap: 10px; }
.feedback-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.feedback-btn:hover { background: var(--surface-2); }
.feedback-btn .icon { width: 18px; height: 18px; }
.feedback-btn.is-chosen { border-color: var(--brand-2); color: var(--brand-2); background: var(--brand-soft); }
.feedback-btn:disabled { cursor: default; }
.feedback-thanks, .feedback-more { margin: 0; flex-basis: 100%; font-size: 15px; color: var(--muted); }
.feedback-ask { margin: 0; flex-basis: 100%; font-size: 14px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); }

/* ---------- Calculators ---------- */
.calc { margin: 28px 0 36px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.calc-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 20px; padding: 22px 24px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.calc-inputs label { display: flex; flex-direction: column; gap: 6px; font: 600 14px/1.35 var(--sans); }
.calc-inputs label span { font-weight: 400; font-size: 13px; color: var(--muted); }
.calc-inputs input[type=number] { margin-top: auto; width: 100%; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 17px var(--sans); font-variant-numeric: tabular-nums; }
.calc-inputs input[type=number]:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.calc-out { padding: 22px 24px 24px; overflow-x: auto; }
.calc-out table { margin: 14px 0 0; }
.calc-out td { padding-left: 0; }
.calc-big { margin: 0; font: 500 15px var(--sans); color: var(--muted); }
.calc-big span { display: block; font: 700 clamp(38px, 6vw, 52px)/1 var(--display); letter-spacing: -.045em; color: var(--brand-2); margin-bottom: 4px; }
.calc-note { margin: 14px 0 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 640px) { .calc-inputs { padding: 18px 16px; } .calc-out { padding: 18px 16px; } .calc-out table { font-size: 14px; } }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.tool-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.tool-card em { font: 600 12px var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.tool-card strong { display: block; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; margin: 6px 0 6px; }
.tool-card span { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-night); padding: 64px 0 28px; font-size: 15px; margin-top: 24px; }
.site-footer .wordmark-text { color: var(--on-night); }
.site-footer .wordmark-text b { color: var(--gold); }
.site-footer .brand-mark rect { fill: #0A3328; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid p { margin-bottom: 10px; color: var(--on-night-muted); }
.footer-grid li { margin-bottom: 8px; }
.footer-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold) !important; margin-bottom: 12px; }
.brand-footer { margin-bottom: 14px; }
.site-footer a, .site-footer .linklike { color: var(--on-night-muted); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--on-night); text-decoration: underline; text-decoration-color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(241, 247, 243, .14); margin-top: 48px; padding-top: 20px; font-size: 13px; color: var(--on-night-muted); }
.footer-follow { margin: 24px 0 10px; }
.footer-social { display: flex; gap: 10px; margin: 0; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(241, 247, 243, .2); border-radius: 999px; }
.footer-social .icon { width: 20px; height: 20px; }

/* ---------- Overlays ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; font-size: 15px; box-shadow: 0 24px 60px rgba(15, 31, 23, .2); }
.consent p { margin: 0 0 12px; }
.consent-actions { display: flex; gap: 8px; justify-content: flex-end; }
.draft-banner { background: var(--bad); color: #fff; text-align: center; font-weight: 600; padding: 8px 16px; font-size: 14px; }

.search-active, .search-active body { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.search-panel { max-width: 760px; margin: 9vh auto 64px; padding: 0 16px; }
.search-bar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px 14px 20px; box-shadow: var(--shadow); }
.search-bar .icon { width: 26px; height: 26px; color: var(--brand-2); }
.search-bar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 clamp(20px, 3vw, 26px)/1.2 var(--display); letter-spacing: -.02em; outline: none; }
.search-bar input::placeholder { color: var(--muted); opacity: .75; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-close { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 5px 10px; font: 600 12px var(--sans); cursor: pointer; }
.search-body { padding-top: 24px; }
.sr-h { font: 600 12px var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 8px 0 12px; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.sr-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 14px var(--sans); cursor: pointer; }
.sr-chip:hover { border-color: var(--brand-2); color: var(--brand-2); }
.sr-list { display: flex; flex-direction: column; gap: 4px; }
.sr-item { display: block; padding: 14px 16px; border-radius: 14px; color: var(--ink); text-decoration: none; }
.sr-item:hover, .sr-item.is-active { background: var(--surface); box-shadow: var(--shadow-sm); }
.sr-kicker { display: block; font: 600 11px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--brand-2); margin-bottom: 3px; }
.sr-title { display: block; font: 700 19px/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 4px; }
.sr-snip { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); }
.sr-item mark { background: var(--gold-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.sr-empty { color: var(--muted); font-size: 16px; }

.slidein { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(360px, calc(100vw - 32px)); padding: 20px 22px 22px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(15, 31, 23, .22); opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.slidein.is-in { opacity: 1; transform: none; }
.slidein-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; }
.slidein-close:hover { background: var(--surface-2); color: var(--ink); }
.slidein-close .icon { width: 18px; height: 18px; }
.slidein-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.slidein-kicker .icon { width: 16px; height: 16px; }
.slidein-title { margin: 0 32px 6px 0; font: 700 20px/1.2 var(--display); letter-spacing: -.02em; }
.slidein-text { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.slidein-form { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .slidein { right: 16px; bottom: 16px; padding: 16px 18px 18px; } .slidein-text { display: none; } }

/* Support (unlisted page) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 12px; }
.tier { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; }
.tier-amount { font: 700 28px/1.1 var(--display); }
.tier-note { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .tiers { grid-template-columns: 1fr; } }
.donate { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 24px; margin: 28px 0 36px; max-width: 560px; }
.donate-amounts { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.donate-chip { position: relative; cursor: pointer; }
.donate-chip input { position: absolute; opacity: 0; pointer-events: none; }
.donate-chip span { display: inline-block; min-width: 84px; text-align: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font: 700 18px var(--display); }
.donate-chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.donate-custom { display: none; align-items: center; gap: 8px; margin: 0 0 18px; }
.donate-custom.is-open { display: flex; }
.donate-custom input { width: 140px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: 600 18px var(--sans); background: var(--bg); color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .home-hero { grid-template-columns: 1fr; gap: 36px; }
  .calendar { max-width: 560px; }
  .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools-band, .standards { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 1080px) { .guides-layout { grid-template-columns: 1fr 1fr; } .guides-card { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  main.wrap { padding-top: 24px; }
  .prof-grid { grid-template-columns: 1fr; gap: 12px; }
  .prof-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; padding: 16px 18px; }
  .prof-chip { margin: 0; width: 44px; height: 44px; }
  .prof-name { flex: 1; font-size: 19px; }
  .prof-blurb { flex-basis: 100%; }
  .prof-more { padding-top: 2px; }
  .section-label { margin-top: 64px; }
  .tools-band { border-radius: 24px; margin-top: 72px; }
  .breadcrumbs li[aria-current] { display: none; }
  .hero-search .btn { padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .consent, .newsletter, .toc, .slidein, .feedback { display: none; } }
