/* ==========================================================================
   SetAside — site stylesheet
   Plain CSS, no external requests. Mobile-first.
   ========================================================================== */

:root {
  --ink: #0e1b2c;
  --ink-2: #33445c;
  --muted: #5c6b80;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-tint: #eef4ff;
  --brand: #14406b;
  --brand-600: #1b5488;
  --brand-700: #0f3557;
  --accent: #0f766e;
  --accent-soft: #e6f4f1;
  --warn: #8a4b00;
  --warn-soft: #fff6e6;
  --danger: #9b2c2c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 44, .06), 0 1px 3px rgba(15, 27, 44, .04);
  --shadow: 0 10px 30px rgba(15, 27, 44, .08), 0 2px 6px rgba(15, 27, 44, .05);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow { max-width: 820px; }

section { padding: 56px 0; }
section.tight { padding: 32px 0; }

.section-head { max-width: 720px; margin: 0 0 28px; }
.section-head h2 { margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- type ---------- */

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.85rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); margin-top: 1.8em; }
h3 { font-size: 1.2rem; margin-top: 1.6em; }
h4 { font-size: 1.03rem; margin-top: 1.4em; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
li > ul, li > ol { margin-top: .4em; }

.lead { font-size: 1.16rem; color: var(--ink-2); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }

code, .mono { font-family: var(--mono); font-size: .92em; }
code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .35em;
  white-space: nowrap;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark svg { display: block; width: 18px; height: 18px; }
.brand span small {
  display: block;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-700); background: var(--bg-tint); }
