/* The Care Record: the site's design layer over the platformkit stylesheet.

   Loaded after pk/site.css by templates/pk/ui/head.html. Unlayered on purpose: the kit's rules
   live in @layer base and @layer components, so every rule here outranks them without a
   specificity fight. Colours are the kit's contrast-checked tokens (site.toml [theme]); the only
   literal colours are tints mixed from those tokens. Brand rules (docs/domain-program/
   2026-11-02/thecarerecord-brand.md, section 8 over 4): ledger blue is the one accent, for
   interaction and the checked stamp; green only for Yes; red only for No and deadlines; no
   gradients; nothing under 15px that a reader sees; 44px targets.

   The system (design pass of 2026-11-03):
   - Surfaces. The stone page is the publication. White paper means a record or a data sheet
     (State Record cards, the state register, stat sheets, Key takeaways); nothing else is boxed.
     Areas are separated by hairlines and whitespace, not by borders round everything.
   - The double rule from the logo marks a checked record only: the top edge of a State Record
     card and of the state register, and the border of the Checked stamp.
   - Spacing is an 8px scale (--s-*). Section rhythm: 80px between the blocks of <main> on
     desktop, 56px on phones; 32px from a section heading's intro to its content.
   - Type. Source Serif 4 for display on a tight scale (52 / 44 / 30 / 24 / 20), Atkinson
     Hyperlegible Next for reading at 18px on a 68ch measure, 16px for interface text, 15px for
     meta. Tabular numerals wherever numbers line up (dates, counts).
   - Radii: 3px for tags and stamps, 4px for sheets, fields and buttons. One shadow, on record
     cards only. */

