/* Aging Well HQ — calm, legible, honest. Audience: stressed adult children on
phones, often at night; and their parents. Large type, generous contrast, no clutter. */
:root {
  --ink: #1f2933; --soft: #52606d; --paper: #fcfaf7; --card: #ffffff;
  --accent: #0f6b62; --accent-ink: #ffffff; --line: #e4dfd7;
  --badge-mem: #7c3aed; --badge-med: #0f6b62;
}
* { box-sizing: border-box; }
body { margin: 0; font: 18px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: var(--paper); }
.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }
.top { border-bottom: 1px solid var(--line); background: var(--card); }
.top .wrap { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-size: 1.35rem; font-weight: 750; color: var(--ink); text-decoration: none;
  letter-spacing: -.01em; }
.brand span { color: var(--accent); }
.top nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.top nav a { color: var(--soft); text-decoration: none; font-weight: 550; }
.top nav a:hover { color: var(--accent); }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -.015em;
  margin: 1.2em 0 .4em; }
h2 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 46rem; }
a { color: var(--accent); }
.hero { background: linear-gradient(180deg, #eef4f2, var(--paper)); padding: 2.5rem 0 2rem; }
.hero h1 { margin-top: 0; max-width: 46rem; }
.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.4rem 0 .6rem; }
/* min-height rather than more padding: the target grows without pushing the label off
   the button's optical centre. 44px is the portfolio standard (WCAG AA floor is 24px;
   44 is AAA and Apple's HIG) and this audience skews older than most. */
.btn { display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.15rem; border-radius: .55rem;
  border: 1.5px solid var(--accent); color: var(--accent); text-decoration: none;
  font-weight: 600; background: var(--card); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.07); }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem; padding: 1.5rem 1.25rem 2.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
  padding: 1.1rem 1.2rem; }
.card h2 { margin-top: .2em; }
.crumbs { color: var(--soft); font-size: .95rem; margin-top: 1.4rem; }
.crumbs a { color: var(--soft); }
.count { display: inline-block; background: #edf2f0; border-radius: 1rem;
  padding: 0 .55em; font-size: .85rem; color: var(--soft); font-weight: 600; }
.citylist { columns: 3 12rem; gap: 2rem; list-style: none; padding: 0; }
.citylist li { margin: .25rem 0; break-inside: avoid; }
.provlist { list-style: none; padding: 0; }
.prov { display: flex; justify-content: space-between; gap: 1rem; align-items: start;
  background: var(--card); border: 1px solid var(--line); border-radius: .7rem;
  padding: .9rem 1.1rem; margin: .6rem 0; flex-wrap: wrap; }
.prov-name { font-weight: 650; font-size: 1.05rem; }
.prov-meta { color: var(--soft); font-size: .95rem; margin: .25rem 0 0; }
.type-note { color: var(--soft); margin-top: -.2rem; }
.badges { display: flex; gap: .4rem; flex-wrap: wrap; }
.badge { font-size: .8rem; font-weight: 650; padding: .18em .6em; border-radius: 1rem;
  border: 1.5px solid var(--line); color: var(--soft); white-space: nowrap; }
.badge.memory { border-color: var(--badge-mem); color: var(--badge-mem); }
.badge.medicaid { border-color: var(--badge-med); color: var(--badge-med); }
/* [hidden] is an attribute selector, so any class that sets `display` outranks the UA
   rule and a "hidden" row keeps rendering. The filters hide rows and whole sections, so
   this has to be stated rather than inherited. */
[hidden] { display: none !important; }
.jump { color: var(--soft); font-size: .95rem; margin: .2rem 0 0; }
/* The filter panel is a control surface, not a card: inset and tinted so it reads as
   part of the page's chrome rather than as the first result in the list. */
.filters { background: #eef4f2; border: 1px solid var(--line); border-radius: .8rem;
  padding: 1rem 1.2rem 1.2rem; margin: 1.4rem 0; }
.filters h2 { margin: .1em 0 .6em; font-size: 1.1rem; }
.filters fieldset { border: 0; margin: 0 0 .7rem; padding: 0; }
.filters legend { font-weight: 650; font-size: .95rem; padding: 0; margin-bottom: .2rem; }
.filters label { display: block; }
.filters fieldset label { display: flex; align-items: flex-start; gap: .55rem;
  min-height: 44px; padding: .3rem 0; cursor: pointer; }
/* The control, then a single stacked text column — otherwise the sub-label becomes a
   third flex item and sits in a narrow column beside the label it explains. */
.filters .ftxt { display: block; line-height: 1.35; }
.filters .ftxt span { display: block; color: var(--soft); font-size: .85rem;
  line-height: 1.4; }
.filters input[type=radio], .filters input[type=checkbox] { width: 22px; height: 22px;
  margin: .28rem 0 0; flex: none; accent-color: var(--accent); }
