/* Wichita Warfighter — styles.
   Palette taken directly from the logo: charcoal, antique bronze, cream.
   Warmer and more editorial than the usual navy-and-gold government look,
   which is the point — this has to read as professional to a base commander
   and welcoming to a spouse on day three.

   Two bronze tokens exist on purpose:
     --bronze      display/decorative, only ever on charcoal
     --bronze-ink  text-safe, dark enough for 4.5:1 on cream
   Never set --bronze as a text colour on a light surface. */

:root {
  color-scheme: light;
  --char: #1c1c1c;         /* logo black */
  --char-2: #2b2926;
  --char-3: #6d5228;       /* link ink — reads as aged bronze, 6.4:1 on cream */
  --bronze: #8a6a35;       /* logo bronze */
  --bronze-ink: #6d5228;   /* 6.4:1 on cream — safe for text/labels */
  --bronze-soft: #f0e7d6;
  --bronze-line: #ddceb0;
  --page: #f2efe9;         /* logo cream */
  --surface: #fbf9f5;
  --surface-2: #f6f3ec;
  --ink: #1c1c1c;
  --ink-2: #4d4842;
  --muted: #6d675f;
  --hairline: #e2dcd0;
  --border: rgba(28, 28, 28, 0.13);
  --crit: #a8231b;
  --crit-bg: #fbeae7;
  --crit-line: #f0c8c1;
  --warn: #7d5106;
  --warn-bg: #fbf1de;
  --warn-line: #e9d5ab;
  --good: #2f6b3f;
  --good-bg: #e8f1e6;
  --good-line: #c2d9bd;
  --local: #7a3f2a;        /* terracotta — sits inside the warm family */
  --local-bg: #f7ebe4;
  --state: #2f6b3f;
  --state-bg: #e8f1e6;
  --fed: #3c4a5c;          /* slate — the one cool note, for federal */
  --fed-bg: #ecf0f4;
  --fed-line: #d2d9e2;
  --focus: #1f6feb;
  --tab-on-bg: #1c1c1c;   /* active nav pill */
  --tab-on-ink: #f2efe9;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(28, 28, 28, 0.05), 0 6px 18px rgba(28, 28, 28, 0.07);
  --shadow-lift: 0 2px 6px rgba(28, 28, 28, 0.08), 0 12px 28px rgba(28, 28, 28, 0.12);
}

/* Dark mode. The header/footer are already navy, so the job is inverting the
   page ground and softening the accent fills rather than restyling components. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --char: #14130f;         /* warm near-black, not blue-black */
    --char-2: #1e1c17;
    --char-3: #d9b877;
    --bronze: #c9a25e;
    --bronze-ink: #e0be7d;
    --bronze-soft: #3a3021;
    --bronze-line: #574828;
    --page: #14130f;
    --surface: #1e1c17;
    --surface-2: #25231d;
    --ink: #efeae0;
    --ink-2: #c0b9ab;
    --muted: #968f82;
    --hairline: #33302a;
    --border: rgba(255, 255, 255, 0.13);
    --crit: #ff9b90;
    --crit-bg: #331b18;
    --crit-line: #5c2c26;
    --warn: #e8b54d;
    --warn-bg: #2f2612;
    --warn-line: #574611;
    --good: #86d09a;
    --good-bg: #18261a;
    --good-line: #2e4a33;
    --local: #e0a288;
    --local-bg: #33211a;
    --state: #86d09a;
    --state-bg: #18261a;
    --fed: #a9bdd4;
    --fed-bg: #1d222b;
    --fed-line: #39414d;
    --focus: #6ea8fe;
    /* charcoal would vanish into the dark bar — flip to bronze */
    --tab-on-bg: #c9a25e;
    --tab-on-ink: #14130f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 18px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