:root {
  --pk-wrap-max: 1280px;
  --radius-card: 4px;
  --radius-ui: 4px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 80px;
  --tcr-measure: 68ch;
  --tcr-r: 4px;
  --tcr-r-tag: 3px;
  --tcr-double: 4px double var(--color-brand);
  --tcr-rule: 1px solid var(--color-line);
  --tcr-rule-strong: 1px solid var(--color-line-strong);
  --tcr-rule-ink: 1px solid var(--color-ink);
  --tcr-tint: color-mix(in oklab, var(--color-brand) 6%, var(--color-card));
  --tcr-deadline-bg: color-mix(in oklab, var(--color-bad) 5%, var(--color-card));
  --tcr-lift: 0 1px 2px rgb(20 24 26 / 0.04), 0 2px 8px rgb(20 24 26 / 0.03);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
body { font-size: 17px; line-height: 1.6; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
time, .tcr-stat__n, .tcr-stamp, .tcr-row__date { font-variant-numeric: tabular-nums lining-nums; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.pk-title { font-size: clamp(34px, 1.6vw + 21px, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.022em; max-width: 24ch; }
.pk-dek { font-size: 21px; line-height: 1.5; color: var(--color-muted); max-width: 58ch; }
.pk-main > .pk-section > h2, .pk-section-head h2, .tcr-band__head h2 { font-size: clamp(26px, 0.8vw + 19px, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -0.016em; }
.pk-section > h2 + * { margin-top: var(--s-2); }
.pk-kicker { font: 600 15px/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--color-brand-ink); }
.pk-crumbs ol { font-size: 15px; }
.pk-crumbs a { text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-brand) 35%, transparent); text-underline-offset: 3px; }
.pk-crumbs a:hover { text-decoration-color: currentColor; }
.tcr-section-intro { font-size: 18px; line-height: 1.55; color: var(--color-muted); max-width: 60ch; }
.tcr-note { font-size: 16px; color: var(--color-muted); }
.tcr-measure { max-width: var(--tcr-measure); }

/* Links: ledger blue, a quiet underline that firms up on hover. */
.pk-main a:not([class]) { text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
.pk-main a:not([class]):hover { text-decoration-color: currentColor; text-decoration-thickness: 2px; }

/* ---------- page rhythm ---------- */
.pk-page:not(.pk-page--full) { padding-top: var(--s-4); padding-bottom: var(--s-7); column-gap: var(--s-6); }
.pk-page:not(.pk-page--full) .pk-main > * + * { margin-top: var(--s-7); }
.pk-page:not(.pk-page--full) .pk-main > .pk-intro + * { margin-top: var(--s-5); }
/* Consecutive State Record cards (each its own <section> for Journey) read as one register. */
.pk-page:not(.pk-page--full) .pk-main > section:has(> .tcr-record) + section:has(> .tcr-record) { margin-top: var(--s-4); }
.pk-intro > * + * { margin-top: var(--s-2); }
.pk-intro > .pk-crumbs + * { margin-top: var(--s-3); }
@media (max-width: 40rem) {
  .pk-page:not(.pk-page--full) { padding-top: var(--s-2); padding-bottom: var(--s-6); }
  .pk-page:not(.pk-page--full) .pk-main > * + * { margin-top: 56px; }
  .pk-page:not(.pk-page--full) .pk-main > .pk-intro + * { margin-top: var(--s-4); }
  .pk-dek { font-size: 19px; }
}

/* ---------- header ---------- */
.pk-header { border-bottom: var(--tcr-rule-strong); }
.pk-header[data-scrolled] { box-shadow: 0 1px 0 var(--color-line-strong), 0 4px 16px rgb(20 24 26 / 0.05); }
.pk-header__inner { height: 80px; gap: var(--s-3); }
.tcr-logo { display: block; height: 36px; width: auto; max-width: 62vw; }
.pk-nav { align-self: stretch; }
.pk-nav ul { gap: var(--s-1); height: 100%; }
.pk-nav li { display: flex; }
.pk-nav a { display: inline-flex; align-items: center; height: 100%; padding: 0 12px; border-radius: 0; font-size: 16px; font-weight: 500; color: var(--color-ink);
  box-shadow: inset 0 -3px 0 transparent; transition: color .15s, box-shadow .15s; }
.pk-nav a:hover { background: transparent; color: var(--color-brand-ink); box-shadow: inset 0 -3px 0 var(--color-line-strong); }
.pk-nav a[aria-current="page"] { background: transparent; color: var(--color-brand-ink); box-shadow: inset 0 -3px 0 var(--color-brand); }
.pk-nav a:focus-visible { outline-offset: -3px; }
.pk-icon-btn { width: 44px; height: 44px; border-radius: var(--tcr-r); }
.pk-menu__panel { border-radius: var(--tcr-r); padding: var(--s-1); }
.pk-menu__panel a { min-height: 44px; display: flex; align-items: center; font-size: 17px; border-radius: 2px; }
@media (max-width: 74.99rem) { .pk-header__inner { height: 64px; } .tcr-logo { height: 30px; } }

/* ---------- footer ---------- */
.tcr-footer { margin-top: 0; border-top: var(--tcr-rule-strong); background: var(--color-surface-2); font-size: 16px; color: var(--color-muted); }
.tcr-footer__grid { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: var(--s-5) var(--s-5); padding-block: var(--s-6) var(--s-5); }
.tcr-footer .pk-footer__about { gap: var(--s-3); max-width: 40ch; }
.tcr-footer .pk-footer__about > p:not(.pk-footer__name) { font: 400 19px/1.5 var(--font-display); color: var(--color-ink); }
.tcr-footer .tcr-logo { height: 40px; }
.tcr-footer .pk-footer__group h2 { margin-bottom: var(--s-2); padding-bottom: 12px; border-bottom: var(--tcr-rule-ink); font: 600 15px/1.3 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--color-ink); }
.tcr-footer .pk-footer__group ul { gap: 0; }
.tcr-footer .pk-footer__group a { display: inline-flex; align-items: center; min-height: 40px; color: var(--color-ink); text-decoration: none; }
.tcr-footer .pk-footer__group a:hover { color: var(--color-brand-ink); text-decoration: underline; text-underline-offset: 4px; }
.tcr-footer__promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2) var(--s-5); padding-block: var(--s-3); border-top: var(--tcr-rule-strong); }
.tcr-footer__promises li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.5; color: var(--color-ink); }
.tcr-footer__promises li::before { content: ""; position: absolute; left: 4px; top: 0.28em; width: 6px; height: 11px; border: solid var(--color-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tcr-footer .pk-footer__fine { font-size: 15px; border-top: var(--tcr-rule-strong); padding-block: var(--s-3) var(--s-4); }
@media (max-width: 63.99rem) { .tcr-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tcr-footer .pk-footer__about { grid-column: 1 / -1; } }
@media (max-width: 40rem) {
  .tcr-footer__grid { grid-template-columns: 1fr; gap: var(--s-4); padding-block: var(--s-5) var(--s-4); }
  .tcr-footer__promises { grid-template-columns: 1fr; }
  .tcr-footer .pk-footer__group a { min-height: 44px; }
}

/* ---------- status tags: Yes / Depends / No ---------- */
.tcr-chip { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: var(--tcr-r-tag);
  font: 600 15px/1.5 var(--font-sans); letter-spacing: 0.005em; white-space: nowrap; vertical-align: 0.1em; }
.tcr-chip svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tcr-chip--yes { color: var(--color-ok); background: var(--color-ok-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-ok) 18%, transparent); }
.tcr-chip--no { color: var(--color-bad); background: var(--color-bad-bg); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-bad) 18%, transparent); }
.tcr-chip--depends { color: var(--color-muted); background: var(--color-surface-2); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.tcr-chip--lg { font-size: 17px; padding: 2px 10px 2px 8px; margin-right: 6px; vertical-align: 0.06em; }
.tcr-chip--lg svg { width: 15px; height: 15px; }

/* ---------- the checked stamp (ledger blue) ---------- */
.tcr-stamp { display: inline-block; color: var(--color-brand-ink); font-weight: 600; white-space: nowrap; }
.tcr-stamp svg { display: inline-block; width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* The boxed stamp is a rubber stamp: the double rule as its border. */
.tcr-stamp--boxed { padding: 6px 12px 6px 10px; border: 3px double var(--color-brand); border-radius: var(--tcr-r-tag); background: var(--color-card); font-size: 15px; }
.tcr-stamp--boxed svg { width: 15px; height: 15px; margin-right: 7px; vertical-align: -2.5px; }
.tcr-stamp--due { color: var(--color-warn); background: var(--color-warn-bg); border-radius: var(--tcr-r-tag); padding: 1px 8px; white-space: normal; }
.tcr-stamp--due.tcr-stamp--boxed { border-color: var(--color-warn); padding: 6px 12px; }

/* ---------- buttons and the state picker ---------- */
.tcr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s-3); border: 0; border-radius: var(--tcr-r);
  background: var(--color-brand); color: var(--color-on-brand); font: 600 17px/1.2 var(--font-sans); cursor: pointer; transition: background-color .15s; }
