/* Shared stylesheet for generated route, hub and index pages.
   Same palette and type stack as the previous generated pages and the checker. */
:root {
  color-scheme: light;
  --ink: #0f1c31; --muted: #4a5568; --brand: #3c4ecf; --line: #e2e7f4; --surface: #f4f6fb;
  --st-bg: #f3f4f6; --st-fg: #1f2937; --st-bd: #d1d5db;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: #fff; font: 17px/1.7 Inter, "Segoe UI", Arial, sans-serif; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; outline: 2px solid var(--brand); }
.site-header, main, .site-footer { width: min(100% - 40px, 900px); margin-inline: auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 19px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); font-size: 15px; text-decoration: none; }
.site-header nav a:hover { color: var(--brand); text-decoration: underline; }
main { padding: 30px 0 56px; }
.crumbs { margin-bottom: 22px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.crumbs a { color: var(--brand); }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
h1 { max-width: 820px; margin: 0 0 14px; font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -.03em; overflow-wrap: anywhere; }
h2 { margin: 36px 0 8px; font-size: 24px; line-height: 1.25; }
h3 { margin: 18px 0 4px; font-size: 18px; line-height: 1.35; }
p, li, dd { color: var(--muted); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
a { color: var(--brand); text-underline-offset: 2px; }
a:focus-visible, .cta:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.lede { max-width: 760px; margin: 0 0 18px; color: var(--ink); font-size: 19px; line-height: 1.55; }
.small { color: var(--muted); font-size: 14px; }
.meta { margin-top: 30px; color: var(--muted); font-size: 14px; }
.count { color: var(--muted); font-weight: 500; font-size: 18px; }

.answer { margin: 18px 0 22px; padding: 18px 20px; border: 1px solid var(--st-bd); border-radius: 14px; background: var(--st-bg); }
.answer-status { margin: 0 0 10px; color: var(--st-fg); font-size: 22px; font-weight: 700; line-height: 1.3; }
.answer-text { margin: 12px 0 0; color: var(--ink); }
.answer-next { margin: 12px 0 0; color: var(--ink); }
.answer .cta { margin-top: 14px; }
.answer-quote { margin: 12px 0 0; }
.answer-quote summary { padding: 10px 0; color: var(--brand); font-weight: 600; cursor: pointer; }
.answer-quote p { margin: 4px 0 0; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 20px; margin: 0; }
.facts div { min-width: 0; }
.facts dt { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.facts dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.st-green { --st-bg: #ecfdf5; --st-fg: #065f46; --st-bd: #a7f3d0; }
.st-blue { --st-bg: #eff6ff; --st-fg: #1e40af; --st-bd: #bfdbfe; }
.st-purple { --st-bg: #f5f3ff; --st-fg: #5b21b6; --st-bd: #ddd6fe; }
.st-orange { --st-bg: #fff7ed; --st-fg: #9a3412; --st-bd: #fed7aa; }
.st-red { --st-bg: #fef2f2; --st-fg: #991b1b; --st-bd: #fecaca; }

.note, .sourcebox, .cta-box, .offers { margin: 22px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.note p, .sourcebox p, .cta-box p { margin: 6px 0; }
.note.warn { border-color: #fcd34d; background: #fffbeb; }
.note.warn, .note.warn strong { color: #78350f; }
.sourcebox h2, .cta-box h2 { margin-top: 0; }
.links { margin: 8px 0 0; }
.dl-plain, .plain { margin: 8px 0; }
.plain div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain dt { color: var(--ink); font-weight: 600; }
.plain dd { margin: 2px 0 0; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 12px; font-weight: 600; vertical-align: middle; }
.offers-label { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.table-wrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
thead th { background: var(--surface); color: var(--ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
tbody th { color: var(--ink); font-weight: 600; }
tr:last-child > * { border-bottom: 0; }

.faq { padding: 4px 0 8px; border-bottom: 1px solid var(--line); }
.faq h3 { margin: 12px 0 4px; }
.faq p { margin: 0 0 8px; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 10px; padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; text-align: center; }
.cta:hover { background: #3243b8; }

.related { padding-left: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px 18px; margin: 10px 0; padding: 0; list-style: none; }
.grid li { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 2px; }
.grid li a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.grid li a:hover { text-decoration: underline; }
.grid.cols { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }

.site-footer { padding: 22px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0 0 10px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 8px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

@media (max-width: 520px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 900px); }
  main { padding-top: 22px; }
  .answer, .note, .sourcebox, .cta-box { padding: 14px 16px; }
  body { font-size: 16px; }
  th, td { padding: 8px 10px; }
}
@media print { .site-header nav, .cta, .cta-box, .offers { display: none; } }

@media screen { .offers.on { display: block; } }
.offers ul { margin: 8px 0; padding-left: 20px; }
.offers li { margin: 6px 0; }
