/* Version D design system, ported from design team C ("The open ledger"): columnar ledger-paper tables, a red double margin rule
   that marks the record, and a status vocabulary that is always spelled out in text. */
@font-face { font-family: "Atkinson Next"; src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Mono"; src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F4F7F3;
  --sheet: #FFFFFF;
  --ink: #14233A;
  --ink-2: #3F4F64;
  --ink-3: #56657A;
  --rule: #D2DED5;
  --rule-2: #A7C0AF;
  --head: #E8F0EA;
  --margin: #C2413A;
  --link: #1F4FA3;
  --link-hover: #143A7E;
  --focus: #1F4FA3;
  --care: #3D6797;

  --pref-bg: #D3EBD9; --pref-fg: #0D5729; --pref-mk: #1E7A46;
  --pa-bg: #EBF5ED; --pa-fg: #0D5729; --pa-mk: #3C8A57;
  --np-bg: #FBE4BC; --np-fg: #6F3F00; --np-mk: #B56A00;
  --cov-bg: #DCE7F3; --cov-fg: #1A3C69; --cov-mk: #3D6797;
  --cc-bg: #E7E1F3; --cc-fg: #412E78; --cc-mk: #6A55A8;
  --src-bg: #ECEEF1; --src-fg: #414A58;
  --excl-bg: #F8D8D4; --excl-fg: #8A1B12; --excl-mk: #B3261E;
  --ok-bg: #EEF3EF; --ok-fg: #2D4637;

  --f-sans: "Atkinson Next", "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Atkinson Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1240px;
  --gut: 16px;
}
@media (min-width: 760px) { :root { --gut: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-sans); font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; color: #fff; }
.mono, code { font-family: var(--f-mono); font-size: 0.86em; }
code { background: var(--head); padding: 0 4px; border-radius: 2px; }
.muted { color: var(--ink-3); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
p, li { max-width: 72ch; }
main { display: block; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut) 64px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.site-head { background: var(--sheet); border-bottom: 1px solid var(--rule-2); }
.head-in { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gut) 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.brand-block { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 22px; letter-spacing: -0.015em; }
.brand:hover { color: var(--ink); }
.mark { width: 24px; height: 24px; flex: none; }
.brand-desc { color: var(--ink-2); font-size: 15px; }
.indep { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); }
.find { position: relative; flex: 1 1 260px; max-width: 380px; }
.find input { width: 100%; font: inherit; font-size: 15px; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper); color: var(--ink); }
.find input:focus { background: #fff; }
.find-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid var(--ink); border-radius: 4px; box-shadow: 0 6px 18px rgba(20, 35, 58, 0.16); max-width: none; }
.find-results li { max-width: none; }
.find-results a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; text-decoration: none; color: var(--ink); font-size: 15px; }
.find-results a:hover, .find-results a[aria-selected="true"] { background: var(--head); }
.find-results .k { color: var(--ink-3); font-size: 13px; }
.site-nav { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.site-nav ul { display: flex; gap: 4px 20px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.site-nav a { display: block; padding: 8px 0 9px; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--rule-2); }
.site-nav a[aria-current] { border-bottom-color: var(--ink); }
@media (max-width: 759px) {
  .site-nav ul { flex-wrap: wrap; gap: 0 18px; }
  .site-nav a { padding: 6px 0 7px; }
  .answer { font-size: 18px; }
  .entry-main { padding-left: 14px; }
  .find { max-width: none; flex-basis: 100%; order: 3; }
  .brand-desc { font-size: 13.5px; }
}

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--rule-2); }
.crumbs a { color: var(--ink-2); }

