/* VA Care Finder — design tokens (see README "Design") */
:root {
  --green: #1F4D3F;
  --green-dark: #163A2F;
  --cream: #FAF6EE;
  --sand: #EFE6D6;
  --ink: #1E1E1E;
  --copper: #A4501A;
  --line: #D9CFBE;
  --muted: #4A4A42;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(30,30,30,.06), 0 4px 14px rgba(30,30,30,.06);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Self-hosted fonts (no Google servers) */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/fraunces-latin-600-normal.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: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/fraunces-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-400-normal.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-700-normal.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: 'Atkinson Hyperlegible'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--green-dark); margin: 1.6em 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); margin-top: .4em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; border-radius: 4px; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--copper); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--green); color: var(--cream); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { color: var(--cream); text-decoration: none; display: flex; align-items: center; gap: .7rem; }
.brand:hover { color: #fff; }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.45rem; line-height: 1.1; display: block; }
.brand-tag { font-size: .92rem; opacity: .92; display: block; }
.menu-toggle { display: none; background: transparent; color: var(--cream); border: 2px solid var(--cream); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.main-nav { background: var(--green-dark); }
.main-nav ul { list-style: none; margin: 0 auto; padding: .4rem 1.1rem; max-width: 1080px; display: flex; flex-wrap: wrap; gap: .3rem; }
.main-nav li { margin: 0; }
.main-nav a { display: block; color: var(--cream); text-decoration: none; padding: .55rem .8rem; border-radius: 999px; font-size: .95rem; min-height: 44px; display: flex; align-items: center; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(250,246,238,.14); color: #fff; }
.main-nav a.fmp-link { border: 2px solid var(--copper); background: var(--cream); color: var(--green-dark); font-weight: 700; }
.main-nav a.fmp-link:hover, .main-nav a.fmp-link[aria-current="page"] { background: #fff; color: var(--green-dark); }
.star { color: var(--copper); }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: .5rem 1rem 1rem; }
  .brand-name { font-size: 1.25rem; }
}

/* FMP sub-nav */
.sub-nav { background: var(--sand); border-bottom: 1px solid var(--line); }
.sub-nav ul { list-style: none; margin: 0 auto; max-width: 1080px; padding: .5rem 1.1rem; display: flex; gap: .3rem; overflow-x: auto; }
.sub-nav li { margin: 0; flex: none; }
.sub-nav a { display: block; padding: .45rem .8rem; border-radius: 999px; color: var(--green-dark); text-decoration: none; font-size: .93rem; white-space: nowrap; }
.sub-nav a:hover { background: var(--cream); }
.sub-nav a[aria-current="page"] { background: var(--green); color: var(--cream); }
.sub-nav .label { font-weight: 700; color: var(--copper); padding: .45rem .4rem; font-size: .93rem; white-space: nowrap; }

/* Hero */
.hero { padding: 2.2rem 0 1.6rem; border-bottom: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--copper); margin-bottom: .4rem; }
.hero p.lead { font-size: 1.15rem; max-width: 46rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0 .4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; background: var(--green); color: var(--cream); text-decoration: none; font-weight: 700; border: 2px solid var(--green); font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--green-dark); border-color: var(--copper); }
.btn-secondary:hover { background: var(--sand); color: var(--green-dark); border-color: var(--copper); }
.btn-small { min-height: 40px; padding: .45rem 1rem; font-size: .95rem; }

main { padding-bottom: 2rem; }
.page-head { padding: 1.6rem 0 .4rem; }

/* Cards & boxes */
.card, .box { background: var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.box > h2:first-child, .box > h3:first-child, .card > h2:first-child, .card > h3:first-child { margin-top: .2rem; }
.box-official { border-left: 6px solid var(--green); }
.box-community { border-left: 6px solid var(--copper); }
.box-highlight { border: 2px solid var(--copper); }
.box-label { display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.box-official .box-label { background: var(--green); color: var(--cream); }
.box-community .box-label { background: var(--cream); color: var(--copper); border: 1px solid var(--copper); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid .card { margin: 0; }
.card-link { display: block; text-decoration: none; color: var(--ink); }
.card-link:hover .card { outline: 2px solid var(--green); }
.card-link h3 { color: var(--green); margin: 0 0 .3rem; }
.note { font-size: .95rem; color: var(--muted); }
.caption { font-size: .93rem; color: var(--muted); margin-top: .6rem; }
.banner { background: var(--sand); border: 2px solid var(--copper); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.4rem 0; }
.banner strong { color: var(--green-dark); }
.coming-soon { display: inline-block; background: var(--cream); border: 1px dashed var(--copper); color: var(--copper); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; font-size: .9rem; }

/* Badges & pills */
.va-badge { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--green); border: 1px solid var(--green); border-radius: 999px; padding: 0 .45rem; margin-left: .3rem; vertical-align: 2px; text-decoration: none; }
.pill-edu { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--copper); border: 1.5px solid var(--copper); border-radius: 999px; padding: .05rem .55rem; margin-left: .4rem; vertical-align: 2px; background: var(--cream); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .45rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.link-list li:last-child { border-bottom: 0; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; background: var(--green-dark); border-radius: var(--radius); overflow: hidden; margin: .8rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Steps & journey */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 1rem 1.1rem 1rem 3.6rem; background: var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.steps > li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: var(--cream); font-weight: 700; display: grid; place-items: center; }
.steps > li > h3 { margin-top: .1rem; }
.journey { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); list-style: none; padding: 0; counter-reset: j; }
.journey li { counter-increment: j; margin: 0; }
.journey a { display: block; height: 100%; background: var(--sand); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem; text-decoration: none; color: var(--ink); border-top: 5px solid var(--green); }
.journey a::before { content: "Step " counter(j); display: block; font-size: .8rem; font-weight: 700; color: var(--copper); text-transform: uppercase; letter-spacing: .06em; }
.journey a strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--green-dark); }
.journey li.fmp a { border-top-color: var(--copper); }

