/* ---------- fonts: self-hosted Inter and Newsreader, latin subset (licences: fonts/OFL.txt) ---------- */
/* Inter is one variable file, declared once per weight in use as Google Fonts did, so a weight in between (650) still
   renders as the next one up (700). Change ?v= when a file is replaced: _Layout preloads these exact URLs. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin.woff2?v=20) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-latin.woff2?v=20) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin.woff2?v=20) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin.woff2?v=20) format("woff2"); }
@font-face { font-family: Newsreader; font-weight: 600; font-display: swap; src: url(/assets/fonts/newsreader-latin.woff2?v=26) format("woff2"); }

/* ---------- tokens (editorial blue theme) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --text: #0f172a;
  --text-2: #475167;
  --muted: #667085;
  --border: #e3e7f0;
  --accent: #1d43c8;
  --accent-hover: #1636a8;
  --accent-ink: #ffffff;
  --accent-soft: #ebf0ff;
  --navy: #0b2a8f;
  --good: #0b7a50;
  --good-soft: #e2f6ec;
  --grid: #e3e7f0;
  --baseline: #c5cbd8;
  /* chart series: validated categorical palette, fixed order */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Newsreader, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3vw, 3.375rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem); letter-spacing: -0.015em; }
h3 { font-size: 1.1875rem; font-weight: 650; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 28px; } }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill-blue { background: var(--accent-soft); color: var(--accent); }
.pill-green { background: var(--good-soft); color: var(--good); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.pill-row .meta { font-size: .8125rem; color: var(--muted); }

/* ---------- header / footer ---------- */
.site-header { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 8px 28px; flex-wrap: wrap; min-height: 66px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.25rem; color: var(--accent); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--accent); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { stroke: var(--accent-ink); stroke-width: 9; stroke-linecap: round; fill: none; }
.brand-mark circle { fill: #f5a524; }
.brand-tag { font-size: .625rem; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; border-radius: 5px; background: var(--good-soft); color: var(--good); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex: 1; }
.site-nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .9375rem; padding: 6px 10px; border-radius: 8px; }
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { padding: 8px 14px; font-size: .875rem; border-radius: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.icon-btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) {
  .site-nav { order: 3; flex-basis: 100%; margin: 0 -10px; overflow-x: auto; flex-wrap: nowrap; }
  .header-actions { margin-left: auto; }
}

.site-footer { margin-top: 80px; background: var(--surface); border-top: 1px solid var(--border); font-size: .9375rem; color: var(--text-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); padding-top: 44px; padding-bottom: 32px; }
.footer-about { grid-column: 1 / -1; max-width: 420px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-about { grid-column: auto; } }
.footer-about p { margin-top: 12px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer h2 { font-family: var(--font); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 24px; font-size: .8438rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* ---------- page sections ---------- */
main { display: block; }
.page-head { padding: 44px 0 26px; }
.page-head .lead { font-size: 1.1875rem; color: var(--text-2); max-width: 64ch; }
.hero { padding: 52px 0 36px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; } }
.hero h1 { max-width: 16ch; margin-bottom: .4em; }
.hero .lead { font-size: 1.1875rem; color: var(--text-2); max-width: 54ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--text-2); margin: 4px 0 0; padding: 0; list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; stroke: var(--good); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 12px; }
.section { padding: 36px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--text-2); max-width: 62ch; }
.panel-section { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); padding: 12px 20px; border-radius: 9px; text-decoration: none; border: 0; font: inherit; font-weight: 600; font-size: .9688rem; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); border: 0; }
.btn-ghost:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); color: var(--accent); }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--accent-hover); }

