/* Public resource pages: clear reading, inspectable evidence, quiet actions. */
:root {
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ink: #202a35;
  --muted: #59656f;
  --accent: #214e93;
  --line: #d9dfd9;
  --paper: #fff;
  --surface: #f4f6f8;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #397fdd;
  outline-offset: 5px;
}
h1, h2, h3, p, ol, ul { margin-top: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 4vw, 3.25rem); max-width: 960px; margin-bottom: 24px; }
h2 { font-size: 1.875rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; line-height: 1.35; }
p { margin-bottom: 20px; }
strong { font-weight: 500; }

.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-nav { min-height: 90px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.wordmark { font-size: 1.55rem; font-weight: 500; letter-spacing: -.045em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: .9rem; }
.nav-links a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 3px;
  padding: 12px 18px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.4;
}
.button:hover { background: #16396e; border-color: #16396e; text-decoration: none; }
.button.small { padding: 10px 15px; font-size: .85rem; white-space: nowrap; }
.site-nav > .button { flex-shrink: 0; background: var(--paper); border-color: var(--line); color: var(--ink); }
.site-nav > .button:hover { background: var(--surface); border-color: #aab5c0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; background: var(--paper); padding: 10px 18px; }
.skip-link:focus { top: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 28px; color: var(--muted); font-size: .8125rem; }
.breadcrumb a { color: inherit; text-decoration: none; }

.hero { padding: 48px 0 45px; max-width: 1000px; }
.eyebrow { font-size: .875rem; font-weight: 400; line-height: 1.55; color: var(--muted); margin-bottom: 17px; }
.lead { max-width: 72ch; font-size: 1.125rem; line-height: 1.65; color: var(--muted); margin-bottom: 28px; }
.editorial { display: flex; gap: 9px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.reading-layout { display: grid; grid-template-columns: minmax(0, 820px) minmax(170px, 1fr); gap: 64px; border-top: 1px solid var(--line); padding-top: 44px; align-items: start; }
.article-body { min-width: 0; }
.article-body > section { margin-bottom: 50px; scroll-margin-top: 25px; }
.article-body > section > p, .article-body > section > ul, .article-body > section > ol { max-width: 76ch; }
.article-body p, .article-body li { color: var(--muted); }
.article-body li { margin-bottom: 12px; padding-left: 3px; }
.article-body ul, .article-body ol { padding-left: 24px; }
.page-index { position: sticky; top: 28px; border-left: 1px solid var(--line); padding-left: 24px; }
.page-index ol { list-style: none; margin: 0; padding: 0; }
.page-index li { margin-bottom: 14px; line-height: 1.5; }
.page-index a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.page-index a:hover { text-decoration: underline; }
.aside-note { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); line-height: 1.9; }
.aside-note a { color: var(--accent); }

.note { background: var(--surface); border-left: 2px solid #aab5c0; padding: 19px 22px; margin: 24px 0; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.note strong { color: var(--ink); }
code { font: 400 .875em/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--surface); border-radius: 2px; padding: 2px 4px; overflow-wrap: anywhere; }
pre { font: 400 .8125rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 22px; overflow: auto; color: var(--ink); }
.table-scroll { overflow: auto; max-width: 100%; border: 1px solid var(--line); margin: 24px 0; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .875rem; line-height: 1.6; text-align: left; }
th, td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: none; }
thead th { background: var(--surface); color: var(--ink); font-size: .875rem; font-weight: 500; }
tbody th { font-weight: 500; }
caption { text-align: left; padding: 13px 16px; font-size: .8125rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.sample-table table { min-width: 760px; }
.sample-table td:first-child, .sample-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.sample-table td:nth-child(3) { white-space: nowrap; }
.review-state { display: inline-block; color: #745c24; font-size: .8125rem; line-height: 1.5; }
details { border-block: 1px solid var(--line); padding: 18px 0; margin: 22px 0; }
summary { cursor: pointer; font-size: .9375rem; font-weight: 500; color: var(--ink); }
details[open] summary { margin-bottom: 16px; }
details p { font-size: .9375rem; }
details p:last-child { margin-bottom: 0; }
.download-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0; }
.download-links a { font-size: .9375rem; font-weight: 400; }
.next-step { background: var(--surface); padding: 30px; margin-top: 50px; }
.next-step h2 { font-size: 1.875rem; }
.next-step p:not(.eyebrow) { font-size: 1rem; max-width: 620px; }
.next-step .text-action { display: inline-block; margin: 14px 0 0 20px; font-size: .875rem; }
.sources { border-top: 1px solid var(--line); padding-top: 25px; font-size: .875rem; color: var(--muted); }
.sources h2 { font-size: 1.25rem; }
.sources li { margin-bottom: 10px; }
.sources p { font-size: .8125rem; }

.related { border-top: 1px solid var(--line); padding-top: 42px; padding-bottom: 60px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.section-heading a { font-size: .875rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 36px; }
.resource-card { border-top: 1px solid var(--line); padding: 24px 0 28px; min-width: 0; }
.resource-card h3 { margin-bottom: 12px; max-width: 480px; }
.resource-card h3 a { color: var(--ink); text-decoration: none; }
.resource-card h3 a:hover { color: var(--accent); text-decoration: underline; }
.resource-card p:not(.eyebrow) { font-size: 1rem; line-height: 1.65; color: var(--muted); margin-bottom: 0; max-width: 68ch; }
.resource-card .eyebrow { font-size: .8125rem; margin-bottom: 12px; }
.hub-resources .resource-grid { grid-template-columns: 1fr; }
.site-footer { border-top: 1px solid var(--line); background: var(--paper); padding: 38px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner p { font-size: .85rem; color: var(--muted); margin: 10px 0; }
.footer-inner nav { display: flex; gap: 14px 24px; justify-content: flex-end; flex-wrap: wrap; align-items: flex-start; max-width: 620px; }
.footer-inner nav a { font-size: .8125rem; color: var(--accent); text-decoration: none; }
.footer-inner nav a:hover { text-decoration: underline; }
.footer-inner .footer-note { font-size: .75rem; margin-bottom: 0; }

@media (max-width: 1050px) {
  .site-nav { flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 2px 24px; }
  .nav-links a { padding: 8px 0; min-height: 36px; }
  .site-nav > .button { margin-left: auto; }
  .reading-layout { grid-template-columns: minmax(0, 1fr) 180px; gap: 32px; }
  .hero { padding-top: 40px; }
  .page-index { padding-left: 17px; }
  .footer-inner nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .site-nav { min-height: 76px; gap: 14px; }
  .wordmark { font-size: 1.35rem; }
  .nav-links { gap: 2px 20px; font-size: .82rem; }
  .site-nav > .button { font-size: .75rem; padding: 10px 11px; }
  .breadcrumb { padding-top: 23px; }
  .hero { padding: 32px 0 30px; }
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.65rem; }
  .lead { font-size: 1.0625rem; line-height: 1.65; }
  .editorial { font-size: .75rem; gap: 7px; }
  .reading-layout { display: flex; flex-direction: column; gap: 30px; padding-top: 28px; }
  .page-index { order: -1; position: static; width: 100%; border-left: none; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .page-index ol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .page-index li { margin: 0; }
  .page-index a { font-size: .8125rem; }
  .page-index .eyebrow { margin-bottom: 12px; }
  .aside-note { display: none; }
  .article-body { width: 100%; }
  .article-body > section { margin-bottom: 37px; }
  .next-step { padding: 24px; }
  .next-step .text-action { margin-left: 0; display: block; }
  .resource-grid { grid-template-columns: 1fr; }
  .related { padding-top: 30px; padding-bottom: 40px; }
  .resource-card { padding-block: 23px; }
  .section-heading h2 { font-size: 1.5rem; }
  .footer-inner { gap: 18px; }
  .footer-inner nav { gap: 14px 20px; }
  .site-footer { padding-top: 32px; }
  th, td { padding: 12px; }
  .table-scroll { margin: 20px 0; }
  .note { padding: 17px 18px; }
  pre { font-size: .75rem; padding: 16px; }
  .download-links { gap: 14px 22px; }
  details { padding-block: 16px; }
}

@media print {
  .site-header, .page-index, .related, .site-footer, .next-step, .skip-link { display: none; }
  .container { width: 100%; }
  .reading-layout { display: block; }
  .table-scroll { overflow: visible; }
  .hero { padding: 20px 0; }
  h1 { font-size: 28pt; }
  .article-body > section { break-inside: avoid; }
}