.tcr-btn:hover { background: var(--color-brand-deep); }
.tcr-pick { display: grid; gap: var(--s-1); }
.tcr-pick[hidden] { display: none; }
.tcr-pick__label { font-weight: 600; font-size: 16px; color: var(--color-ink); }
.tcr-pick__row { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.tcr-pick__select { flex: 1 1 15rem; max-width: 22rem; min-height: 52px; padding: 0 44px 0 var(--s-2); font-size: 17px; color: var(--color-ink);
  background-color: var(--color-card); border: 1px solid var(--color-field); border-radius: var(--tcr-r); }
.tcr-pick__select:hover { border-color: var(--color-ink); }
.tcr-pick__note { font-size: 16px; color: var(--color-bad); }

/* ---------- reassurance under an answer: a meta row under a hairline ---------- */
.tcr-assure { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px var(--s-3); padding-top: var(--s-3); border-top: var(--tcr-rule);
  font-size: 16px; line-height: 1.55; color: var(--color-muted); }
.tcr-assure > p:not(.tcr-assure__stamp) { grid-column: 2; }
.tcr-assure > p:only-child, .tcr-assure > p:first-child:not(.tcr-assure__stamp) { grid-column: 1 / -1; }
.tcr-assure__stamp { grid-row: span 2; }
.tcr-assure__promise { color: var(--color-ink); }
.tcr-intro .tcr-assure { margin-top: var(--s-4); max-width: 52rem; }
@media (max-width: 40rem) {
  .tcr-assure { grid-template-columns: 1fr; gap: var(--s-1); }
  .tcr-assure > p:not(.tcr-assure__stamp) { grid-column: 1; }
  .tcr-assure__stamp { grid-row: auto; justify-self: start; }
}
.tcr-notice { max-width: var(--tcr-measure); padding: var(--s-2) 20px; background: var(--color-card); border-left: 3px solid var(--color-brand); font-size: 17px; }

/* ---------- home: the welcome ---------- */
.tcr-welcome { display: grid; gap: var(--s-5); padding-top: var(--s-4); }
.tcr-welcome > * + * { margin-top: 0; }
.pk-page:not(.pk-page--full) .pk-main > .tcr-welcome + * { margin-top: var(--s-7); }
.tcr-welcome__lead { display: grid; gap: var(--s-3); align-content: start; }
.tcr-welcome__side { display: grid; gap: var(--s-4); align-content: start; }
.pk-title.tcr-welcome__title { font-size: clamp(36px, 2vw + 20px, 50px); line-height: 1.07; letter-spacing: -0.026em; max-width: 21ch; }
.tcr-welcome__greet { font-size: clamp(19px, 0.4vw + 16px, 21px); line-height: 1.5; color: var(--color-ink); max-width: 38ch; }
.tcr-welcome .tcr-pick { margin-top: var(--s-1); }
.tcr-paths__label { margin-bottom: 12px; font-weight: 600; font-size: 15px; color: var(--color-muted); }
.tcr-paths ul { border-top: var(--tcr-rule-ink); }
.tcr-paths li { border-bottom: var(--tcr-rule); }
.tcr-path { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 88px; padding: 20px 4px 20px 0;
  color: var(--color-ink); text-decoration: none; }
.tcr-path::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border: solid var(--color-brand); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .15s; }
.tcr-path:hover::after { transform: translateX(3px) rotate(45deg); }
.tcr-path__text { display: grid; gap: 4px; }
.tcr-path__title { font: 600 22px/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--color-brand-ink); }
.tcr-path:hover .tcr-path__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tcr-path__note { font-size: 16px; color: var(--color-muted); }
.tcr-welcome__assure { display: block; padding-top: 0; border-top: 0; font-size: 15px; }
.tcr-welcome__assure > p + p { margin-top: var(--s-1); }
@media (min-width: 64rem) {
  .tcr-welcome { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--s-7); padding-top: var(--s-5); }
  .tcr-welcome__side { padding-top: 10px; }
}
@media (max-width: 40rem) {
  .tcr-welcome { padding-top: var(--s-1); gap: var(--s-4); }
  .tcr-path { min-height: 80px; padding-block: var(--s-2); }
  .tcr-path__title { font-size: 20px; }
}