/* ---------- live model card (homepage) ---------- */
.model-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.model-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.model-top h2 { font-family: var(--font); font-size: 1.0625rem; font-weight: 650; margin: 6px 0 0; letter-spacing: -0.005em; }
.formula-chip { font-family: var(--mono); font-size: .75rem; line-height: 1.5; color: var(--accent); background: var(--accent-soft); padding: 8px 10px; border-radius: 8px; max-width: 190px; }
.model-chart { background: var(--surface-2); border-radius: 12px; padding: 14px 14px 10px; }
.model-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .8125rem; color: var(--text-2); }
.model-chart-head strong { font-size: 1.125rem; color: var(--text); }
.model-chart-head strong span { font-size: .8125rem; font-weight: 500; color: var(--text-2); }
.model-chart svg { display: block; width: 100%; height: auto; margin: 6px 0 4px; overflow: visible; }
.model-chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.model-chart .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.model-chart .line-1 { stroke: var(--series-1); }
.model-chart .line-2 { stroke: var(--series-2); }
.model-chart .cross { fill: var(--surface); stroke: var(--text); stroke-width: 2; }
.model-chart .axis { font-size: 10px; fill: var(--muted); }
.model-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .75rem; color: var(--text-2); }
.model-legend li { display: inline-flex; align-items: center; gap: 6px; }
.model-legend .swatch { width: 9px; height: 9px; border-radius: 2px; }
.model-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.model-stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.model-stat span { display: block; font-size: .75rem; color: var(--text-2); }
.model-stat strong { display: block; font-size: 1.125rem; margin: 2px 0; }
.model-stat em { font-style: normal; font-size: .75rem; color: var(--accent); }


.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); list-style: none; margin: 0; padding: 0; }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; text-decoration: none; color: var(--text); height: 100%; transition: border-color .15s; }
.tool-card:hover { border-color: var(--accent); color: var(--text); }
.tool-card h3 { margin: 0; font-size: 1.1875rem; }
.tool-card p { margin: 0; color: var(--text-2); font-size: .9688rem; }
.tool-card .go { margin-top: auto; padding-top: 8px; color: var(--accent); font-weight: 600; font-size: .9375rem; }
.tool-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; }
.tool-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.feature-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.feature p { color: var(--text-2); margin: 0; font-size: .9688rem; }

