:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #122033;
  --muted: #3d4a5c;
  --line: #d4cfc4;
  --accent: #163a6b;
  --accent-hover: #0f2b52;
  --focus: #0b5cab;
  --refund-bg: #e7f4ea;
  --refund-ink: #0d4d2e;
  --pay-bg: #f8ebe6;
  --pay-ink: #7a1d12;
  --offer-bg: #f7f4ee;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 1.0625rem;
}
header, main, footer {
  width: min(44rem, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
}
header { padding: 1.75rem 0 0.5rem; }
h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.lede, .privacy, .tax-year, .hint, footer, .workings, .disclaimer, .scope, .crumb, .sources, .related {
  color: var(--muted);
}
.crumb { margin: 0 0 0.75rem; font-size: 0.95rem; }
.crumb a, article a, .related a, .sources a, .cta a:not(.button), footer a {
  color: var(--accent);
}
.tax-year {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}
article h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 1.75rem 0 0.6rem;
  color: var(--ink);
}
article p { margin: 0 0 0.85rem; color: var(--ink); }
article ul, article ol { margin: 0 0 0.85rem; padding-left: 1.25rem; }
article li { margin: 0.28rem 0; }
.example, .cta, .related, .faqs details, .sources, .note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  margin: 1rem 0 1.25rem;
}
.example h3, .cta h2, .related h2, .faqs h2, .sources h2 {
  font-size: 1.15rem;
  margin: 0 0 0.55rem;
  color: var(--ink);
}
.example table, .workings table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.example th, .example td, .workings th, .workings td {
  text-align: left;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.example td:last-child, .example th:last-child,
.workings td:last-child, .workings th:last-child { text-align: right; }
.example .total td, .workings .total td {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 0;
}
.example .result-row td { font-weight: 700; }
.example th[colspan] { text-align: left; }
.disclaimer {
  margin: 0.75rem 0 0;
  color: var(--ink);
}
.note {
  border-left: 4px solid var(--accent);
}
.cta .button {
  display: inline-block;
  margin-top: 0.35rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  min-height: 2.85rem;
}
.cta .button:hover { background: var(--accent-hover); }
.related ul { margin: 0; padding-left: 1.25rem; }
.faqs h2 { margin-bottom: 0.75rem; }
.faqs details { margin-bottom: 0.6rem; }
.faqs summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.faqs details p { margin: 0.6rem 0 0; color: var(--ink); }
.sources { font-size: 0.95rem; }
.sources ul { margin: 0; padding-left: 1.25rem; }
footer {
  padding: 0 0 2.5rem;
  font-size: 0.92rem;
}
footer p { margin: 0 0 0.6rem; }
input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.tracker-link { margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.tracker-link p { margin: 0; }