/* ---------- entry (page head) ---------- */
.entry { padding: 20px 0 8px; }
.entry h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 750; margin: 0 0 18px; max-width: 30ch; }
.entry-grid { display: grid; gap: 24px; }
@media (min-width: 980px) { .entry-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; } .entry-solo .entry-grid { grid-template-columns: minmax(0, 1fr); } }
/* The ledger margin: a red double rule marks "this is the record" */
.entry-main { align-self: start; border-left: 4px double var(--margin); padding-left: 20px; }
.answer { font-size: 20px; line-height: 1.5; margin: 0 0 14px; max-width: 66ch; }
.entry-main > p:not(.answer) { color: var(--ink-2); }
.receipt { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--rule); font-size: 14px; }
.receipt div { display: flex; flex-direction: column; min-width: 0; }
.receipt dt { color: var(--ink-3); font-size: 12.5px; }
.receipt dd { margin: 0; overflow-wrap: anywhere; max-width: 46ch; }
.receipt .cite-row { justify-content: flex-end; }
.btn-cite { font: inherit; font-size: 13.5px; padding: 4px 10px; border: 1px solid var(--rule-2); background: #fff; color: var(--ink); border-radius: 3px; cursor: pointer; }
.btn-cite:hover { border-color: var(--ink); }
.entry-aside { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 16px; align-self: start; }
.entry-aside > * + * { margin-top: 14px; }
.facts { margin: 0; display: grid; gap: 8px; font-size: 15px; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.facts dt { color: var(--ink-3); font-size: 13.5px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.aside-h { font-weight: 700; margin: 0 0 6px; font-size: 15px; }
.aside-link { margin: 8px 0 0; font-size: 15px; }
.mini { margin: 0; padding-left: 18px; font-size: 14.5px; }
.mini li + li { margin-top: 4px; }

/* ---------- on this page ---------- */
.toc { margin: 28px 0 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: baseline; font-size: 15px; }
.toc-h { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.toc ul { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }

/* ---------- sections ---------- */
.sec { margin-top: 44px; }
.sec > h2, .home-sec > h2, .month > h2 { font-size: 25px; font-weight: 720; margin: 0 0 14px; }
.sec h3 { font-size: 18px; margin: 24px 0 8px; }
.sec-lede { color: var(--ink-2); margin-top: -4px; }
.tnote { font-size: 14px; color: var(--ink-2); max-width: 80ch; }
.count { font-weight: 500; color: var(--ink-3); font-size: 15px; }
ul.entries, ol.entries { padding: 0; list-style: none; margin: 0; }
.entries li { padding: 8px 0; border-bottom: 1px solid var(--rule); max-width: 90ch; }
.entries .lead { font-weight: 700; }
.index-cols { columns: 4 200px; column-gap: 28px; padding: 0; list-style: none; margin: 0; }
.index-cols li { break-inside: avoid; padding: 3px 0; font-size: 15.5px; }
.sources { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.sources li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rule); max-width: 100ch; }
@media (min-width: 900px) { .sources li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; } }
.s-meta { color: var(--ink-2); }
.more { font-weight: 600; }

/* ---------- status chips ---------- */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 2px; border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1.45; white-space: nowrap; border: 1px solid transparent; }
.st-sm { font-size: 13px; padding: 0 6px 1px; }
.st i { width: 9px; height: 9px; flex: none; display: inline-block; }
.st-var { margin-left: -3px; }
.st-pref { background: var(--pref-bg); color: var(--pref-fg); } .st-pref i { background: var(--pref-mk); border-radius: 50%; }
.st-pa { background: var(--pa-bg); color: var(--pa-fg); border-color: var(--pa-mk); } .st-pa i { border-radius: 50%; border: 2px solid var(--pa-mk); background: linear-gradient(90deg, var(--pa-mk) 50%, transparent 50%); }
.st-np { background: var(--np-bg); color: var(--np-fg); } .st-np i { background: var(--np-mk); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st-mix { background: linear-gradient(135deg, var(--pref-bg) 0 50%, var(--np-bg) 50% 100%); color: #3A3300; border-color: #C9B98A; } .st-mix i { background: linear-gradient(135deg, var(--pref-mk) 0 50%, var(--np-mk) 50% 100%); }
.st-cov { background: var(--cov-bg); color: var(--cov-fg); } .st-cov i { background: var(--cov-mk); }
.st-cc { background: var(--cc-bg); color: var(--cc-fg); } .st-cc i { background: var(--cc-mk); transform: rotate(45deg) scale(0.85); }
.st-src { background: repeating-linear-gradient(135deg, var(--src-bg) 0 5px, #F8F9FA 5px 10px); color: var(--src-fg); border-color: #C3C9D1; } .st-src i { border: 2px solid var(--src-fg); border-radius: 50%; width: 10px; height: 10px; }
.st-none { background: transparent; color: var(--ink-3); border: 1px dashed #8E9AA8; } .st-none i { border: 1px solid var(--ink-3); border-radius: 50%; }
.st-excl { background: var(--excl-bg); color: var(--excl-fg); } .st-excl i { background: var(--excl-mk); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.st-formx { background: #fff; color: var(--excl-fg); border: 1px dashed var(--excl-mk); } .st-formx i { background: linear-gradient(90deg, var(--excl-mk) 50%, transparent 50%); border: 1px solid var(--excl-mk); }
.cw-formx { border-color: var(--excl-mk); border-style: dashed; }
.st-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #C2D3C7; } .st-ok i { border: 2px solid #5F8A6E; border-radius: 50%; }
.st-unpub, .st-notposted, .st-untracked { background: repeating-linear-gradient(135deg, #EEF0F2 0 5px, #F9FAFB 5px 10px); color: #414A58; border-color: #C3C9D1; } .st-unpub i, .st-notposted i, .st-untracked i { border: 1px solid #6B7686; }
.st-posted { background: #DCE5F7; color: #173E85; } .st-posted i { background: #2C5BC0; border-radius: 1px; }
.st-notice { background: #E9E1F6; color: #4A2E85; } .st-notice i { background: #7656B8; border-radius: 50%; }
.st-expected { background: #F4EED2; color: #574700; } .st-expected i { border: 2px solid #8C7600; border-radius: 50%; }
.st-focus { background: var(--ink); color: #fff; } .st-focus i { background: #fff; }
.st-other { background: #CFE0D5; color: var(--ink); } .st-other i { background: var(--ink); }

.tag { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 0 6px; border-radius: 3px; border: 1px solid var(--rule-2); color: var(--ink-2); background: #fff; white-space: nowrap; }
.tag-new { border-color: #2C5BC0; color: #173E85; background: #EEF3FC; }
.tag-high { border-color: #3C8A57; color: var(--pref-fg); }
.tag-medium { border-color: #B56A00; color: var(--np-fg); }
.self-tag { font-size: 12px; font-weight: 600; color: var(--ink-3); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 10px 0 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg-n { font-weight: 700; font-size: 14px; min-width: 1.5ch; }

/* ---------- tables: ledger sheets ---------- */
.tbl-wrap { position: relative; overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; margin: 10px 0 0; max-width: 100%; }
.tbl-wrap:focus-visible { outline-offset: 0; }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--rule); }
.ledger thead th { background: var(--head); font-size: 13.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.ledger tbody th[scope="row"] { font-weight: 650; position: sticky; left: 0; background: var(--sheet); border-right: 3px double var(--margin); z-index: 0; min-width: 9em; }
.ledger thead th:first-child { position: sticky; left: 0; z-index: 2; border-right: 3px double var(--margin); }
.ledger tbody tr:hover > * { background: #F6FAF7; }
.ledger .date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .note { color: var(--ink-2); font-size: 14px; min-width: 10em; }
.ledger tfoot th, .ledger tfoot td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 700; }
.ledger td.barcol, .ledger th.barcol { width: 110px; min-width: 90px; vertical-align: top; padding-top: 13px; }
.src { font-size: 14px; overflow-wrap: anywhere; }
td .src, th .src { white-space: nowrap; }
.tbl-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 12px 0 0; font-size: 14.5px; }
.tbl-tools input { font: inherit; font-size: 15px; padding: 6px 10px; border: 1px solid var(--rule-2); border-radius: 4px; width: min(320px, 100%); margin-left: 6px; }
.tbl-count { color: var(--ink-3); }
.cls-list { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 4px 0 0; list-style: none; }
.cls-list li { font-size: 13px; border: 1px solid var(--rule); border-radius: 3px; padding: 0 6px; background: #fff; }
details.cls summary { cursor: pointer; color: var(--link); font-size: 14px; }

.mbar, .bar { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: #EEF1F4; min-width: 80px; }
.mb-pref, .bar-pref { background: var(--pref-mk); } .mb-pa { background: repeating-linear-gradient(90deg, var(--pa-mk) 0 3px, #9CCBAA 3px 5px); } .mb-np { background: var(--np-mk); } .mb-other { background: #C9B98A; }

/* status matrix (drug x state) */
.matrix { font-size: 13px; width: auto; min-width: 100%; }
.matrix th, .matrix td { border-bottom: 1px solid var(--rule); }
.matrix thead th { background: var(--head); border-bottom: 2px solid var(--ink); font-size: 12.5px; padding: 6px 2px; text-align: center; position: sticky; top: 0; z-index: 1; }
.matrix thead th a { color: var(--ink); text-decoration: none; display: block; }
.matrix thead th a:hover { text-decoration: underline; }
.matrix abbr { text-decoration: none; }
.matrix .mx-corner { text-align: left; padding-left: 12px; position: sticky; left: 0; z-index: 2; border-right: 3px double var(--margin); }
.matrix tbody th { text-align: left; font-weight: 650; padding: 5px 12px; white-space: nowrap; position: sticky; left: 0; background: var(--sheet); border-right: 3px double var(--margin); font-size: 14px; }
.matrix td { text-align: center; padding: 0; min-width: 38px; height: 30px; font-weight: 700; border-left: 1px solid #fff; }
.matrix tr.is-self th, .matrix tr.is-self td { box-shadow: inset 0 2px 0 var(--ink), inset 0 -2px 0 var(--ink); }
.mx-pref { background: var(--pref-bg); color: var(--pref-fg); }
.mx-pa { background: var(--pa-bg); color: var(--pa-fg); box-shadow: inset 0 0 0 1px var(--pa-mk); }
.mx-np { background: var(--np-bg); color: var(--np-fg); }
.mx-mix { background: linear-gradient(135deg, var(--pref-bg) 0 50%, var(--np-bg) 50% 100%); color: #3A3300; }
.mx-cov { background: var(--cov-bg); color: var(--cov-fg); }
.mx-cc { background: var(--cc-bg); color: var(--cc-fg); }
.mx-src { background: repeating-linear-gradient(135deg, var(--src-bg) 0 4px, #F8F9FA 4px 8px); color: var(--src-fg); }
.mx-none { background: #fff; }
td.mx-none::after { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #B4BEC9; vertical-align: middle; }
.key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 14px; }
.key div { display: flex; align-items: center; gap: 6px; }
.key dt { min-width: 36px; height: 24px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; border-radius: 2px; border: 1px solid var(--rule); padding: 0 4px; }
.key dd { margin: 0; color: var(--ink-2); }

/* ---------- tile map ---------- */
.tilemap { margin: 0; }
.tilemap { overflow-x: auto; }
.tilemap svg { display: block; width: 100%; max-width: 620px; min-width: 470px; height: auto; }
.tilemap-compact svg { min-width: 400px; }
.tilemap-compact svg { max-width: 340px; }
@media (min-width: 760px) { .tilemap svg, .tilemap-compact svg { min-width: 0; } }
.tilemap rect { stroke: #fff; stroke-width: 1; }
.tilemap a:focus-visible { outline: none; }
.tilemap a:focus-visible rect, .tilemap a:hover rect { stroke: var(--focus); stroke-width: 4; }
.tm-code { font: 700 13px var(--f-sans); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.tm-glyph { font: 600 11.5px var(--f-sans); text-anchor: middle; fill: var(--ink); pointer-events: none; }
.tm-pref { fill: #9ED2AD; } .tm-pa { fill: #D2EBD8; stroke: #3C8A57 !important; stroke-width: 2 !important; } .tm-np { fill: #F3C677; }
.tm-mix { fill: url(#tm-mix); } .tm-cov { fill: #B6CCE6; } .tm-cc { fill: #CFC4EA; } .tm-src { fill: url(#tm-hatch-dark); }
.tm-none { fill: #fff; stroke: #8E9AA8 !important; stroke-dasharray: 3 2; } .tm-untracked { fill: url(#tm-hatch); } .tm-untracked + .tm-code { fill: #5A6573; font-weight: 600; }
.tm-posted { fill: #B4C9F0; } .tm-notice { fill: #C9B8EC; } .tm-expected { fill: #ECE2A6; } .tm-notposted { fill: #C6CDD5; }
.tm-other { fill: #BCD7C5; } .tm-focus { fill: var(--ink); }
.tm-focus + .tm-code { fill: #fff; }
.tilemap-compact .tm-glyph { display: none; }
.tilemap figcaption { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.mapblock { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 16px; margin: 4px 0 14px; }
@media (min-width: 980px) { .mapblock { display: grid; grid-template-columns: minmax(0, 620px) minmax(200px, 1fr); gap: 32px; align-items: center; } .mapblock .legend { flex-direction: column; align-items: flex-start; gap: 8px; margin: 0; } }

/* ---------- crosswalk strip ---------- */
.crosswalk { font-size: 14px; }
.cw-title { font-weight: 700; margin: 0 0 8px; font-size: 15px; }
.cw-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0; margin: 0; list-style: none; }
.cw-cell { border: 1px solid var(--rule-2); border-radius: 3px; padding: 8px; display: flex; flex-direction: column; gap: 4px; background: #fff; max-width: none; }
.cw-excl { border-color: var(--excl-mk); box-shadow: inset 3px 0 0 var(--excl-mk); }
.cw-name { font-weight: 650; font-size: 13.5px; line-height: 1.3; }
.cw-cell a { color: var(--ink); }
.cw-detail { color: var(--ink-3); font-size: 12.5px; }
.cw-medicaid { margin-top: 10px; }
.cw-mlabel { margin-bottom: 4px; }
.cw-note { color: var(--ink-3); font-size: 12.5px; margin: 8px 0 0; }
.home .crosswalk .cw-row, .t-sample .crosswalk .cw-row, .t-pbmDrug .entry-aside .cw-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1100px) { .home .crosswalk .cw-row, .t-sample .crosswalk .cw-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- patients block ---------- */
.care { margin-top: 44px; background: var(--sheet); border: 1px solid #B9CCE0; border-left: 6px solid var(--care); border-radius: 4px; padding: 20px 22px; }
.care h2 { font-size: 22px; margin: 2px 0 10px; }
.care-for { margin: 0; color: var(--care); font-weight: 700; font-size: 15px; }
.care p, .care li { font-size: 17.5px; line-height: 1.6; }
.care ol { padding-left: 24px; }
.care li + li { margin-top: 10px; }

/* ---------- FAQ ---------- */
.qa { border-top: 1px solid var(--rule); padding: 4px 0 2px; }
.qa h3 { font-size: 18px; margin: 14px 0 6px; }
.qa p { margin: 0 0 12px; }

/* ---------- B2B band ---------- */
.band { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; margin: 18px 0 0; padding: 14px 18px; background: var(--sheet); border: 1px solid var(--ink); border-radius: 4px; }
.band-text { flex: 1 1 420px; }
.band-h { margin: 0; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.band-text p:last-child { margin: 2px 0 0; font-size: 15.5px; }
.band-act { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 15px; }

/* ---------- buttons, buy ---------- */
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font: inherit; font-weight: 650; font-size: 16px; padding: 10px 16px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { background: #26405F; color: #fff; text-decoration: none; }
.buy { margin-top: 14px; }
.buy-disclosure { font-size: 16px; margin: 0 0 10px; color: var(--ink); }
.btn-buy { font-size: 17px; padding: 12px 20px; }
.buy-fine { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.products { display: grid; gap: 20px; }
@media (min-width: 860px) { .products { grid-template-columns: 1fr 1fr; } }
.product { background: var(--sheet); border: 1px solid var(--rule-2); border-top: 4px solid var(--ink); border-radius: 4px; padding: 20px; }
.product-h { margin: 0 0 6px; font-size: 21px; }
.product-h a { color: var(--ink); text-decoration: none; }
.product-h a:hover { text-decoration: underline; }
.price { margin: 0 0 12px; }
.amt { font-size: 36px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-2); }
.incl { padding-left: 20px; margin: 0; }
.incl li { margin: 3px 0; }
.card-links { display: flex; gap: 18px; margin: 14px 0 0; font-weight: 600; }
.compare td, .compare th { min-width: 10em; }
.steps { padding-left: 22px; }
.steps li { margin: 8px 0; }
.pick { display: grid; gap: 6px; max-width: 460px; }
.pick label { font-weight: 650; }
.pick input { font: inherit; padding: 10px 12px; border: 1px solid var(--ink-3); border-radius: 4px; }
.hint { margin: 0; color: var(--ink-3); font-size: 14px; }
.dl { font-weight: 650; }
.vocab { display: grid; gap: 8px; margin: 12px 0; }
.vocab div { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.vocab dd { margin: 0; }
@media (max-width: 600px) { .vocab div { grid-template-columns: 1fr; gap: 4px; } }
.vs { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14.5px; color: var(--ink-2); }

/* ---------- agenda ---------- */
.month { margin-top: 36px; }
.agenda { list-style: none; padding: 0; margin: 0; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; }
.meet { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--rule); max-width: none; }
.meet:last-child { border-bottom: 0; }
.meet-date { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; border-right: 3px double var(--margin); padding-right: 12px; line-height: 1.05; }
.md-d { font-size: 28px; font-weight: 750; font-variant-numeric: tabular-nums; }
.md-m { font-size: 13.5px; color: var(--ink-2); }
.meet-body h3 { margin: 0 0 2px; font-size: 18px; }
.meet-bodyname { font-weight: 500; color: var(--ink-2); }
.meet-body p { margin: 2px 0; font-size: 14.5px; }
.deadline { color: var(--np-fg); font-weight: 650; }
.meet-src { font-size: 14px; }
.nextmeet { display: flex; flex-direction: column; margin: 0; }
.nextmeet time { font-size: 22px; font-weight: 750; }

/* ---------- listcards (PBM hub) ---------- */
.listcard { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.listcard:hover .lc-name { text-decoration: underline; }
.lc-name { font-weight: 650; color: var(--link); }
.lc-n { grid-row: span 2; font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; align-self: center; }
.lc-sub { font-size: 13.5px; color: var(--ink-3); }
.listcard-off .lc-name { color: var(--ink-2); }

/* ---------- home ---------- */
.home-hero { display: grid; gap: 28px; padding: 28px 0 8px; }
@media (min-width: 980px) { .home-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.hh-text { border-left: 4px double var(--margin); padding-left: 22px; }
.home-hero h1 { font-size: clamp(31px, 4.6vw, 50px); line-height: 1.08; font-weight: 760; letter-spacing: -0.022em; margin: 0 0 18px; max-width: 17ch; }
.find-big { max-width: 560px; margin-top: 20px; }
.find-big label { display: block; font-weight: 650; margin-bottom: 6px; }
.find-row { display: flex; gap: 8px; }
.find-row .btn { white-space: nowrap; }
.find-big input { font-size: 17px; padding: 11px 14px; background: #fff; border-color: var(--ink-3); }
.quick { font-size: 15px; color: var(--ink-2); }
.hh-map { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 16px 18px; }
.map-h { font-weight: 700; margin: 0 0 8px; }
.home-sec { margin-top: 52px; }
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.tally { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .tally { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } .tally h2 { grid-column: 1 / -1; } }
.tally-t { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; font-size: 16.5px; }
.tally-t th { text-align: left; font-weight: 500; padding: 9px 14px; border-bottom: 1px dotted var(--rule-2); border-right: 3px double var(--margin); }
.tally-t td { text-align: right; padding: 9px 14px; font-weight: 750; font-variant-numeric: tabular-nums; border-bottom: 1px dotted var(--rule-2); font-size: 19px; width: 30%; }
.tally-t tfoot th, .tally-t tfoot td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-size: 15px; font-weight: 700; }
.tally-note { color: var(--ink-2); }
.doors { display: grid; gap: 20px; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.doors > div { border-top: 2px solid var(--ink); padding-top: 10px; }
.doors h3 { margin: 0 0 6px; font-size: 19px; }
.doors p { color: var(--ink-2); margin: 0 0 8px; }
.doors ul { padding-left: 18px; margin: 0; }
.agenda-short .meet { padding: 10px 16px; }

/* ---------- sample document ---------- */
.doc { background: #fff; border: 1px solid var(--rule-2); box-shadow: 0 1px 0 var(--rule-2), 0 8px 0 -4px #fff, 0 8px 0 -3px var(--rule-2); padding: 28px clamp(16px, 4vw, 48px); margin-top: 32px; }
.doc-head { border-bottom: 3px double var(--ink); padding-bottom: 12px; }
.doc-kicker { margin: 0; color: var(--ink-3); font-size: 14px; }
.doc-title { margin: 4px 0; font-size: 26px; font-weight: 750; }
.doc-date { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.doc-sec { margin-top: 28px; }
.doc-sec h2 { font-size: 21px; border-bottom: 1px solid var(--rule-2); padding-bottom: 4px; }
.doc-foot { border-top: 1px solid var(--rule-2); margin-top: 28px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- legal text ---------- */
.legal-text { max-width: 76ch; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 8px clamp(16px, 3vw, 32px) 16px; }
.legal-text p, .legal-text li { font-size: 16.5px; }

/* ---------- footer ---------- */
.site-foot { background: var(--sheet); border-top: 1px solid var(--rule-2); margin-top: 32px; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 36px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (min-width: 860px) { .foot-cols { grid-template-columns: repeat(4, 1fr); } }
.foot-h { font-weight: 700; margin: 0 0 6px; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.foot-cols li { padding: 3px 0; }
.legal { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 14px; font-size: 14px; color: var(--ink-2); }
.legal p { max-width: 110ch; }
.copy { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-head .find, .site-nav, .crumbs, .toc, .band, .buy, .entry-aside .buy, .site-foot .foot-cols, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .tbl-wrap { overflow: visible; border: 0; }
  .ledger thead th, .matrix thead th, .ledger tbody th[scope="row"], .matrix tbody th { position: static; }
  .is-sample .entry { display: none; }
  .doc { border: 0; box-shadow: none; padding: 0; margin: 0; }
  .doc-sec { break-inside: auto; }
  .doc-sec h2 { break-after: avoid; }
  a { color: inherit; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
a.ext { overflow-wrap: anywhere; }
.sources li > * { min-width: 0; overflow-wrap: anywhere; }

/* ---------- crosswalk (flagship) ---------- */
.xw-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 14px 0 0; padding: 12px 14px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; font-size: 15px; position: sticky; top: 0; z-index: 3; }
.xw-tools[hidden] { display: none; }
.xw-tools input[type="search"], .xw-tools select { font: inherit; font-size: 15px; padding: 6px 10px; border: 1px solid var(--ink-3); border-radius: 4px; background: #fff; color: var(--ink); margin-left: 6px; }
.xw-q input { width: min(300px, 70vw); }
.xw-check { display: inline-flex; gap: 6px; align-items: center; }
.xw-check input { width: 17px; height: 17px; accent-color: var(--ink); }
.xw-tools select { max-width: 100%; }
.xw { font-size: 14px; }
.xw .note { min-width: 12em; font-size: 13.5px; }
.xw td.xw-n { color: var(--ink-3); }
.xw td.xw-pref { background: var(--pref-bg); color: var(--pref-fg); font-weight: 700; }
.xw td.xw-pa { background: var(--pa-bg); color: var(--pa-fg); font-weight: 700; }
.xw td.xw-np { background: var(--np-bg); color: var(--np-fg); font-weight: 700; }
.xw td.xw-mix { background: #F1EED9; color: #3A3300; font-weight: 700; }
.xw td.xw-not { color: var(--ink-2); }
.tag-form { border: 1px dashed var(--excl-mk); color: var(--excl-fg); background: #fff; }
.sort-btn { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; text-align: left; }
.sort-ind::after { content: "\2195"; color: var(--ink-3); font-size: 12px; }
th[aria-sort="ascending"] .sort-ind::after { content: "\2191"; color: var(--ink); }
th[aria-sort="descending"] .sort-ind::after { content: "\2193"; color: var(--ink); }

.hh-tally .tally-t { width: 100%; }
.purchase-line { font-weight: 650; margin: 14px 0 0; }
.home .matrix-wrap { margin-top: 4px; }

.tag-passed { border-color: var(--rule-2); color: var(--ink-3); font-weight: 500; }
.deadline.muted { color: var(--ink-3); font-weight: 500; }
.entry-grid > *, .split > *, .home-hero > *, .tally > *, .products > * { min-width: 0; }
.xw-tools label { max-width: 100%; }

/* ======================================================================================
   Version D: engine adapter + shared components (lead). Page-area CSS lives in src/styles/.
   ====================================================================================== */
.brand-name { white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.small { font-size: 14px; color: var(--ink-2); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 72ch; }
main h1 { font-size: clamp(28px, 4.2vw, 40px); font-weight: 750; line-height: 1.15; margin: 20px 0 14px; max-width: 32ch; }
main h2 { font-size: 25px; font-weight: 720; margin: 44px 0 14px; }
main h3 { font-size: 18px; margin: 24px 0 8px; }
main section > h2:first-child { margin-top: 44px; }
.no-print { }
@media print { .no-print, .cite-bar { display: none !important; } }

/* cite bar: Last verified · Markdown version · Copy citation (on every page) */
.cite-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 0 0 18px; padding: 8px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); max-width: 100%; }
.entry .cite-bar, .entry-main .cite-bar { border-bottom: 0; margin: 14px 0 0; }
.cb-k { color: var(--ink-3); }
.cb-md { font-weight: 600; }

/* status badges from src/lib/ui.mjs badge(): same chips as .st, shape via ::before */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 2px; border-radius: 3px; font-size: 14px; font-weight: 600; line-height: 1.45; white-space: nowrap; border: 1px solid transparent; background: var(--src-bg); color: var(--src-fg); }
.badge::before { content: ""; width: 9px; height: 9px; flex: none; display: inline-block; }
.s-preferred { background: var(--pref-bg); color: var(--pref-fg); } .s-preferred::before { background: var(--pref-mk); border-radius: 50%; }
.s-preferred_pa { background: var(--pa-bg); color: var(--pa-fg); border-color: var(--pa-mk); } .s-preferred_pa::before { border-radius: 50%; border: 2px solid var(--pa-mk); background: linear-gradient(90deg, var(--pa-mk) 50%, transparent 50%); box-sizing: border-box; }
.s-non_preferred { background: var(--np-bg); color: var(--np-fg); } .s-non_preferred::before { background: var(--np-mk); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.s-mixed { background: linear-gradient(135deg, var(--pref-bg) 0 50%, var(--np-bg) 50% 100%); color: #3A3300; border-color: #C9B98A; } .s-mixed::before { background: linear-gradient(135deg, var(--pref-mk) 0 50%, var(--np-mk) 50% 100%); }
.s-covered { background: var(--cov-bg); color: var(--cov-fg); } .s-covered::before { background: var(--cov-mk); }
.s-clinical_criteria { background: var(--cc-bg); color: var(--cc-fg); } .s-clinical_criteria::before { background: var(--cc-mk); transform: rotate(45deg) scale(0.85); }
.s-unknown { background: repeating-linear-gradient(135deg, var(--src-bg) 0 5px, #F8F9FA 5px 10px); color: var(--src-fg); border-color: #C3C9D1; } .s-unknown::before { border: 2px solid var(--src-fg); border-radius: 50%; box-sizing: border-box; }
.s-absent { background: transparent; color: var(--ink-3); border: 1px dashed #8E9AA8; } .s-absent::before { border: 1px solid var(--ink-3); border-radius: 50%; box-sizing: border-box; }
.st { max-width: 100%; }
.conf { font-size: 12.5px; font-weight: 600; padding: 0 6px; border-radius: 3px; border: 1px solid var(--rule-2); color: var(--ink-2); background: #fff; white-space: nowrap; }
.conf-high { border-color: #3C8A57; color: var(--pref-fg); } .conf-medium { border-color: #B56A00; color: var(--np-fg); } .conf-low { border-color: var(--excl-mk); color: var(--excl-fg); }
.chg-up { color: var(--pref-fg); } .chg-down { color: var(--excl-fg); } .chg-pa { color: var(--np-fg); }

/* engine blocks restyled as ledger sheets */
div.answer, section.answer { border-left: 4px double var(--margin); padding: 2px 0 2px 20px; margin: 8px 0 20px; max-width: 78ch; background: none; border-top: 0; border-right: 0; border-bottom: 0; border-radius: 0; }
div.answer > p:first-child, section.answer > p:first-child { font-size: 20px; line-height: 1.5; color: var(--ink); }
div.answer p { max-width: 70ch; }
.card { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 16px 18px; min-width: 0; }
.card > :first-child { margin-top: 0; }
.card.soft { background: #FAFCFA; }
.card h3 { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.facts:has(> .fact) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 0; margin: 16px 0; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; }
.facts .fact { display: block; padding: 10px 14px; border-bottom: 0; border-right: 1px solid var(--rule); }
.facts .fact b { display: block; font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; }
.facts .fact span { font-size: 13.5px; color: var(--ink-3); }
.notice { background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px solid var(--care); border-radius: 4px; padding: 12px 16px; margin: 14px 0; }
.notice.warn { border-left-color: var(--np-mk); background: #FFFBF2; }
.notice > :last-child { margin-bottom: 0; }
.kbd { font-family: var(--f-mono); font-size: 13px; background: var(--head); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.list-cols { columns: 3 220px; column-gap: 28px; padding-left: 18px; }
.list-cols li { break-inside: avoid; margin: 0 0 4px; }
.cls-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.cls-head h3 { margin: 22px 0 6px; }
details { margin: 8px 0; }
summary { cursor: pointer; font-weight: 600; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn.ghost:hover { background: var(--head); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.price { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.price .per, .price small { font-size: 16px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; }
.filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; font-size: 15px; }
.filter input, .filter select { font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid var(--ink-3); border-radius: 4px; background: #fff; color: var(--ink); min-width: 0; }
.filter input { flex: 1 1 240px; max-width: 420px; }
.tbl-tools input { border-color: var(--ink-3); }
.faq h3 { border-top: 1px solid var(--rule); padding-top: 14px; }
.toc:not(nav) { display: block; }
.hl th, .hl td, tr.hl > * { box-shadow: inset 0 2px 0 var(--ink), inset 0 -2px 0 var(--ink); }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="search"]:not(.find input), textarea, select { border: 1px solid var(--ink-3); border-radius: 4px; padding: 8px 10px; background: #fff; color: var(--ink); max-width: 100%; }

/* engine tables (.tablewrap > table) as ledger sheets */
.tablewrap { position: relative; overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; margin: 10px 0 18px; max-width: 100%; }
.tablewrap table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
.tablewrap caption { caption-side: top; text-align: left; padding: 10px 12px 6px; font-weight: 700; font-size: 14.5px; color: var(--ink-2); }
.tablewrap table:not(.matrix) th, .tablewrap table:not(.matrix) td { text-align: left; vertical-align: top; padding: 7px 12px; border-bottom: 1px solid var(--rule); }
.tablewrap table:not(.matrix) thead th { background: var(--head); font-size: 13.5px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tablewrap table:not(.matrix) tbody th[scope="row"], .tablewrap table:not(.matrix) tbody td:first-child { font-weight: 650; border-right: 3px double var(--margin); }
.tablewrap table:not(.matrix) thead th:first-child { border-right: 3px double var(--margin); }
.tablewrap table:not(.matrix) tbody tr:hover > * { background: #F6FAF7; }
.tablewrap tbody tr:last-child > * { border-bottom: 0; }
.tablewrap td.num, .tablewrap th.num, .tablewrap table:not(.matrix) td.num, .tablewrap table:not(.matrix) th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap tfoot th, .tablewrap tfoot td { border-top: 1px solid var(--ink); border-bottom: 3px double var(--ink); font-weight: 700; }
.tablewrap td { overflow-wrap: anywhere; }
.tablewrap td .badge, .tablewrap td .st { white-space: nowrap; }
@media (min-width: 601px) { .tablewrap table:not(.matrix) thead th { position: sticky; top: 0; z-index: 1; } }

/* status matrix (engine seo.matrixHtml): design C grid cells */
.tablewrap .matrix { width: auto; min-width: 100%; }
.matrix td .badge { padding: 0 4px; font-size: 12.5px; border: 0; background: none; color: inherit; }
.matrix td .badge::before { display: none; }

/* Data tables become labelled cards at <= 600px (design A). layout.cardify() adds data-label. */
@media (max-width: 600px) {
  .tablewrap:has(> table.cards) { overflow: visible; background: transparent; border: 0; }
  .tablewrap:has(> table.cards) caption { padding: 0 0 8px; }
  table.cards, table.cards > tbody, table.cards > tbody > tr, table.cards > tbody > tr > td, table.cards > tbody > tr > th { display: block; width: 100%; }
  table.cards > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards > tbody > tr { height: auto !important; background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px double var(--margin); border-radius: 4px; margin: 0 0 10px; padding: 6px 0; }
  table.cards > tbody > tr[hidden] { display: none; }
  table.cards > tbody > tr > td, table.cards > tbody > tr > th { border: 0 !important; padding: 3px 12px !important; position: static !important; min-width: 0 !important; text-align: left !important; white-space: normal !important; background: none !important; box-shadow: none !important; }
  table.cards > tbody > tr > th[scope="row"], table.cards > tbody > tr > td:first-child { font-weight: 700; font-size: 16px; }
  table.cards > tbody > tr > [data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
  table.cards > tbody > tr > td:empty { display: none; }
  table.cards > tfoot { display: block; }
  table.cards > caption { display: block; width: 100%; padding: 0 0 8px; }
  table.cards .tbl-bar, table.cards .mbar { max-width: 220px; }
}

/* tile map: SVG on wider screens, tile list on phones (readable tiles, no sideways scroll) */
.tilemap { overflow: visible; }
.tilemap svg { min-width: 0; }
.tm-list { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 600px) {
  .tilemap .tm-svg { display: none; }
  .tm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 4px; }
  .tm-list li { max-width: none; }
  .tm-list a, .tm-list li > span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; border-radius: 3px; text-decoration: none; color: var(--ink); border: 1px solid #fff; }
  .tl-code { font-weight: 700; font-size: 15px; line-height: 1.1; }
  .tl-st { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
  .tl-pref > * { background: #9ED2AD; } .tl-pa > * { background: #D2EBD8; border-color: #3C8A57 !important; border-width: 2px !important; }
  .tl-np > * { background: #F3C677; } .tl-mix > * { background: linear-gradient(135deg, #9ED2AD 0 50%, #F3C677 50% 100%); }
  .tl-cov > * { background: #B6CCE6; } .tl-cc > * { background: #CFC4EA; }
  .tl-src > * { background: repeating-linear-gradient(135deg, #E9ECEF 0 4px, #F8F9FA 4px 8px); border-color: #C3C9D1 !important; }
  .tl-none > * { background: #fff; border: 1px dashed #8E9AA8 !important; } .tl-none .tl-st { color: var(--ink-3); font-weight: 500; }
  .tl-posted > * { background: #B4C9F0; } .tl-notice > * { background: #C9B8EC; } .tl-expected > * { background: #ECE2A6; } .tl-notposted > * { background: #C6CDD5; }
  .tl-other > * { background: #BCD7C5; } .tl-focus > * { background: var(--ink); color: #fff !important; }
  .tl-excl > * { background: #F8D8D4; } .tl-formx > * { background: #fff; border: 1px dashed #B3261E !important; } .tl-ok > * { background: #EEF3EF; }
  .mapblock { padding: 12px; }
}

/* PBM status chips in narrow boxes wrap instead of overflowing (C's known clipping) */
.cw-cell .st, .pbm-box .st { white-space: normal; max-width: 100%; }

/* page-level overflow is fixed at the source (QA checks scrollWidth), never clipped */

main { min-width: 0; }
pre { overflow-x: auto; max-width: 100%; }

/* footer */
.site-foot .independence { margin: 0 0 22px; padding: 0 0 14px; border-top: 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; color: var(--ink); }
.foot-copy { margin-top: 18px; }

/* ======================================================================================
   IMPROVEMENTS.md MUST items (design/improve), shared layer. IDs in comments.
   ====================================================================================== */
:root { --ui-xs: 13px; --fig-pad: 20px; --tap: 44px; }

/* M2 compact header (nav stays visible, never behind a menu button) */
.head-in { padding: 10px var(--gut) 6px; row-gap: 4px; }
.find-toggle { display: none; }
@media (min-width: 760px) { .indep .d { display: none; } }
@media (max-width: 759px) {
  .head-in { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding-top: 8px; }
  .brand { font-size: 20px; }
  .brand-block { display: block; }
  .brand-desc { display: none; }
  .indep { font-size: var(--ui-xs); line-height: 1.35; margin: 2px 0 0; }
  .indep .d { color: var(--ink); }
  .find-toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--rule-2); border-radius: 4px; background: var(--paper); color: var(--ink); text-decoration: none; }
  .find { grid-column: 1 / -1; max-width: none; display: none; margin-top: 6px; }
  .site-head.find-open .find, .find:focus-within { display: block; }
  .site-nav { position: relative; }
  .site-nav ul { flex-wrap: nowrap; overflow-x: auto; gap: 0 18px; scrollbar-width: none; padding-right: 28px; }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav::after { content: ""; position: absolute; right: var(--gut); top: 0; bottom: 3px; width: 32px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 80%); }
  .site-nav a { padding: 10px 0 9px; font-size: 15px; }
}

/* M8 type scale and measure */
.entry h1, main h1 { font-size: clamp(27px, 3.1vw, 36px); line-height: 1.15; margin-bottom: 14px; max-width: 28ch; }
.home-hero h1 { font-size: clamp(31px, 3.6vw, 42px); }
.answer, div.answer > p:first-child, section.answer > p:first-child { font-size: 18px; line-height: 1.55; max-width: 64ch; }
@media (max-width: 759px) { .answer, div.answer > p:first-child { font-size: 17px; } }
.sec > h2, main h2 { font-size: 24px; }
.receipt dt, .cw-detail, .key dd, .tbl-count { font-size: var(--ui-xs); }

/* M1 status at a glance */
.glance { margin: 18px 0 4px; padding: 14px 16px 12px; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; max-width: 100%; }
.glance-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 10px; max-width: none; }
.glance-num { font-size: 32px; font-weight: 760; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.glance-num small { font-size: 18px; font-weight: 650; color: var(--ink-2); }
.glance-lbl { font-size: 15px; color: var(--ink-2); }
.seg { display: flex; height: 28px; border-radius: 3px; overflow: hidden; border: 1px solid var(--rule-2); background: #fff; margin: 0; padding: 0; list-style: none; }
.seg li { display: flex; align-items: center; justify-content: center; min-width: 30px; font-size: 13px; font-weight: 700; white-space: nowrap; max-width: none; border-right: 2px solid #fff; }
.seg li:last-child { border-right: 0; }
.seg li span { background: rgba(255,255,255,.78); border-radius: 2px; padding: 0 4px; }
.seg .s-pref { background: #9ED2AD; color: #0D3B1E; }
.seg .s-pa { background: #D2EBD8; color: var(--pa-fg); box-shadow: inset 0 0 0 2px #3C8A57; }
.seg .s-mix { background: linear-gradient(135deg, #9ED2AD 0 50%, #F3C677 50% 100%); color: #3A3300; }
.seg .s-np { background: #F3C677; color: #4A2A00; }
.seg .s-cov { background: #B6CCE6; color: var(--cov-fg); }
.seg .s-cc { background: #CFC4EA; color: var(--cc-fg); }
.seg .s-src { background: repeating-linear-gradient(135deg, #E9ECEF 0 4px, #F8F9FA 4px 8px); color: var(--src-fg); }
.seg .s-none { background: #fff; color: var(--ink-3); background-image: radial-gradient(circle, #8E9AA8 1.2px, transparent 1.6px); background-size: 8px 8px; }
.seg .s-pref span, .seg .s-np span { background: none; }
.glance .legend { margin-top: 10px; gap: 6px 12px; font-size: 14px; }
.glance-foot { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 639px) { .seg li span { display: none; } }
.patient-sign { margin: 14px 0 0; font-size: 15px; padding: 8px 12px; border-left: 4px solid var(--care); background: #F3F7FB; max-width: 64ch; }

/* M3 figure frame with Map / Table views */
.fig { margin: 28px 0 0; background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; min-width: 0; }
.fig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; padding: 16px var(--fig-pad) 12px; border-bottom: 1px solid var(--rule); }
.fig-head h2 { margin: 0; font-size: 24px; }
.fig-sub { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.views { display: inline-flex; border: 1px solid var(--ink); border-radius: 4px; overflow: hidden; }
.views a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; font-size: 14.5px; font-weight: 650; color: var(--ink); text-decoration: none; background: #fff; }
.views a + a { border-left: 1px solid var(--ink); }
.views a[aria-selected="true"] { background: var(--ink); color: #fff; }
.fig-body { padding: 12px var(--fig-pad) 8px; min-width: 0; }
.fig .mapblock { border: 0; padding: 0; margin: 0; }
.fig .tablewrap, .fig .tbl-wrap { border: 0; border-radius: 0; margin: 0; }
.fig [data-view][hidden] { display: none; }
.fig-notes { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.fig-notes p { margin: 6px 0; }
.fig-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px var(--fig-pad) 12px; border-top: 1px solid var(--rule); background: #FAFCFA; font-size: 14px; color: var(--ink-2); border-radius: 0 0 4px 4px; }
.fig-foot p { margin: 0; max-width: 80ch; }
.fig-foot .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.fig-foot b { color: var(--ink); font-weight: 650; }
.btn-cite, .fig-act { font: inherit; font-size: 14px; font-weight: 600; min-height: 36px; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn-cite:hover, .fig-act:hover { background: var(--head); color: var(--ink); }
.fig-foot .fig-csv-note { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--ink-2); }
.fig-foot-mini { margin-top: 12px; padding: 10px 12px 12px; border: 1px solid var(--rule); border-radius: 4px; }
.fig-foot-mini .acts { width: 100%; }
@media (max-width: 639px) { .fig-foot .acts { width: 100%; } .fig-act.fig-csv { white-space: normal; text-align: left; } }
@media (max-width: 639px) { .fig-body { padding: 10px 12px 6px; } .fig-head { padding: 14px 14px 10px; } .fig-foot { padding: 10px 14px 12px; } }

/* M5 PBM strip: one row per list, chips never overflow (drug aside, PBM product pages, home teaser) */
.cw-row { grid-template-columns: 1fr !important; gap: 0; border: 1px solid var(--rule-2); border-radius: 3px; overflow: hidden; background: #fff; }
.cw-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 9px 10px; }
.cw-cell:last-child { border-bottom: 0; }
.cw-cell.cw-formx, .cw-cell.cw-excl { box-shadow: inset 3px 0 0 var(--excl-mk); border-color: var(--rule); border-style: solid; }
.cw-cell .st { justify-self: end; align-self: start; white-space: nowrap; }
.cw-detail { grid-column: 1 / -1; line-height: 1.4; overflow-wrap: anywhere; }

/* M6 calmer tile map: untracked states recede */
.tilemap .tm-untracked { fill: #EEF1EF; stroke: #fff; }
.tilemap .tm-untracked + .tm-code { fill: #6B7686; font-weight: 500; font-size: 12px; }
.legend .st-untracked { background: #EEF1EF; border-color: #DADFDB; color: var(--ink-3); }

/* M6 tables: sticky header that works (wrapper .fits set by site.js), scroll cue, 40px rhythm */
@media (min-width: 1000px) { .tablewrap.fits:not(.matrix-wrap), .tbl-wrap.fits { overflow: visible; } }
.tablewrap:not(.fits), .tbl-wrap:not(.fits) { background:
  linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left / 24px 100% no-repeat local,
  linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(20,35,58,.18), transparent) left / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(20,35,58,.18), transparent) right / 10px 100% no-repeat scroll, #fff; }
.tablewrap table:not(.matrix) th, .tablewrap table:not(.matrix) td, .ledger td, .ledger th { padding: 8px 12px; }
.tablewrap table:not(.matrix) tbody tr, .ledger tbody tr { height: 40px; }
.matrix-wrap { max-height: 80vh; overflow: auto; }
.tablewrap td.date, .tablewrap .date { white-space: nowrap; }

/* ---- src/styles/drug.css ---- */
/* Drug pages (/drug/<slug>/) and PBM pages (/pbm-exclusions-2027/...). Owned by worker W1.
   Builds on the shared design system in src/assets/site.css (entry, figure, glance, cw-row, care, band). */

/* entry */
.t-drug .entry-main > .cite-bar, .t-pbm .entry-main > .cite-bar { margin-top: 16px; }
.verified-note { margin: 8px 0 0; font-size: 14px; }
.t-drug .entry-main .glance, .t-pbm .entry-main .glance { max-width: 760px; }
.entry-aside .facts div { grid-template-columns: 9em minmax(0, 1fr); }

/* 2027 PBM strip in the aside: one row per list (M5); chips wrap instead of clipping */
.entry-aside > .pbm-strip:not(:first-child) { margin-top: 18px; }
main .crosswalk h2.cw-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; letter-spacing: 0; }
.cw-cell { min-width: 0; }
.cw-cell .cw-name { min-width: 0; overflow-wrap: anywhere; }
.cw-cell .cw-name a { color: var(--link); }
.cw-cell .st { max-width: 100%; white-space: normal; text-align: left; }
.cw-ok .cw-detail, .cw-unpub .cw-detail { color: var(--ink-3); }
.cw-dl { margin: 4px 0 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.cw-dl div { display: block; }
.cw-dl dt { display: inline; font-weight: 650; color: var(--ink); }
.cw-dl dt::after { content: ": "; }
.cw-dl dd { display: inline; margin: 0; overflow-wrap: anywhere; }
.cw-medicaid .cw-mlabel { margin: 0 0 4px; font-size: 14px; }
.pbm-strip .cw-note { font-size: 13px; }

/* status figure + patient sidebar: data left, the calm patient panel right. Below 1100px it stacks directly under
   the summary (owner spec for version D), ahead of the figure; the signpost under the answer links to it. */
.drug-split { display: grid; gap: 24px; margin-top: 28px; }
.drug-split > * { min-width: 0; }
.drug-split .fig { margin-top: 0; }
@media (max-width: 1099px) { .drug-split > .drug-care { order: -1; } }
@media (min-width: 1100px) {
  .drug-split { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
  .drug-split.no-care { grid-template-columns: minmax(0, 1fr); }
}
.drug-care { margin-top: 0; padding: 16px 18px; }
.drug-care .next-steps { margin: 0; padding: 0; border: 0; background: none; }
.drug-care .next-steps h2 { font-size: 19px; line-height: 1.3; margin: 2px 0 10px; }
@media (min-width: 1100px) {
  .drug-care p, .drug-care li { font-size: 15.5px; line-height: 1.55; }
  .drug-care ol { padding-left: 20px; }
}

/* state status table inside the figure */
.st-table td:nth-child(2) .small { font-size: 13px; }
@media (min-width: 601px) { .st-table td:nth-child(5) { white-space: nowrap; } }
.fig .tbl-tools { margin: 0 0 8px; }
.fig-notes p { max-width: 90ch; }

/* market access band directly after the state data */
.sc-band { margin-top: 16px; }
.sc-band .buyline { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-2); }
.sc-band .band-act .btn { white-space: normal; }

/* sections below the data */
.t-drug .sec, .t-pbm .sec { max-width: 100%; }
.t-drug .sec ul, .t-pbm .sec ul { padding-left: 20px; }
.t-drug .sec li + li, .t-pbm .sec li + li { margin-top: 4px; }
.ledger-list { list-style: none; padding: 0 !important; margin: 0; border-top: 1px solid var(--rule); }
.ledger-list li { padding: 8px 0 8px 14px; border-bottom: 1px solid var(--rule); border-left: 3px double var(--margin); margin: 0 !important; max-width: none; }
.src-list { list-style: none; padding: 0 !important; margin: 0; font-size: 14.5px; }
.src-list li { padding: 7px 0; border-bottom: 1px solid var(--rule); max-width: 100ch; overflow-wrap: anywhere; margin: 0 !important; }
.t-drug .sec .matrix-wrap { margin-top: 12px; }
.method-note { margin-top: 36px; }
.t-drug .faq h3, .t-pbm .faq h3 { font-size: 17.5px; }

/* PBM pages */
.t-pbm .entry-aside .listcard:first-child { padding-top: 0; }
.pbm-cats { margin: 18px 0 0; }
.pbm-cats ul { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0 !important; margin: 6px 0 0; }
.pbm-cats li { margin: 0 !important; font-size: 14px; }
.pbm-cats a { display: inline-block; padding: 2px 8px; border: 1px solid var(--rule-2); border-radius: 3px; background: var(--sheet); text-decoration: none; }
.pbm-cats a:hover { border-color: var(--ink); }
.pbm-cats .n { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.xl-table { table-layout: auto; }
.xl-table tr.grp > th { background: var(--head); font-size: 15px; font-weight: 700; padding: 10px 12px; border-right: 0 !important; border-top: 2px solid var(--ink); text-align: left; }
.xl-table tr.grp .n { color: var(--ink-3); font-weight: 600; font-size: 13.5px; margin-left: 6px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lchip { display: inline-block; font-size: 13px; font-weight: 650; padding: 0 6px; border: 1px solid var(--rule-2); border-radius: 3px; background: #fff; white-space: nowrap; }
.lchip abbr { text-decoration: none; }
.xl-table td.pg { white-space: nowrap; }
.xl-table .newy { font-weight: 650; }
@media (max-width: 600px) {
  .xl-table.cards tr.grp { border-left: 0; background: var(--head); padding: 8px 0; }
  .xl-table.cards tr.grp > th { background: none; border-top: 0; font-size: 16px; }
  .clamp2 { -webkit-line-clamp: 3; }
}
.pbm-hub-cta { margin-top: 24px; }

/* narrow aside: list name on its own line, chip under it (long merged list names stay readable) */
.entry-aside .cw-cell { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.entry-aside .cw-cell .st { justify-self: start; }

/* workaround: the M6 40px row height must not clamp rows that are stacked as cards on phones */
@media (max-width: 600px) { .tablewrap table.cards > tbody > tr, table.cards > tbody > tr { height: auto; } }
.t-drug section.faq { margin-top: 44px; }
@media (max-width: 600px) {
  .xl-table.cards > tbody > tr > td:nth-child(4), .xl-table.cards > tbody > tr > td:nth-child(5) { display: inline-block; width: auto; vertical-align: top; }
  .xl-table.cards > tbody > tr > td:nth-child(4)::before, .xl-table.cards > tbody > tr > td:nth-child(5)::before { display: inline; margin-right: 6px; }
}

/* ---- src/styles/home.css ---- */
/* Version D, worker W2: home, pricing and product pages, legal and static pages, PBM x Medicaid crosswalk.
   Builds on design C's tokens in src/assets/site.css; no new colors outside C's palette. */

/* ---------- home ---------- */
.home .home-hero { padding-top: 20px; }
.home .hh-text h1 { max-width: 20ch; }
.home .hh-text .answer { margin: 0 0 6px; padding: 0; border: 0; }
.home .hh-text .answer p { margin: 0 0 10px; }
.home .hh-text .cite-bar { margin: 16px 0 0; border-bottom: 0; }
.home .find-big { position: relative; display: block; grid-column: auto; max-width: 560px; margin-top: 20px; flex: none; order: 0; }
.home .xw-cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.home .find-big .find-row input { flex: 1 1 auto; min-width: 0; }
.home .hh-tally { min-width: 0; }
.home .tally-t th a { font-weight: 500; }
.home-intro { margin: 28px 0 0; max-width: 80ch; }
.home .fig { margin-top: 44px; }
.home .fig .matrix-wrap { margin: 0; }
.home .fig .key { margin-top: 4px; }
.home .more { font-weight: 600; }
.cov-list { padding-left: 20px; }
.cov-list li + li { margin-top: 6px; }
.operator .facts { margin: 10px 0; }
.operator .facts div { grid-template-columns: 7em 1fr; }

/* latest status moves */
table.moves td:first-child { min-width: 12em; }
table.moves td.date { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  /* phones: one compact card per move: product / state / before -> after / effective + source */
  .tablewrap:has(> table.moves) { overflow: visible; }
  table.moves, table.moves tbody { display: block; width: 100%; }
  table.moves thead { display: none; }
  table.moves caption { display: block; padding: 0 0 8px; }
  table.moves tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
  table.moves tr:last-child { border-bottom: 0; }
  .tablewrap table.moves td { display: block; padding: 0 !important; border: 0 !important; }
  table.moves td:first-child { flex: 1 1 100%; font-weight: 700; }
  table.moves td:nth-child(2) { flex: 1 1 100%; font-size: 15px; }
  table.moves td:nth-child(3)::after { content: "\2192"; margin-left: 8px; font-weight: 700; color: var(--ink-2); }
  table.moves td:nth-child(5) { flex: 1 1 auto; font-size: 14px; color: var(--ink-2); }
}

/* B: dated journal, effective date in a left margin column behind the red double rule */
.jr-split .facts { margin: 12px 0 14px; }
.jr-sheet { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 4px 16px; }
.journal { list-style: none; margin: 0; padding: 0; }
.jr { display: grid; grid-template-columns: 7.2em minmax(0, 1fr) auto; gap: 4px 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); max-width: none; align-items: start; }
.jr:last-child { border-bottom: 0; }
.jr-date { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; border-right: 3px double var(--margin); padding: 1px 10px 1px 0; align-self: stretch; }
.jr-body { min-width: 0; }
.jr-body p { margin: 0; max-width: none; }
.jr-what { font-size: 15.5px; overflow-wrap: anywhere; }
.jr-move { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px !important; }
.jr-arrow { color: var(--ink-2); font-weight: 700; }
.jr-src { font-size: 14px; white-space: nowrap; padding-top: 2px; }
.tag-notice { border-style: dashed; border-color: #8C7600; color: #574700; background: #FBF8E8; }
@media (max-width: 520px) {
  .jr { grid-template-columns: minmax(0, 1fr) auto; }
  .jr-date { grid-column: 1 / -1; border-right: 0; border-bottom: 1px dotted var(--rule-2); padding: 0 0 2px; }
}

/* home crosswalk teaser: strip in a sheet */
.home .crosswalk { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 14px 16px; }
.home .crosswalk .bar { margin-top: 6px; }

/* A: "Every row has a receipt" */
.rcpt { margin: 0; background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px double var(--margin); border-radius: 4px; padding: 10px 18px 12px; min-width: 0; }
.rcpt figcaption { font-size: 13.5px; color: var(--ink-3); margin: 0 0 4px; }
.rcpt dl { margin: 0; }
.rcpt dl div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--rule-2); align-items: baseline; }
.rcpt dl div:last-child { border-bottom: 0; }
.rcpt dt { color: var(--ink-3); font-size: 14px; }
.rcpt dd { margin: 0; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.rcpt .hash { font-size: 13px; font-weight: 400; background: none; padding: 0; word-break: break-all; }
@media (max-width: 420px) { .rcpt dl div { grid-template-columns: 1fr; gap: 0; } }

/* C: product cards, equal height, buy block at the bottom (S7) */
.products { align-items: stretch; }
.products.products-one { grid-template-columns: minmax(0, 1fr); }
.split > div > h3:first-child { margin-top: 0; }
.product { display: flex; flex-direction: column; min-width: 0; }
.product .incl { margin-bottom: 8px; }
.product > .buy, .product > .card-links { margin-top: auto; }
.product-lead { margin: 0 0 8px; }
.product .amt { font-size: 40px; font-weight: 760; }
.products-sub { margin-top: 20px; }
.buy { padding-top: 12px; border-top: 1px solid var(--rule); }
.buy .disclosure, .disclosure { font-size: 16px; color: var(--ink); max-width: 640px; margin: 8px 0; }
.buy .disclosure p, .disclosure p { margin: 6px 0; }
.buy .btn { font-size: 17px; padding: 12px 20px; }
.buy p:has(> .btn) { margin: 8px 0 0; }
.buyline, .purchase-line { font-weight: 650; margin: 10px 0 0; }
.buy-fine { font-size: 13.5px; color: var(--ink-3); margin: 10px 0 0; }
.arl-buy.off { opacity: .45; pointer-events: none; cursor: not-allowed; }

/* offer band (offerBlock) on drug, class and PBM pages: C's B2B band */
.band.offer { margin: 28px 0; align-items: flex-start; border-left: 4px double var(--margin); }
.band.offer .band-text { flex: 1 1 380px; min-width: 0; }
.band.offer h3 { margin: 2px 0 6px; font-size: 19px; }
.band.offer .band-text p { margin: 0 0 6px; font-size: 15.5px; }
.band.offer .band-act { flex: 1 1 300px; flex-direction: column; align-items: flex-start; gap: 0; min-width: 0; }
.band.offer .band-act p { margin: 6px 0 0; }
.band.offer .band-act .disclosure { font-size: 15.5px; margin: 8px 0 0; }

/* product pages (pricing, scorecard, data license, sample, redeem, download) */
.t-product .entry, .t-pricing .entry { padding-bottom: 0; }
.t-product .sec, .t-pricing .sec { margin-top: 40px; }
.t-product .sec > h2:first-child, .t-pricing .sec > h2:first-child { margin-top: 0; }
.howbuy p { max-width: 72ch; }
.steps-sheet { background: var(--sheet); border: 1px solid var(--rule-2); border-radius: 4px; padding: 6px 20px 8px 40px; margin: 0; }
.qa h3 { margin-top: 16px; }
.cov-sheet .tablewrap { margin-top: 6px; }
.keysheet { max-width: 680px; background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px double var(--margin); border-radius: 4px; padding: 16px 18px; }
.keysheet .filter input { flex: 1 1 220px; }
.keysheet > p:first-child { margin-top: 0; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-small { padding: 4px 10px; font-size: 13px; }
#pick #q { max-width: 640px; width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--ink-3); border-radius: 4px; }
#confirm { max-width: 640px; }
.pick { display: block; width: 100%; max-width: 640px; text-align: left; background: #fff; border: 1px solid var(--rule-2); border-radius: 4px; padding: 8px 12px; margin: 4px 0; cursor: pointer; font: inherit; color: var(--ink); }
.pick:hover, .pick:focus { border-color: var(--ink); background: var(--head); }
#results { max-width: 640px; }
.wl-row { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin: 6px 0; max-width: 820px; }
.wl-row input, .wl-row select, #editor textarea, #feed { font: inherit; padding: 7px 9px; border: 1px solid var(--ink-3); border-radius: 4px; width: 100%; }
#editor textarea { min-height: 70px; max-width: 820px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.alert-msg { border-left: 3px solid var(--care); background: var(--sheet); padding: 8px 12px; margin: 8px 0; font-size: 14.5px; }
@media (max-width: 640px) { .wl-row { grid-template-columns: 1fr; } }

/* sample scorecard as a printed document sheet */
.doc .scorecard h1 { font-size: 26px; margin-top: 0; }
.doc .scorecard h2 { font-size: 21px; border-bottom: 1px solid var(--rule-2); padding-bottom: 4px; margin-top: 28px; }
.doc .scorecard td { vertical-align: top; }
.doc .glance { margin: 14px 0 4px; }
.doc .fig { margin-top: 18px; }
.doc .fig h2 { border: 0; margin: 0; padding: 0; }
.sample-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; }
@media print { .doc .scorecard { font-size: 11px; } .doc .fig-foot, .doc .glance .seg { display: none; } }

/* ---------- legal and static pages: C's legal sheet ---------- */
.legal-text { margin: 8px 0 20px; }
.legal-text > p:first-child { margin-top: 12px; }
.legal-text ul { padding-left: 22px; }
.legal-text li + li { margin-top: 6px; }
.legal-text strong { color: var(--ink); }
.legal-text a { overflow-wrap: anywhere; }
.legal-foot { color: var(--ink-3); font-size: 14px; }
.t-static .entry-main > .answer { margin: 0; padding: 0; border: 0; }
.vocab dt .badge { white-space: nowrap; }

/* /sources/: no sideways scroll at any width; long URLs and hashes wrap */
table.srcs { table-layout: fixed; }
table.srcs col.c-state { width: 15%; } table.srcs col.c-eff { width: 13%; } table.srcs col.c-rows { width: 8%; }
table.srcs col.c-conf { width: 15%; } table.srcs col.c-doc { width: 49%; }
table.srcs td { overflow-wrap: anywhere; word-break: break-word; }
table.srcs td .src { white-space: normal; }
table.srcs .hash { display: block; font-size: 12.5px; color: var(--ink-3); background: none; padding: 0; word-break: break-all; margin-top: 2px; }
table.srcs .conf { white-space: normal; }
table.srcs .cur { display: block; }
.src-list { columns: 2 320px; column-gap: 32px; padding-left: 18px; }
.src-list li { break-inside: avoid; margin: 0 0 6px; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  /* phones: one compact entry per document: state, effective, rows and confidence on one line, document below */
  .tablewrap:has(> table.srcs) { overflow: visible; }
  table.srcs, table.srcs tbody { display: block; width: 100%; }
  table.srcs thead, table.srcs colgroup { display: none; }
  table.srcs caption { display: block; padding: 0 0 8px; }
  table.srcs tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
  .tablewrap table.srcs td { display: block; padding: 0 !important; border: 0 !important; font-size: 14.5px; }
  table.srcs td:first-child { font-weight: 700; font-size: 15.5px; }
  table.srcs .cur { display: inline; margin-left: 6px; }
  table.srcs td:nth-child(3)::after { content: " rows"; }
  table.srcs td:nth-child(5) { flex: 1 1 100%; }
}

/* ---------- PBM x Medicaid crosswalk (M7 compaction) ---------- */
.xw-tools { top: 0; }
.xw-tools .xw-count { margin-left: auto; color: var(--ink-2); font-size: 14.5px; }
.xw-tools label { display: inline-flex; align-items: center; gap: 4px; }
.xw-fig .fig-body { padding-top: 0; }
.xw-fig .xw-tools { margin: 0 calc(-1 * var(--fig-pad, 20px)) 0; border-radius: 0; border-width: 0 0 1px; }
.tablewrap.xw-wrap { overflow-x: auto; }
table.xw { table-layout: fixed; width: 100%; min-width: 1100px; font-size: 14px; }
table.xw col.c-name { width: 200px; } table.xw col.c-list { width: 112px; } table.xw col.c-cat { width: 170px; }
table.xw col.c-alt { width: 250px; } table.xw col.c-new { width: 64px; } table.xw col.c-n { width: 52px; }
table.xw col.c-none { width: 62px; } table.xw col.c-pg { width: 82px; }
.tablewrap table.xw th, .tablewrap table.xw td { padding: 6px 8px; }
.tablewrap table.xw thead th { white-space: normal; vertical-align: bottom; line-height: 1.25; }
table.xw td:first-child { overflow-wrap: anywhere; }
table.xw .cl { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; color: var(--ink-2); overflow-wrap: anywhere; }
table.xw tr:hover .cl, table.xw tr:focus-within .cl { -webkit-line-clamp: unset; }
table.xw td.n { text-align: right; font-variant-numeric: tabular-nums; }
table.xw td.n0 { color: var(--ink-3); font-weight: 400; }
table.xw td.xw-pref { background: var(--pref-bg); color: var(--pref-fg); font-weight: 700; }
table.xw td.xw-pa { background: var(--pa-bg); color: var(--pa-fg); font-weight: 700; }
table.xw td.xw-np { background: var(--np-bg); color: var(--np-fg); font-weight: 700; }
table.xw td.xw-mix { background: #F1EED9; color: #3A3300; font-weight: 700; }
table.xw td.pg { font-size: 13px; }
table.xw td.pg a { white-space: nowrap; }
/* rows beyond the first two groups (after "Show more") skip layout until scrolled to */
@media (min-width: 601px) { table.xw tbody.grp + tbody.grp + tbody.grp { content-visibility: auto; contain-intrinsic-size: auto 4800px; } }
.lc { display: inline-block; font-size: 12.5px; font-weight: 650; line-height: 1.35; padding: 0 5px; border: 1px solid var(--rule-2); border-radius: 3px; background: #fff; color: var(--ink); white-space: nowrap; }
.lc abbr { text-decoration: none; }
.lc-e { border-color: #8EA6C8; } .lc-o { border-color: #A89BC9; }
.xw-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 8px 0 0; font-size: 14px; padding: 0; list-style: none; }
.xw-key li { max-width: none; }
.xw-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 0 4px; }
.xw-pager[hidden] { display: none; }
.xw-pager .btn { font-size: 15px; padding: 8px 14px; }
.xw-shown { color: var(--ink-2); font-size: 14.5px; }
.sort-btn { min-height: 28px; }
@media (max-width: 600px) {
  .xw-tools { position: static; }
  .xw-q input { width: 100%; }
  .xw-tools .xw-q { flex: 1 1 100%; }
  .tablewrap.xw-wrap { overflow: visible; background: transparent; border: 0; }
  table.xw, table.xw tbody, table.xw tr { display: block; width: 100%; min-width: 0; }
  table.xw colgroup, table.xw thead { display: none; }
  table.xw caption { display: block; padding: 6px 0; }
  table.xw tr { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px 6px; background: var(--sheet); border: 1px solid var(--rule-2); border-left: 4px double var(--margin); border-radius: 4px; margin: 0 0 8px; padding: 8px 10px; }
  table.xw tr[hidden] { display: none; }
  .tablewrap table.xw td { display: block; padding: 2px 0; border: 0 !important; background: none; min-width: 0; text-align: left; }
  table.xw td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; font-size: 15.5px; }
  table.xw td:nth-child(2) { grid-column: 1 / 4; }
  table.xw td:nth-child(5) { grid-column: 4 / -1; text-align: right; }
  table.xw td:nth-child(5)::before { content: "New 2027: "; color: var(--ink-3); font-size: 12.5px; }
  table.xw td:nth-child(3), table.xw td:nth-child(4), table.xw td:nth-child(11) { grid-column: 1 / -1; }
  table.xw td:nth-child(3) { order: 3; } table.xw td:nth-child(4) { order: 4; } table.xw td:nth-child(11) { order: 5; }
  table.xw td.n { text-align: center; border-radius: 3px; padding: 2px 0; order: 2; }
  table.xw td.n::before { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); }
  table.xw td:nth-child(6)::before { content: "P"; } table.xw td:nth-child(7)::before { content: "P+PA"; }
  table.xw td:nth-child(8)::before { content: "NP"; } table.xw td:nth-child(9)::before { content: "Mix"; }
  table.xw td:nth-child(10)::before { content: "Not on"; }
  table.xw td:nth-child(3)::before { content: "Category: "; color: var(--ink-3); font-size: 12.5px; }
  table.xw td:nth-child(4)::before { content: "Instead: "; color: var(--ink-3); font-size: 12.5px; }
  table.xw td:nth-child(11)::before { content: "PBM PDF: "; color: var(--ink-3); font-size: 12.5px; }
  table.xw .cl { -webkit-line-clamp: 3; }
}

/* phones: the shared 40px row height (M6) would clip the stacked rows above */
@media (max-width: 600px) {
  .tablewrap table.moves tbody tr, .tablewrap table.srcs tbody tr, .tablewrap table.xw tbody tr { height: auto; }
}

/* ---- src/styles/lists.css ---- */
/* Version D, worker W3: classes, states, state x class, changes, January 2027, P&T calendar.
   Builds on C's ledger (site.css); only page-area rules here. Prefix: lx-. */

/* sections and prose */
.lx-sec { margin-top: 44px; min-width: 0; }
.lx-sec > h2 { margin: 0 0 14px; }
.lx-prose { max-width: 72ch; }
.lx-faq .faq { margin-top: 44px; }
.lx-faq .faq > h2 { margin-top: 0; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.entry-main .glance { max-width: 72ch; }
.entry-main .receipt + .cite-bar { margin-top: 10px; }
.fig-lede { margin: 4px 0 12px; max-width: 80ch; font-size: 15.5px; }
.fig { scroll-margin-top: 12px; }
.lx-sec, .fig, [id^="v-"] { scroll-margin-top: 12px; }

/* ledger tables: long labels wrap instead of widening the sheet (fixes C's GLP-1 "By state" page scroll) */
.lx-table table { width: 100%; }
.lx-table td.lx-label { min-width: 12ch; max-width: 36ch; overflow-wrap: anywhere; color: var(--ink-2); }
.lx-table th.lx-drug { min-width: 14ch; max-width: 32ch; overflow-wrap: anywhere; }
.lx-table .lx-date, .lx-table td[data-v^="20"] { white-space: nowrap; }
.lx-table .lx-src { white-space: nowrap; }
.lx-wraphead thead th { white-space: normal !important; vertical-align: bottom; line-height: 1.25; }
.lx-table td.barcol, .lx-table th.barcol { width: 96px; padding-left: 4px; padding-right: 4px; }
.lx-table td.barcol .mbar { min-width: 72px; margin-top: 5px; }
.lx-arrow { color: var(--ink-3); margin-right: 6px; font-weight: 700; }
.lx-table td .st { vertical-align: middle; }
.lx-prop { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--np-fg); border: 1px dashed var(--np-mk); border-radius: 3px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }
tr.lx-group > th { background: var(--head); font-size: 14px; color: var(--ink-2); border-right: 0 !important; }

/* version comparison heading line */
.lx-vs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 8px; font-size: 15px; }
.lx-vs .cb-k { color: var(--ink-3); margin-right: 4px; }
h3.lx-kind { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 6px; }
h3.lx-kind .count, .lx-month-h .count { font-size: 14px; font-weight: 600; color: var(--ink-3); }
details.lx-more > summary { margin: 6px 0; }

/* January 2027 proposed block: dashed rule so "proposed" never reads as effective */
.lx-proposed { border-left: 4px dashed var(--np-mk); padding-left: 16px; }

/* classes index */
.lx-cards .card h3 { font-size: 17px; margin: 0 0 6px; }
.lx-cards .card p { margin: 4px 0; }
.lx-classlist { list-style: none; padding: 0; margin: 0; columns: 2 420px; column-gap: 36px; }
.lx-classlist li { break-inside: avoid; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); max-width: none; }
.lx-classlist a { font-weight: 650; }
.lx-classlist .lx-ex { grid-column: 1; font-size: 14.5px; color: var(--ink-2); }
.lx-classlist .lx-meta { grid-column: 2; grid-row: 1; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lx-meta { color: var(--ink-3); }

/* P&T agenda (C): month-grouped, ruled date stub */
.fig .agenda-wrap .month:first-child { margin-top: 4px; }
.lx-month { margin-top: 22px; }
.lx-month-h { font-size: 19px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 10px; }
.fig .agenda { border-color: var(--rule); }
.meet-body { min-width: 0; }
.meet-body h3 a { overflow-wrap: anywhere; }
.meet-body .lx-meta { color: var(--ink-2); }
.lx-status { font-size: 12.5px; }
.lx-howto { color: var(--ink-2); max-width: 90ch; }
.meet-src { overflow-wrap: anywhere; }
.meet .cls-list { margin: 6px 0; }
.meet .cls-list li { overflow-wrap: anywhere; max-width: 100%; }
.lx-cancelled .meet-body h3 { text-decoration: line-through; text-decoration-thickness: 1px; }

@media (max-width: 600px) {
  .lx-sec { margin-top: 32px; }
  .meet { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px 10px; }
  .md-d { font-size: 24px; }
  .lx-table td.lx-label, .lx-table th.lx-drug { max-width: none; }
  table.cards > tbody > tr > td.barcol { padding-top: 2px !important; }
  table.cards > tbody > tr > td.barcol::before { display: none !important; }
  table.cards > tbody > tr > td.barcol .mbar { width: 100%; max-width: 220px; }
  .lx-classlist li { grid-template-columns: minmax(0, 1fr); }
  .lx-classlist .lx-meta { grid-column: 1; grid-row: auto; }
  .lx-proposed { padding-left: 10px; }
}

/* long URLs and e-mail addresses in prose never widen the page */
.lx-sec p, .lx-faq p, .fig-body p, .fig-notes, .meet-body p, .entry-main p, .receipt dd { overflow-wrap: anywhere; }

/* numbers right-aligned in ledger tables (the shared td/th left-align rule outranks .tablewrap td.num) */
.tablewrap.lx-table table:not(.matrix) td.num, .tablewrap.lx-table table:not(.matrix) th.num { text-align: right; }
.tablewrap.lx-table th.num .sort-btn { justify-content: flex-end; text-align: right; }

/* class grid inside its figure: codes stay on one line, caption repeated by the figure title */
.fig .matrix td, .fig .matrix th { white-space: nowrap; }
.fig .key dt { white-space: nowrap; }
.fig .matrix caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 600px) {
  /* compact cards: numbers sit side by side ("Rows 85  Preferred 52 ..."), text cells keep full width */
  .lx-table table.cards > tbody > tr { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 18px; padding: 8px 0 6px; }
  .lx-table table.cards > tbody > tr > * { flex: 1 1 100%; }
  .lx-table table.cards > tbody > tr > td.num { flex: 0 0 auto; width: auto !important; padding: 2px 0 2px 12px !important; font-variant-numeric: tabular-nums; }
  .lx-table table.cards > tbody > tr > td.num[data-label]::before { display: inline !important; margin-right: 6px; }
  .lx-table table.cards > tbody > tr > td.barcol { order: 2; }
  .lx-table table.cards > tbody > tr > td.num ~ td:not(.num):not(.barcol) { order: 3; }
  /* locator maps in the aside: smaller tiles, no repeated "Tracked" text (each tile keeps its aria-label) */
  .entry-aside .tm-list { grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 3px; }
  .entry-aside .tm-list a, .entry-aside .tm-list li > span { min-height: 34px; }
  .entry-aside .tl-other .tl-st { display: none; }
}

/* agenda: comment instructions fold away; full width inside the figure on phones */
details.lx-howto { margin: 2px 0 4px; }
details.lx-howto > summary { font-size: 14px; font-weight: 600; color: var(--link, inherit); }
details.lx-howto p { margin: 4px 0 0; color: var(--ink-2); max-width: 90ch; }
@media (max-width: 600px) {
  #upcoming > .fig-body, #recent .agenda-wrap { padding-left: 0; padding-right: 0; }
  #upcoming .lx-month-h { padding: 0 12px; }
  #upcoming .agenda { border-left: 0; border-right: 0; border-radius: 0; }
  #upcoming .fig-notes { padding: 0 12px; }
}
@media (max-width: 600px) {
  /* change cards: Before / After / Effective / Source side by side */
  .lx-table table.cards > tbody > tr > td:has(> .st), .lx-table table.cards > tbody > tr > td.lx-date, .lx-table table.cards > tbody > tr > td.lx-src { flex: 0 0 auto; width: auto !important; }
  .lx-table table.cards > tbody > tr > td:has(> .st) .lx-arrow { margin-right: 4px; }
}
@media (max-width: 600px) {
  .entry-aside .tl-focus .tl-st { display: none; }
  .entry-aside .tilemap + .facts, .entry-aside .tilemap + .legend { margin-top: 12px; }
}

/* ---- src/styles/seller.css ---- */
/* Seller of record line under every buy button (src/components/seller-line.mjs). Same size as the offer text:
   Cal. Bus. & Prof. Code 17538(d)(2) bars a disclosure smaller or less legible than the offer. */
.seller-line, .buy .seller-line, .band.offer .band-act .seller-line { font-size: 16px; color: var(--ink); max-width: 640px; margin: 8px 0 0; }