/* ---------- section heads ---------- */
.tcr-band__head { display: grid; gap: 12px; }

/* ---------- the state register (home, /states/) ---------- */
.tcr-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2) var(--s-4); margin-top: var(--s-4); font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.tcr-legend > div { display: grid; align-content: start; gap: 6px; }
.tcr-legend dt { justify-self: start; }
@media (max-width: 63.99rem) { .tcr-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcr-legend .tcr-chip { vertical-align: 0; }
.tcr-register { margin-top: var(--s-3); padding: var(--s-1) var(--s-4) var(--s-2); background: var(--color-card); border: var(--tcr-rule); border-top: var(--tcr-double); border-radius: 2px 2px var(--tcr-r) var(--tcr-r); }
.tcr-register__heads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); }
.tcr-register__head, .tcr-row { display: grid; grid-template-columns: minmax(0, 1fr) 6.25rem 6.25rem; column-gap: 16px; align-items: center; }
.tcr-register__head { padding: 14px 0 10px; border-bottom: var(--tcr-rule-ink); font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--color-muted); }
.tcr-register__head > span:last-child, .tcr-row__date { text-align: right; justify-self: end; }
.tcr-register__list { columns: 3; column-gap: var(--s-5); column-rule: var(--tcr-rule); }
.tcr-row { min-height: 48px; padding: 2px 0; border-bottom: var(--tcr-rule); break-inside: avoid; }
.tcr-row__name { display: inline-flex; align-items: center; min-height: 44px; font: 600 17px/1.2 var(--font-display); color: var(--color-ink); text-decoration: none; }
a.tcr-row__name:hover { color: var(--color-brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tcr-row__answer { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; text-decoration: none; }
.tcr-row__answer:hover .tcr-chip { box-shadow: inset 0 0 0 1.5px currentColor; }
.tcr-row__date { font-size: 15px; color: var(--color-muted); }
.tcr-row__date .tcr-stamp { font-size: 15px; text-align: left; }
.tcr-row__wide { grid-column: 2 / -1; font-size: 15px; }
.tcr-row__muted { color: var(--color-muted); }
a.tcr-row__respite { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; color: var(--color-brand-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 3px; }
a.tcr-row__respite:hover { text-decoration-color: currentColor; }
.tcr-row--pending .tcr-row__name { font-weight: 400; color: var(--color-muted); }
@media (max-width: 74.99rem) {
  .tcr-register__heads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcr-register__head:nth-child(3) { display: none; }
  .tcr-register__list { columns: 2; }
}
@media (max-width: 47.99rem) {
  .tcr-register { padding-inline: var(--s-2); }
  .tcr-register__heads { grid-template-columns: 1fr; }
  .tcr-register__head:nth-child(2) { display: none; }
  .tcr-register__list { columns: 1; }
  .tcr-register__head, .tcr-row { grid-template-columns: minmax(0, 1fr) auto 6.25rem; }
}
@media (max-width: 40rem) { .tcr-legend { grid-template-columns: 1fr; gap: 12px; } .tcr-legend > div { grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; } }

/* ---------- home: guides, latest, recent, how we work ---------- */
.tcr-guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-4); }
.tcr-guide { position: relative; display: grid; gap: 12px; align-content: start; padding-top: var(--s-3); border-top: var(--tcr-rule-ink); }
.tcr-guide__title { font-size: 26px; line-height: 1.2; letter-spacing: -0.014em; }
.tcr-guide__title a { color: var(--color-brand-ink); text-decoration: none; }
.tcr-guide__title a::after { content: ""; position: absolute; inset: 0; }
.tcr-guide:hover .tcr-guide__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.tcr-guide__dek { font-size: 17px; line-height: 1.6; color: var(--color-muted); max-width: 58ch; }

.tcr-latest { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.tcr-latest__item { display: grid; gap: 12px; align-content: start; padding: var(--s-3) var(--s-3) 20px; background: var(--color-card); border: var(--tcr-rule); border-radius: var(--tcr-r); }
.tcr-latest__item .tcr-record__name { margin: 0; font-size: 21px; line-height: 1.25; }
.tcr-latest__item .tcr-record__name a { color: var(--color-ink); text-decoration: none; }
.tcr-latest__item .tcr-record__name a:hover { color: var(--color-brand-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tcr-latest__answer { font-size: 17px; line-height: 1.6; }
.tcr-latest__meta { display: grid; justify-items: start; gap: 0; margin-top: auto; padding-top: var(--s-2); border-top: var(--tcr-rule); font-size: 15px; }
.tcr-latest__meta a { display: inline-flex; align-items: center; min-height: 44px; }

.tcr-recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); column-gap: var(--s-5); margin-top: var(--s-4); border-top: var(--tcr-rule-ink); }
.tcr-recent li { display: grid; gap: 2px; padding: 14px 0; border-bottom: var(--tcr-rule); }
.tcr-recent__what { font-weight: 600; }
.tcr-recent__what a { text-decoration: none; }
.tcr-recent__what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tcr-recent__meta { font-size: 15px; color: var(--color-muted); }
.tcr-recent__meta .tcr-stamp { margin-left: 4px; font-weight: 500; }
@media (max-width: 40rem) { .tcr-recent { grid-template-columns: 1fr; } }

.tcr-trust { padding-top: var(--s-5); border-top: var(--tcr-rule-strong); }
.tcr-trust__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-4); font-size: 16px; line-height: 1.6; color: var(--color-muted); }
.tcr-trust__list li { padding-top: var(--s-2); border-top: 2px solid var(--color-brand); }
.tcr-trust__list strong { display: block; margin-bottom: var(--s-1); font: 600 19px/1.3 var(--font-display); letter-spacing: -0.005em; color: var(--color-ink); }
.tcr-trust__list a { font-weight: 600; white-space: nowrap; }

