:root {
  --bg: #fbfaf6;
  --surface: #ffffff;
  --border: #e6dfd0;
  --ink: #2a2a2a;
  --ink-muted: #6a6a6a;
  --accent: #b13b2e;
  --accent-band: #f7e0a8;
  --label-region: #8a6b1f;

  --c-labor: #2e4a7b;
  --c-contrast: #5b9aa0;
  --c-capital: #c5895c;
  --c-overhead: #6b6b6b;
  --c-margin: #ede5d7;
  --c-margin-hatch: #d4c9af;
  --c-cash: #1a8a4f;
  --c-medicare: #c2382f;
  --c-ccr: #666;
  --c-posted: #c9ced6;
}

* { box-sizing: border-box; }
/* Screen-reader-only content (the aria-live status region). */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.page { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }
.masthead { margin-bottom: 24px; }
.title { font-size: 32px; margin: 0 0 4px 0; font-weight: 700; }
.tagline { margin: 0; color: var(--ink-muted); font-size: 15px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px 22px; font-size: 12px; color: #444; margin: 0 0 12px 0; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 14px; height: 10px; display: inline-block; border-radius: 2px; }
.legend-circle { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--c-cash); }
.legend-triangle { display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid var(--c-medicare); }
.legend-dashed { display: inline-block; width: 14px; border-top: 2px dashed var(--c-ccr); }

.chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; margin-bottom: 24px; overflow: hidden; }
#chart { width: 100%; height: auto; }
#chart text { fill: var(--ink); font-size: 11px; }
.region-label { font-size: 13px; font-weight: 600; fill: var(--label-region); letter-spacing: 0.05em; }
.hospital-name { font-size: 12px; }
.hospital-tag { font-size: 9.5px; fill: var(--ink-muted); }
.gross-label { font-size: 11px; font-weight: 600; }
.grid-line { stroke: #ece6d7; }
.cah-band { fill: var(--accent-band); opacity: 0.32; }
.cah-label-medicare { font-size: 9px; font-weight: 600; fill: var(--c-medicare); }

.callouts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.callout { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 12px 14px; }
.callout .stat { font-size: 22px; font-weight: 700; }
.callout .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); margin-top: 4px; }

.same-system { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #c8a14b; border-radius: 6px; padding: 14px 16px; margin-bottom: 24px; }
.same-system h4 { margin: 0 0 8px 0; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--label-region); }
.same-system .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; font-size: 13px; }
.same-system .pair .detail { color: var(--ink-muted); margin-top: 2px; }
.same-system .takeaway { margin: 12px 0 0 0; font-size: 13px; color: var(--ink); line-height: 1.45; }

.footer { color: var(--ink-muted); font-size: 12px; text-align: center; }

