/* Senior Care Map STL - county data desk.
   Palette: white, ink, land tint, survey blue, plat rust.
   Skeleton: 1080px measure, sticky left county rail, full bleed tables,
   oversized numerals opening each numbered section. */

:root {
  --paper: #ffffff;
  --ink: #16202a;
  --ink-soft: #4a5a68;
  --land: #e8eef2;
  --line: #c6d2da;
  --hair: #dde5ea;
  --blue: #1d6fa5;
  --rust: #c25e00;
  --measure: 1080px;
  --rail: 232px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
}

h1, h2, h3, h4, .num, .chip, .rail-head, .sec-index, .stat-figure, .tag {
  font-family: "Space Grotesk", "Public Sans", Helvetica, Arial, sans-serif;
}

a { color: var(--blue); }
a:hover { color: var(--rust); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }

/* ---------- masthead ---------- */
.plate {
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.plate-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px 14px;
  max-width: var(--measure);
  margin: 0 auto;
  flex-wrap: wrap;
}
.wordmark {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--blue); }
.plate-nav { display: flex; gap: 20px; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.plate-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.plate-nav a:hover { color: var(--rust); }

.vintage-strip {
  background: var(--land);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.vintage-strip p { margin: 0; padding: 8px 24px; max-width: var(--measure); margin: 0 auto; }

/* ---------- two column skeleton ---------- */
.sheet {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 44px;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 34px 24px 60px;
}

.rail { align-self: start; position: sticky; top: 18px; }
.rail-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  margin: 0 0 10px;
}
.rail ol { list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; line-height: 1.45; }
.rail ol li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--hair); }
.rail ol li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rail-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.rail-jump { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.rail-jump li { padding: 4px 0; }
.rail-jump a { text-decoration: none; color: var(--ink); }
.rail-jump a:hover { color: var(--rust); text-decoration: underline; }
.rail-jump em { font-style: normal; color: var(--blue); font-weight: 700; margin-right: 7px; font-variant-numeric: tabular-nums; }

/* ---------- headings ---------- */
.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 10px;
}
h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}
.standfirst { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 8px; max-width: 46em; }
.byline { font-size: 13px; color: var(--ink-soft); margin: 0 0 30px; letter-spacing: 0.02em; }