/* ---------- state hub ---------- */
.tcr-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: var(--s-3); margin-top: var(--s-4); }
.tcr-topic { display: grid; gap: 12px; align-content: start; padding: var(--s-3) var(--s-4) var(--s-4); background: var(--color-card); border: var(--tcr-rule); border-top: 3px solid var(--color-brand); border-radius: 2px 2px var(--tcr-r) var(--tcr-r); }
.tcr-topic__title { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.tcr-topic__title a { text-decoration: none; }
.tcr-topic__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tcr-topic__answer { font-size: 17.5px; line-height: 1.6; }
@media (max-width: 40rem) { .tcr-topic { padding: 20px; } }

.tcr-ledger { margin-top: var(--s-3); border-top: var(--tcr-rule-ink); }
.tcr-ledger__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center; gap: 4px var(--s-4); min-height: 64px; padding: 12px 0; border-bottom: var(--tcr-rule); }
.tcr-ledger__main { display: contents; }
.tcr-ledger__name { font: 600 19px/1.3 var(--font-display); }
.tcr-ledger__name a { text-decoration: none; }
.tcr-ledger__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.tcr-ledger__kind { font-size: 15px; color: var(--color-muted); }
.tcr-ledger__status { grid-column: 1 / -1; font-size: 16px; }
.tcr-ledger__status .tcr-stamp { font-size: 15px; margin-left: 4px; }
@media (max-width: 40rem) { .tcr-ledger__row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- topic page: the answer and the State Record card ---------- */
.tcr-answer { max-width: 60ch; }
.tcr-answer__text { font-size: 22px; line-height: 1.55; color: var(--color-ink); }
@media (max-width: 40rem) { .tcr-answer__text { font-size: 19px; } }

.tcr-record { background: var(--color-card); border: var(--tcr-rule); border-top: var(--tcr-double); border-radius: 2px 2px var(--tcr-r) var(--tcr-r); box-shadow: var(--tcr-lift); }
.tcr-record__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px var(--s-3);
  padding: var(--s-3) var(--s-4) 20px; border-bottom: var(--tcr-rule-strong); }