.tooltip {
  position: absolute; pointer-events: none;
  background: rgba(20, 20, 20, 0.95); color: #fff;
  padding: 10px 12px; border-radius: 6px;
  font-size: 12px; line-height: 1.45; max-width: 320px; z-index: 1000;
  opacity: 0; transition: opacity 80ms ease-out;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.tooltip strong { color: #ffd7a8; }
.tooltip.visible { opacity: 1; }
.tooltip hr { border: 0; border-top: 1px solid #444; margin: 6px 0; }
.tooltip .dim { color: #bbb; }
.tooltip .micro { font-size: 11px; }
.tooltip .warn { color: #ffd7a8; margin-top: 4px; }

@media (max-width: 720px) {
  .page { padding: 20px 14px 48px; }
  .title { font-size: 26px; }
  .callouts { grid-template-columns: 1fr; }
  .same-system .pair { grid-template-columns: 1fr; gap: 12px; }
}

/* Procedure picker — search-first, with collapsed browse-by-category */
.proc-picker { display: block; margin: 14px 0 4px; }
.picker-search { display: block; }
.picker-input {
  font: inherit; font-size: 15px; width: 100%; padding: 10px 12px;
  border: 1px solid #bbb; border-radius: 6px; background: var(--surface); color: var(--ink);
}
.picker-input:focus { outline: none; border-color: #c8a14b; box-shadow: 0 0 0 2px rgba(200, 161, 75, 0.25); }
.picker-results {
  list-style: none; margin: 6px 0 0; padding: 0;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
  max-height: 300px; overflow-y: auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.picker-result {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 9px 12px; cursor: pointer; border-bottom: 1px solid #f0ece1;
}
.picker-result:last-child { border-bottom: none; }
.picker-result:hover, .picker-result.first { background: #f6f1e4; }
/* Keyboard-active combobox option (wireCombobox). */
.picker-search li.active, .picker-results li.active { background: #f3eee2; }
.picker-result-label { color: var(--ink); }
.picker-result-tag { white-space: nowrap; }
.picker-empty { padding: 9px 12px; }

.picker-current { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.picker-current-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.picker-change {
  font: inherit; font-size: 13px; padding: 5px 14px; border: 1px solid #bbb; background: #fff;
  border-radius: 16px; cursor: pointer; color: #444;
}
.picker-change:hover { background: #f3eee2; border-color: #c8a14b; }

.row-multiple { font-size: 9px; fill: #777; }

/* Mode switcher — two equally-weighted, prominent buttons */
.mode-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 0 0 28px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
}
.mode-btn {
  font: inherit; font-size: 16px; font-weight: 600;
  padding: 14px 18px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: var(--ink-muted); cursor: pointer;
  text-align: center; transition: background 90ms ease-out, color 90ms ease-out;
}
.mode-btn:hover { color: var(--ink); background: #f3eee2; }
.mode-btn.active {
  background: #1a1a1a; color: #fff; border-color: #1a1a1a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mode-btn.active:hover { background: #1a1a1a; color: #fff; }

/* Shop view */
.shop-view { display: block; }
.shop-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 14px 0 10px; }
.shop-controls label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); }
.shop-controls select { font: inherit; padding: 5px 8px; border: 1px solid #bbb; border-radius: 4px; }
.shop-copy { font: inherit; padding: 5px 12px; border: 1px solid #bbb; background: #fff; border-radius: 4px; cursor: pointer; color: #444; }
.shop-copy:hover { background: #f3eee2; }
.shop-anchor { font-size: 15px; margin: 6px 0 16px; color: var(--ink); }
.shop-anchor.dim { color: var(--ink-muted); }
.shop-empty { margin: 18px 0; font-size: 15px; }

.shop-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.shop-row {
  display: grid; grid-template-columns: minmax(0, 1.6fr) 110px 120px minmax(80px, 1fr);
  gap: 14px; align-items: center;
  font: inherit; text-align: left; width: 100%;
  padding: 10px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; cursor: pointer;
  transition: border-color 90ms ease-out, box-shadow 90ms ease-out;
}
.shop-row:hover { border-color: #c8a14b; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.shop-row.cah { border-left: 3px solid #c8a14b; background: #fffdf6; }
.shop-name span:first-child { font-weight: 600; }
.shop-tags { display: block; margin-top: 2px; }
.shop-price { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.shop-mult { font-variant-numeric: tabular-nums; }
.scope-flag { margin-top: 3px; font-weight: 600; }
.scope-flag.partial { color: var(--accent); }
.scope-flag.low { color: #9a6a1f; }
.shop-disclaimer { margin: 6px 0 2px; color: var(--ink-muted); font-size: 12px; }
.shop-bar { position: relative; height: 8px; background: #efe9da; border-radius: 4px; overflow: hidden; }
.shop-bar-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--c-capital); border-radius: 4px; }

/* "Is this fair?" reveal + methodology reveal — quiet, collapsed by default */
.fair-reveal, .methodology-reveal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 16px; margin: 0 0 24px; font-size: 13px; color: #555;
}
.methodology-reveal { margin: 0 auto 16px; max-width: 640px; text-align: left; }
.fair-reveal > summary, .methodology-reveal > summary {
  cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink);
  list-style: revert; outline: none;
}
.fair-reveal > summary:hover, .methodology-reveal > summary:hover { color: var(--accent); }
.fair-reveal[open] > summary, .methodology-reveal[open] > summary { margin-bottom: 10px; }
.fair-body { padding-top: 4px; }

/* Drill-down */
.detail:empty { display: none; }
.detail { border: 1px solid #ddd; border-radius: 8px; padding: 16px 20px; margin: 18px 0; background: #fafafa; }
.detail-head { display: flex; justify-content: space-between; align-items: baseline; }
.detail-close { font: inherit; border: none; background: none; cursor: pointer; color: #888; }
.detail-row { display: grid; grid-template-columns: 240px 130px 1fr; gap: 10px; padding: 4px 0; border-bottom: 1px dotted #e2e2e2; }
.detail .detail-row { grid-template-columns: 1fr auto; align-items: baseline; padding: 5px 0; }
.detail-amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.detail-breakdown { margin-top: 8px; }

/* Tier-2 (posted prices, no cost estimate) */
.tier2-panel { display: flex; flex-direction: column; gap: 8px; }
.tier2-badge { display: inline-block; align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: #faf0ec; border: 1px solid #e7cdc6; border-radius: 4px; padding: 4px 10px; }
.tier2-medicare { font-size: 13px; margin-bottom: 4px; }
.tier2-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dotted #e2e2e2; font-size: 13px; }
.tier2-row.cah { background: var(--accent-band); }
.tier2-name span:first-child { font-weight: 600; }
.tier2-tag { display: block; }
.tier2-prices { font-variant-numeric: tabular-nums; color: #444; }
.tier2-mult { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 720px) { .tier2-row { grid-template-columns: 1fr; gap: 2px; } .tier2-mult { text-align: left; } }

/* Bill checker */
.checker { border-top: 2px solid #1a1a1a; margin-top: 28px; padding-top: 12px; }
.chk-form { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; margin: 10px 0; }
.chk-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #555; }
/* Procedure field hosts the full-width search picker — take the whole row. */
.chk-field-proc { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.chk-field-label { font-size: 13px; color: #555; }
.chk-field-proc .proc-picker { margin: 0; }
/* Hospital field — search-pick-chip widget, same pattern as Shop's location anchor. */
.chk-field-hosp { display: flex; flex-direction: column; gap: 4px; flex: 1 1 100%; }
.chk-hosp-chip { margin: 0; padding: 8px 12px; border: 1px solid #bbb; border-radius: 6px; background: var(--surface); }
.chk-hosp-notlisted { align-self: start; margin-top: 6px; padding: 2px 0; background: none; border: none; font: inherit; font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; }
.chk-hosp-notlisted:hover { color: #8f2e23; }
.chk-form select, .chk-form input { font: inherit; padding: 5px 8px; border: 1px solid #bbb; border-radius: 4px; }
.chk-go { font: inherit; padding: 6px 18px; background: #1a1a1a; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
.chk-verdict-line { font-size: 17px; margin: 14px 0 8px; }
.chk-quoted-line { font-size: 15px; margin: 14px 0 4px; color: #555; }
.chk-quoted-line strong { color: var(--accent); }
.chk-guidance { margin-top: 14px; background: #f6f6f0; border-radius: 6px; padding: 10px 16px; }
.chk-guidance ul { margin: 6px 0; padding-left: 20px; }
.chk-guidance li { margin: 4px 0; }

/* Layer-2 culprit flag */
.chk-culprit { margin: 14px 0; background: #faf0ec; border: 1px solid #e7cdc6; border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 16px; }
.chk-culprit p { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.chk-culprit p:last-child { margin-bottom: 0; }

/* Layer-3 itemized line checker */
.itemized-section { margin: 18px 0; border-top: 1px dotted #ccc; padding-top: 14px; }
.itemized-section h4 { margin: 0 0 4px; font-size: 14px; letter-spacing: .03em; text-transform: uppercase; color: var(--label-region); }
.itemized-wrap { margin-top: 10px; }
.iline { display: grid; grid-template-columns: minmax(180px, 1fr) 120px auto; gap: 10px; align-items: start; margin-bottom: 6px; }
.iline.ihead { margin-bottom: 4px; align-items: center; }
.iline input { font: inherit; padding: 5px 8px; border: 1px solid #bbb; border-radius: 4px; }
/* Free-text description/code search-select per line. */
.idesc-wrap { position: relative; }
.idesc { width: 100%; box-sizing: border-box; }
.iline-results { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 30; margin: 0; }
.iline-keep { border-top: 1px solid #e8e2d4; }
.iline .irm { font: inherit; width: 28px; height: 28px; line-height: 1; padding: 0; background: none; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; color: #888; }
.iline .irm:hover { color: var(--accent); border-color: var(--accent); }
.iadd { font: inherit; margin: 4px 0 12px; padding: 5px 14px; background: none; border: 1px dashed #999; border-radius: 4px; cursor: pointer; color: #555; }
.iadd:hover { border-color: var(--accent); color: var(--accent); }
/* Layer-3 quick-add: "likely add-on" chips (Phase 3) */
.iaddons { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.iaddons-label { margin-right: 2px; }
.iaddon-chip { font: inherit; font-size: 13px; padding: 4px 10px; background: #f7ddd6; border: 1px solid #e7cdc6; border-radius: 14px; cursor: pointer; color: var(--accent); }
.iaddon-chip:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Phase 4: dispute-letter generator */
.letter-gen { font: inherit; margin: 14px 0 0; padding: 8px 16px; background: var(--accent); color: #fff; border: none; border-radius: 5px; cursor: pointer; font-weight: 600; }
.letter-gen:hover { filter: brightness(0.93); }
.letter-wrap:not(:empty) { margin-top: 12px; }
.letter-body { width: 100%; box-sizing: border-box; min-height: 340px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; line-height: 1.5; padding: 12px; border: 1px solid #bbb; border-radius: 6px; resize: vertical; }
.letter-actions { display: flex; gap: 8px; margin-top: 8px; }
.letter-actions button { font: inherit; padding: 6px 14px; border: 1px solid var(--accent); border-radius: 5px; background: none; color: var(--accent); cursor: pointer; }
.letter-actions button:hover { background: var(--accent); color: #fff; }

.iresults { margin-top: 8px; }
.iline-result { padding: 8px 10px; border: 1px solid #e2e2e2; border-radius: 6px; margin-bottom: 8px; background: var(--surface); }
.iline-result.addon { border-left: 3px solid var(--accent); background: #faf0ec; }
.iline-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.iline-code { font-weight: 600; font-variant-numeric: tabular-nums; }
.iline-label { font-size: 13px; }
.iline-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 3px; padding: 1px 6px; }
.iline-tag.base { color: #1a6b3f; background: #e6f3ec; }
.iline-tag.addon { color: var(--accent); background: #f7ddd6; }
.iline-refs { width: 100%; font-variant-numeric: tabular-nums; }
.iline-verdict { font-size: 13px; }
.iline-band { font-weight: 600; }
.iline-band.above_gross, .iline-band.above_cash { color: var(--accent); }
.iline-band.above_cost, .iline-band.above_medicare { color: #9a6b1f; }
.iline-band.at_or_below { color: #1a6b3f; }

.itotal { margin-top: 10px; padding-top: 10px; border-top: 1px solid #ddd; }
.itotal p { margin: 0; font-size: 14px; line-height: 1.45; }
.itotal strong { font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .iline { grid-template-columns: minmax(0, 1fr) 88px 32px; }
}

.anchor-control { margin: 8px 0; }
.anchor-control .anchor-pin { margin-right: 4px; }
.anchor-current { font-weight: 600; }
.anchor-change { margin-left: 8px; font-size: 12px; }
.picker-group { padding: 4px 8px 0; text-transform: uppercase; letter-spacing: .04em; }

/* Relevance-tier shop view (Task 7) */
.shop-tier-head { font-weight: 600; margin: 14px 0 6px; }
.shop-row { display: flex; align-items: center; gap: 6px; }
.shop-rowbtn { flex: 1; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; align-items: center; gap: 8px; background: none; border: 0; text-align: left; cursor: pointer; padding: 6px 4px; }
.shop-showmore, .shop-neighbors-toggle { margin: 6px 0; background: none; border: 0; color: var(--link, #2b6cb0); cursor: pointer; font-size: 13px; }
.shop-dist { white-space: nowrap; }
@media (max-width: 720px) {
  .shop-rowbtn { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .shop-rowbtn .shop-mult { text-align: right; }
  .shop-rowbtn .shop-bar { grid-column: 1 / -1; }
}

/* Compare set + worth-the-travel (Task 8) */
.compare-pin { width: 22px; height: 22px; border: 1px solid #ccc; border-radius: 4px; background: #fff; cursor: pointer; }
.compare-pin.on { background: var(--c-cash, #2b6cb0); color: #fff; border-color: transparent; }
.compare-panel { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 10px; margin: 10px 0; background: #f8fafc; }
.compare-head { display: flex; justify-content: space-between; align-items: center; }
.compare-row { display: grid; grid-template-columns: 2fr 1fr 2fr auto; gap: 8px; align-items: center; padding: 3px 0; }
.wtt-callout { border: 1px solid #f6c560; background: #fffaf0; border-radius: 6px; padding: 10px 12px; margin: 12px 0; }
.wtt-head { font-weight: 700; }
.wtt-add, .compare-clear, .compare-remove { background: none; border: 0; color: var(--link, #2b6cb0); cursor: pointer; }

/* ---- Glossary terms + source affordance + popover ---- */
.term { border-bottom: 1px dotted #8a8a8a; cursor: help; }
.term:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.src { margin-left: 5px; color: #9aa0aa; cursor: help; font-size: 11px; vertical-align: super; }
.src:focus-visible { outline: 2px solid var(--accent); }
.glossary-pop {
  position: absolute; z-index: 60; max-width: 280px;
  background: #1f2430; color: #f0f0f0; font-size: 12px; line-height: 1.45;
  padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.28);
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}
.glossary-pop.visible { opacity: 1; }

.method-summary p { margin: 0 0 10px; line-height: 1.5; }
.method-full { margin-top: 6px; }
.method-full > summary { cursor: pointer; color: var(--accent); font-size: 13px; }
.method-full h4 { margin: 12px 0 4px; font-size: 13px; color: var(--ink); }
.method-full p { margin: 0 0 8px; line-height: 1.5; color: #555; }

.breadth-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 14px; }
.breadth-chip { font-size: 11px; color: var(--ink-muted); background: #f3eee2; border: 1px solid #e2dccb; border-radius: 4px; padding: 3px 9px; }
.breadth-chip .term { border-bottom: 1px dotted #8a8a8a; }

/* Breadth picker: cold-start common row + section tiles + in-section refine */
.picker-cold:empty { display: none; }
.picker-cold { margin-top: 10px; }
.picker-cold-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin: 4px 0; }
.picker-common-row { display: flex; flex-wrap: wrap; gap: 6px; }
.picker-common-chip { font: inherit; font-size: 13px; padding: 6px 12px; border: 1px solid #c9c2b0; border-radius: 999px; background: #faf7ef; cursor: pointer; }
.picker-common-chip:hover { background: #f3eee2; }
.picker-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 4px; }
.picker-section-tile { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; font: inherit; text-align: left; padding: 12px 14px; border: 1px solid #d8d2c2; border-radius: 8px; background: #fff; cursor: pointer; }
.picker-section-tile:hover { border-color: #c8a14b; background: #faf7ef; }
.picker-section-name { font-weight: 600; color: var(--ink); }
.picker-section { margin-top: 10px; }
.picker-crumb { font-size: 13px; margin-bottom: 8px; }
.picker-crumb-back { font: inherit; font-size: 13px; background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; }
.picker-crumb-here { color: var(--ink-muted); }
.picker-refine { margin-bottom: 6px; }
.picker-section-note { margin: 4px 0; }

/* Check-a-bill: stepper + verdict card + magnitude bar + reveal */
.chk-stepper { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; font-size: 12px; }
.chk-step { padding: 4px 11px; border-radius: 999px; border: 1px solid #d8d2c2; color: var(--ink-muted); }
.chk-step.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.chk-step.done { background: #f3eee2; color: var(--ink); }
.chk-card { border: 1px solid #d8d2c2; border-left: 4px solid #b0b0b0; border-radius: 10px; padding: 16px 18px; margin: 6px 0 12px; }
.chk-card.band-above_gross, .chk-card.band-above_cash { border-left-color: var(--accent); }
.chk-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.chk-card-amount { font-size: 30px; font-weight: 700; line-height: 1.1; }
.chk-card-verdict { font-size: 15px; margin: 6px 0 2px; }
.chk-card-mult { font-size: 13px; margin: 0 0 10px; }
.chk-card-compare { display: grid; gap: 3px; max-width: 360px; margin: 10px 0; }
.chk-card-cmp-row { display: flex; justify-content: space-between; gap: 16px; }
.chk-bar { margin: 12px 0 2px; }
.chk-bar-track { position: relative; height: 8px; background: #ece7d8; border-radius: 5px; }
.chk-bar-mark { position: absolute; top: -2px; width: 2px; height: 12px; background: #1a1a1a; }
.chk-bar-mark.mb-charge { background: var(--accent); width: 3px; }
.chk-bar-legend { margin-top: 4px; }
.chk-reveal-wrap { margin: 4px 0 12px; }
.chk-reveal-wrap.culprit { background: #faf0ec; border: 1px solid #e7cdc6; border-left: 3px solid var(--accent); border-radius: 6px; padding: 12px 16px; }
.chk-reveal-lead { margin: 0 0 8px; font-size: 14px; }
.chk-reveal { font: inherit; font-weight: 600; background: none; border: none; color: var(--accent); cursor: pointer; padding: 0; }
.chk-step3[hidden] { display: none; }

/* ---- Static SEO pages (rake pages output; see lib/sunlight/pages/) ---- */
.static-page .crumbs { font-size: 13px; color: var(--ink-muted); margin: 0 0 18px 0; }
.static-page .crumbs a { color: inherit; }
.static-page .cpt { color: var(--ink-muted); font-weight: 400; font-size: 20px; }
.static-page .cpt-inline { color: var(--ink-muted); font-size: 12px; }
.static-page .coverage { font-size: 14px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); font-size: 14px; margin: 16px 0 8px; }
.price-table th, .price-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.price-table th.num, .price-table td.num { text-align: right; white-space: nowrap; }
.scope-flag { font-size: 12px; }
.scope-partial { color: var(--accent); }
.scope-low { color: var(--label-region); }
.badge-cah { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--accent-band); padding: 2px 8px; border-radius: 10px; }
.static-page .same-system-note { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #c8a14b; border-radius: 6px; padding: 10px 14px; font-size: 14px; }
.browse-group h2 { font-size: 18px; margin: 22px 0 6px; }
.browse-group h3 { font-size: 14px; margin: 12px 0 4px; color: var(--ink-muted); }
.browse-list { margin: 4px 0 12px; padding-left: 22px; }
.browse-list li { margin: 4px 0; }
.static-page .dim { color: var(--ink-muted); }
@media (max-width: 720px) {
  .price-table { display: block; overflow-x: auto; }
}