/* Accordion */
details.faq { background: var(--sand); border-radius: var(--radius); margin: .6rem 0; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 48px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--copper); line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 1.1rem 1rem; }

/* Directory */
.filters { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); background: var(--sand); padding: 1rem; border-radius: var(--radius); margin: 1rem 0; }
.filters label { font-weight: 700; font-size: .92rem; display: block; }
.filters select { width: 100%; }
.filters .check { display: flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 44px; }
.result-count { font-weight: 700; color: var(--green-dark); }
.provider { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.1rem; }
.provider h3 { margin: .3rem 0 .2rem; }
.provider dl { margin: .5rem 0; display: grid; grid-template-columns: max-content 1fr; gap: .15rem .8rem; font-size: .95rem; }
.provider dt { font-weight: 700; color: var(--muted); }
.provider dd { margin: 0; }
.status { display: inline-block; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; }
.status-unverified { background: var(--cream); color: var(--copper); border: 1.5px solid var(--copper); }
.status-confirmed { background: var(--green); color: var(--cream); }
.provider .actions { display: flex; flex-wrap: wrap; gap: .6rem 1rem; font-size: .95rem; margin-top: .5rem; }

/* Forms */
form .field { margin: 0 0 1rem; }
label, legend { font-weight: 700; }
input[type=text], input[type=email], input[type=url], textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #8C8472; border-radius: 8px; padding: .6rem .7rem; min-height: 46px; }
textarea { min-height: 7rem; resize: vertical; }
.help { font-size: .9rem; color: var(--muted); display: block; margin-top: .2rem; font-weight: 400; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1rem; }
.choice { display: flex; align-items: flex-start; gap: .55rem; font-weight: 400; margin: .35rem 0; min-height: 32px; }
.choice input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--green); }
.req { color: var(--copper); }
.hidden-field { display: none; }
.form-msg { background: var(--sand); border-left: 6px solid var(--green); padding: .8rem 1rem; border-radius: 8px; }

/* Last checked */
.page-meta { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.page-meta button.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }

/* Crisis strip & footer */
.crisis { background: var(--sand); border-left: 6px solid var(--copper); }
.crisis .wrap { padding-top: .8rem; padding-bottom: .8rem; font-size: .95rem; }
.crisis strong { color: var(--green-dark); }
.site-footer { background: var(--green-dark); color: var(--cream); padding: 1.6rem 0 5.5rem; font-size: .95rem; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: .8rem 0 0; }
.site-footer .disclaimer { max-width: 52rem; }

/* Correction tab + dialog */
.fix-tab { position: fixed; z-index: 50; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; background: var(--cream); color: var(--green-dark); border: 2px solid var(--copper); border-right: 0; border-radius: 0 10px 10px 0; padding: 1rem .5rem; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; box-shadow: var(--shadow); }
.fix-tab:hover { background: #fff; }
@media (max-width: 860px) {
  .fix-tab { writing-mode: horizontal-tb; transform: none; top: auto; bottom: 1rem; right: 1rem; border: 2px solid var(--copper); border-radius: 999px; padding: .55rem 1rem; font-size: .9rem; }
}
dialog.fix-dialog { border: 0; border-radius: 14px; padding: 0; width: min(560px, 94vw); max-height: 92vh; background: var(--cream); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
dialog.fix-dialog::backdrop { background: rgba(22,58,47,.55); }
.fix-dialog .dlg-head { background: var(--green); color: var(--cream); padding: 1rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.fix-dialog .dlg-head h2 { color: var(--cream); margin: 0; font-size: 1.3rem; }
.fix-dialog .dlg-close { background: transparent; border: 2px solid var(--cream); color: var(--cream); border-radius: 999px; min-width: 44px; min-height: 44px; font-size: 1.2rem; cursor: pointer; }
.fix-dialog .dlg-body { padding: 1rem 1.2rem 1.2rem; overflow-y: auto; }

/* Print */
@media print {
  .site-header, .main-nav, .sub-nav, .crisis, .site-footer, .fix-tab, .no-print, .page-meta { display: none !important; }
  body { background: #fff; }
  .print-only { display: block !important; }
  .steps > li { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
}
.print-only { display: none; }
@media print { body.print-checklist .steps > li:not(.print-step) { display: none; } }