.tcr-record__kind { font-size: 15px; font-weight: 600; color: var(--color-muted); }
.tcr-record__name { margin-top: 4px; font-size: 28px; line-height: 1.15; letter-spacing: -0.016em; }
.tcr-record__stamp { flex: none; }
.tcr-record__empty { padding: 20px var(--s-4); }
.tcr-fields { padding: 0 var(--s-4) 4px; }
.tcr-field { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 4px var(--s-4); padding: 20px 0; border-top: var(--tcr-rule); }
.tcr-field:first-child { border-top: 0; }
.tcr-field__label { font-weight: 600; font-size: 16px; line-height: 1.5; padding-top: 2px; color: var(--color-ink); }
.tcr-field__value { min-width: 0; overflow-wrap: break-word; }
.tcr-field__value > p:first-child { font-size: 18px; line-height: 1.6; max-width: 62ch; }
.tcr-field__note { margin-top: var(--s-1); font-size: 16px; line-height: 1.55; color: var(--color-muted); max-width: 64ch; }
.tcr-field__source { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s-2); margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.tcr-field__source a { text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); }
.tcr-field__source .tcr-stamp { font-size: 15px; font-weight: 500; }
.tcr-field__action { font-weight: 600; }
.tcr-field__host { font-size: 15px; color: var(--color-muted); }
.tcr-record--apply { padding: 0; margin-top: var(--s-3); }
.tcr-record--apply > .tcr-record__name { margin: 0; padding: var(--s-3) var(--s-4) 12px; font-size: 22px; border-bottom: var(--tcr-rule-strong); }
.pk-section > .tcr-record--apply:first-of-type { margin-top: var(--s-3); }
@media (max-width: 40rem) {
  .tcr-record__head { padding: 20px 20px 16px; }
  .tcr-record__name { font-size: 24px; }
  .tcr-fields { padding: 0 20px 4px; }
  .tcr-field { grid-template-columns: 1fr; padding: var(--s-2) 0 20px; }
  .tcr-field__value > p:first-child { font-size: 17.5px; }
  .tcr-record--apply > .tcr-record__name { padding: 20px 20px 12px; }
}