/* One visible focus treatment everywhere, including inside the navy header. */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}
.site-foot :focus-visible { outline-color: #e8c27a; }

a { color: var(--char-3); }
a:hover { color: var(--char); }
h1, h2, h3, h4 { line-height: 1.25; }
h2 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 8px 0; }
ul { margin: 8px 0; padding-left: 20px; }
li { margin: 3px 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #1c1c1c; color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ----------
   Light bar on purpose: the wordmark is charcoal-and-bronze drawn for a cream
   ground. Dropping it on a dark bar would mean a second, inverted artwork. */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  border-bottom: 3px solid var(--bronze);
  box-shadow: 0 1px 12px rgba(28, 28, 28, 0.07);
}
/* Two rows at every width. Seven sections plus two utility buttons never fit
   on one line without the nav silently clipping, and a clipped nav reads as
   broken rather than scrollable. */
.head-inner {
  max-width: 1160px; margin: 0 auto; padding: 8px 20px 0;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { display: flex; }
.brand-mark { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
/* Wordmark echoes the logo lockup: heavy charcoal "WICHITA", bronze
   letterspaced "WARFIGHTER" underneath it at the same optical width. */
.brand-text strong {
  color: var(--ink); font-size: 1.02rem; letter-spacing: 0.02em;
  text-transform: uppercase; font-weight: 800; font-stretch: condensed;
}
.brand-text strong b { color: var(--bronze-ink); font-weight: 800; }
.brand-text em {
  color: var(--bronze-ink); font-size: 0.66rem; font-style: normal;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
}

.nav {
  order: 3; width: 100%; min-width: 0;
  display: flex; align-items: center; gap: 2px; justify-content: flex-start;
  overflow-x: auto; scrollbar-width: none;
  margin-top: 6px; padding-bottom: 6px;
  border-top: 1px solid var(--hairline);
  padding-top: 6px;
}
.nav::-webkit-scrollbar { display: none; }
/* soft right edge hints there's more to swipe, only when it actually overflows */
.nav.scrollable {
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%);
}
.nav-tab {
  flex: none; white-space: nowrap; text-decoration: none;
  color: var(--ink-2); font-weight: 600; font-size: 0.88rem;
  padding: 8px 14px; border-radius: 999px;
}
.nav-tab:hover { background: var(--surface-2); color: var(--char); }
.nav-tab.on { background: var(--tab-on-bg); color: var(--tab-on-ink); }

.head-right { flex: none; margin-left: auto; display: flex; align-items: center; gap: 8px; }
.help-btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: #a8231b; color: #fff; border: 1px solid #c8342b;
  padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 700;
}
.help-btn:hover { background: #c8342b; color: #fff; }
.saved-btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px; font-size: 0.84rem; font-weight: 600;
}
.saved-btn:hover { background: var(--bronze-soft); border-color: var(--bronze-line); color: var(--ink); }
.saved-count {
  background: var(--bronze); color: #fff; border-radius: 999px;
  min-width: 20px; text-align: center; padding: 0 6px; font-size: 0.76rem; font-weight: 800;
}

/* ---------- layout ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 26px 20px 70px; }
.tab-head { margin-bottom: 18px; }
.tab-head h2 { font-size: 1.75rem; }
.lede { color: var(--ink-2); max-width: 76ch; font-size: 1.02rem; margin: 6px 0 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.mt { margin-top: 22px; }
.mt-s { margin-top: 12px; }
.muted { color: var(--ink-2); font-size: 0.92rem; }
.tiny { font-size: 0.8rem; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.section-title {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); font-weight: 800; margin: 26px 0 10px;
  border-bottom: 1px solid var(--hairline); padding-bottom: 6px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(150deg, #1c1c1c 0%, #262320 55%, #3a3128 100%);
  color: #fff; border-radius: 16px; padding: 30px 30px 26px; margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(138,106,53,0.35), transparent 65%);
}
/* The lockup ships as opaque RGB on a #f8f3ee ground, so wherever it sits it
   needs a plate of exactly that colour. In light mode it disappears into the
   cream header; in dark mode the plate is what stops it reading as a stray
   white box. 320px source into a 62px slot — the two-row header has the
   vertical room, and below ~56px the letterspaced WARFIGHTER stops resolving. */
