/* Fonts: self-hosted, latin subset. Inter (variable 100-900), Source Serif 4 600. SIL Open Font License 1.1. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/source-serif-4-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0F1B2D;
  --paper: #FAFAF7;
  --surface: #F1F2EE;
  --rule: #D9DCD3;
  --muted: #5A6472;
  --accent: #1F4E79;
  --accent-hover: #163A5B;
  --ok: #2E6B4F;
  --warn: #8A5A00;
  --bad: #8B2E2E;
  --unknown: #6B7280;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: 16px;
  --max: 1120px;
  --measure: 72ch;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
/* Limit line length but keep prose left-aligned with the page heading. */
.prose > * { max-width: var(--measure); }
.muted { color: var(--muted); }

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

.button {
  display: inline-block; padding: .625rem 1rem; border-radius: var(--radius);
  background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--accent-hover); color: #fff; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 60px; gap: 0 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { display: block; width: 28px; height: 28px; }
.brand__name { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; }

/* Mobile nav: without JS the links show as a wrapped row; site.js turns it into a toggle. */
.site-nav__toggle {
  cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; background: none; color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600;
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.site-nav__toggle[hidden] { display: none; }
.site-nav__bars, .site-nav__bars::before, .site-nav__bars::after {
  display: block; width: 16px; height: 2px; background: var(--ink); content: "";
}
.site-nav__bars { position: relative; }
.site-nav__bars::before { position: absolute; top: -5px; }
.site-nav__bars::after { position: absolute; top: 5px; }
.site-nav { width: 100%; }
.site-nav__list { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 0 16px; }
.site-nav__list a { display: block; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav__list a:hover { color: var(--accent); }
.js-nav .site-nav { display: none; }
.js-nav .site-nav.is-open { display: block; }
.js-nav .site-nav__list { display: block; padding: 0 0 8px; }
.js-nav .site-nav__list a { padding: 12px 0; border-top: 1px solid var(--rule); }

@media (min-width: 960px) {
  .site-nav__toggle { display: none !important; }
  .site-nav, .js-nav .site-nav { display: block; width: auto; }
  .site-nav__list, .js-nav .site-nav__list { display: flex; gap: 4px; padding: 0; }
  .site-nav__list a, .js-nav .site-nav__list a { border: 0; padding: 8px 12px; border-radius: var(--radius); font-weight: 500; }
  .site-nav__list a:hover { background: var(--surface); color: var(--ink); }
}

/* Page head */
.site-main { min-height: 50vh; }
.page-head { padding-top: 40px; padding-bottom: 8px; }
.page-head h1 { max-width: 24ch; }
.page-head__meta { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: .75em; }

.byline { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9375rem; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0; margin: 16px 0 0; }
.byline > span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--rule); }
.byline__author { color: var(--ink); font-weight: 600; }

.page-body { padding: 24px 0 48px; }

/* Notices */
.notice { border: 1px solid var(--rule); border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0; font-size: .9375rem; }
.notice p:last-child { margin-bottom: 0; }
.notice--risk { border-left-color: var(--warn); }
.notice__title { font-family: var(--font-sans); font-size: 1rem; margin-bottom: .5em; }
.risk-inline { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }

/* Home */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
.hero__title { font-size: clamp(2.125rem, 1.5rem + 3vw, 3.25rem); max-width: 18ch; }
.hero__lede { font-size: 1.1875rem; max-width: 60ch; color: #2C3A4D; }
.section { padding: 40px 0; }
.section--ruled { border-top: 1px solid var(--rule); }
.section__title { margin-bottom: 1em; }

.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; }
.card p:last-child { margin-bottom: 0; }
.card__title { font-size: 1.125rem; }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: p; }
.principles li { counter-increment: p; padding: 18px 0 18px 48px; border-top: 1px solid var(--rule); position: relative; }
.principles li::before {
  content: counter(p, decimal-leading-zero); position: absolute; left: 0; top: 20px;
  font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); font-size: .875rem;
}
.principles h3 { font-size: 1.0625rem; font-family: var(--font-sans); margin-bottom: .25em; }
.principles p { margin: 0; color: #2C3A4D; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 56px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .9375rem; }
caption { text-align: left; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--rule); background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--paper); }
tbody th { font-weight: 600; }
.spec-table--firm tbody th { width: 42%; }
.spec-table--plans { min-width: 520px; }
.spec-table--plans tbody th { white-space: nowrap; }
.spec-table--plans thead th:not(:first-child) { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9375rem; }
tfoot td, tfoot th { border-top: 2px solid var(--ink); border-bottom: 0; background: var(--surface); }
.sources-label { display: block; font-weight: 600; margin-bottom: 4px; }
.sources-list { margin: 0; padding-left: 1.6em; }
.plan-notes { margin: 0; padding-left: 1.2em; font-size: .875rem; }
.plan-notes li { margin-bottom: 4px; }
tfoot tr[data-row="plan-notes"] td { border-top: 2px solid var(--ink); }
tfoot tr[data-row="plan-notes"] + tr td { border-top: 1px solid var(--rule); }
.field-note, .field-recheck { display: block; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.field-recheck { color: var(--warn); }
.field-recheck::before { content: "⟳ "; }
.ref { font-size: .6875rem; line-height: 0; margin-left: 2px; }
.ref a { text-decoration: none; }
.avail-table__code { display: inline-block; min-width: 2.2em; font-size: .8125rem; color: var(--muted); }
.table-note { font-size: .875rem; color: var(--muted); }

/* Status pills: text always present, color only reinforces it */
.status, .firm-label {
  display: inline-block; font-size: .8125rem; font-weight: 600; line-height: 1.3;
  padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap;
}
.status--available { color: var(--ok); }
.status--conditional { color: var(--warn); }
.status--restricted { color: var(--bad); }
.status--unknown { color: var(--unknown); font-weight: 500; }
.status--needs_recheck { color: var(--warn); }
.status--unverified { color: var(--unknown); border-style: dashed; font-weight: 500; }
.status--not_published, .status--none { color: var(--ink); font-weight: 500; }
.status--conflicting { color: var(--warn); border-style: dashed; font-weight: 500; white-space: normal; }
.firm-label--partner { color: var(--accent); }
.firm-label--none { color: var(--ink); }
.firm-label--unconfirmed { color: var(--unknown); border-style: dashed; }

/* Score */
.score-box { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 16px; margin: 16px 0; }
.score-box__overall { margin: 0 0 12px; display: flex; align-items: baseline; gap: 6px; }
.score-box__value { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; line-height: 1; }
.score-box__max { color: var(--muted); }
.score-box__pending { font-weight: 600; font-size: 1.125rem; margin-bottom: .25em; }
.score-box__why { color: var(--muted); font-size: .9375rem; }
.score-box .table-scroll { margin: 8px 0 12px; }
.score-box__criteria td { white-space: nowrap; }
@media (max-width: 480px) {
  .score-box__criteria td, .score-box__criteria th { padding: 8px 10px; }
  .score-box__criteria .status { white-space: normal; }
  .score-box__criteria td { white-space: normal; }
}
.score-box__rationale { display: block; font-weight: 400; font-size: .875rem; color: var(--muted); margin-top: 2px; }
.score-box__method { font-size: .875rem; color: var(--muted); margin: 0; }
.score-box__measures { font-size: .875rem; margin: 0 0 6px; }
.callout { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; font-weight: 500; }

.preview-note { background: #FFF6DB; border: 1px dashed var(--warn); padding: 10px 14px; border-radius: var(--radius); }
.page-body h2 { margin-top: 1.5em; }

/* Prose pages */
.lede { font-size: 1.1875rem; color: #2C3A4D; }
.prose h2 { margin-top: 1.75em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose dl { margin: 0 0 1em; }
.prose dt { font-weight: 600; margin-top: 14px; }
.prose dd { margin: 4px 0 0; color: #2C3A4D; }
.statuses dd { padding-left: 0; }

/* Methodology criteria */
.criteria { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 20px; }
.criterion { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 16px; }
.criterion__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 6px; }
.criterion__title { margin: 0; font-size: 1.25rem; }
.criterion__weight { margin: 0; color: var(--muted); font-size: .9375rem; }
.criterion__weight span { font-family: var(--font-serif); font-weight: 600; font-size: 1.375rem; color: var(--ink); margin-right: 4px; }
.criterion .table-scroll { margin: 12px 0; }
.levels tbody th { width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.criterion__inputs { font-size: .875rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.criterion__inputs strong { margin-right: 4px; }
.chip { display: inline-block; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 10px; font-size: .8125rem; }
@media (min-width: 960px) { .criterion { padding: 24px 28px; } }

/* Review */
.preview-banner { background: #FFF6DB; border-bottom: 1px dashed var(--warn); color: #5C3D00; text-align: center; font-size: .875rem; font-weight: 600; padding: 8px var(--gutter); }
.coverage { font-size: .9375rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; }
.toc { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 20px 0 0; }
.toc__title { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 24px; font-size: .9375rem; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.review-sections section { padding-top: 12px; scroll-margin-top: 12px; }
.review-sections h2 { margin-top: 1.25em; }
.empty-note { color: var(--muted); background: var(--surface); border: 1px dashed var(--rule); border-radius: var(--radius); padding: 12px 14px; font-size: .9375rem; max-width: var(--measure); }
.pros-cons { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pros-cons__col { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--ok); border-radius: var(--radius); padding: 14px 16px; }
.pros-cons__col--cons { border-top-color: var(--bad); }
.pros-cons__col h3 { font-family: var(--font-sans); font-size: 1rem; }
.pros-cons__col ul { margin: 0; padding-left: 1.2em; }
.pros-cons__col li { margin-bottom: .5em; }
.faq { max-width: var(--measure); }
.faq__item { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq__q { font-family: var(--font-sans); font-size: 1.0625rem; margin-bottom: .4em; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .toc ol { columns: 1; } }

/* Program tabs: radio inputs + labels, no JavaScript. Panel k is shown when radio k is checked.
   Rules exist for up to 8 programs (MAX_PROGRAM_TABS in build.js). */
.ptabs { position: relative; margin: 16px 0; }
.ptabs__radio { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ptabs__labels { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--rule); margin-bottom: 12px; }
.ptabs__label {
  cursor: pointer; padding: 8px 14px; font-size: .9375rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--rule); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface); margin-bottom: -1px;
}
.ptabs__label:hover { color: var(--ink); }
.ptabs__panel { display: none; }
.ptabs__panel .table-scroll { margin-top: 0; }
.ptabs__radio:nth-of-type(1):checked ~ .ptabs__panel:nth-of-type(1),
.ptabs__radio:nth-of-type(2):checked ~ .ptabs__panel:nth-of-type(2),
.ptabs__radio:nth-of-type(3):checked ~ .ptabs__panel:nth-of-type(3),
.ptabs__radio:nth-of-type(4):checked ~ .ptabs__panel:nth-of-type(4),
.ptabs__radio:nth-of-type(5):checked ~ .ptabs__panel:nth-of-type(5),
.ptabs__radio:nth-of-type(6):checked ~ .ptabs__panel:nth-of-type(6),
.ptabs__radio:nth-of-type(7):checked ~ .ptabs__panel:nth-of-type(7),
.ptabs__radio:nth-of-type(8):checked ~ .ptabs__panel:nth-of-type(8) { display: block; }
.ptabs__radio:nth-of-type(1):checked ~ .ptabs__labels .ptabs__label:nth-of-type(1),
.ptabs__radio:nth-of-type(2):checked ~ .ptabs__labels .ptabs__label:nth-of-type(2),
.ptabs__radio:nth-of-type(3):checked ~ .ptabs__labels .ptabs__label:nth-of-type(3),
.ptabs__radio:nth-of-type(4):checked ~ .ptabs__labels .ptabs__label:nth-of-type(4),
.ptabs__radio:nth-of-type(5):checked ~ .ptabs__labels .ptabs__label:nth-of-type(5),
.ptabs__radio:nth-of-type(6):checked ~ .ptabs__labels .ptabs__label:nth-of-type(6),
.ptabs__radio:nth-of-type(7):checked ~ .ptabs__labels .ptabs__label:nth-of-type(7),
.ptabs__radio:nth-of-type(8):checked ~ .ptabs__labels .ptabs__label:nth-of-type(8) {
  background: #fff; color: var(--ink); border-color: var(--rule); box-shadow: inset 0 3px 0 var(--accent);
}
.ptabs__radio:nth-of-type(1):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(1),
.ptabs__radio:nth-of-type(2):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(2),
.ptabs__radio:nth-of-type(3):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(3),
.ptabs__radio:nth-of-type(4):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(4),
.ptabs__radio:nth-of-type(5):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(5),
.ptabs__radio:nth-of-type(6):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(6),
.ptabs__radio:nth-of-type(7):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(7),
.ptabs__radio:nth-of-type(8):focus-visible ~ .ptabs__labels .ptabs__label:nth-of-type(8) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Plans: wide table from 640px, one vertical card per plan below that. */
.plan-cards { display: none; }
.plan-cards__title { font-weight: 600; margin: 0 0 8px; }
.plan-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; }
.plan-card__title { font-family: var(--font-sans); font-size: 1.0625rem; margin: 0; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--rule); }
.plan-card__fields { margin: 0; padding: 4px 14px; }
.plan-card__row { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: .9375rem; }
.plan-card__row:last-child { border-bottom: 0; }
.plan-card__row dt { font-weight: 600; }
.plan-card__row dd { margin: 0; min-width: 0; }
.plan-card__row .status { white-space: normal; }
.plan-card-notes, .plan-cards__sources { font-size: .875rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; margin: 0 0 12px; }
@media (max-width: 639px) {
  .plan-wide { display: none; }
  .plan-cards { display: block; }
}
.sources-list--full { padding-left: 2em; font-size: .9375rem; }
.sources-list--full li { margin-bottom: 4px; scroll-margin-top: 12px; }
.sources-list--full li:target { background: #FFF6DB; }
.faq__a { margin: 0; }

/* Firm list (hubs, home) */
.firm-list { display: grid; gap: 16px; grid-template-columns: 1fr; margin: 16px 0; }
.firm-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; }
.firm-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.firm-card__name { margin: 0; font-size: 1.25rem; }
.firm-card__name a { color: var(--ink); text-decoration: none; }
.firm-card__name a:hover { text-decoration: underline; }
.firm-card__facts { margin: 0 0 10px; font-size: .9375rem; }
.firm-card__facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); }
.firm-card__facts dt { color: var(--muted); }
.firm-card__facts dd { margin: 0; }
.firm-card__link { margin: 0; font-weight: 600; }
.section__intro { color: var(--muted); font-size: .9375rem; }
.card__title a { color: var(--ink); }
@media (min-width: 960px) { .firm-list { grid-template-columns: 1fr 1fr; } }

/* Comparison: firms as columns from 640px, one card per firm below that */
.cmp-table { min-width: 560px; }
.cmp-table thead th { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--ink); min-width: 220px; }
.cmp-table thead th:first-child { min-width: 0; font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp-table thead th a { display: block; margin-bottom: 6px; font-family: var(--font-serif); font-size: 1.125rem; }
.cmp-table tbody th { width: 13em; }
.cmp-group th { background: var(--surface); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cmp-cards { display: none; }
.cmp-card__group { margin: 12px 0 0; padding-top: 8px; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan-card__fields > .cmp-card__group:first-child { margin-top: 4px; padding-top: 0; }
.plan-card__title .firm-label { margin-left: 6px; vertical-align: middle; }
.plan-card__title a { color: var(--ink); }
@media (max-width: 639px) {
  .cmp-wide { display: none; }
  .cmp-cards { display: block; }
}
.cmp-sources { margin-top: 32px; }
.cmp-sources__firm { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 10px 14px; margin-bottom: 10px; }
.cmp-sources__firm summary { cursor: pointer; font-weight: 600; }
.cmp-sources__firm .sources-list { margin-top: 8px; font-size: .9375rem; }
.cmp-index { list-style: none; padding: 0; }
.cmp-index li { padding: 8px 0; border-top: 1px solid var(--rule); font-weight: 600; }

/* Guides and tools */
.guide-list { list-style: none; padding: 0; margin: 16px 0; }
.guide-list__item { border-top: 1px solid var(--rule); padding: 16px 0; max-width: var(--measure); }
.guide-list__title { font-size: 1.25rem; margin: 0 0 .3em; }
.guide-list__title a { color: var(--ink); }
.guide-list__item p { margin: 0; color: #2C3A4D; }
.example-note { font-size: .875rem; font-weight: 600; color: var(--warn); border-left: 3px solid var(--warn); padding-left: 10px; }
.prose code, .field__hint code { font-size: .875em; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; }

.calc { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 16px; margin: 16px 0; }
.calc__grid { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
.field.field--check label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.field.field--check input { width: auto; margin-top: 4px; flex: none; }
.field__hint { font-size: .875rem; color: var(--muted); margin: 0 0 6px; }
.field textarea#dd-days { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; }
.calc .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.calc-result { margin: 8px 0 24px; }
.calc-summary { font-weight: 600; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--rule); }
.calc-summary--hit { border-left: 4px solid var(--bad); }
.calc-summary--ok { border-left: 4px solid var(--ok); }
.calc-hit { color: var(--bad); font-weight: 600; }
.calc-errors { border: 1px solid var(--bad); border-radius: var(--radius); padding: 10px 14px; color: var(--bad); }
.calc-errors p { margin: 0 0 4px; font-weight: 600; }
@media (min-width: 640px) {
  .calc { padding: 28px; }
  .calc__grid { grid-template-columns: 1fr 1fr; }
  .field--check { align-self: end; }
}

/* Contact form */
.contact-form { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 16px; margin: 24px 0; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #B8BDB2; border-radius: var(--radius); padding: 10px 12px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-note { font-size: .875rem; color: var(--muted); }
.contact-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 640px) { .contact-form { padding: 28px; } }

/* Footer */
.site-footer { background: var(--ink); color: #C9D1DC; padding: 40px 0 32px; font-size: .9375rem; margin-top: 24px; }
.site-footer a { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer .brand__mark { filter: invert(1); }
.site-footer__top { display: grid; gap: 24px; }
.site-footer__tagline { color: #9AA6B6; }
.site-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__risk { border-top: 1px solid #2A3A52; padding-top: 16px; margin-top: 24px; font-size: .8125rem; color: #9AA6B6; max-width: 90ch; }
.site-footer__legal { font-size: .8125rem; color: #9AA6B6; margin: 0; }
@media (min-width: 960px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