/* ---------- source lists ---------- */
.tcr-sources { margin-top: var(--s-2); border-top: var(--tcr-rule-ink); max-width: 84ch; }
.tcr-sources li { padding: 12px 0; border-bottom: var(--tcr-rule); font-size: 16px; line-height: 1.5; }
.tcr-sources__date { display: inline-block; margin-left: 6px; font-size: 15px; font-weight: 500; color: var(--color-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- rail: ruled, unboxed ---------- */
.pk-rail .pk-card { padding: var(--s-2) 0 0; background: transparent; border: 0; border-top: 2px solid var(--color-ink); border-radius: 0; }
.pk-rail .pk-card > h2 { font: 600 15px/1.4 var(--font-sans); color: var(--color-ink); }
.pk-rail .pk-card ul > li { padding: 0; border-top: var(--tcr-rule); }
.pk-rail .pk-card ul a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 16px; line-height: 1.4; text-decoration: none; }
.pk-rail .pk-card ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-toc ul a { font-weight: 500; color: var(--color-muted); }
.pk-toc ul a:hover { color: var(--color-ink); }
@media (min-width: 64rem) { .pk-rail { contain: none; overflow: visible; } .pk-rail > .pk-toc { position: sticky; top: 104px; } }

/* ---------- guides ---------- */
.tcr-guide-intro .pk-title { max-width: 22ch; }
.tcr-guide-intro .pk-byline { margin-top: var(--s-3); padding-top: var(--s-2); border-top: var(--tcr-rule); }
.tcr-guide-intro .pk-byline + .pk-dates { margin-top: 4px; }
.pk-byline { font-size: 16px; color: var(--color-muted); }
.pk-byline a { font-weight: 600; text-decoration: none; }
.pk-byline a:hover { text-decoration: underline; }
.pk-avatar { width: 32px; height: 32px; font-size: 13px; }
.pk-dates { font-size: 15px; }

.pk-prose { font-size: 18px; line-height: 1.7; }
.pk-prose :where(p, li, blockquote) { max-width: var(--tcr-measure); }
.pk-prose > h2 { margin-bottom: 4px; }
.pk-prose h3 { font-size: 23px; line-height: 1.25; letter-spacing: -0.01em; margin-top: var(--s-5); }
.pk-prose h4 { font: 600 17px/1.4 var(--font-sans); }
.pk-prose ul { list-style: none; padding-left: 0; }
.pk-prose ul > li { position: relative; padding-left: 22px; }
.pk-prose ul > li::before { content: ""; position: absolute; left: 2px; top: 0.75em; width: 6px; height: 6px; background: var(--color-brand); border-radius: 1px; }
.pk-prose li + li { margin-top: 10px; }
/* Ordered lists are real sequences (how to start, in order): hanging serif numerals, ruled. */
.pk-prose ol { list-style: none; padding-left: 0; counter-reset: tcr-step; max-width: calc(var(--tcr-measure) + 56px); border-top: var(--tcr-rule-ink); }
.pk-prose ol > li { position: relative; counter-increment: tcr-step; padding: var(--s-2) 0 var(--s-2) 56px; border-bottom: var(--tcr-rule); margin-top: 0; }
.pk-prose ol > li::before { content: counter(tcr-step); position: absolute; left: 0; top: 13px; width: 32px; font: 600 24px/1.2 var(--font-display); color: var(--color-brand-ink); font-variant-numeric: lining-nums tabular-nums; }
.pk-prose ol > li > b:first-child, .pk-prose ol > li > strong:first-child { color: var(--color-ink); }
/* A list whose every item opens with a bold term (the routes that pay a caregiver) reads as a
   set of options: ruled columns, each headed by its term. (:has cannot nest, so the first item
   decides; the guides' lists are all-or-nothing.) */
.pk-prose ul:has(> li:first-child > :is(b, strong):first-child) { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: var(--s-3) var(--s-4); max-width: none; margin-top: var(--s-3); }
.pk-prose ul:has(> li:first-child > :is(b, strong):first-child) > li { margin: 0; padding: var(--s-2) 0 0; border-top: 2px solid var(--color-brand); font-size: 17px; line-height: 1.6; }
.pk-prose ul:has(> li:first-child > :is(b, strong):first-child) > li::before { display: none; }
.pk-prose ul:has(> li:first-child > :is(b, strong):first-child) > li > :is(b, strong):first-child { display: block; margin-bottom: 6px; font: 600 20px/1.3 var(--font-display); letter-spacing: -0.008em; }
.pk-prose details { max-width: var(--tcr-measure); }

/* Key takeaways: a white sheet, the summary of the page. */
.tcr-takeaways { padding: var(--s-4) var(--s-5) var(--s-4) var(--s-4); background: var(--color-card); border: var(--tcr-rule); border-radius: var(--tcr-r); max-width: 78ch; }
.pk-main > .tcr-takeaways > h2 { font-size: 22px; letter-spacing: -0.01em; }
.tcr-takeaways .pk-takeaways { list-style: none; padding-left: 0; margin-top: var(--s-2); }
.tcr-takeaways .pk-takeaways li { position: relative; padding-left: 32px; font-size: 17.5px; line-height: 1.6; }
.tcr-takeaways .pk-takeaways li + li { margin-top: 14px; padding-top: 14px; border-top: var(--tcr-rule); }
.tcr-takeaways .pk-takeaways li::before { content: ""; position: absolute; left: 6px; top: 0.32em; width: 6px; height: 12px; border: solid var(--color-brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tcr-takeaways .pk-takeaways li + li::before { top: calc(14px + 0.32em); }
@media (max-width: 40rem) { .tcr-takeaways { padding: var(--s-3) 20px; } }

/* The deadline callout: red rule, red label; the only red in a guide besides a No. */
.pk-prose .tcr-deadline { position: relative; max-width: var(--tcr-measure); padding: var(--s-2) var(--s-3); background: var(--tcr-deadline-bg);
  border-left: 4px solid var(--color-bad); border-radius: 0 var(--tcr-r) var(--tcr-r) 0; font-size: 17px; line-height: 1.6; }
.pk-prose .tcr-deadline > :is(b, strong):first-child { display: block; margin-bottom: 2px; color: var(--color-bad); font-size: 17px; }

/* Records blocks in the guides: the counts as one data sheet, the states as ruled link lists. */
.pk-prose .tcr-stats__title { margin-top: var(--s-4); font: 600 20px/1.3 var(--font-display); letter-spacing: -0.008em; }
.pk-prose .tcr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin-top: 12px; background: var(--color-card); border: var(--tcr-rule); border-radius: var(--tcr-r); }
.pk-prose .tcr-stats--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
.pk-prose .tcr-stat { margin: 0; padding: 20px var(--s-3) var(--s-3); }
.pk-prose .tcr-stat + .tcr-stat { border-left: var(--tcr-rule); }
.pk-prose .tcr-stat::before { display: none; }
.tcr-stat__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; color: var(--color-muted); }
.tcr-stat__head .tcr-chip { margin-left: auto; align-self: center; }
.tcr-stat__n { font: 500 52px/1 var(--font-display); color: var(--color-ink); letter-spacing: -0.03em; }
.pk-prose .tcr-stat > p + p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: var(--color-ink); }
.pk-prose .tcr-stats__note { margin-top: 12px; font-size: 16px; color: var(--color-muted); }
@media (max-width: 40rem) {
  .pk-prose .tcr-stats { grid-template-columns: 1fr; }
  .pk-prose .tcr-stats--two { grid-template-columns: 1fr 1fr; }
  .pk-prose .tcr-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-2); align-items: center; padding: var(--s-2); }
  .pk-prose .tcr-stat + .tcr-stat { border-left: 0; border-top: var(--tcr-rule); }
  .pk-prose .tcr-stats--two .tcr-stat { display: block; }
  .pk-prose .tcr-stats--two .tcr-stat + .tcr-stat { border-top: 0; border-left: var(--tcr-rule); }
  .tcr-stat__n { font-size: 40px; }
  .pk-prose .tcr-stat > p + p { margin-top: 0; }
  .tcr-stat__head .tcr-chip { margin-left: 0; }
}
.pk-prose .tcr-group { margin-top: var(--s-4); }
.pk-prose .tcr-group__title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pk-prose .tcr-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); column-gap: var(--s-3); max-width: none; margin-top: 12px; border-top: var(--tcr-rule-ink); }
.pk-prose .tcr-states > li { margin: 0; padding: 0; font-size: 16.5px; line-height: 1.3; border-bottom: var(--tcr-rule); }
.pk-prose .tcr-states > li::before { display: none; }
.pk-prose .tcr-states a, .pk-prose .tcr-states span { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-weight: 600; text-decoration: none; }
.pk-prose .tcr-states a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-prose .tcr-states span { font-weight: 400; color: var(--color-muted); }
.pk-prose .tcr-group--pending .tcr-states a { font-weight: 500; }
.pk-prose .tcr-group__note { margin-top: 12px; font-size: 16px; color: var(--color-muted); }
@media (max-width: 40rem) { .pk-prose .tcr-states { grid-template-columns: 1fr 1fr; } }
.pk-prose .tcr-statelist { max-width: 52rem; border-top: var(--tcr-rule-ink); }
.pk-prose .tcr-statelist > li { margin: 0; padding: 12px 0; display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 20px; max-width: none; border-bottom: var(--tcr-rule); font-size: 16px; line-height: 1.5; }
.pk-prose .tcr-statelist > li::before { display: none; }
.pk-prose .tcr-statelist a { font-weight: 600; }
.pk-prose .tcr-statelist span { color: var(--color-muted); }
@media (max-width: 40rem) { .pk-prose .tcr-statelist > li { grid-template-columns: 1fr; } }
.tcr-details { margin-top: var(--s-2); }
.tcr-details > summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--color-brand-ink); }
.tcr-details > summary:hover { text-decoration: underline; text-underline-offset: 3px; }