.sec { margin: 0 0 46px; scroll-margin-top: 20px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; border-top: 2px solid var(--ink); padding-top: 10px; margin: 0 0 14px; }
.sec-index { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.sec h2 { font-size: 25px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.sec h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.sec p { max-width: 46em; }

/* ---------- oversized numerals ---------- */
.figure-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  margin: 4px 0 22px;
}
.stat { background: var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 18px 16px 16px; }
.stat-figure {
  display: block;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stat-figure.blue { color: var(--blue); }
.stat-figure.rust { color: var(--rust); }
.stat-label { display: block; margin-top: 9px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }

/* ---------- county chips ---------- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  margin: 6px 0 18px;
}
.chip {
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  padding: 11px 12px 12px;
  font-size: 13px;
  line-height: 1.35;
}
.chip b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 3px; }
.chip .chip-state { color: var(--ink-soft); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.chip .chip-fig { display: block; margin-top: 5px; font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 600; }
.chip.thin { background: var(--land); }

/* ---------- tables ---------- */
.table-bleed { overflow-x: auto; margin: 8px 0 16px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
table.plat { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.plat caption { caption-side: top; text-align: left; font-size: 12.5px; color: var(--ink-soft); padding: 8px 0; }
table.plat th, table.plat td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
table.plat thead th {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink); white-space: nowrap;
}
table.plat td.n, table.plat th.n { text-align: right; font-variant-numeric: tabular-nums; padding-right: 14px; }
table.plat td.rk { font-family: "Space Grotesk", Helvetica, Arial, sans-serif; font-weight: 700; color: var(--blue); width: 38px; }
table.plat tbody tr:nth-child(odd) td { background: #fbfcfd; }
table.plat td.np { color: var(--ink-soft); font-style: italic; }
.tbl-foot { font-size: 13px; color: var(--ink-soft); margin: 6px 0 0; max-width: 52em; }

/* ---------- methodology box ---------- */
.methodology-box {
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  background: var(--land);
  padding: 16px 18px;
  margin: 20px 0 26px;
  font-size: 14.5px;
  line-height: 1.6;
}
.methodology-box h2, .methodology-box h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 8px; color: var(--ink); font-weight: 700; }
.methodology-box p { margin: 0 0 9px; max-width: none; }
.methodology-box p:last-child { margin-bottom: 0; }
.methodology-box dl { margin: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 14px; }
.methodology-box dt { font-weight: 700; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.methodology-box dd { margin: 0; }

/* ---------- featured slot (paid, disclosed) ---------- */
.featured-slot {
  border: 2px solid var(--rust);
  background: var(--paper);
  padding: 20px 22px;
  margin: 26px 0 30px;
  box-shadow: 6px 6px 0 var(--land);
}
.featured-tag {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rust); margin: 0 0 8px;
}
.featured-slot h2, .featured-slot h3 { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.featured-slot h2 a, .featured-slot h3 a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--rust); }
.featured-slot h2 a:hover, .featured-slot h3 a:hover { color: var(--rust); }
.featured-area { font-size: 14.5px; margin: 8px 0; max-width: none; }
.featured-call { font-size: 15px; font-weight: 600; margin: 10px 0 12px; }
.featured-call a { text-decoration: none; border-bottom: 1px solid var(--blue); }
.featured-disclosure { font-size: 13px; line-height: 1.55; color: var(--ink-soft); margin: 0; border-top: 1px solid var(--hair); padding-top: 10px; max-width: none; }

/* ---------- hub ---------- */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1px; border: 1px solid var(--line); margin: 6px 0 10px; }
.hub a, .lists-item {
  display: block;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--line);
  padding: 14px 15px;
  text-decoration: none;
  color: var(--ink);
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
}
.hub a:hover, .lists-item:hover { background: var(--land); color: var(--rust); }
.hub a small { display: block; margin-top: 5px; font-family: "Public Sans", Arial, sans-serif; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }

/* ---------- form ---------- */
.intake { border: 1px solid var(--line); border-top: 4px solid var(--blue); padding: 22px; margin: 34px 0 10px; background: var(--paper); }
.intake h2 { font-size: 21px; margin: 0 0 6px; font-weight: 700; }
.intake p.lede { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; max-width: 44em; }
.fieldrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 10px 11px; font-size: 15.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.trap { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
button.go {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  background: var(--blue); color: #fff; border: 0; padding: 13px 26px; cursor: pointer;
}
button.go:hover { background: var(--rust); }
button.go[disabled] { opacity: 0.55; cursor: default; }
.callout { font-size: 15px; margin: 0; }
.callout a { font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--blue); }
.formnote { font-size: 12.5px; color: var(--ink-soft); margin: 14px 0 0; max-width: 46em; }
.formstatus { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.formstatus.bad { color: var(--rust); }
.formstatus.good { color: var(--blue); }

/* ---------- footer ---------- */
.plat-foot { border-top: 2px solid var(--ink); background: var(--land); margin-top: 30px; }
.plat-foot-inner { max-width: var(--measure); margin: 0 auto; padding: 26px 24px 34px; font-size: 13.5px; color: var(--ink-soft); }
.plat-foot-inner h2 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin: 0 0 8px; }
.plat-foot-inner p { margin: 0 0 11px; max-width: 62em; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--rust); }

.crumbs { font-size: 13px; color: var(--ink-soft); margin: 26px 0 0; }
.crumbs a { text-decoration: none; }

@media (max-width: 900px) {
  .sheet { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 26px; }
  .rail { position: static; margin-bottom: 30px; }
  h1 { font-size: 31px; }
  .figure-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-figure { font-size: 34px; }
  .sec h2 { font-size: 21px; }
}

/* QA fix, Sep 10 2026: the source URL in the methodology box is a single
   unbreakable token. Inside a grid track with min-width auto it refused to
   shrink and pushed home-care-businesses-per-1000-seniors.html into a
   sideways scroll at 400px. */
.methodology-box dd,.methodology-box dt{min-width:0;overflow-wrap:anywhere}