.head-logo {
  flex: none; display: block; width: 62px; height: auto;
  background: #f8f3ee; border-radius: 8px; padding: 3px;
  margin-left: 4px;
}
@media (prefers-color-scheme: dark) {
  .head-logo { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14); }
}
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.hero p { color: #ded7ca; max-width: 68ch; margin: 0; position: relative; }
.hero .hero-kicker {
  display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #d6ac5e; margin-bottom: 8px;
}
.facts { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 22px; position: relative; }
.fact-n { display: block; font-size: 1.5rem; font-weight: 800; color: #d6ac5e; line-height: 1.1; }
.fact-l { font-size: 0.78rem; color: #c3bbac; max-width: 22ch; display: block; }

/* ---------- urgent strip ---------- */
.urgent { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.urgent-card {
  border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--border); background: var(--surface); display: block;
  border-left: 5px solid var(--muted);
}
.urgent-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.urgent-card.crit { border-left-color: var(--crit); background: var(--crit-bg); border-color: var(--crit-line); }
.urgent-card.warn { border-left-color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.urgent-card.info { border-left-color: var(--char-3); background: var(--fed-bg); border-color: var(--fed-line); }
.urgent-title { font-weight: 800; font-size: 0.92rem; }
.urgent-line { font-size: 1.16rem; font-weight: 800; color: var(--fed); margin: 2px 0 4px; letter-spacing: -0.01em; }
.urgent-card.crit .urgent-line { color: var(--crit); }
.urgent-detail { font-size: 0.82rem; color: var(--ink-2); }

/* ---------- audience picker ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.aud-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 16px; cursor: pointer; text-align: left; font: inherit; color: var(--ink);
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .12s, box-shadow .12s;
}
.aud-card:hover { border-color: var(--char-3); box-shadow: var(--shadow); }
.aud-card.on { border-color: var(--char-3); background: var(--fed-bg); box-shadow: inset 0 0 0 1px var(--char-3); }
/* label carries a bronze rule instead of the old emoji column */
.aud-label::before {
  content: ""; display: block; width: 26px; height: 3px;
  background: var(--bronze); border-radius: 2px; margin-bottom: 8px;
}
.aud-label { font-weight: 700; display: block; }
.aud-blurb { font-size: 0.8rem; color: var(--ink-2); }

/* ---------- filters ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow);
  position: sticky; top: 116px; z-index: 40;
}
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-input {
  flex: 1 1 260px; font: inherit; padding: 9px 13px; border-radius: 9px;
  border: 1px solid var(--hairline); background: var(--surface-2); color: var(--ink);
}
.search-input:focus { outline: 2px solid var(--char-3); outline-offset: 1px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.chip-lab { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 800; margin-right: 2px; }
.chip {
  appearance: none; border: 1px solid var(--border); background: var(--surface-2);
  color: var(--ink-2); font: inherit; font-size: 0.82rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--char-3); color: var(--char); }
.chip.on { background: var(--char); border-color: var(--char); color: #fff; }
.chip.on.local { background: var(--local); border-color: var(--local); }
.chip.on.state { background: var(--state); border-color: var(--state); }
.chip.on.fed { background: var(--fed); border-color: var(--fed); }
.result-count { font-size: 0.84rem; color: var(--ink-2); margin-left: auto; font-weight: 600; }
.clear-btn {
  appearance: none; border: 0; background: none; color: var(--char-3);
  font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; text-decoration: underline;
}

/* ---------- benefit cards ---------- */
.benefit-list { display: grid; gap: 14px; }
.benefit {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.benefit-head {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer;
  width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0;
}
.benefit-head:hover { background: var(--surface-2); }
.benefit-main { flex: 1 1 auto; min-width: 0; }
.benefit-title { font-size: 1.06rem; font-weight: 700; margin: 0 0 3px; letter-spacing: -0.01em; }
.benefit-org { font-size: 0.8rem; color: var(--muted); }
.benefit-summary { font-size: 0.92rem; color: var(--ink-2); margin: 7px 0 0; }
.benefit-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.value-tag {
  background: var(--bronze-soft); color: var(--bronze-ink); border: 1px solid var(--bronze-line);
  font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 8px;
  text-align: right; max-width: 210px;
}
.badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 6px; }
.badge {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 8px; border-radius: 999px;
}
.badge.local { background: var(--local-bg); color: var(--local); }
.badge.state { background: var(--state-bg); color: var(--state); }
.badge.fed { background: var(--fed-bg); color: var(--fed); }
.badge.new { background: var(--bronze-soft); color: var(--bronze-ink); }
.badge.startHere { background: var(--crit-bg); color: var(--crit); }
.star-btn {
  appearance: none; border: 1px solid var(--border); background: var(--surface-2);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  font-size: 0.95rem; color: var(--muted); line-height: 1; flex: none;
}
.star-btn:hover { border-color: var(--bronze-ink); color: var(--bronze-ink); }
.star-btn.on { background: var(--bronze); border-color: var(--bronze); color: #fff; }

.benefit-body { padding: 0 18px 18px; border-top: 1px solid var(--hairline); }
.benefit-body[hidden] { display: none; }
.body-block { margin-top: 14px; }
.body-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 800; margin-bottom: 4px;
}
.body-block p { margin: 0; font-size: 0.93rem; }
.body-block ul { margin: 0; font-size: 0.93rem; }
.link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.link-pill {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  background: var(--fed-bg); color: var(--fed); border: 1px solid var(--fed-line);
  font-size: 0.83rem; font-weight: 600; padding: 5px 11px; border-radius: 8px;
}
.link-pill:hover { background: var(--char); color: #fff; border-color: var(--char); }
.link-pill .ext-i { opacity: 0.55; flex: none; }
.link-pill:hover .ext-i { opacity: 1; }
.note-block {
  margin-top: 14px; background: var(--warn-bg); border-left: 4px solid var(--warn);
  padding: 9px 12px; border-radius: 0 8px 8px 0; font-size: 0.86rem; color: var(--warn);
}

/* ---------- directory ---------- */
.org-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.org-card.featured { border-color: var(--bronze-ink); box-shadow: 0 0 0 1px var(--bronze-ink), var(--shadow); }
.org-name { font-size: 1.04rem; font-weight: 700; margin: 0; }
.org-tag { font-size: 0.75rem; font-weight: 700; color: var(--bronze-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.org-blurb { font-size: 0.9rem; color: var(--ink-2); margin: 8px 0; }
.org-meta { font-size: 0.85rem; margin: 4px 0; display: flex; gap: 7px; align-items: baseline; }
.org-meta b { flex: none; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); min-width: 52px; }

/* ---------- checklists ---------- */
.cl-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.cl-tab {
  appearance: none; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-2); font: inherit; font-size: 0.87rem; font-weight: 700;
  padding: 8px 14px; border-radius: 9px; cursor: pointer;
}
.cl-tab:hover { border-color: var(--char-3); }
.cl-tab.on { background: var(--char); border-color: var(--char); color: #fff; }
.cl-progress {
  height: 8px; background: var(--hairline); border-radius: 999px; overflow: hidden; margin: 10px 0 18px;
}
.cl-progress span { display: block; height: 100%; background: var(--good); transition: width .25s; }
.step {
  display: flex; gap: 13px; align-items: flex-start; padding: 13px 15px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 9px; cursor: pointer; text-align: left; width: 100%; font: inherit; color: var(--ink);
}
.step:hover { border-color: var(--char-3); }
.step.done { background: var(--good-bg); border-color: var(--good-line); }
.step.done .step-t { text-decoration: line-through; color: var(--ink-2); }
.step-box {
  width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--hairline);
  display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
  background: var(--surface); color: #fff;
}
.step.done .step-box { background: var(--good); border-color: var(--good); }
.step-n { flex: none; font-size: 0.75rem; font-weight: 800; color: var(--muted); margin-top: 3px; min-width: 18px; }
.step-t { font-weight: 700; font-size: 0.96rem; }
.step-d { font-size: 0.87rem; color: var(--ink-2); margin-top: 2px; }
.step-link { font-size: 0.82rem; font-weight: 700; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty strong { display: block; font-size: 1.05rem; color: var(--ink-2); margin-bottom: 4px; }
.callout {
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--bronze-ink);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; box-shadow: var(--shadow);
}
.role-card { background: #1c1c1c; color: #fff; border-radius: var(--radius); padding: 20px 22px; }
.role-card h3 { color: #d6ac5e; }
.role-card p { color: #ded7ca; font-size: 0.93rem; }
.role-card a { color: #fff; }

/* ---------- footer ---------- */
.site-foot { background: #1c1c1c; color: #c3bbac; margin-top: 40px; border-top: 3px solid var(--bronze); }
.foot-inner { max-width: 1160px; margin: 0 auto; padding: 26px 20px 34px; }
.foot-lead { color: #efeae0; font-weight: 600; max-width: 80ch; }
.foot-note { font-size: 0.82rem; max-width: 90ch; }
.foot-note strong { color: #fff; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #1c1c1c; color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .2s; z-index: 100;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 860px) {
  .head-inner { padding: 8px 14px 0; gap: 10px; }
  .brand-text em { display: none; }
  /* icon-only utility buttons so the brand keeps its line */
  .btn-text { display: none; }
  .help-btn, .saved-btn { padding: 8px 11px; }
  .nav-tab { padding: 9px 13px; }   /* ≥44px tall tap target */
  .filters { position: static; }
  .benefit-head { flex-wrap: wrap; }
  .benefit-side { flex-direction: row; align-items: center; width: 100%; }
  .value-tag { text-align: left; }
  .wrap { padding: 20px 14px 60px; }
  .hero { padding: 24px 20px; }
  .head-logo { width: 46px; padding: 2px; }
}

@media print {
  .site-head, .filters, .cl-tabs, .star-btn, .saved-btn, #toast, .skip { display: none !important; }
  .benefit-body { display: block !important; }
  .benefit, .card, .org-card { break-inside: avoid; box-shadow: none; }
  body { background: #fff; }
}

/* ---------- living here ---------- */
.live-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 17px; box-shadow: var(--shadow);
}
.live-card.featured { border-color: var(--bronze-ink); box-shadow: 0 0 0 1px var(--bronze-ink), var(--shadow); }
.live-addr { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.live-addr a { color: var(--char-3); font-weight: 600; }
.live-mil b {
  display: block; font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--bronze-ink); margin-bottom: 3px;
}
.live-mil.warn b { color: var(--warn); }
.live-mil {
  font-size: 0.85rem; margin: 10px 0 8px; padding: 8px 11px;
  background: var(--bronze-soft); border-left: 3px solid var(--bronze-ink);
  border-radius: 0 8px 8px 0; color: var(--ink-2);
}
.live-mil.warn { background: var(--warn-bg); border-left-color: var(--warn); color: var(--warn); font-weight: 600; }


/* ---------- audit fixes ---------- */

/* The card heading is a real <h3> again; the toggle button inside it carries
   the disclosure semantics while the whole head stays clickable by pointer. */
.benefit-head { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; cursor: pointer; }
.benefit-head:hover { background: var(--surface-2); }
.benefit-title { margin: 0 0 3px; }
.benefit-toggle {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 1.06rem; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink); text-align: left; cursor: pointer;
}
.benefit-toggle:hover { color: var(--char-3); }
.benefit-foot { padding: 0 18px 12px; display: flex; gap: 10px; align-items: center; }

/* Crisis numbers are now dialable. On a phone this is the whole point of the card. */
.urgent-tel {
  display: inline-block; text-decoration: none; color: var(--fed);
  border-bottom: 2px solid currentColor;
}
.urgent-card.crit .urgent-tel { color: var(--crit); }
.urgent-tel:hover { color: var(--ink); }
.urgent-more {
  display: inline-block; margin-top: 8px; font-size: 0.8rem; font-weight: 700;
  color: var(--ink-2);
}
.org-meta a { font-weight: 600; }

/* Body copy was 14.7px and the crisis explainer was 13.1px — the smallest type
   on the page sat on the most important card. Floor the reading sizes at 16px. */
.benefit-summary, .body-block p, .body-block ul, .org-blurb, .urgent-detail { font-size: 1rem; }
.step-d, .live-mil { font-size: 0.95rem; }

/* Tap targets: the star drives the entire My List feature and was 30px. */
.star-btn { width: 40px; height: 40px; font-size: 1.1rem; }
@media (max-width: 860px) {
  .chip { padding: 9px 13px; }
  .star-btn { width: 44px; height: 44px; }
}

/* Dark mode flipped the accent tokens light but these kept white foregrounds. */
@media (prefers-color-scheme: dark) {
  .chip.on, .chip.on.local, .chip.on.state, .chip.on.fed { color: #14130f; }
  .saved-count { color: #14130f; }
}

/* My List explicitly tells people to print this and take it to an appointment,
   so the printed sheet has to carry the addresses and the caveat. */
@media print {
  .link-pill::after { content: " (" attr(href) ")"; font-size: 0.75em; opacity: 1; }
  .benefit-body a[href^="http"]::after,
  .org-card a[href^="http"]::after { content: " — " attr(href); font-size: 0.75em; }
  .urgent-more, .help-btn { display: none !important; }
  .site-foot { display: block !important; background: none; color: #000; border: 0; }
  .foot-note { font-size: 9pt; }
}


/* ---------- emoji-free chrome ----------
   The header buttons dropped their glyphs, so the short labels take over on
   narrow screens instead of leaving two unlabelled pills. */
.btn-short { display: none; }
@media (max-width: 860px) {
  .btn-text { display: none; }
  .btn-short { display: inline; }
}
.link-pill { align-items: center; gap: 6px; }
.star-btn { display: inline-flex; align-items: center; justify-content: center; }
.star-btn svg { display: block; }
.step-box svg { display: block; }

/* Bridge from the Start-page preview to the full filtered list. */
.see-all {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 0.92rem;
  background: var(--char); color: var(--page);
  padding: 10px 18px; border-radius: 999px;
}
.see-all:hover { background: var(--char-3); color: var(--page); }
@media (prefers-color-scheme: dark) {
  .see-all { background: var(--bronze); color: #14130f; }
  .see-all:hover { background: var(--bronze-ink); color: #14130f; }
}

/* ---------- eating here ---------- */
.food-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 17px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.food-top { display: flex; align-items: baseline; gap: 10px; }
.food-top .org-name { flex: 1 1 auto; margin: 0; }
.food-price { flex: none; font-size: 0.85rem; font-weight: 800; color: var(--bronze-ink); letter-spacing: 0.04em; }
.food-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 2px; }
.food-cuisine, .food-area {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
}
.food-cuisine { background: var(--bronze-soft); color: var(--bronze-ink); }
.food-area { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.food-standing {
  font-size: 0.82rem; color: var(--muted); margin: 6px 0 8px;
  padding-left: 10px; border-left: 2px solid var(--bronze-line);
}
.food-card .live-addr { margin-top: auto; padding-top: 8px; }
.food-card .link-row { margin-top: 10px; }
.chip-n {
  display: inline-block; margin-left: 4px; font-size: 0.72rem; font-weight: 800;
  opacity: 0.6;
}
.chip.on .chip-n { opacity: 0.85; }