/* How we reported this: the dated source list. */
.tcr-reported { padding-top: var(--s-4); border-top: var(--tcr-rule-strong); }
.tcr-reported > p, .tcr-reported li { font-size: 16px; line-height: 1.55; }
.tcr-reported ul { border-top: var(--tcr-rule-ink); max-width: var(--tcr-measure); }
.tcr-reported ul > li { padding: 12px 0; border-bottom: var(--tcr-rule); margin: 0; }
.tcr-reported ul > li::before { display: none; }
.tcr-reported li + li { margin-top: 0; }

/* The author box: a signed line under a hairline, not a card. */
.pk-author-box { padding: var(--s-3) 0 0; background: transparent; border: 0; border-top: var(--tcr-rule-strong); border-radius: 0; max-width: 78ch; }
.pk-author-box__name { font: 600 19px/1.3 var(--font-display); }
.pk-author-box__name a { text-decoration: none; }
.pk-author-box__name a:hover { text-decoration: underline; }
.pk-avatar--lg { width: 48px; height: 48px; font-size: 16px; }

/* ---------- reference pages (about, how we verify, policies, the states index's notes) ----------
   A page with no rail reads as a document: from desktop width each section's heading sits in a
   left column beside its text, under a hairline. */
@media (min-width: 64rem) {
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-section.pk-prose { display: grid; grid-template-columns: 16rem minmax(0, var(--tcr-measure)); column-gap: var(--s-6);
    padding-top: var(--s-4); border-top: var(--tcr-rule-strong); }
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-section.pk-prose > h2 { grid-column: 1; grid-row: 1 / span 40; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-section.pk-prose > :not(h2) { grid-column: 2; }
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-section.pk-prose > h2 + * { margin-top: 0; }
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-intro + .pk-section.pk-prose { border-top: var(--tcr-rule-ink); }
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-section.pk-prose + .pk-section.pk-prose { margin-top: var(--s-5); }
}
@media (max-width: 63.99rem) {
  .pk-page:not(.pk-page--rail) > .pk-main > .pk-intro + .pk-section.pk-prose { padding-top: var(--s-3); border-top: var(--tcr-rule-ink); }
}

@media (prefers-reduced-motion: reduce) {
  .tcr-path::after, .pk-nav a, .tcr-btn { transition: none; }
}

@media print {
  .tcr-pick, .tcr-paths { display: none !important; }
  .tcr-record { box-shadow: none; }
}