.fcol { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0 1rem; }
.fcol p { margin: 0 0 .6rem; }
.fcol label { font-weight: 650; font-size: .95rem; margin-bottom: .15rem; }
.filters select { width: 100%; min-height: 44px; padding: .4rem .6rem; font: inherit;
  font-size: .95rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: .5rem; }
.fstate { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; margin: .9rem 0 .4rem; }
.fstate output { font-weight: 650; }
.fnote { color: var(--soft); font-size: .9rem; margin: .3rem 0 0; }
.more { width: 100%; margin: .2rem 0 .8rem; }
/* An estimate must never be able to pass for a measurement at a glance. Dotted underline
   plus the "est." marker, so the difference survives skim-reading, greyscale printing
   and colour-blindness — it is a shape difference, not a colour one. */
.est { border-bottom: 2px dotted var(--soft); }
.est abbr { font-size: .8rem; font-weight: 650; color: var(--soft); text-decoration: none;
  border: 1.5px solid var(--line); border-radius: 1rem; padding: .05em .5em;
  margin-left: .25em; white-space: nowrap; }
.cost { background: #f4efe6; border-radius: .8rem; padding: 1rem 1.3rem; margin: 1.6rem 0; }
.cost h2 { margin-top: .2em; }
.cost cite { font-style: normal; color: var(--soft); }
.facts { border-collapse: collapse; width: 100%; margin: 1rem 0; background: var(--card);
  border: 1px solid var(--line); border-radius: .5rem; }
.facts caption { text-align: left; color: var(--soft); font-size: .9rem; padding: .4rem 0; }
.facts th, .facts td { text-align: left; padding: .55rem .8rem; border-top: 1px solid var(--line); }
.facts th { width: 40%; color: var(--soft); font-weight: 600; }
.inquire { background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
  padding: 1.2rem 1.4rem; margin: 2rem 0; }
.inquire label { display: block; margin: .8rem 0; font-weight: 600; }
.inquire input, .inquire textarea { display: block; width: 100%; margin-top: .3rem;
  padding: .6rem .7rem; font: inherit; border: 1.5px solid var(--line);
  border-radius: .5rem; background: var(--paper); }
.rules li { margin: .7rem 0; }
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: .8rem;
  padding: 1.4rem; margin: 1.5rem 0; }
.quiz .q { font-weight: 650; font-size: 1.1rem; margin-bottom: .8rem; }
.quiz button.opt { display: block; width: 100%; text-align: left; margin: .45rem 0;
  padding: .75rem .9rem; font: inherit; border: 1.5px solid var(--line);
  border-radius: .55rem; background: var(--paper); cursor: pointer; }
.quiz button.opt:hover { border-color: var(--accent); }
.quiz .result h2 { margin-top: 0; }
.bottom { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.6rem 0 2.2rem;
  color: var(--soft); font-size: .95rem; background: var(--card); }
.section-head { font-size: 1.5rem; margin-top: 2.2rem; }

/* Care-level cards: the national vocabulary layer, used on / and /care/. */
.care-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: .9rem; margin: 1.2rem 0 2rem; }
.care-card { display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: .8rem; padding: 1rem 1.15rem; text-decoration: none; color: var(--ink); }
.care-card:hover { border-color: var(--accent); }
.care-card h2, .care-card h3 { margin: 0 0 .35em; font-size: 1.1rem; color: var(--accent); }
.care-card p { margin: 0; color: var(--soft); font-size: .97rem; }
.care-card .care-for { margin-top: .5em; font-style: italic; }

/* Coverage: what we cover today, said plainly rather than implied by omission. */
.coverage { background: #f4efe6; border-radius: .8rem; padding: 1rem 1.3rem; margin: 1.4rem 0; }
.coverage p { margin: .5rem 0; }
.statelist { list-style: none; padding: 0; columns: 3 13rem; gap: 2rem; }
.statelist .st { display: flex; justify-content: space-between; gap: .6rem;
  align-items: baseline; margin: .3rem 0; break-inside: avoid;
  border-bottom: 1px solid var(--line); padding-bottom: .3rem; }
.statelist .st span:first-child { color: var(--soft); }
.statelist .st.live a { font-weight: 650; }
/* De-emphasised but still WCAG AA against --paper: this label is the whole honesty
   claim of the coverage map, so it does not get to be decorative grey. */
.statelist .soon { font-size: .82rem; color: #6b7480; white-space: nowrap; }
.citylist.facets { columns: 2 15rem; }
.citylist.facets a { font-weight: 600; }

/* Footer becomes a small sitemap once the site has more than one section. */
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1.2rem; margin-bottom: 1.6rem; }
.foot-cols h2 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em;
  margin: 0 0 .5em; color: var(--ink); }
.foot-cols a { display: block; margin: .3rem 0; color: var(--soft); text-decoration: none; }
.foot-cols a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 40rem) { body { font-size: 17px; } .prov { flex-direction: column; }
  .statelist { columns: 1; } }