.nav .nav-cta {
  background: var(--brand);
  color: #fff;
  margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--brand-700); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-size: .98rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--brand-700); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--brand-700); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 8px; }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .9rem;
  color: var(--brand-600);
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 380px at 15% -10%, #eaf1fb 0%, rgba(234, 241, 251, 0) 70%),
    linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero p.lead { margin-bottom: 26px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-note { font-size: .875rem; color: var(--muted); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-card h2 { margin: 0 0 4px; font-size: 1rem; letter-spacing: 0; }
.hero-card .hc-sub { font-size: .82rem; color: var(--muted); margin: 0 0 16px; }
.hc-result {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.hc-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.hc-value { font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; color: var(--brand); font-variant-numeric: tabular-nums; }
.hc-value small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.hc-rows { display: grid; gap: 8px; margin: 0; font-size: .88rem; }
.hc-rows div { display: flex; justify-content: space-between; gap: 12px; }
.hc-rows dt { color: var(--muted); }
.hc-rows dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 40px; }
}

/* ---------- trust row ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); }
.trust-item svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.trust-item strong { display: block; color: var(--ink); font-size: .92rem; }
@media (max-width: 860px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .card-grid, .card-grid.two { grid-template-columns: 1fr; } }

.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tool-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-card .icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--bg-tint);
  color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.tool-card .icon svg { width: 22px; height: 22px; }
.tool-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.tool-card p { color: var(--muted); font-size: .93rem; margin-bottom: 16px; }
.tool-card .card-link { margin-top: auto; font-weight: 650; font-size: .93rem; text-decoration: none; color: var(--brand-600); }
.tool-card .card-link::after { content: " →"; }
.tool-card .card-link:hover { text-decoration: underline; }
.tool-card .tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

/* ---------- calculator ---------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  align-items: start;
  margin: 28px 0 8px;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

.calc-form,
.calc-results {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.calc-results { position: sticky; top: 86px; }
@media (max-width: 900px) { .calc-results { position: static; } }

.calc-form h2, .calc-results h2 { font-size: 1.02rem; margin: 0 0 18px; letter-spacing: 0; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label,
.field > .label {
  display: block;
  font-size: .9rem;
  font-weight: 650;
  margin-bottom: 6px;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--muted); margin: 5px 0 0; line-height: 1.45; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .prefix,
.input-wrap .suffix {
  position: absolute;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  pointer-events: none;
}
.input-wrap .prefix { left: 13px; }
.input-wrap .suffix { right: 13px; }
.input-wrap.has-prefix input { padding-left: 28px; }
.input-wrap.has-suffix input { padding-right: 42px; }

input[type="number"], input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
input[type="number"] { font-variant-numeric: tabular-nums; }
input:hover, select:hover, textarea:hover { border-color: #a9b8cb; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
input[aria-invalid="true"] { border-color: var(--danger); }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235c6b80' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}
.segmented legend { font-size: .9rem; font-weight: 650; margin-bottom: 6px; padding: 0; }
.segmented label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  background: #fff;
}
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented input:checked + span { color: var(--brand-700); }
.segmented input:checked + span::before { content: "✓"; margin-right: 5px; font-weight: 700; }
.segmented label:has(input:checked) {
  border-color: var(--brand-600);
  background: var(--bg-tint);
  box-shadow: inset 0 0 0 1px var(--brand-600);
}
.segmented label:focus-within { outline: 3px solid #2563eb; outline-offset: 2px; }

.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.calc-disclaimer { font-size: .78rem; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }

/* results */

.result-hero {
  background: linear-gradient(180deg, #f0f7ff 0%, #eaf3fb 100%);
  border: 1px solid #d5e4f5;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.result-hero .rl { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #3c6086; }
.result-hero .rv { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); font-weight: 750; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-hero .rs { font-size: .85rem; color: var(--ink-2); margin-top: 4px; }

.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; }
.breakdown caption { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding-bottom: 8px; }
.breakdown th, .breakdown td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.breakdown td:last-child, .breakdown th:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown tr.sub th, .breakdown tr.sub td { font-weight: 600; }
.breakdown tr.total th, .breakdown tr.total td {
  font-weight: 750;
  border-bottom: 0;
  border-top: 2px solid var(--line-strong);
  padding-top: 12px;
  color: var(--ink);
}
.breakdown th { font-weight: 500; color: var(--ink-2); }
.breakdown .neg { color: var(--accent); }
.breakdown .note { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }

.bar { margin: 18px 0 6px; }
.bar-track { display: flex; height: 12px; border-radius: 100px; overflow: hidden; background: var(--line); }
.bar-seg { height: 100%; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.bar-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }

.quarter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.quarter {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}
.quarter.is-due { border-color: #f0cfa8; background: var(--warn-soft); }
.quarter .q { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.quarter .d { font-size: .8rem; color: var(--ink-2); }
.quarter .a { font-size: .98rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
@media (max-width: 560px) { .quarter-grid { grid-template-columns: repeat(2, 1fr); } }

.notice {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: .88rem;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink-2);
  margin: 18px 0;
}
.notice strong { color: var(--ink); }
.notice-warn { background: var(--warn-soft); border-color: #f2d9b0; }
.notice-info { background: var(--bg-tint); border-color: #d5e4f5; }
.notice p:last-child { margin-bottom: 0; }

.affiliate {
  border: 1px solid #d9e7dc;
  background: #f4faf6;
  border-radius: 12px;
  padding: 16px;
  margin-top: 18px;
}
.affiliate .aff-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #3f6b4e;
  margin-bottom: 6px;
}
.affiliate p { font-size: .88rem; margin: 0 0 10px; color: var(--ink-2); }
.affiliate a.btn { margin-top: 2px; }
.affiliate-note { display: block; font-size: .74rem; color: var(--muted); margin-top: 8px; }

/* ---------- content blocks ---------- */

.prose { max-width: 760px; }
.prose h2 { padding-top: 4px; }
.prose h3 { margin-bottom: .5em; }
.prose > :last-child { margin-bottom: 0; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 18px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-size: .95rem;
}
.callout p:last-child { margin-bottom: 0; }

.figure { margin: 26px 0; }
.figure .formula {
  font-family: var(--mono);
  font-size: .9rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
}
.figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 460px; }
table.data caption { text-align: left; font-size: .82rem; color: var(--muted); padding-bottom: 8px; }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; text-align: left; }
table.data thead th { border-bottom: 1px solid var(--line-strong); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 6px; }
table.data tbody tr:last-child td { border-bottom: 0; }

.faq { margin: 18px 0 0; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 500;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; }

.sources { font-size: .88rem; color: var(--ink-2); }
.sources li { margin-bottom: .5em; }
.sources a { word-break: break-word; }

.updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.breadcrumbs { font-size: .84rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-600); text-decoration: underline; }

.page-head { padding: 20px 0 8px; }
.page-head h1 { margin-bottom: 12px; }
.page-head .lead { max-width: 44em; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 780px) { .related { grid-template-columns: 1fr; } }
.related a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  display: block;
}
.related a:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.related strong { display: block; font-size: .97rem; margin-bottom: 4px; }
.related span { font-size: .84rem; color: var(--muted); }

.ad-slot {
  margin: 34px auto;
  max-width: 728px;
  min-height: 90px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .74rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #93a3b8;
  padding: 12px;
}
.ad-slot span { max-width: 40em; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--brand-600); text-decoration: underline; }
.footer-brand p { color: var(--muted); font-size: .875rem; max-width: 30em; margin: 12px 0 0; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted);
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- misc ---------- */

.center { text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.nowrap { white-space: nowrap; }
.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;
}

.page-404 { padding: 80px 0; text-align: center; }
.page-404 h1 { font-size: 3rem; }

@media print {
  .site-header, .site-footer, .nav, .ad-slot, .affiliate, .calc-actions, .hero-actions { display: none !important; }
  body { font-size: 12pt; }
  .calc-results { position: static; box-shadow: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
