/* Veterans Benefits Capacity and Due Process Observatory
   Black-and-white, system-font, screen-reader-first interface. */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #4b4b4b;
  --line: #b8b8b8;
  --soft: #f3f3f3;
  --dark: #111111;
  --max: 76rem;
  --measure: 72ch;
  --focus: 3px solid #000000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: inherit; text-decoration-thickness: .12em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible {
  outline: var(--focus);
  outline-offset: .2rem;
}
.skip-link {
  position: absolute;
  left: .75rem;
  top: -5rem;
  z-index: 9999;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: .75rem 1rem;
  font-weight: 700;
}
.skip-link:focus { top: .75rem; }
.utility-bar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 3rem;
  padding: .6rem 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero { background: var(--dark); color: #fff; padding: clamp(3rem, 8vw, 7rem) 1rem 3rem; }
.hero > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.eyebrow, .section-number, .source-id {
  font-family: "Courier New", Courier, monospace;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .98; max-width: 18ch !important; margin-top: .65rem !important; margin-bottom: 1.25rem !important; letter-spacing: -.035em; }
.lede { font-size: clamp(1.2rem, 2.4vw, 1.7rem); max-width: 58ch !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; color: #e8e8e8; }
.byline { max-width: 60ch !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; color: #cfcfcf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem !important; }
.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  background: #fff;
  color: #000;
  padding: .62rem 1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #e6e6e6; }
.button-primary { background: #000; color: #fff; border-color: #fff; }
.button-primary:hover { background: #fff; color: #000; }
.update-line { font-family: "Courier New", Courier, monospace; font-size: .9rem; margin-top: 1.5rem !important; }
.disclaimer { background: #fff; border-bottom: 2px solid #000; padding: 1rem; }
.disclaimer, .section-nav { max-width: var(--max); margin: 0 auto; }
.section-nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 2px solid #000;
  scrollbar-width: thin;
}
.section-nav a { flex: 0 0 auto; padding: .8rem .9rem; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.section { padding: clamp(3rem, 7vw, 6rem) 1rem; }
.section > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-contrast { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: baseline; margin-bottom: 1.3rem; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; }
.section-number { margin: 0; color: var(--muted); }
.section-intro { max-width: var(--measure) !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; font-size: 1.15rem; }
.subheading { margin-top: 3rem; font-size: 1.55rem; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.metric-card { border: 2px solid #000; padding: 1.25rem; background: #fff; }
.metric-card h3 { margin: .2rem 0 .6rem; font-size: 1.05rem; }
.metric-card p { margin: .55rem 0; }
.metric-value { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.classification-grid, .method-grid, .policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.classification-grid article, .method-grid article, .policy-card { border-top: 4px solid #000; padding: 1rem 0; }
.badge { display: inline-block; border: 2px solid #000; padding: .12rem .45rem; font-size: .72rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; background: #fff; color: #000; }
.badge-calculated { border-style: double; border-width: 4px; padding: 0 .4rem; }
.badge-scenario { background: #000; color: #fff; }
.badge-unknown { border-style: dashed; }
.finding { max-width: var(--max); padding: 2.25rem 0; border-top: 2px solid #000; }
.finding h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.2; max-width: 46ch; }
.finding p { max-width: var(--measure); }
.limits, .legal-framing { border: 3px solid #000; padding: 1.25rem; margin-top: 2rem !important; background: #fff; }
.limits h3, .legal-framing h3 { margin-top: 0; }
.table-wrap { max-width: var(--max); overflow-x: auto; margin-top: 1.5rem; border: 1px solid #000; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 48rem; }
caption { text-align: left; font-weight: 800; font-size: 1.1rem; padding: 1rem; border-bottom: 2px solid #000; }
th, td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .75rem; }
thead th { background: #000; color: #fff; border-color: #fff; }
tbody th { font-weight: 700; }
.model { max-width: var(--max); margin-top: 1.5rem; border: 3px solid #000; background: #fff; }
fieldset { border: 0; margin: 0; padding: 1.25rem; }
legend { width: 100%; padding: 1rem 1.25rem; margin: 0 -1.25rem 1rem; background: #000; color: #fff; font-size: 1.2rem; font-weight: 800; }
.input-grid, .filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
label { display: grid; gap: .35rem; font-weight: 700; }
input, select { width: 100%; min-height: 3rem; border: 2px solid #000; background: #fff; color: #000; padding: .55rem .65rem; font: inherit; }
.model-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border-top: 3px solid #000; }
.model-results div { padding: 1rem; border-right: 1px solid #000; border-bottom: 1px solid #000; }
.model-results span { display: block; font-size: .85rem; font-weight: 700; }
.model-results strong { display: block; margin-top: .35rem; font-size: 1.45rem; line-height: 1.15; }
.formula { max-width: var(--max); margin-top: 1rem; border: 1px solid #000; padding: .8rem 1rem; }
.formula summary { font-weight: 800; cursor: pointer; }
.model-note { max-width: var(--measure) !important; margin-left: max(0px, calc((100% - var(--max)) / 2)) !important; border-left: 5px solid #000; padding-left: 1rem; }
.filter-grid { max-width: var(--max); margin-top: 1.5rem; }
.result-count { max-width: var(--max); font-weight: 800; }
.ai-table-wrap table { min-width: 62rem; }
.hash { font-family: "Courier New", Courier, monospace; font-size: .75rem; overflow-wrap: anywhere; }
.source-table-wrap table { min-width: 80rem; }
.download-list { columns: 2; column-gap: 2rem; }
.download-list li { margin-bottom: .65rem; break-inside: avoid; }
.noscript { border: 3px solid #000; padding: 1rem; background: #fff; }
footer { background: #000; color: #fff; padding: 2.5rem 1rem; }
footer p { max-width: var(--max); margin: .55rem auto; }
.preview-note { color: #cfcfcf; font-size: .9rem; }
code { font-family: "Courier New", Courier, monospace; }
[hidden] { display: none !important; }

@media (max-width: 48rem) {
  body { font-size: 1rem; }
  .utility-bar { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .section-heading { grid-template-columns: 1fr; gap: .2rem; }
  .download-list { columns: 1; }
  .hero-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --fg: #fff; --muted: #d0d0d0; --line: #666; --soft: #151515; --dark: #000; --focus: 3px solid #fff; }
  .metric-card, .model, .limits, .legal-framing, .table-wrap, input, select, .noscript, .formula { background: #000; color: #fff; border-color: #fff; }
  .classification-grid article, .method-grid article, .policy-card, .finding, .section-nav, .disclaimer, .model-results, .model-results div, caption { border-color: #fff; }
  legend { border-bottom: 2px solid #fff; }
  .badge { background: #000; color: #fff; border-color: #fff; }
  .badge-scenario { background: #fff; color: #000; }
  thead th { background: #fff; color: #000; border-color: #000; }
  .button { background: #000; color: #fff; }
  .button:hover { background: #333; }
  .button-primary { background: #fff; color: #000; border-color: #fff; }
  .disclaimer { background: #000; }
}

@media print {
  .utility-bar, .section-nav, .hero-actions, .filter-grid, button { display: none !important; }
  body { font-size: 10pt; color: #000; background: #fff; }
  .hero { background: #fff; color: #000; padding: 1rem 0; }
  .section { padding: 1.2rem 0; }
  .section-contrast { background: #fff; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; overflow-wrap: anywhere; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
}