.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: border-color .15s; }
.post-card a:hover { border-color: var(--accent); color: var(--text); }
.post-card h3 { margin: 0; font-size: 1.125rem; }
.post-card p { margin: 0; color: var(--text-2); font-size: .9375rem; }
.post-card time { margin-top: auto; padding-top: 6px; font-size: .8438rem; color: var(--muted); }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 20px; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 880px) { .calc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; } }
.calc-form { padding: 22px; display: grid; gap: 16px; }
.calc-results { padding: 24px; }
@media (min-width: 880px) { .calc-results { position: sticky; top: 16px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .8438rem; color: var(--muted); margin: 0; }
.row-2 { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.input-wrap { display: flex; align-items: stretch; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-wrap input, .input-wrap select { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.input-wrap input:focus, .input-wrap select:focus { outline: none; }
.input-wrap select { cursor: pointer; }
.input-wrap select.unit { flex: 0 0 auto; border-left: 1px solid var(--border); background: var(--surface-2); padding-right: 8px; }
.affix { display: flex; align-items: center; padding: 0 12px; background: var(--surface-2); color: var(--text-2); font-size: .9375rem; white-space: nowrap; }
.affix:first-child { border-right: 1px solid var(--border); }
.affix:last-child { border-left: 1px solid var(--border); }
select.plain { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
select.plain:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
input[type=number]::-webkit-inner-spin-button { opacity: .5; }

.hero-label { margin: 0; font-weight: 600; color: var(--text-2); font-size: .9375rem; }
.hero-figure { margin: 2px 0 4px; font-size: 3rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.hero-sub { margin: 0 0 18px; color: var(--text-2); font-size: .9375rem; }
.is-empty > :not(.calc-msg) { opacity: .3; }
.calc-msg { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); font-size: .9375rem; }
.stats { margin: 0 0 22px; display: grid; }
.stats > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.stats > div:last-child { border-bottom: 0; }
.stats dt { color: var(--text-2); }
.stats dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* charts: thin marks, 2px surface gaps, 4px rounded data-end */
.chart-title { margin: 0 0 10px; font-weight: 600; font-size: .9375rem; }
.stackbar { display: flex; gap: 2px; height: 20px; border-radius: 0 4px 4px 0; overflow: hidden; background: var(--surface); }
.stackbar .seg { flex-basis: 0; min-width: 2px; }
.s1 { background: var(--series-1); }
.s2 { background: var(--series-2); }
.s3 { background: var(--series-3); }
.s4 { background: var(--series-4); }
.s5 { background: var(--series-5); }
.legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .9375rem; }
.legend li { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.legend .swatch { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.legend .val { margin-left: auto; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend.inline { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.colchart { position: relative; height: 220px; margin: 8px 0 0 48px; }
.colchart .gridline { position: absolute; left: 0; right: 0; border-top: 1px solid var(--grid); }
.colchart .gridline.base { border-top-color: var(--baseline); }
.colchart .tick { position: absolute; right: calc(100% + 8px); transform: translateY(-50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.colchart .plot { position: absolute; inset: 0; display: flex; align-items: stretch; gap: clamp(1px, .6%, 6px); }
.colchart .slot { flex: 1 1 0; display: flex; align-items: flex-end; justify-content: center; min-width: 0; cursor: default; }
.colchart .slot:hover .col { filter: brightness(1.08); }
.colchart .col { width: 100%; max-width: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; border-radius: 4px 4px 0 0; overflow: hidden; }
.colchart .col span { flex-shrink: 1; min-height: 0; }
.xaxis { position: relative; height: 22px; margin-left: 48px; font-size: .75rem; color: var(--muted); }
.xaxis span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }

.chart-tip { position: fixed; z-index: 50; pointer-events: none; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); padding: 8px 10px; font-size: .8438rem; line-height: 1.45; font-variant-numeric: tabular-nums; max-width: 260px; }
.chart-tip strong { display: block; margin-bottom: 2px; }
.chart-tip[hidden] { display: none; }

.schedule { margin-top: 20px; }
.schedule > summary { cursor: pointer; padding: 16px 22px; font-weight: 600; list-style-position: inside; }
.schedule[open] > summary { border-bottom: 1px solid var(--border); }
.schedule-tools { display: flex; gap: 8px; align-items: center; padding: 12px 22px 0; font-size: .9375rem; color: var(--text-2); }
.schedule-tools select { width: auto; padding: 6px 10px; }
.table-wrap { overflow-x: auto; padding: 8px 22px 18px; max-height: 520px; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
th, td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .8438rem; }
tbody th { font-weight: 500; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* ---------- article / prose ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.post-figure, .post-video { margin: 28px 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: 10px; }
.post-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.post-figure figcaption, .post-video figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
.prose table { margin: 0 0 1.4em; }
.prose .table-wrap { padding: 0; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.prose .table-wrap table { margin: 0; }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text-2); }
.formula { font-family: var(--mono); font-size: .9688rem; background: var(--surface-2); border-radius: 10px; padding: 14px 16px; overflow-x: auto; white-space: pre; margin: 0 0 1em; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 0 0 1.4em; }
.callout p:last-child { margin: 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }
.article-meta { color: var(--muted); font-size: .9375rem; margin: 0; }
.content-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .content-layout { grid-template-columns: minmax(0, 1fr) 280px; } }
.sidebar { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1000px) { .sidebar { position: sticky; top: 16px; } }
.sidebar .card { padding: 18px; }
.sidebar h2 { font-size: 1rem; margin-bottom: 10px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

.notice { font-size: .875rem; color: var(--muted); margin-top: 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .calc-form, .sidebar { display: none; }
  body { background: #fff; color: #000; }
}

/* ================= app additions ================= */
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.container.narrow { max-width: 760px; }
.site-nav a.active { color: var(--text); background: var(--surface-2); }
.site-nav a.nav-cta { color: var(--accent); font-weight: 600; }
.btn-sm { padding: 8px 14px; font-size: .9375rem; border-radius: 8px; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #a93226; color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.group-title { margin: 36px 0 14px; }
.group-title:first-of-type { margin-top: 8px; }

.alert { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); color: var(--text); margin: 0 0 16px; font-size: .9688rem; }
.alert.ok { background: var(--accent-soft); }
.alert.error { background: #fbe9e7; color: #8a1f11; }

.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); vertical-align: middle; margin-left: 6px; }
.badge.ok { background: var(--accent-soft); color: var(--accent); margin-left: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: .9063rem; background: var(--surface); }
.chip:hover { color: var(--text); border-color: var(--text-2); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 32px 0 0; color: var(--text-2); }

.post-card .post-cat, .saved-item .post-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.post-card .post-meta { margin-top: auto; padding-top: 6px; font-size: .8438rem; color: var(--muted); }

.tool-callout { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--text); }
.tool-callout:hover { border-color: var(--accent); color: var(--text); }
.tool-callout .muted { font-size: .9063rem; }
.prose blockquote { background: var(--accent-soft); border-left: 0; border-radius: 12px; padding: 14px 18px; color: var(--text); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 16px; }

/* save bar */
.save-bar { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.save-row { display: flex; gap: 8px; }
.save-title { flex: 1; min-width: 0; font: inherit; font-size: .9375rem; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); }
.save-title:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.save-msg { margin: 8px 0 0; min-height: 1.2em; font-size: .875rem; color: var(--text-2); }
.save-hint { margin: 4px 0 0; font-size: .875rem; }
.save-locked { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.save-locked svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; margin-top: 2px; }
.save-locked p { margin: 0; font-size: .9063rem; color: var(--text-2); }
.save-locked .btn { grid-column: 2; justify-self: start; margin-top: 8px; }

/* forms & panels */
.auth-card { max-width: 440px; margin: 48px auto 0; padding: 28px; }
.auth-card h1 { font-size: 1.75rem; }
.btn-google { width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; }
.btn-google svg { width: 18px; height: 18px; stroke: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; color: var(--muted); font-size: .875rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.stack { display: grid; gap: 14px; }
.text-input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.text-input.mono { font-family: var(--mono); font-size: .875rem; line-height: 1.5; }
textarea.text-input { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; color: var(--text-2); }
.check input { margin-top: 4px; }
.panel { padding: 22px; margin: 0 0 18px; }
.panel h2 { font-size: 1.1875rem; }
details.panel > summary { cursor: pointer; font-weight: 600; }
details.danger[open] > summary { margin-bottom: 12px; }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 820px; margin: 0 auto; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan h2 { margin: 0; font-size: 1.25rem; }
.plan-price { font-size: 2.5rem; font-weight: 700; margin: 4px 0 0; letter-spacing: -0.02em; }
.plan-price span { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.plan .btn { margin-top: 12px; justify-content: center; }
.plan-featured { border-color: var(--accent); border-width: 2px; }
.plan-badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.checks li { padding-left: 26px; position: relative; color: var(--text); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* saved calculations */
.saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.saved-item { padding: 18px 20px; display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.saved-main { min-width: 0; flex: 1 1 320px; }
.saved-main h2 { font-size: 1.0625rem; margin: 4px 0; }
.saved-main p { margin: 0 0 4px; color: var(--text-2); font-size: .9375rem; }
.saved-actions { display: flex; gap: 8px; align-items: center; }
.saved-actions form { margin: 0; }

/* admin */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 0 0 20px; }
.stat { padding: 16px 18px; }
.stat span { display: block; color: var(--text-2); font-size: .875rem; }
.stat strong { font-size: 1.75rem; }
.warn-list { margin: 0 0 8px; padding-left: 1.2em; }
.warn-list li { margin-bottom: 4px; }
.search-row { display: flex; gap: 8px; margin: 0 0 16px; max-width: 480px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 4px 0; }
.small-select { width: auto; padding: 6px 8px; font-size: .875rem; }
td.actions { white-space: normal; text-align: left; }
th.wrap { white-space: normal; }
.card.table-wrap { padding: 8px 16px; }

/* background remover */
.bg-app { padding: 0; overflow: hidden; }
.bg-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 20px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); margin: 16px; transition: border-color .15s, background .15s; }
.bg-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.bg-drop > svg { width: 44px; height: 44px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.bg-drop-title { margin: 0; font-weight: 600; font-size: 1.125rem; }
.bg-quality { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .9375rem; color: var(--text-2); }
.bg-quality select { width: auto; }
.bg-work { padding: 16px; }
.bg-toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 12px; }
.seg-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.seg-label { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .04em; }
.segbtn { font: inherit; font-size: .875rem; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; }
.segbtn:hover:not(:disabled) { background: var(--surface-2); }
.segbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.segbtn:disabled { opacity: .45; cursor: not-allowed; }
.seg-color { padding: 3px 6px; }
.seg-color input { width: 26px; height: 22px; border: 0; padding: 0; background: none; cursor: pointer; }
.seg-range input { width: 110px; accent-color: var(--accent); }
.bg-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 260px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.bg-stage.zoomed { overflow: auto; justify-content: flex-start; align-items: flex-start; max-height: 75vh; }
#bg-canvas { display: block; max-width: none; touch-action: none; }
#bg-canvas.checker { background: repeating-conic-gradient(#d9d9d9 0 25%, #ffffff 0 50%) 0 0 / 20px 20px; }
#bg-canvas.painting { cursor: none; }
.bg-cursor { position: absolute; left: 0; top: 0; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); pointer-events: none; }
.bg-progress { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0, 0, 0, .45); color: #fff; padding: 20px; text-align: center; }
.bg-progress p { margin: 0; font-weight: 600; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.bg-progress-track { width: min(320px, 80%); height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.bg-progress-bar { height: 100%; background: #fff; border-radius: 999px; transition: width .2s; }
.bg-progress-bar.indeterminate { width: 40% !important; animation: bg-slide 1.2s ease-in-out infinite; }
@keyframes bg-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.bg-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.bg-app:not(.is-ready) .bg-toolbar, .bg-app:not(.is-ready) #bg-png { opacity: .5; pointer-events: none; }
#bg-error { margin: 12px 0 0; }

.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.tool-card { padding: 22px 22px 20px; }
.tool-card:hover { box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(29, 67, 200, .10); }
.page-head h1 { max-width: 22ch; }
.prose h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); }
.hero-figure { font-family: var(--font); }


.site-nav a { white-space: nowrap; }
@media (max-width: 560px) { .header-actions .btn:not(.btn-navy) { display: none; } .brand-tag { display: none; } .header-inner { gap: 6px 12px; } }

.site-nav { scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }


/* ================= blog ================= */
.cover-loans { --c1: #1d43c8; --c2: #6f8cff; }
.cover-mortgages { --c1: #0b6e66; --c2: #34b8a6; }
.cover-debt { --c1: #b4430f; --c2: #f59a52; }
.cover-saving { --c1: #0b7a50; --c2: #49c890; }
.cover-budgeting { --c1: #5232c9; --c2: #9c88ff; }
.cover-documents { --c1: #b0234b; --c2: #f0789a; }
.cover-other { --c1: #334155; --c2: #94a3b8; }
.post-cover { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.post-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .28), transparent 45%), repeating-linear-gradient(135deg, rgba(255, 255, 255, .07) 0 2px, transparent 2px 14px); }
.post-cover svg { position: relative; width: 44px; height: 44px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }

.post-list { gap: 22px; }
.post-card a { padding: 0; overflow: hidden; gap: 0; }
.post-card .post-cover { height: 132px; }
.post-card .post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.post-card .post-body .pill-row { margin: 0; }
.post-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
.post-card a:hover h3 { color: var(--accent); }
.post-card a:hover { box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px rgba(29, 67, 200, .10); }

.blog-hero { padding: 44px 0 8px; }
.blog-hero h1 { max-width: 20ch; }
.blog-hero .lead { font-size: 1.1875rem; color: var(--text-2); max-width: 60ch; }
.blog-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 22px 0 18px; padding: 6px 6px 6px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.blog-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.blog-search > svg { width: 18px; height: 18px; flex: none; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.blog-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1rem; background: transparent; color: var(--text); padding: 8px 4px; }
.blog-search .btn { padding: 9px 16px; }
.chips .chip span { margin-left: 4px; font-size: .8125rem; opacity: .7; }

.featured-post { display: grid; margin: 18px 0 26px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
@media (min-width: 860px) { .featured-post { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.featured-post .post-cover { min-height: 220px; }
.featured-post .post-cover svg { width: 76px; height: 76px; }
.featured-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 36px); }
.featured-body .pill-row { margin: 0; }
.featured-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.15; letter-spacing: -0.015em; }
.featured-desc { color: var(--text-2); font-size: 1.0625rem; }
.featured-post .post-meta { font-size: .875rem; color: var(--muted); }
.featured-post .go { color: var(--accent); font-weight: 600; margin-top: 4px; }
.featured-post:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.featured-post:hover .featured-title { color: var(--accent); }

.blog-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-top: 44px; padding: 26px 30px; border-radius: 20px; background: linear-gradient(135deg, var(--accent), #4d6cf0); color: #fff; }
.blog-cta h2 { color: #fff; margin: 0 0 4px; }
.blog-cta p { margin: 0; color: rgba(255, 255, 255, .85); }
.blog-cta .btn { background: #fff; color: var(--accent); }
.blog-cta .btn:hover { background: #eef2ff; color: var(--accent); }

/* article */
.read-progress { position: sticky; top: 66px; z-index: 19; height: 3px; background: transparent; margin-bottom: -3px; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.article-hero { padding: 40px 0 8px; }
.article-hero h1 { max-width: 24ch; }
.article-hero .lead { font-size: 1.1875rem; color: var(--text-2); max-width: 64ch; }
.article-hero .pill-row a.pill { text-decoration: none; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); max-width: 720px; font-size: .9375rem; line-height: 1.4; }
.byline a { font-weight: 600; color: var(--text); text-decoration: none; }
.byline a:hover { color: var(--accent); }
.byline .muted { font-size: .875rem; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .875rem; letter-spacing: .02em; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }

.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
@media (min-width: 1020px) { .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; } }
.article-body { max-width: 72ch; font-size: 1.0938rem; line-height: 1.75; }
.article-body h2 { margin-top: 2.2em; scroll-margin-top: 90px; }
.article-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 1020px) { .article-aside { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; } }
@media (max-width: 1019px) { .article-aside nav.toc { display: none; } }
.toc { padding: 18px; }
.toc h2 { font-family: var(--font); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .9063rem; line-height: 1.4; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--text-2); text-decoration: none; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.current { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }

.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--border); }
.share-label { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.share-btn { font: inherit; font-size: .875rem; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; cursor: pointer; }
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 26px 0 0; padding: 20px; border-radius: 16px; background: var(--surface-2); }
.author-box p { margin: 0; font-size: .9688rem; color: var(--text-2); line-height: 1.6; }
.author-box .author-name { color: var(--text); font-weight: 600; margin-bottom: 4px; }

/* ================= admin automation ================= */
.container.narrow-wide { max-width: 900px; }
.settings-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; font-size: .9063rem; }
.settings-toc a { color: var(--text-2); text-decoration: none; }
.settings-toc a:hover { color: var(--accent); }
.settings-section { scroll-margin-top: 90px; }
.settings-section h2 { font-family: var(--font); font-weight: 700; font-size: 1.1875rem; }
.status-box { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.status-box p { margin: 0 0 4px; }
.status-box p:last-child { margin: 0; }
.score { display: inline-block; min-width: 38px; text-align: center; font-weight: 700; font-size: .875rem; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.score.good { background: var(--good-soft); color: var(--good); }
.score.ok { background: #fff4db; color: #8a5a00; }
.score.bad { background: #fde8e7; color: #b42318; }
.panel h2 .score { vertical-align: middle; margin-left: 8px; }
.ad-unit { margin: 28px 0; padding-top: 6px; border-top: 1px solid var(--border); min-height: 120px; }
.sidebar .ad-unit { margin: 0; border-top: 0; }
.ad-label { display: block; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }

/* ================= calculator engine (generic tools) ================= */
.engine-fields { display: grid; gap: 16px; }
.engine-fields > [hidden] { display: none !important; }
.row-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field-label { font-weight: 600; font-size: .9375rem; }
.engine-fields textarea.text-input { resize: vertical; min-height: 72px; line-height: 1.45; }
.mono { font-family: var(--mono); font-size: .9375rem; }
.engine-out > * + * { margin-top: 18px; }
.engine-out .stats { margin-bottom: 0; }
.engine-out .stats dd { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.engine-block .legend { margin-top: 10px; }
.engine-table { padding: 0; max-height: 460px; }
.engine-table table { font-variant-numeric: tabular-nums; }
.engine-list { margin: 0; padding-left: 1.25em; display: grid; gap: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.engine-copy { display: grid; gap: 8px; justify-items: start; }
.engine-copy textarea { width: 100%; resize: vertical; overflow-wrap: anywhere; }
.engine-note { color: var(--text-2); font-size: .9063rem; }

/* tools directory: search and category tiles */
.tool-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); }
.tool-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-search svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.tool-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; color: var(--text); }
.cat-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; margin: 0 0 8px; padding: 0; }
.cat-tile { display: block; padding: 18px; text-decoration: none; color: inherit; height: 100%; }
.cat-tile:hover { border-color: var(--accent); }
.cat-tile strong { display: block; font-size: 1.0625rem; margin-bottom: 4px; color: var(--text); }
.cat-tile span { color: var(--text-2); font-size: .9063rem; }
.cat-links { columns: 3 220px; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.cat-links li { break-inside: avoid; padding: 5px 0; }
.cat-links a { text-decoration: none; }
.cat-links a:hover { text-decoration: underline; }
.tool-empty { color: var(--muted); }

/* ===== blog redesign agent (2026-10-31): new guide categories for the home page cards, admin Comments badge ===== */
.cover-health { --c1: #3f7d16; --c2: #86c13c; }
.cover-math { --c1: #8e1d82; --c2: #d45fc7; }
.chips .chip .admin-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #f5a524; color: #2b1d00; font-size: .75rem; font-weight: 800; opacity: 1; }
/* ===== end blog redesign block ===== */
