/* Idiot Index — editorial field guide styles */
:root {
  color-scheme: light;
  --bg: #f5f3ec;
  --surface: #fffdf8;
  --surface-2: #f9f8f2;
  --ink: #141a2c;
  --ink-soft: #3b4356;
  --muted: #5b6474;
  --rule: #dfddd3;
  --rule-strong: #cfd1c8;
  --accent: #1f3a96;
  --accent-soft: #e4e8f6;
  --gold: #f2c14e;
  --c-cash: #14806c;
  --c-expert: #4a50c0;
  --c-labor: #be4f3c;
  --c-moat: #8e4a9f;
  --c-demand: #8a6110;
  --radius: 12px;
  --shadow: 0 4px 0 #e9e7dc;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --page: min(1180px, calc(100% - 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2d55d6; outline-offset: 2px; border-radius: 4px; }

.page { width: var(--page); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Kickers / labels */
.kicker { font: 700 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker .num { color: var(--muted); margin-right: 4px; }
.text-link { color: var(--accent); font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 243, 236, .92); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .page { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 850; font-size: 21px; letter-spacing: -.06em; }
.brand img { width: 30px; height: 30px; }
.brand .dot { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; font-size: 13.5px; font-weight: 650; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.site-nav .nav-cta { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 7px; text-decoration: none !important; }
.site-nav .nav-cta:hover { background: #172d78; color: #fff; }

/* Hero */
.hero { text-align: center; padding: 56px 0 44px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 9px; }
.hero .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(48px, 8vw, 104px); line-height: .98; letter-spacing: -.075em; font-weight: 850; margin: 16px 0 18px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -.05em; padding-right: .04em; }
.hero .lede { max-width: 590px; margin: 0 auto; font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); }
.hero .support { margin-top: 14px; font-size: 13px; color: var(--muted); font-family: var(--mono); letter-spacing: .02em; }
.hero .support b { color: var(--ink); font-weight: 700; }

/* Sections */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.045em; line-height: 1.1; margin-top: 4px; }
.section-head p { color: var(--muted); margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Map toolbar */
.map-panel { overflow: hidden; }
.toolbar { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.field { display: flex; align-items: center; min-height: 42px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 7px; }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-field { padding: 0 10px; gap: 9px; }
.search-field svg { width: 18px; height: 18px; flex: none; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 10px 0; font-size: 14.5px; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
kbd { font: 600 11px/1 var(--mono); padding: 4px 7px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: var(--surface); }
.field select, .axis-select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23141a2c' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center; padding: 10px 32px 10px 12px; font-weight: 650; font-size: 13.5px; outline: none; }
.btn-ghost { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 13px; padding: 10px 6px; border-radius: 6px; }
.btn-ghost:hover { text-decoration: underline; text-underline-offset: 3px; }

.map-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; padding: 16px; }
.chart-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.count { font: 700 11px/1 var(--mono); color: var(--muted); letter-spacing: .06em; }
.axis-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.axis-select { display: inline-flex; align-items: center; background: var(--accent-soft); border-radius: 6px; padding-left: 9px; }
.axis-select span { font: 800 11px/1 var(--mono); color: var(--accent); }
.axis-select select { padding: 7px 28px 7px 8px; font-size: 12.5px; color: var(--ink); }

/* Chart */
.chart { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 34px; gap: 0 4px; }
.y-label, .x-label { font: 700 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.y-label { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; align-self: center; justify-self: center; }
.x-label { grid-column: 2; text-align: center; align-self: end; padding-bottom: 2px; }
.plot-frame { position: relative; padding: 10px 14px 22px 22px; }
.plot { position: relative; height: clamp(300px, 40vw, 420px); border-left: 1px solid #b9bcb2; border-bottom: 1px solid #b9bcb2; background-image: linear-gradient(to right, rgba(20,26,44,.06) 1px, transparent 1px), linear-gradient(to top, rgba(20,26,44,.06) 1px, transparent 1px); background-size: 20% 100%, 100% 20%; }
.quad { position: absolute; width: 50%; height: 50%; padding: 9px 11px; font: 700 9.5px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #4b5262; pointer-events: none; }
.quad.q-tl { left: 0; top: 0; background: rgba(20, 128, 108, .07); }
.quad.q-tr { right: 0; top: 0; background: rgba(74, 80, 192, .07); text-align: right; }
.quad.q-bl { left: 0; bottom: 0; background: rgba(138, 97, 16, .05); display: flex; align-items: flex-end; }
.quad.q-br { right: 0; bottom: 0; background: rgba(190, 79, 60, .06); text-align: right; display: flex; align-items: flex-end; justify-content: flex-end; }
.mid-x, .mid-y { position: absolute; pointer-events: none; }
.mid-x { left: 50%; top: 0; bottom: 0; border-left: 1px dashed #9ea2a9; }
.mid-y { top: 50%; left: 0; right: 0; border-top: 1px dashed #9ea2a9; }
.ticks-x, .ticks-y { position: absolute; font: 500 10.5px/1 var(--mono); color: var(--muted); pointer-events: none; }
.ticks-x { left: 22px; right: 14px; bottom: 4px; height: 12px; }
.ticks-y { left: 0; top: 10px; bottom: 22px; width: 18px; }
.ticks-x span, .ticks-y span { position: absolute; }
.ticks-x span { transform: translateX(-50%); }
.ticks-y span { transform: translateY(50%); right: 4px; }

.bubble { position: absolute; left: var(--x); top: var(--y); width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--c); box-shadow: 0 0 0 1px var(--c), 0 2px 4px rgba(20,26,44,.18); transition: left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), transform .15s, opacity .2s; z-index: 2; }
.bubble:hover, .bubble:focus-visible { transform: scale(1.18); z-index: 5; }
.bubble[aria-pressed="true"] { z-index: 6; box-shadow: 0 0 0 1px var(--c), 0 0 0 5px color-mix(in srgb, var(--c) 28%, transparent), 0 3px 8px rgba(20,26,44,.25); }
.bubble .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color: #fff; font: 700 11.5px/1 var(--font); white-space: nowrap; padding: 6px 8px; border-radius: 5px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bubble .tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -4px; border: 4px solid transparent; border-top-color: var(--ink); }
.bubble:hover .tip, .bubble:focus-visible .tip, .bubble[aria-pressed="true"] .tip { opacity: 1; }
.bubble.near-top .tip { bottom: auto; top: calc(100% + 8px); }
.bubble.near-top .tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
.bubble.near-left .tip { left: 0; transform: none; }
.bubble.near-left .tip::after { left: 10px; }
.bubble.near-right .tip { left: auto; right: 0; transform: none; }
.bubble.near-right .tip::after { left: auto; right: 6px; }
.empty-plot { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: 14px; z-index: 1; }

/* Snapshot */
.snapshot { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; align-self: start; }
.snapshot-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.snapshot h3, .snapshot h2 { font-size: 24px; letter-spacing: -.04em; line-height: 1.15; margin: 14px 0 6px; }
.snapshot .desc { color: var(--muted); font-size: 14px; }
.facts { margin: 16px 0 0; }
.facts div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 750; text-align: right; white-space: nowrap; }
.caution { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.caution strong { color: var(--ink); }
.snapshot-actions { display: grid; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 7px; font-weight: 700; font-size: 13.5px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #172d78; }
.btn-secondary { background: var(--surface); border-color: var(--rule-strong); color: var(--ink); justify-content: center; }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 5px; font: 700 10.5px/1.1 var(--mono); color: var(--c); background: color-mix(in srgb, var(--c) 11%, #fff); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* Legend */
.legend-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--rule); }
.legend { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.legend button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); font-size: 12.5px; font-weight: 650; }
.legend button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.legend button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.legend button[aria-pressed="false"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.size-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.size-note i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--muted); }

/* Ads */
.ad-slot { margin: 26px auto; max-width: 728px; min-height: 90px; display: grid; place-items: center; border: 1px dashed var(--rule-strong); border-radius: 8px; background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(20,26,44,.018) 10px 20px); }
.ad-slot span { font: 700 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #8b909a; }
.ad-slot.ad-side { max-width: none; min-height: 250px; margin: 0; }

/* Compare */
.compare { padding: 18px; margin-bottom: 18px; }
.compare-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.compare-head h3 { font-size: 18px; letter-spacing: -.02em; margin-top: 4px; }
.compare-head p { color: var(--muted); font-size: 13px; }
.compare-pickers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.compare-pickers .field { width: 100%; }
.compare-pickers select { width: 100%; }
.compare-output { margin-top: 14px; overflow-x: auto; }
.compare-output:empty { display: none; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.compare-table th, .compare-table td { padding: 9px 10px; border-top: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.compare-table thead th { border-top: 0; font-size: 14px; }
.compare-table thead th a { color: var(--accent); text-decoration: none; }
.compare-table thead th a:hover { text-decoration: underline; }
.compare-table tbody th { color: var(--ink-soft); font-weight: 600; width: 22%; }
.compare-table .best { font-weight: 800; color: var(--accent); }
.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter b { min-width: 34px; }
.meter i { position: relative; display: inline-block; width: 64px; height: 5px; border-radius: 3px; background: #e6e5dd; overflow: hidden; }
.meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 10%); background: var(--accent); border-radius: 3px; }
.compare-hint { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Directory */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 16px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: var(--accent); box-shadow: 0 6px 18px -10px rgba(31,58,150,.45); transform: translateY(-1px); }
.card.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.card h3 { font-size: 18px; letter-spacing: -.03em; margin: 12px 0 5px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 3px solid #2d55d6; outline-offset: 2px; }
.card .arrow { position: absolute; right: 16px; top: 46px; color: var(--muted); transition: transform .15s, color .15s; }
.card:hover .arrow { transform: translateX(3px); color: var(--accent); }
.card p { color: var(--muted); font-size: 13.5px; padding-right: 14px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.card-body { margin-bottom: 14px; }
.card-foot .locate { position: relative; z-index: 2; border: 0; background: none; color: var(--accent); font: 700 11.5px/1 var(--mono); padding: 4px 0; }
.card-foot .locate:hover { text-decoration: underline; }
.directory-empty { padding: 24px; text-align: center; color: var(--muted); }

/* Signup */
.signup { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 34px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--radius); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.signup::before { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 70%); pointer-events: none; }
.signup h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.08; margin: 8px 0 10px; }
.signup h2 em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.signup p { color: var(--muted); }
.signup-form { position: relative; display: grid; gap: 10px; }
.signup-form label { font-weight: 700; font-size: 13px; }
.signup-row { display: flex; gap: 8px; }
.signup-row input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--rule-strong); border-radius: 7px; background: var(--surface-2); font-size: 15px; }
.signup-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.signup-row button { border: 0; border-radius: 7px; background: var(--accent); color: #fff; font-weight: 750; padding: 12px 18px; white-space: nowrap; }
.signup-row button:hover { background: #172d78; }
.fine { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--rule); padding: 26px 0 34px; }
.footer-grid { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.footer-grid p { color: var(--muted); font-size: 13px; max-width: 520px; }
.footer-links { display: flex; gap: 18px; list-style: none; font-size: 13px; font-weight: 650; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.disclaimer { margin-top: 6px; font-size: 12px !important; }

/* Long-form pages (methodology, profiles) */
.crumbs { padding-top: 26px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--accent); text-decoration: none; font-weight: 650; }
.crumbs a:hover { text-decoration: underline; }
.doc-hero { padding: 28px 0 26px; max-width: 780px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.07em; font-weight: 850; margin: 12px 0 14px; }
.doc-hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.doc-hero .lede { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 640px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.prose { display: grid; gap: 14px; }
.prose-block { padding: 22px 24px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; }
.prose-block h2 { font-size: 21px; letter-spacing: -.03em; margin-bottom: 8px; }
.prose-block h2 .kicker { display: block; margin-bottom: 6px; }
.prose-block p + p { margin-top: 10px; }
.prose-block p, .prose-block li { color: var(--ink-soft); }
.prose-block ul { padding-left: 18px; display: grid; gap: 6px; margin-top: 10px; }
.axis-list { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; }
.axis-list li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--rule); }
.axis-list li:first-child { border-top: 0; }
.axis-list strong { color: var(--ink); }
.scale-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.scale-row div { padding: 12px; background: var(--surface-2); border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; color: var(--ink-soft); }
.scale-row b { display: block; font: 800 12px/1.4 var(--mono); color: var(--accent); margin-bottom: 4px; }
.cat-list { list-style: none; padding: 0 !important; }
.cat-list li { display: flex; gap: 10px; align-items: baseline; }
.aside { position: sticky; top: 84px; display: grid; gap: 14px; }

.score-grid { display: grid; gap: 10px; margin-top: 4px; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.score .bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: #e6e5dd; overflow: hidden; }
.score .bar i { display: block; height: 100%; width: calc(var(--v) * 10%); background: var(--c, var(--accent)); border-radius: 4px; }
.score b { font-family: var(--mono); font-size: 12.5px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); font-size: 12.5px; }
.chip span { color: var(--muted); }
.chip b { font-weight: 750; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 800 13px/1 var(--mono); }
.callout-risk { border-left: 4px solid var(--c-labor); }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.pager a { flex: 1; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; text-decoration: none; }
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; font: 700 10.5px/1.4 var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.pager strong { font-size: 15px; }
.pager .next { text-align: right; }

.notfound { text-align: center; padding: 90px 0 60px; }
.notfound h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.07em; line-height: 1; margin: 12px 0; }
.notfound h1 em { font-family: var(--serif); font-weight: 400; color: var(--accent); }
.notfound p { color: var(--muted); margin-bottom: 20px; }

/* Responsive */
@media (max-width: 1020px) {
  .map-body { grid-template-columns: 1fr; }
  .snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .snapshot > .snapshot-top, .snapshot > h3, .snapshot > h2, .snapshot > .desc { grid-column: 1 / -1; }
  .cards, .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .signup { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --page: calc(100% - 28px); }
  .site-nav { gap: 14px; }
  .site-nav .hide-sm { display: none; }
  .hero { padding: 38px 0 30px; }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .toolbar .search-field { grid-column: 1 / -1; }
  .toolbar .btn-ghost { grid-column: 1 / -1; justify-self: start; padding-left: 0; }
  .field select { width: 100%; }
  .map-body { padding: 12px; }
  .chart { grid-template-columns: 22px minmax(0, 1fr); }
  .plot-frame { padding-right: 8px; }
  .plot { height: 320px; }
  .quad { font-size: 8.5px; padding: 6px; }
  .snapshot { display: block; }
  .compare-pickers { grid-template-columns: 1fr 1fr; }
  .cards, .related { grid-template-columns: 1fr; }
  .section-head { flex-wrap: wrap; }
  .signup { padding: 22px; }
  .signup-row { flex-direction: column; }
  .axis-list li { grid-template-columns: 1fr; gap: 4px; }
  .scale-row { grid-template-columns: 1fr; }
  .pager { flex-direction: column; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .site-nav a:not(.nav-cta) { font-size: 12.5px; }
  .site-nav .nav-cta { padding: 7px 10px; }
}

/* SEO pass: FAQ, last-updated line, category index */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.faq-item { padding: 20px 22px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 10px; }
.faq-item h3 { font-size: 17px; letter-spacing: -.02em; margin-bottom: 6px; }
.faq-item p { color: var(--ink-soft); }
.faq-item a, .cat-index a, .notfound p a { color: var(--accent); font-weight: 650; }
.updated { margin-top: 10px; font: 600 12px/1.4 var(--mono); color: var(--muted); letter-spacing: .02em; }
.cat-index li { flex-wrap: wrap; }
@media (max-width: 720px) { .faq-list { grid-template-columns: 1fr; } }
