/* County Profiles content styles, in the maineblock.com house skin.
   The site frame (header, menus, footer) is styled by the site's own
   stylesheet and web/frame.css; this sheet styles only the county
   content. Every color and font is a house variable from the site
   stylesheet (:root in /assets/style.css), so the content follows the
   site: Space Grotesk headings, Inter body, Signal Orange accents. */
:root {
  --ce-bg: var(--bg); --ce-fg: var(--ink); --ce-muted: var(--muted); --ce-border: var(--line);
  --ce-surface: var(--surface); --ce-accent: var(--accent); --ce-accent-fg: #0B0B0C;
  /* The brand orange (#F29B26, adopted 2026-11-11) measures about
     2.2:1 on white: fine for bars, fills, and borders, too light
     for text. Text accents use the
     site's own text accent (--accent, #A85A00, 5.0:1 on white), the
     same split the site stylesheet keeps. */
  --ce-accent-text: var(--accent);
  /* The standout kicker sits on the pale tone backgrounds (#fdf3e2 /
     #e8eff8), where --accent measures 4.39:1; one shade deeper passes
     on both tones and on white. */
  --ce-accent-text-deep: #9C5400;
  --ce-county: var(--orange); --ce-rest: var(--chart-mute); --ce-us: #3F3F46;
  --ce-higher: #8a3a10; --ce-lower: #1d4f8a; --ce-similar: var(--muted);
  --ce-radius: var(--radius); --ce-font: var(--font-b);
}
.ce-main { max-width: 1200px; margin: 0 auto; padding: 40px 32px 16px; font-family: var(--ce-font); }
.ce-sources { color: var(--ce-muted); font-size: 10px; border-top: 1px solid var(--ce-border); padding-top: 18px; margin-top: 48px; }
.ce-breadcrumb { font-size: 14px; color: var(--ce-muted); margin-bottom: 12px; }
h1 { font-family: var(--font-d); font-weight: 700; font-size: 30px; line-height: 1.2; letter-spacing: -.01em; margin: 8px 0 12px; }
h2 { font-family: var(--font-d); font-weight: 700; font-size: 21px; line-height: 1.3; margin: 32px 0 12px; color: var(--cp-terra-text); }
h3 { font-family: var(--font-d); font-weight: 600; font-size: 17px; margin: 24px 0 8px; color: var(--cp-terra-text); }
.ce-summary p { font-size: 17px; margin: 0 0 8px; }
.ce-meta, .ce-note { color: var(--ce-muted); font-size: 12.5px; }
.ce-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 20px; }
.ce-toolbar input { flex: 1 1 260px; font: inherit; padding: 10px 14px; border: 1px solid var(--ce-border); border-radius: 10px; background: var(--card); color: var(--ce-fg); }
.ce-btn-primary, .ce-btn-secondary, button { font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-block; min-height: 44px; box-sizing: border-box; }
.ce-btn-primary { background: var(--orange); color: var(--ce-accent-fg); border: 1px solid transparent; }
.ce-btn-primary:hover { box-shadow: 0 8px 22px rgba(242,155,38,.35); text-decoration: none; }
.ce-btn-secondary, button { background: var(--card); color: var(--ce-fg); border: 1px solid var(--ce-border); }
.ce-btn-secondary:hover, button:hover { background: var(--ce-surface); }
/* Step strip: the picker flow, shown on the national and state hubs.
   Pick a state, then a county, then the profile. */
.ce-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 6px; }
.ce-step { border: 1px solid var(--ce-border); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--ce-muted); background: var(--card); }
.ce-step strong { font-family: var(--font-d); color: var(--ce-fg); margin-right: 4px; }
.ce-step a { color: inherit; }
.ce-step-on { border-color: var(--orange); color: var(--ce-fg); box-shadow: inset 0 0 0 1px var(--orange); }
.ce-step-on strong { color: var(--ce-accent-text); }
.ce-step-arrow { color: var(--ce-accent-text); font-weight: 700; }
/* National hub: state picker cards, grouped by Census region. */
.ce-pick-head { margin-top: 32px; }
.ce-region h3 { margin: 24px 0 10px; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ce-muted); }
.ce-state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.ce-state-card { position: relative; display: block; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); padding: 16px 38px 16px 18px; background: var(--card); color: var(--ce-fg); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ce-state-card:hover { border-color: var(--orange); box-shadow: 0 8px 22px rgba(242,155,38,.18); transform: translateY(-1px); text-decoration: none; }
.ce-state-card:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ce-state-name { display: block; font-family: var(--font-d); font-size: 19px; font-weight: 700; line-height: 1.25; }
.ce-state-meta { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ce-muted); }
.ce-state-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--ce-accent-text); font-weight: 700; font-size: 18px; }
.ce-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ce-card { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); padding: 18px 20px; background: var(--card); }
.ce-card-label { font-size: 14px; color: var(--ce-muted); }
.ce-card-value { font-family: var(--font-d); font-size: 26px; font-weight: 700; }
.ce-card-moe, .ce-card-cmp { font-size: 13px; color: var(--ce-muted); }
.ce-caution { font-size: 12px; font-weight: 600; color: var(--ce-higher); }
.ce-gap { font-size: 13px; font-weight: 600; margin-top: 4px; }
.ce-gap-higher { color: var(--ce-higher); } .ce-gap-lower { color: var(--ce-lower); } .ce-gap-similar { color: var(--ce-similar); }
.ce-table-wrap { overflow-x: auto; }
.ce-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.ce-table th, .ce-table td { text-align: left; padding: 8px 10px; border: 1px solid var(--ce-border); vertical-align: top; }
.ce-table thead th { font-weight: 700; color: #fff; background: #5C646D; border: 1px solid #5C646D; }
.ce-table th.num, .ce-table td.num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce-table tbody tr:hover { background: var(--ce-surface); }
/* The pinned state row on a County Profiles state page (State Profiles
   spec): the state itself above its counties, bold on a light band. The
   sort/filter/pager code never moves or hides it (app.js excludes
   [data-pinned] rows from every control). */
.ce-table tbody tr.ce-state-row { background: var(--ce-surface); }
.ce-table tbody tr.ce-state-row th, .ce-table tbody tr.ce-state-row td { font-weight: 700; border-bottom: 2px solid var(--ce-border); }
.ce-table tbody th[scope="row"] a { font-weight: 600; }
.ce-tag { font-size: 11px; color: var(--ce-muted); border: 1px solid var(--ce-border); border-radius: 999px; padding: 1px 6px; white-space: nowrap; }
.ce-flag-withhold td:nth-child(2) { color: var(--ce-muted); font-style: italic; }
.ce-chart svg { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.ce-cta { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); padding: 26px 28px; background: var(--tint-finance); margin-top: 32px; }
.ce-cta h2 { margin-top: 0; }
.ce-cta > :last-child { margin-bottom: 0; }
.ce-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ce-compare { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); padding: 18px 20px; margin-bottom: 20px; background: var(--ce-surface); }
.ce-compare-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.ce-compare-head label { font-weight: 600; }
.ce-compare-head .ce-btn-secondary { min-height: 38px; padding: 7px 14px; }
.ce-compare input[type="search"] { font: inherit; padding: 10px 12px; border: 1px solid var(--ce-border); border-radius: 10px; background: var(--card); color: var(--ce-fg); min-height: 44px; box-sizing: border-box; width: 100%; }
/* County profile: main column plus a right rail of standout cards.
   Key indicators lead the main column; the detailed tables follow.
   On narrow screens the rail stacks between them. */
.ce-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 34px; }
.ce-split-top, .ce-split-rest, .ce-rail { min-width: 0; }
.ce-local { margin-top: 32px; }
.ce-local p { font-size: 16px; }
@media (min-width: 901px) {
  .ce-split-rail { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "top rail" "rest rail"; }
  .ce-split-top { grid-area: top; }
  .ce-split-rest { grid-area: rest; }
  /* .ce-rail must NOT get grid-area here: the class is shared with the
     redesigned .ce-profile-layout grid, which has no named areas — a
     "rail" area placement there makes the browser invent implicit named
     tracks and collapses the main column to zero width at desktop
     widths (fix round 2026-11-12; checks.py check 14 guards this). The
     named-area placement survives only scoped to the retired split
     layout, below. */
  .ce-split-rail .ce-rail { grid-area: rail; }
  .ce-rail { align-self: start; }
  .ce-rail h2 { margin-top: 32px; }
}
.ce-spot { border: 1px solid var(--ce-border); border-top: 3px solid var(--orange); border-radius: var(--ce-radius); padding: 18px 20px; background: var(--card); margin-bottom: 12px; }
.ce-spot-label { font-size: 14px; color: var(--ce-muted); }
.ce-spot-value { font-family: var(--font-d); font-size: 25px; font-weight: 700; line-height: 1.2; margin-top: 2px; }
.ce-spot-moe { font-size: 13px; color: var(--ce-muted); }
.ce-spot-text { font-size: 15px; margin: 8px 0 0; }
.ce-spot-cmp { font-size: 13px; color: var(--ce-muted); margin-top: 8px; }
.ce-spot .ce-gap { margin-top: 4px; }
.ce-strip { width: 100%; height: 26px; display: block; margin-top: 6px; }
@media (max-width: 600px) { h1 { font-size: 24px; } }

/* ---- Redesign (2026-11-10): hub hero, selectors, map, tabs, cards ---- */
.ce-main [hidden] { display: none !important; }
.ce-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ce-kicker { font-family: var(--font-d); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-accent-text); margin: 0 0 10px; }
.ce-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-bottom: 10px; }
@media (min-width: 901px) { .ce-hero { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.ce-hero h1 { font-size: 34px; margin-top: 0; }
.ce-hero-sub { font-size: 17px; color: var(--ce-fg); max-width: 44rem; }
.ce-hero-search { margin-top: 18px; }
.ce-try { font-size: 14px; color: var(--ce-muted); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.ce-try a { font-weight: 600; }
.ce-stat-card { background: #101014; color: #F4F2ED; border-radius: var(--ce-radius); padding: 24px 26px; }
.ce-stat-big { font-family: var(--font-d); font-size: 44px; font-weight: 700; line-height: 1; color: var(--orange); }
.ce-stat-label { font-family: var(--font-d); font-size: 17px; font-weight: 600; margin-top: 4px; }
.ce-stat-list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #2c2c31; }
.ce-stat-list li { padding: 5px 0; font-size: 15px; }
.ce-stat-src { font-size: 12.5px; color: #333333; margin: 14px 0 0; }
/* Two-input selector */
.ce-select { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: var(--card); padding: 18px 20px; margin: 32px 0 6px; }
.ce-select-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; }
.ce-select-field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ce-muted); }
.ce-select-field select, .ce-select-field input { font: inherit; padding: 10px 12px; border: 1px solid var(--ce-border); border-radius: 10px; background: var(--card); color: var(--ce-fg); min-height: 44px; box-sizing: border-box; width: 100%; }
.ce-select .ce-btn-primary { min-height: 44px; }
.ce-select .ce-btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.ce-switch { margin-top: 20px; }
.ce-switch-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Map */
.ce-map-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 901px) { .ce-map-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.ce-map { width: 100%; height: auto; display: block; }
.ce-map-state { fill: #d9d4c8; stroke: #fff; stroke-width: 1; transition: fill .12s ease; }
a:hover .ce-map-state, a:focus-visible .ce-map-state { fill: var(--orange); }
.ce-map-me { fill: var(--orange); }
.ce-map-label { font-family: var(--font-d); font-size: 12.5px; font-weight: 700; fill: #3f3a30; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ce-map-note { font-size: 14px; color: var(--ce-muted); }
.ce-chip { display: inline-block; border: 1px solid var(--ce-border); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; background: var(--card); color: var(--ce-fg); text-decoration: none; margin: 2px 2px 2px 0; }
a.ce-chip:hover { border-color: var(--orange); text-decoration: none; }
.ce-chip-static { color: var(--ce-muted); }
.ce-chip-more { font-weight: 700; color: var(--ce-accent-text); }
.ce-chip-row { display: flex; flex-wrap: wrap; gap: 2px; }
.ce-feature-card { border: 1px solid var(--ce-border); border-top: 4px solid var(--orange); border-radius: var(--ce-radius); background: var(--card); padding: 20px 22px; }
.ce-feature-card h3 { margin-top: 0; font-size: 22px; }
.ce-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 14px; }
.ce-feature { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: var(--card); padding: 18px 20px; }
.ce-feature h3 { margin-top: 0; }
.ce-feature p { margin-bottom: 0; font-size: 15px; }
.ce-methods-line { margin-top: 32px; font-size: 15px; color: var(--ce-muted); }
.ce-methods-line a { font-weight: 600; }
/* State page */
.ce-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; margin: 16px 0 8px; }
.ce-controls .ce-select-field { flex: 0 1 260px; }
.ce-controls .ce-filter-field { flex: 1 1 220px; }
.ce-meta-row { margin: 6px 0 0; }
.ce-glance { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ce-bar { display: block; height: 5px; border-radius: 3px; background: var(--ce-surface); margin-top: 5px; min-width: 60px; }
.ce-bar > span { display: block; height: 100%; border-radius: 3px; background: var(--orange); }
.ce-sort { background: none; border: 0; padding: 7px 6px; margin: -7px -6px; min-height: 0; font: inherit; font-weight: 700; color: inherit; cursor: pointer; text-align: inherit; }
.ce-sort:hover { background: none; color: var(--ce-accent-text); }
.ce-toggle { display: flex; border: 1px solid var(--ce-border); border-radius: 10px; overflow: hidden; }
.ce-toggle-btn { border: 0; border-radius: 0; background: var(--card); padding: 10px 18px; min-height: 44px; font-weight: 600; }
.ce-toggle-on { background: var(--orange); color: var(--ce-accent-fg); }
.ce-cta-dark { background: #101014; color: #F4F2ED; border-color: #101014; }
.ce-cta-dark h2 { color: #F4F2ED; }
.ce-cta-dark .ce-link { color: #ffb066; }
.ce-cta-dark .ce-btn-secondary { background: transparent; color: #F4F2ED; border-color: #4a4a50; }
.ce-nearby { margin-top: 24px; font-size: 15px; }
/* Profile */
.ce-subline { font-size: 15px; color: var(--ce-muted); margin: 0 0 14px; }
.ce-tablist { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--ce-border); margin: 24px 0 6px; }
.ce-tab { border: 1px solid transparent; border-bottom: 0; background: none; border-radius: 10px 10px 0 0; padding: 10px 16px; min-height: 44px; font-weight: 600; color: var(--ce-muted); }
.ce-tab:hover { background: var(--ce-surface); color: var(--ce-fg); }
.ce-tab-on { color: var(--ce-accent-text); border-color: var(--ce-border); background: var(--card); box-shadow: inset 0 -3px 0 var(--orange); }
.ce-spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.ce-spot { margin-bottom: 0; }
.ce-tone-higher { background: #fdf3e2; }
.ce-tone-lower { background: #e8eff8; }
.ce-tone-dark { background: #101014; color: #F4F2ED; border-top-color: var(--orange); }
.ce-tone-dark .ce-spot-label, .ce-tone-dark .ce-spot-moe, .ce-tone-dark .ce-spot-cmp { color: #b9b5aa; }
.ce-tone-dark .ce-spot-kicker { color: var(--orange); }
.ce-tone-dark .ce-caution { color: #ffb066; }
.ce-tone-dark .ce-tag { color: #b9b5aa; border-color: #4a4a50; }
.ce-spot-kicker { font-family: var(--font-d); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-accent-text-deep); margin: 0 0 6px; }
.ce-para-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ce-para-card { border: 1px solid var(--ce-border); border-left: 4px solid var(--orange); border-radius: var(--ce-radius); background: var(--card); padding: 18px 20px; }
.ce-para-card p { margin: 0; font-size: 16px; }
.ce-key-grid { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.ce-cmp-rows { margin-top: 10px; border-top: 1px solid var(--ce-border); padding-top: 8px; }
.ce-cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 2px 0; }
.ce-cmp-label { font-size: 12.5px; color: var(--ce-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-cmp-val { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ce-cmp-row .ce-bar { grid-column: 1 / -1; margin-top: 2px; }
.ce-cmp-row .ce-bar-1 > span { background: var(--orange); }
.ce-cmp-row .ce-bar-2 > span { background: var(--ce-rest); }
.ce-cmp-row .ce-bar-3 > span { background: var(--ce-us); }
.ce-key-card .ce-gap { margin-top: 8px; }
.ce-rank-phrase { font-size: 16px; font-weight: 600; }
.ce-rank-svg { width: 100%; height: auto; display: block; }
.ce-toggle-row { margin: 4px 0 10px; }
.ce-domain h3 { margin-top: 24px; }
.ce-peer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.ce-peer-card { border: 1px solid var(--ce-border); border-radius: var(--ce-radius); background: var(--card); padding: 18px 20px; }
.ce-peer-card h3 { margin-top: 0; font-size: 16px; }
.ce-peer-card dl { margin: 0; }
.ce-peer-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-top: 1px solid var(--ce-border); font-size: 13.5px; }
.ce-peer-row dt { color: var(--ce-muted); }
.ce-peer-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ce-steps-list { margin: 0 0 14px; padding-left: 22px; }
.ce-steps-list li { margin: 6px 0; font-size: 15.5px; }
@media (max-width: 600px) {
  .ce-hero h1 { font-size: 27px; }
  .ce-stat-big { font-size: 36px; }
  .ce-tab { padding: 9px 11px; font-size: 14.5px; }
}

/* ---- Profile redesign + hub pass (2026-11-10 owner round) ---- */
/* Profile header: title block left, the switch-county form top-right,
   the computed summary under the header. */
.ce-profile-head { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: flex-start; justify-content: space-between; }
.ce-profile-title { flex: 1 1 320px; min-width: 0; }
.ce-profile-title h1 { margin-top: 0; }
.ce-profile-head .ce-switch { margin: 0; flex: 1 1 400px; max-width: 540px; }
.ce-profile-head .ce-select-field { flex: 1 1 150px; }
.ce-summary { margin-top: 20px; }
/* Key indicators: heading with the significance note at its right.
   The heading's 32px section rhythm rides on the flex row's own
   margin: the h2 inside a flex row keeps its margin inside the
   section box, which measured 46px above the heading where sibling
   sections (h2 a direct child, margin collapsed through) get 32px. */
.ce-key-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; justify-content: space-between; margin-top: 32px; }
.ce-key-head h2 { margin-top: 0; }
.ce-key-note { font-size: 10px; color: var(--ce-muted); margin: 0 0 12px; }
/* The Higher/Lower reading on a Key indicators card is a pill. */
.ce-key-card .ce-gap { display: inline-block; border-radius: 999px; padding: 3px 11px; font-size: 12.5px; }
.ce-key-card .ce-gap-higher { background: #f9e7d2; }
.ce-key-card .ce-gap-lower { background: #dde9f6; }
.ce-key-card .ce-gap-similar { background: var(--ce-surface); }
/* State table: each figure cell is one compact unit. The value sits
   right-aligned; under it, a 3px gap, then a fixed 72px track whose
   right edge lines up with the value's right edge. NR cells carry no
   track element at all. */
#ce-state-table th, #ce-state-table td { padding-top: 6px; padding-bottom: 6px; }
#ce-state-table thead th { padding-top: 8px; padding-bottom: 8px; }
#ce-state-table .ce-bar { width: 72px; min-width: 72px; margin: 3px 0 0 auto; }
/* State table pagination bar. */
.ce-pager { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin: 14px 0 6px; }
.ce-pager-info { margin: 0; font-size: 14px; color: var(--ce-muted); }
.ce-pager-controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.ce-pager-size { display: flex; gap: 7px; align-items: center; font-size: 14px; color: var(--ce-muted); }
.ce-pager-size select { font: inherit; padding: 7px 9px; border: 1px solid var(--ce-border); border-radius: 10px; background: var(--card); color: var(--ce-fg); min-height: 38px; }
.ce-pager-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ce-pager-btn { min-height: 38px; min-width: 38px; padding: 6px 11px; border-radius: 10px; font-weight: 600; }
.ce-pager-btn:disabled { opacity: .38; cursor: not-allowed; box-shadow: none; }
.ce-pager-btn:disabled:hover { background: var(--card); }
.ce-pager-on { background: var(--orange); color: var(--ce-accent-fg); border-color: transparent; }
.ce-pager-on:hover { background: var(--orange); }
.ce-pager-ellipsis { padding: 0 2px; color: var(--ce-muted); }
/* Counties hub: the "On every county page" section is a full-width
   dark band. The background runs to the viewport edges through a
   spread box-shadow clipped to the band's own height (the 100vw
   margin breakout overflows by the scrollbar's width); the content
   never leaves the page wrap. */
.ce-band { background: #101014; color: #F4F2ED; margin-top: 48px; padding: 48px 0; box-shadow: 0 0 0 100vmax #101014; clip-path: inset(0 -100vmax); }

/* ---- Header band (owner's redesign mocks, restored 2026-11-11;
   ground swapped 2026-11-11 by owner reversal) ----
   Every County Profiles header sits on a light band: on a profile,
   from the breadcrumb through the computed summary (the tab bar
   below it is on white); on a state page, through the chips row;
   on the hub, through the hero. The mocks' warm cream #F6F5F1 was
   replaced at the owner's ruling by the design guide's quiet cool
   grey #F5F6F8 (its paper-2, the table-head surface). The band runs
   to the viewport edges with the same spread-shadow breakout as
   .ce-band, and pulls up over .ce-main's 40px top padding so the
   tint starts at the frame; the padding keeps the content exactly
   where it was. */
.ce-head-band { background: #F5F6F8; margin-top: -40px; padding: 40px 0 22px; box-shadow: 0 0 0 100vmax #F5F6F8; clip-path: inset(0 -100vmax); }

/* ---- Profile type trim, desktop widths only (owner, 2026-11-11) ----
   A tiny step down on county profile pages: 2px on the largest
   headings and big figures, 1px on body and secondary text. Scoped to
   #ce-county (profiles only) and to widths above the 600px mobile
   breakpoint, so every size at mobile widths is exactly what it was.
   Line heights on the profile are unitless or inherited ratios, so
   they scale with the sizes on their own. Micro labels (13px and
   under: margins, comparison rows, tags, kickers) are unchanged. */
@media (min-width: 601px) {
  #ce-county h1 { font-size: 28px; }
  #ce-county h2 { font-size: 19px; }
  #ce-county h3 { font-size: 16px; }
  #ce-county .ce-card-value { font-size: 24px; }
  #ce-county .ce-spot-value { font-size: 23px; }
  #ce-county .ce-summary p { font-size: 16px; }
  #ce-county .ce-local p, #ce-county .ce-para-card p { font-size: 15px; }
  #ce-county .ce-rank-phrase { font-size: 15px; }
  #ce-county .ce-peer-card h3 { font-size: 15px; }
  #ce-county .ce-subline { font-size: 14px; }
  #ce-county .ce-spot-text { font-size: 14px; }
  #ce-county .ce-steps-list li { font-size: 14.5px; }
  #ce-county .ce-tab { font-size: 15px; }
  #ce-county .ce-breadcrumb { font-size: 13px; }
  #ce-county .ce-card-label { font-size: 13px; }
  #ce-county .ce-table { font-size: 13px; }
  #ce-county .ce-spot-label { font-size: 13px; }
  #ce-county .ce-meta, #ce-county .ce-note { font-size: 12px; }
}
/* ---- State profile type trim, desktop widths only (owner, 2026-11-15;
   board 290: "Shrink state and ZIP to the county scale") ----
   The county trim above, copied for #ce-state-profile with the same
   values, so state profiles render at the county desktop scale.
   One value differs deliberately: .ce-summary p is 15px here, not the
   trim block's 16px, because the county's EFFECTIVE summary size is
   15px — F11 (2026-11-13) sets #ce-county .ce-summary p to 15px in a
   later same-specificity rule, so the trim's 16px never renders on
   county pages. Copying 16px would leave state summaries 1px larger
   than the county reference. All other values are the trim's own. */
@media (min-width: 601px) {
  #ce-state-profile h1 { font-size: 28px; }
  #ce-state-profile h2 { font-size: 19px; }
  #ce-state-profile h3 { font-size: 16px; }
  #ce-state-profile .ce-card-value { font-size: 24px; }
  #ce-state-profile .ce-spot-value { font-size: 23px; }
  #ce-state-profile .ce-summary p { font-size: 15px; }
  #ce-state-profile .ce-local p, #ce-state-profile .ce-para-card p { font-size: 15px; }
  #ce-state-profile .ce-rank-phrase { font-size: 15px; }
  #ce-state-profile .ce-peer-card h3 { font-size: 15px; }
  #ce-state-profile .ce-subline { font-size: 14px; }
  #ce-state-profile .ce-spot-text { font-size: 14px; }
  #ce-state-profile .ce-steps-list li { font-size: 14.5px; }
  #ce-state-profile .ce-tab { font-size: 15px; }
  #ce-state-profile .ce-breadcrumb { font-size: 13px; }
  #ce-state-profile .ce-card-label { font-size: 13px; }
  #ce-state-profile .ce-table { font-size: 13px; }
  #ce-state-profile .ce-spot-label { font-size: 13px; }
  #ce-state-profile .ce-meta, #ce-state-profile .ce-note { font-size: 12px; }
}
/* ---- State page redesign (2026-11-11 owner round) ----
   The state table, the find-a-county dropdown, and At a glance,
   rebuilt after the owner's read of the live Texas page: the old
   table floated a small bar under each right-aligned value on its
   own line, the finder was a text box (selection is a dropdown,
   never a search box), and At a glance was plain bordered cards
   whose United States comparison was a line of small gray text. */
/* At a glance, on the design guide's KPI pattern: cards on the
   header band's cool grey ground (#F5F6F8, the guide's paper-2),
   the state figure at 36px in the display face
   with its margin small and muted beside it, and the comparison
   as a labeled bar set — the state (the focus: orange, named in
   full) against the United States (neutral grey), one scale, each
   row carrying its value. Two columns at tablet width and up, so
   the longest label ("Residents without health insurance") sits
   on one line with room to spare. */
.ce-cards.ce-glance { grid-template-columns: 1fr; }
@media (min-width: 641px) { .ce-cards.ce-glance { grid-template-columns: repeat(2, 1fr); } }
.ce-glance-card { background: #F5F6F8; border: 1px solid var(--ce-border); border-top: 3px solid var(--orange); border-radius: var(--ce-radius); padding: 18px 20px; }
.ce-glance-label { font-size: 13.5px; font-weight: 600; color: var(--ce-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-glance-value { font-family: var(--font-d); font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1; margin-top: 6px; }
.ce-glance-moe { font-family: var(--ce-font); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ce-muted); margin-left: 8px; }
.ce-glance-bars { margin-top: 14px; display: grid; gap: 6px; }
.ce-glance-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; gap: 6px 10px; align-items: center; font-size: 12.5px; color: var(--ce-muted); }
.ce-glance-tag { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-glance-row-me .ce-glance-tag, .ce-glance-row-me .ce-glance-num { color: var(--ce-fg); font-weight: 600; }
.ce-glance-track { display: block; height: 7px; border-radius: 99px; background: #E3E6EA; overflow: hidden; }
.ce-glance-fill { display: block; height: 100%; border-radius: 99px; }
.ce-glance-fill-state { background: var(--orange); }
.ce-glance-fill-us { background: #8B919C; }
.ce-glance-num { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.ce-glance-note { font-size: 14px; color: var(--ce-muted); margin-top: 10px; }
/* Find a county: a dropdown and a Go button, the profile switcher's
   pattern. The select inside the form picks up .ce-select-field's
   select styling; the row keeps the button at the select's height. */
.ce-controls .ce-find-field { flex: 1 1 320px; max-width: 480px; }
.ce-find-row { display: flex; gap: 10px; align-items: stretch; }
.ce-find-row select { flex: 1 1 auto; min-width: 0; }
.ce-find-row .ce-btn-primary { min-height: 44px; padding: 10px 24px; }
.ce-btn-primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
/* The table, on the design guide's cell pattern: each figure cell
   is one tight grid — the value in tabular numerals, a slim 5px
   bar directly beneath it with a 4px gap. The bar is neutral grey
   (#8B919C, the guide's --mb-compare): orange means "this place,"
   and no row of a state table is the focus, so orange bars on
   every row would leak that meaning. The head sits on the quiet
   grey #F5F6F8 and sticks, as does the first column; header labels
   never wrap; the county a visitor came from gets a light orange
   wash. The bar's meaning is stated once, in the line above the
   table (.ce-bar-note in the template). */
.ce-bar-note { margin: 0 0 10px; }
#ce-state-table th, #ce-state-table td { padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
#ce-state-table thead th { white-space: nowrap; padding-top: 8px; padding-bottom: 8px; background: #F5F6F8; position: sticky; top: var(--ce-sticky-top, 0px); z-index: 2; }
#ce-state-table .ce-sort, #ce-states-table .ce-sort { white-space: nowrap; }
#ce-state-table .ce-cell { display: grid; gap: 4px; min-width: 110px; }
#ce-state-table .ce-bar { display: block; width: 100%; min-width: 0; height: 5px; margin: 0; border-radius: 99px; background: #EEF0F2; }
#ce-state-table .ce-bar > span { background: #8B919C; border-radius: 99px; }
#ce-state-table thead th:first-child { left: 0; z-index: 3; box-shadow: 1px 0 0 var(--ce-border); }
#ce-state-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--card); box-shadow: 1px 0 0 var(--ce-border); }
#ce-state-table tbody tr:nth-child(even) { background: #FBFAF7; }
#ce-state-table tbody tr:nth-child(even) th[scope="row"] { background: #FBFAF7; }
#ce-state-table tbody tr:hover { background: var(--ce-surface); }
#ce-state-table tbody tr:hover th[scope="row"] { background: var(--ce-surface); }
#ce-state-table tbody tr.ce-row-focus { background: #FDF3E2; }
#ce-state-table tbody tr.ce-row-focus th[scope="row"] { background: #FDF3E2; }
@media (max-width: 600px) {
  #ce-state-table { font-size: 13px; }
  #ce-state-table th, #ce-state-table td { padding: 5px 9px; }
  #ce-state-table .ce-cell { min-width: 92px; }
  #ce-state-table thead th:first-child, #ce-state-table tbody th[scope="row"] { min-width: 112px; }
}
/* County names stay on one line in the sticky first column at
   every width; wrapped names were what made rows tall on phones
   and tablets. */
#ce-state-table thead th:first-child, #ce-state-table tbody th[scope="row"] { white-space: nowrap; }
/* Touch targets on the state page's own controls meet the 44px
   floor (design-review checklist): sort buttons, the view toggle,
   and the pager. */
#ce-state-table .ce-sort, #ce-states-table .ce-sort { min-height: 44px; padding: 11px 10px; margin: -11px -10px; }
.ce-controls .ce-view-toggle button { min-height: 44px; }
.ce-pager .ce-page-btn { min-height: 44px; min-width: 44px; }
.ce-pager .ce-page-size { min-height: 44px; }

/* Profile audit fix (2026-11-11): a county with a single local-
   context paragraph stranded that card in one grid column with
   two-thirds of the row empty. A lone card spans the row, capped
   at a readable measure. */
.ce-para-grid > .ce-para-card:only-child { grid-column: 1 / -1; max-width: 47rem; }

/* Sticky head: a horizontal-scroll wrapper is a scroll container,
   which silently breaks vertical stickiness (the head scrolls away
   with the page). At wide widths the table fits without scrolling,
   so the wrapper lets go and the head sticks under the site header
   (measured 70px tall at these widths). One exception remains: on a
   state profile page the table sits in the ~690px profile-layout
   column even with the panel closed, so its wrapper keeps scrolling
   and the head is the lesser loss there. (The panel used to be a
   second exception — when open it shrank the main column to ~628px
   hub / ~262px profile against a ~980px table — but since 2026-11-17
   the panel is a fixed overlay that never touches the column.) */
@media (min-width: 1101px) {
  .ce-state-wrap { overflow-x: visible; }
  .ce-profile-layout .ce-state-wrap { overflow-x: auto; }
  #ce-state-table thead th { top: 70px; }
}
.ce-band h2 { color: #F4F2ED; margin-top: 0; font-size: 24px; }
.ce-band .ce-feature { background: #1A1A1F; border-color: #2C2C31; }
.ce-band .ce-feature h3 { color: #F4F2ED; }
.ce-band .ce-feature p { color: #D8D5CC; }
.ce-band .ce-feature a { color: #FFB066; }

/* ==== County Profiles redesign (2026-11-12): the civic designs' literal
   palette governs inside this section. Terracotta = risk and the focus
   county; slate blue = the comparison systems; warm cream band; muted
   slate #526071. Fonts stay the site's (Space Grotesk + Inter). ==== */
:root {
  /* Terracotta, two tokens (measured, WCAG contrast on white):
     --cp-terra #C2591C at 4.43:1 is for display use only: large
     headings, chart strokes, borders, fills. Never for text or
     buttons. --cp-terra-text #9A4413 at 6.54:1 is the terracotta
     for ALL text and button uses. --cp-terra-deep is the same
     value as --cp-terra-text and stays as the hover shade. */
  --cp-terra: #C2591C; --cp-terra-deep: #9A4413; --cp-terra-text: #9A4413; --cp-terra-light: #FDF4EE;
  --cp-slate: #3B6E8C; --cp-slate-deep: #2F5A75; --cp-slate-light: #F0F6FA;
  --cp-ink: #14181F; --cp-body: #3D4656; --cp-muted: #333333;
  --cp-line: #E2E4E9; --cp-cream: #FAF9F6; --cp-hover: #FAF6F0;
  --cp-num: var(--font-d);
}
.ce-heroband { background: var(--cp-cream); color: var(--cp-ink); margin-top: -40px; padding: 30px 0 26px; box-shadow: 0 0 0 100vmax var(--cp-cream); clip-path: inset(0 -100vmax); }
.ce-heroband .ce-note { color: var(--cp-muted); margin: 12px 0 0; }

/* Path bar (this section's own ruled form) */
.ce-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-muted); margin-bottom: 22px; }
.ce-crumb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cp-terra); flex: none; }
.ce-crumb a { color: var(--cp-slate-deep); text-decoration: none; }
.ce-crumb a:hover { color: var(--cp-ink); text-decoration: underline; }
.ce-crumb-cur { color: var(--cp-ink); font-weight: 700; }
.ce-crumb-meta { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--cp-muted); white-space: nowrap; }
.ce-vdot { width: 6px; height: 6px; border-radius: 50%; background: #1E9E6A; display: inline-block; }
@media (max-width: 700px) { .ce-crumb-meta { margin-left: 17px; flex-wrap: wrap; white-space: normal; } }

/* State head + finder */
.ce-state-head { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: end; justify-content: space-between; }
.ce-state-title h1 { font-family: var(--font-d); font-size: 44px; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.ce-state-title p { color: var(--cp-muted); font-size: 16px; margin: 8px 0 0; max-width: 34rem; }
.ce-picker label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-muted); margin-bottom: 7px; }
.ce-picker-row { display: flex; gap: 10px; }
.ce-picker select { font: inherit; font-size: 15px; min-height: 46px; padding: 10px 12px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; color: var(--cp-ink); min-width: min(300px, 62vw); box-sizing: border-box; }
.ce-heroband .ce-btn-primary, .ce-switchband .ce-btn-primary { background: var(--cp-terra-text); color: #fff; border-color: transparent; min-height: 46px; padding: 10px 22px; border-radius: 10px; font-weight: 600; }
.ce-heroband .ce-btn-primary:hover, .ce-switchband .ce-btn-primary:hover { background: var(--cp-terra-deep); }
.ce-heroband .ce-btn-primary:disabled { opacity: .45; cursor: not-allowed; }

/* At a glance: numbers only, no bars */
.ce-ag { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--cp-line); border: 1px solid var(--cp-line); border-radius: 14px; overflow: hidden; margin-top: 26px; }
.ce-ag-card { background: #fff; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 5px; }
.ce-ag-label { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--cp-muted); }
.ce-ag-note { color: var(--cp-slate-deep); white-space: nowrap; }
.ce-ag-note-terra { color: var(--cp-terra-deep); }
.ce-ag-value { font-family: var(--cp-num); font-size: 31px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ce-ag-sub { font-size: 12.5px; color: var(--cp-muted); }
.ce-ag-chip { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-top: 2px; }
.ce-ag-chip-slate { background: var(--cp-slate-light); color: var(--cp-slate-deep); }
.ce-ag-chip-terra { background: var(--cp-terra-light); color: var(--cp-terra-deep); }
.ce-ag-bottom { font-size: 12.5px; color: var(--cp-muted); border-top: 1px solid var(--cp-line); padding-top: 9px; margin-top: auto; min-height: 52px; box-sizing: border-box; white-space: pre-line; }
@media (max-width: 1000px) { .ce-ag { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ce-ag { grid-template-columns: 1fr; } .ce-state-title h1 { font-size: 34px; } }

/* State layout + inspection panel */
.ce-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: start; }
/* The inspection panel is a fixed overlay drawer (2026-11-17), never an
   in-flow grid column: opening it must not shrink the table's column.
   The old .ce-layout-open two-column rule was the defect — it cut the
   main column to ~628px (hub) / ~262px (profile) against a ~980px table. */
.ce-table-h { font-family: var(--font-d); font-size: 26px; margin: 2px 0 14px; }
.ce-map-wrap + .ce-table-h { margin-top: 40px; }
h2[id^="ce-h-sec-"] { color: var(--cp-slate-deep); margin: 48px 0 14px; }
.ce-main-col { min-width: 0; }
.ce-main-col > .ce-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 6px; }
.ce-main-col .ce-toggle { border-color: var(--cp-line); border-radius: 999px; padding: 3px; background: #fff; }
.ce-main-col .ce-toggle-btn { border-radius: 999px; min-height: 38px; padding: 7px 16px; background: transparent; }
.ce-main-col .ce-toggle-on { background: var(--cp-ink); color: #fff; }
.ce-filter { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--cp-muted); }
.ce-filter input, .ce-filter select { font: inherit; font-size: 14.5px; letter-spacing: 0; text-transform: none; font-weight: 400; min-height: 44px; padding: 9px 13px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; color: var(--cp-ink); width: min(280px, 58vw); box-sizing: border-box; }
.ce-view-line { margin: 0; min-height: 19px; font-size: 13px; color: var(--cp-muted); }
.ce-view-line:empty { min-height: 0; }
.ce-empty { border: 1px dashed var(--cp-line); border-radius: 12px; padding: 16px 18px; color: var(--cp-body); background: #fff; }
.ce-inspect { position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(400px, 100vw); overflow-y: auto; overscroll-behavior: contain; z-index: 90; background: #fff; border: 1px solid var(--cp-line); border-radius: 0; padding: 20px 22px; box-shadow: -18px 0 44px rgba(20, 24, 31, .22); box-sizing: border-box; }
.ce-inspect[hidden] { display: none; }
/* Backdrop behind the overlay panel: dims the page, never reflows it.
   Clicking it closes the panel (wired in app.js). */
.ce-inspect-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 31, .45); z-index: 85; }
.ce-inspect-backdrop[hidden] { display: none; }
.ce-inspect-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.ce-inspect-name { font-family: var(--font-d); font-size: 24px; margin: 0; line-height: 1.15; }
.ce-inspect-seat { color: var(--cp-muted); font-size: 13.5px; margin: 4px 0 0; }
.ce-inspect-close { width: 38px; height: 38px; flex: none; border-radius: 10px; font-size: 15px; line-height: 1; }
.ce-inspect-summary { font-size: 14.5px; line-height: 1.55; color: var(--cp-body); margin: 12px 0 4px; }
.ce-pc { border-top: 1px solid var(--cp-line); padding: 12px 0 11px; }
.ce-pc-label { font-size: 10.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--cp-muted); }
.ce-pc-value { font-family: var(--cp-num); font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 2px; }
.ce-pc-line { font-size: 12.5px; color: var(--cp-muted); margin-top: 2px; }
.ce-pc-pct { font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.ce-pc-slate .ce-pc-pct { color: var(--cp-slate-deep); }
.ce-pc-terra .ce-pc-pct { color: var(--cp-terra-deep); }
.ce-pc-note { font-size: 12.5px; color: var(--cp-muted); font-style: italic; margin-top: 2px; }
.ce-pc-caution { font-size: 12px; font-weight: 700; color: var(--cp-terra-deep); margin-top: 2px; }
.ce-pc-src { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-muted); margin-top: 5px; }
.ce-inspect-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--cp-line); padding-top: 14px; margin-top: 4px; }
.ce-btn { display: inline-block; background: var(--cp-terra-text); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 20px; border-radius: 10px; min-height: 44px; box-sizing: border-box; }
.ce-btn:hover { background: var(--cp-terra-deep); }
.ce-inspect-nav { display: flex; gap: 8px; }
.ce-inspect-nav button { min-height: 44px; padding: 9px 14px; border-radius: 10px; font-weight: 600; }
.ce-inspect-nav button:disabled { opacity: .4; cursor: not-allowed; }

/* State table on the civic pattern (overrides the 2026-11-10 cell bars) */
#ce-state-table thead th { background: #fff; }
#ce-state-table .ce-sort, #ce-states-table .ce-sort { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--cp-muted); }
#ce-state-table th[aria-sort] .ce-sort, #ce-states-table th[aria-sort] .ce-sort { color: var(--cp-terra-deep); }
/* Sort affordance (owner, 2026-11-12): every sortable header carries a
   quiet up-down marker so the table reads as sortable before any
   click; the sorted column swaps it for a single arrow in the same
   terracotta as its label. */
#ce-state-table .ce-sort::after, #ce-states-table .ce-sort::after { content: "↕"; margin-left: 5px; font-size: 10px; font-weight: 400; letter-spacing: 0; color: #98A1AD; }
#ce-state-table th[aria-sort="ascending"] .ce-sort::after, #ce-states-table th[aria-sort="ascending"] .ce-sort::after { content: "↑"; color: var(--cp-terra-deep); }
#ce-state-table th[aria-sort="descending"] .ce-sort::after, #ce-states-table th[aria-sort="descending"] .ce-sort::after { content: "↓"; color: var(--cp-terra-deep); }
#ce-state-table tbody tr:nth-child(even) { background: #fff; }
#ce-state-table tbody tr:nth-child(even) th[scope="row"] { background: #fff; }
#ce-state-table tbody tr { cursor: pointer; }
#ce-state-table tbody tr:hover { background: var(--cp-hover); }
#ce-state-table tbody tr:hover th[scope="row"] { background: var(--cp-hover); }
#ce-state-table tbody tr:hover th[scope="row"] a::after { content: " →"; color: var(--cp-terra); }
#ce-state-table tbody tr:focus-visible { outline: 2px solid var(--cp-slate); outline-offset: -2px; }
#ce-state-table tbody tr.ce-row-sel { background: var(--cp-terra-light); }
#ce-state-table tbody tr.ce-row-sel th[scope="row"] { background: var(--cp-terra-light); box-shadow: inset 3px 0 0 var(--cp-terra), 1px 0 0 var(--ce-border); }
#ce-state-table .ce-seat-cell { color: var(--cp-muted); }
#ce-state-table td.num, #ce-state-table th.num { font-variant-numeric: tabular-nums; }

/* All-states list */
.ce-allstates { margin-top: 34px; }
.ce-allstates h2 { font-family: var(--font-d); font-size: 22px; }
.ce-allstates ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 36px; }
.ce-allstates li { padding: 6px 0; border-bottom: 1px solid var(--cp-line); break-inside: avoid; font-size: 14.5px; color: var(--cp-muted); }
.ce-allstates a { color: var(--cp-slate-deep); text-decoration: none; font-weight: 600; }
.ce-allstates a:hover { color: var(--cp-terra-deep); text-decoration: underline; }
@media (max-width: 800px) { .ce-allstates ul { columns: 2; } }
@media (max-width: 480px) { .ce-allstates ul { columns: 1; } }

/* County head + switcher band */
.ce-county-name { font-family: var(--font-d); font-size: 42px; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.ce-county-sub { color: var(--cp-muted); font-size: 15.5px; margin: 8px 0 0; }
.ce-switchband { background: var(--cp-slate); border-radius: 14px; padding: 18px 20px; margin-top: 20px; display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 14px; align-items: end; }
.ce-sw-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 6px; }
.ce-sw-field select { font: inherit; font-size: 15px; width: 100%; min-height: 46px; padding: 10px 12px; border: 0; border-radius: 9px; background: #fff; color: var(--cp-ink); box-sizing: border-box; }
.ce-sw-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.ce-switchband .ce-btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .5); min-height: 46px; padding: 10px 18px; border-radius: 10px; font-weight: 600; }
.ce-switchband .ce-btn-secondary:hover { background: rgba(255, 255, 255, .12); }
/* Orphan round 2026-11-16: at phone widths the H1 shrinks on a vw clamp so
   the longest two-word name fits on one line (Matanuska-Susitna Borough is
   442px at 32px, so it needs 20.6px or less at 348px; the 21px/6vw fallback
   in the first design measured 290px against a 284px column and failed, so
   the clamp is 19px/5.5vw). The .ce-br span holds the last two words on
   their own line; text-wrap:balance keeps a wrapping pre-span (Lower
   Connecticut River Valley) from stranding one word. */
@media (max-width: 760px) { .ce-switchband { grid-template-columns: 1fr; } .ce-county-name { font-size: clamp(19px, 5.5vw, 32px); text-wrap: balance; } .ce-br { display: block; } }
.ce-compare { max-width: 1200px; margin: 22px auto 0; }

/* County layout + rail */
.ce-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 28px; align-items: start; }
/* MB-SITE-007: constrain profile grid below desktop so wide tables scroll inside their card */
.ce-profile-layout > *, .ce-profile-main, .ce-rail, .ce-tpanel, .ce-domain { min-width: 0; max-width: 100%; }
.ce-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ce-chart, .ce-chart svg { max-width: 100%; box-sizing: border-box; }

@media (min-width: 1080px) { .ce-profile-layout { grid-template-columns: minmax(0, 1fr) 330px; } }
.ce-loc { margin: 0 0 18px; border: 1px solid var(--cp-line); border-radius: 14px; background: #fff; padding: 14px; }
.ce-loc-map { position: relative; }
.ce-loc-map img { display: block; width: 100%; height: auto; }
.ce-loc-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ce-loc-focus { fill: var(--cp-terra); stroke: #fff; stroke-width: 1.5; }
.ce-loc-marker { fill: var(--cp-terra); stroke: #fff; stroke-width: 1.5; }
.ce-loc figcaption { font-size: 12px; color: var(--cp-muted); margin-top: 10px; line-height: 1.45; }
.ce-qf { border: 1px solid var(--cp-line); border-radius: 14px; background: #fff; padding: 4px 20px 12px; }
.ce-qf h2 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cp-muted); margin: 14px 0 2px; font-family: var(--ce-font); }
.ce-qf dl { margin: 0; }
.ce-qf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--cp-line); }
.ce-qf-row dt { color: var(--cp-muted); font-size: 13.5px; }
.ce-qf-row dd { margin: 0; font-family: var(--cp-num); font-weight: 600; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.ce-qf-terra { color: var(--cp-terra-deep); }
.ce-qf-suffix { font-family: var(--ce-font); font-weight: 400; font-size: 12.5px; color: var(--cp-muted); }
.ce-nowrap { white-space: nowrap; }
.ce-qf-dl { margin: 12px 0 6px; font-size: 14px; }
.ce-qf-dl a { color: var(--cp-slate-deep); font-weight: 600; }

/* Tabs */
.ce-tablist { display: flex; flex-wrap: nowrap; gap: 2px; border-bottom: 2px solid var(--cp-line); overflow-x: auto; grid-column: 1 / -1; margin: 0; scrollbar-width: thin; }
.ce-tab { border: 0; background: transparent; padding: 11px 15px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--cp-muted); border-radius: 10px 10px 0 0; white-space: nowrap; flex: 0 0 auto; }
.ce-tab:hover { color: var(--cp-ink); background: var(--cp-hover); }
.ce-tab-on { color: var(--cp-ink); box-shadow: inset 0 -3px 0 var(--cp-terra); }
.ce-tpanel { padding-top: 22px; }

/* Phone jump bar: mirrors Valuation Studio's Jump to section. The desktop
   tab strip hides at the phone breakpoint and the fixed bottom bar takes
   its place; the panel switches sections exactly like the tabs. */
.ce-phone-bar, .ce-jump, .ce-jump-scrim { display: none; }
@media (max-width: 1023px) {
  .ce-tablist { display: none; }
  body.ce-has-phone-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .ce-phone-bar { display: flex; position: static; margin: 18px 0 6px; background: #fff; border: 1px solid var(--cp-line); border-radius: 10px; }
  .ce-phone-bar-btn { flex: 1 1 0; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: var(--cp-ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
  .ce-phone-bar-btn[aria-expanded="true"] { color: var(--cp-terra-deep); }
  .ce-jump-scrim { display: block; position: fixed; inset: 0; z-index: 48; background: rgba(20, 26, 38, .35); }
  .ce-jump-scrim[hidden] { display: none; }
  .ce-jump { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 49; background: #fff; border-top: 1px solid var(--cp-line); box-shadow: 0 -10px 28px rgba(20, 26, 38, .14); padding: 10px 10px calc(6px + env(safe-area-inset-bottom, 0px)); max-height: 62vh; overflow-y: auto; }
  .ce-jump[hidden] { display: none; }
  .ce-jump-head { display: flex; align-items: center; justify-content: space-between; }
  .ce-jump-title { margin: 2px 12px 6px; font-size: 13px; font-weight: 700; color: var(--cp-muted); }
  .ce-jump-close { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 6px 12px; color: var(--cp-muted); cursor: pointer; }
  .ce-jump ul { list-style: none; margin: 0; padding: 0; }
  .ce-jump li button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px; font: inherit; font-size: 16px; font-weight: 600; color: var(--cp-ink); cursor: pointer; border-radius: 8px; }
  .ce-jump li button[aria-current="true"] { color: var(--cp-terra-deep); background: var(--cp-hover); }
  .ce-profile-layout { scroll-margin-top: 90px; }
}
.ce-tpanel[hidden] { display: none; }
.ce-tpanel h2 { font-family: var(--font-d); font-size: 24px; margin: 0 0 14px; }

/* Finding cards + headline cards */
.ce-find-grid, .ce-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; margin-bottom: 26px; }
.ce-find, .ce-hl-card { border: 1px solid var(--cp-line); border-radius: 14px; background: #fff; padding: 17px 19px; }
.ce-find-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.ce-find-label { font-size: 14.5px; font-weight: 600; color: var(--cp-ink); }
.ce-find-diff { font-size: 12px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.ce-cat-slate .ce-find-diff { color: var(--cp-slate-deep); }
.ce-cat-terra .ce-find-diff { color: var(--cp-terra-deep); }
.ce-find-value, .ce-hl-value { font-family: var(--cp-num); font-size: 29px; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 3px; }
.ce-find-text { font-size: 14.5px; line-height: 1.55; color: var(--cp-body); margin: 8px 0 0; }
.ce-find-moe, .ce-hl-moe { font-size: 12.5px; color: var(--cp-muted); margin-top: 8px; }
.ce-find-cmp { font-size: 12.5px; color: var(--cp-muted); margin-top: 3px; }
.ce-find-text + .ce-find-cmp, .ce-find-moe + .ce-find-cmp, .ce-caution + .ce-find-cmp { margin-top: 12px; border-top: 1px solid var(--cp-line); padding-top: 10px; }
.ce-bullet-key + .ce-hl-cmp, .ce-hl-value + .ce-hl-cmp { margin-top: 12px; padding-top: 9px; }
.ce-hl-label { font-size: 13.5px; font-weight: 600; color: var(--cp-muted); }
.ce-hl-cmp { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cp-muted); border-top: 1px solid var(--cp-line); padding: 5px 0 0; margin-top: 5px; }
.ce-hl-cmp span:last-child { font-weight: 600; color: var(--cp-body); font-variant-numeric: tabular-nums; }
.ce-bullet { position: relative; height: 8px; border-radius: 99px; background: #EDEEF1; margin: 11px 0 7px; }
.ce-bullet-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--cp-slate); min-width: 3px; }
.ce-bullet-terra .ce-bullet-fill { background: var(--cp-terra); }
.ce-bullet-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--cp-ink); transform: translateX(-1px); }
.ce-bullet-us { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #9AA3B2; transform: translateX(-1px); }
.ce-gap { font-size: 13px; font-weight: 600; color: var(--cp-ink); margin-top: 7px; }

/* About card */
.ce-aboutcard { border: 1px solid var(--cp-line); border-radius: 14px; background: #fff; padding: 22px 24px; margin-bottom: 26px; }
.ce-aboutcard p { font-size: 16px; line-height: 1.7; color: var(--cp-body); margin: 0 0 14px; max-width: 44rem; }
.ce-aboutcard p:last-of-type { margin-bottom: 0; }
.ce-about-outlier { background: var(--cp-terra-light); border-left: 3px solid var(--cp-terra); border-radius: 8px; padding: 10px 14px; font-size: 14.5px !important; color: var(--cp-ink) !important; }

/* Similar table */
.ce-sim-table .ce-sim-self { background: #F7F8FA; }
.ce-sim-table .ce-sim-self th { font-weight: 700; }

/* Focus visibility inside the redesigned surfaces */
.ce-heroband :focus-visible, .ce-layout :focus-visible, .ce-profile-layout :focus-visible { outline: 2px solid var(--cp-slate); outline-offset: 2px; }

/* County head eyebrow (SPEC-COUNTY §2): FIPS badge, tribal segment, seat */
.ce-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 14px 0 2px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-muted); }
.ce-fips-badge { background: var(--cp-terra-light); color: var(--cp-terra-deep); padding: 3px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.ce-eyebrow-seg::before { content: "\2022"; margin-right: 10px; color: var(--cp-line); }

/* About card head chip + typology footer (SPEC-COUNTY §4) */
.ce-about-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
/* Orphan round 2026-11-16: the About heading cannot fit the card's narrow
   column at phone widths (two-word names need 15.7px or less in 234px), so
   it swaps to "About this place" at 600px and under. Desktop keeps the name. */
.ce-about-place { display: none; }
@media (max-width: 600px) { .ce-about-name { display: none; } .ce-about-place { display: inline; } }
.ce-about-chip { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--cp-muted); border: 1px solid var(--cp-line); border-radius: 999px; padding: 3px 10px; }
.ce-about-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; border-top: 1px solid var(--cp-line); margin-top: 14px; padding-top: 12px; font-size: 13.5px; }
.ce-about-typo { color: var(--cp-muted); }
.ce-about-typo strong { color: var(--cp-ink); font-weight: 600; }
.ce-about-outlier { color: var(--cp-terra-deep); font-weight: 600; }

/* Quick-facts head with the population rank pill (SPEC-COUNTY §6) */
.ce-qf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.ce-rank-pill { background: var(--cp-slate); color: #fff; font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; border-radius: 999px; padding: 3px 11px; }
/* State Profiles redesign (2026-11-12): additions for the state profile
   rebuilt on the county profile pattern.

   MERGE: append this whole block to the END of web/styles.css in
   ~/workspace/county-explorer, after the county redesign section. Every
   other class the new state_profile.html.j2 uses already exists in
   styles.css (heroband, crumb, eyebrow, switchband, tablist, findings,
   headline cards, bullets, layout, state table, inspection panel,
   pager, locator, quick facts, jump bar). Only the rules below are
   new. (Second pass, 2026-11-12: the template no longer uses the
   at-a-glance cards or an Overview About card — neither exists in the
   county profile anatomy; see COMPLIANCE.md.) */

/* The state switcher band carries ONE field (State) plus its buttons,
   where the county band carries two fields (State, County) plus buttons.
   The base .ce-switchband grid is "1fr 1.3fr auto", which would strand
   the buttons in the wide middle track; one wide field track and one
   auto track put the field and the buttons where the county band puts
   them. Specificity is one class, the same as .ce-switchband, so this
   later rule wins at desktop widths on source order alone. */
.ce-switchband-one { grid-template-columns: minmax(0, 1fr) auto; }
/* At phone widths the county band stacks to one column (the existing
   max-width:760px rule for .ce-switchband); the one-field band stacks
   the same way. This rule must stay after the one above: at equal
   specificity the media rule for .ce-switchband alone would lose to
   the later .ce-switchband-one rule and leave two columns on phones. */
@media (max-width: 760px) { .ce-switchband-one { grid-template-columns: 1fr; } }

/* The Counties tab embeds the county state page's .ce-layout (table
   column + inspection panel). .ce-layout carries margin-top: 26px for
   its place under a hero band; inside a tab panel the panel's own
   padding-top (22px) is the spacing, so the extra 26px goes. */
.ce-tpanel .ce-layout { margin-top: 0; }

/* Trends (2026-11-13): history rows inside the domain tables, the
   release-history disclosure, the Overview change list. Numbers and
   dot-and-interval plots only - no bars on state pages, and the county
   sparkline is a line of dots, not an area or a bar. */
.ce-hist-row td { padding: 10px 12px 14px; background: var(--cp-cream); border-top: none; }
.ce-hist-points { display: block; font-size: 13.5px; color: var(--cp-body); font-variant-numeric: tabular-nums; margin-top: 6px; }
.ce-hist-change { display: block; font-size: 14px; color: var(--cp-ink); margin-top: 4px; }
.ce-spark { display: block; }
.ce-hist-note { font-size: 13.5px; color: var(--cp-muted); margin: 10px 2px 0; }
.ce-changes { font-size: 16px; line-height: 1.6; color: var(--cp-body); padding-left: 22px; }
.ce-changes li { margin: 6px 0; }

/* Profile audit fixes (2026-11-13, PROFILE_AUDIT_2026-11-13.md):
   domain groups inside a tab become delimited units, the domain and
   similar tables get a real head band, numeric cells stop wrapping
   mid-figure, the estimates tab's download section gets air and a
   separator, and phone-width domain tables keep their row labels. */
/* F1: group delimitation */
.ce-tpanel .ce-domain { margin-top: 44px; }
.ce-tpanel .ce-domain:first-child { margin-top: 4px; }
.ce-domain > h3 { font-family: var(--font-d); font-size: 19px; font-weight: 700; color: var(--cp-terra-text); border-top: 2px solid var(--cp-line); padding-top: 20px; margin: 0 0 14px; }
.ce-domain .ce-table-wrap { margin-top: 14px; }
/* F2 (owner's ruling, 2026-11-13): every table in the data hub takes
   the classic statistics-table format ruled for Insights and Guides —
   black head band, full thin grid on every cell, centered figures,
   first column left, compact padding, no striping or fills. Sticky
   table columns separate with their grid border, never a box-shadow
   (the shadow on the right of the frozen column he flagged on
   mobile). */
.ce-table { font-family: var(--font-b); }
.ce-table button { font: inherit; }
.ce-table th, .ce-table td { border: 1px solid #8a8f98; padding: 6px 10px; }
.ce-table thead th { background: #5C646D; color: #fff; text-align: center; font-weight: 700; border: 1px solid #8a8f98; vertical-align: middle; }
.ce-table thead th:first-child { text-align: left; }
.ce-table tbody th[scope="row"] { text-align: left; }
.ce-table td { text-align: center; }
#ce-state-table thead th, #ce-states-table thead th { background: #5C646D; color: #fff; }
#ce-state-table .ce-sort, #ce-states-table .ce-sort { color: #fff; }
#ce-state-table th[aria-sort] .ce-sort, #ce-states-table th[aria-sort] .ce-sort { color: #F29B26; }
#ce-state-table th[aria-sort="ascending"] .ce-sort::after, #ce-states-table th[aria-sort="ascending"] .ce-sort::after, #ce-state-table th[aria-sort="descending"] .ce-sort::after, #ce-states-table th[aria-sort="descending"] .ce-sort::after { color: #F29B26; }
#ce-state-table tbody tr:nth-child(even) { background: transparent; }
#ce-state-table tbody tr:nth-child(even) th[scope="row"] { background: #fff; }
#ce-state-table thead th:first-child, #ce-states-table thead th:first-child { box-shadow: none; }
#ce-state-table tbody th[scope="row"] { box-shadow: none; }
/* First-column names wrap (owner, 2026-11-13, Connecticut): long
   names — Connecticut's planning regions — wrap inside a capped
   first column so the state table keeps the width it has in every
   other state; short county names stay on one line under the cap. */
#ce-state-table.ce-names-wrap tbody th[scope="row"] { white-space: normal; max-width: 240px; }
/* Compare panel fields (dropdowns, per the same day's ruling) */
.ce-cmp-fields { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.ce-cmp-fields label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--cp-muted); }
.ce-cmp-fields select { font: inherit; font-size: 14.5px; font-weight: 400; min-height: 44px; padding: 9px 12px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; color: var(--cp-ink); min-width: min(240px, 70vw); box-sizing: border-box; }
/* F3: managed rank column + row-header measure; the figure cells
   take ce-num from the template — tabular numerals, never wrapping
   mid-figure, alignment unchanged (the house num class right-aligns;
   these tables are left-aligned by design) */
.ce-table td.ce-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ce-rankcell { min-width: 148px; }
.ce-domain .ce-table tbody th[scope="row"] { min-width: 168px; }
/* F4: the download section's spacing and separator */
.ce-download { margin-top: 38px; border-top: 1px solid var(--cp-line); padding-top: 26px; }
/* F5: sticky first column on phones, the state table's pattern; the
   grid border is the separator — no box-shadow (owner's ruling) */
@media (max-width: 760px) {
  .ce-domain .ce-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: #5C646D; }
  .ce-domain .ce-table tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; }
}

/* F6 (2026-11-13, owner review round 2): one focus style for the profile
   pages (the browser's default blue ring showed on tabs and sort buttons);
   the state table moves to the separate-border model so its sticky head
   carries its own borders and sits flush instead of leaving a detached
   empty strip (collapsed borders stay at the head's natural position when
   it sticks); the two helper lines above the state table at 10px (owner);
   numeric header labels may wrap so no column is as wide as its label
   (the median income column). */
:focus { outline: none; }
:focus-visible { outline: 2px solid #F29B26; outline-offset: -2px; }
/* The older county-layout rule set a slate focus outline inside the
   profile layouts; it outranks the bare :focus-visible above, so the
   orange is restated at the same specificity, later in the file. */
.ce-heroband :focus-visible, .ce-layout :focus-visible, .ce-profile-layout :focus-visible { outline: 2px solid #F29B26; outline-offset: -2px; }
#ce-state-table { border-collapse: separate; border-spacing: 0; border-top: 1px solid #8a8f98; border-left: 1px solid #8a8f98; }
#ce-state-table th, #ce-state-table td { border-top-width: 0; border-left-width: 0; }
#ce-state-table thead th { white-space: normal; }
#ce-view-line { font-size: 10px; }
#ce-view-line + .ce-meta { font-size: 10px; }

/* F7 (2026-11-13, owner review round 2, corrected by owner): Quick Facts
   values at 14px. The font is --cp-num (Space Grotesk) as declared on the
   base rule; the wrong-font views were the frame font stylesheet's
   display=optional fallback on cold loads, fixed by the font preloads in
   templates/base.html.j2, not by any size change. */
.ce-qf-row dd { font-size: 14px; }

/* F8 (2026-11-13, owner review round 2): the hub stat card sits on the
   dark hero; its sources line was dark grey on near-black. Light tone. */
.ce-stat-src { color: #C9C9CF; }

/* F9 (2026-11-13, owner review round 2): the counties hub finder takes
   the county profile switcher's treatment — slate band, pale-blue labels,
   terracotta button (owner: "make this blue like it is in the county
   profile pages"). */
.ce-select-band { background: var(--cp-slate); border-color: transparent; }
.ce-select-band .ce-select-field label { color: #FFFFFF; }
.ce-select-band .ce-btn-primary { background: var(--cp-terra-text); color: #fff; }
.ce-select-band .ce-btn-primary:hover { background: var(--cp-terra-deep); box-shadow: none; }
.ce-select-band .ce-btn-primary:disabled { opacity: .55; box-shadow: none; }

/* F10 (2026-11-13, owner review round 2): a key under every card bullet —
   the black tick is the comparison, the grey tick is the United States;
   nothing on the page said what the two ticks meant (owner). */
.ce-bullet-key { font-size: 9.5px; color: var(--cp-muted); margin: 2px 0 0; }
.ce-bk { display: inline-block; width: 2px; height: 11px; margin: 0 5px 0 12px; vertical-align: -1px; }
.ce-bullet-key .ce-bk:first-child { margin-left: 0; }
.ce-bk-comp { background: var(--cp-ink); }
.ce-bk-us { background: #9AA3B2; }

/* F11 (2026-11-13, owner review round 2): the county page's reading text
   down a step (owner, from the Platte County page) — hero subline 15.5 to
   14, hero summary 17 to 15.5 (15 in the county trim), About card 16 to
   15, finding sentences 14.5 to 13.5; and the finding card's gap line
   matches the two lines above it at 12.5px (owner). */
.ce-county-sub { font-size: 14px; }
.ce-summary p { font-size: 15.5px; }
#ce-county .ce-summary p { font-size: 15px; }
.ce-aboutcard p { font-size: 15px; }
.ce-find-text { font-size: 13.5px; }
.ce-find .ce-gap { font-size: 12.5px; }

/* F12 (2026-11-13): chart legend as a right-side stacked box, one entry per
   line, faint border (owner-approved preview); on phones it stacks below. */
.ce-chart{display:flex;flex-direction:column;gap:10px;border:1px solid #E2E4E9;border-radius:10px;padding:16px 18px;background:#fff}
.ce-chart svg{flex:1;min-width:0}
.ce-legend{border-top:1px solid #EDEEF1;padding:2px 0 0;font-size:10px;line-height:1.45;color:var(--cp-body);display:flex;flex-wrap:wrap;column-gap:22px}
.ce-legend-row{display:flex;align-items:baseline;gap:8px;padding:6px 0}
.ce-legend-mark{font-size:10px}
.ce-legend-note{display:block;color:var(--cp-muted);font-size:9.5px}

/* F13 (2026-11-13, revised): on desktop the county domain tables fit their
   box exactly (fixed layout on the rebalanced colgroup, slightly tighter
   cell padding) so there is no sideways scroll and the chart row above
   spans the same width, both edges on the same lines. Phones keep the
   scrollable table. */
@media (min-width:761px){
  .ce-domain-table{table-layout:fixed;width:100%}
  .ce-domain-table th,.ce-domain-table td{padding-left:8px;padding-right:8px}
  /* Inside the fixed domain tables the margin cell may wrap at its space
     (the PLACES form "95% CI 8.1-11.1%" is wider than its column) and the
     long PLACES tag may wrap inside its pill; figure cells stay nowrap.
     Desktop only: on phones the table scrolls and margins stay one line. */
  .ce-domain-table td[data-f="moe_display"]{white-space:normal}
  .ce-domain-table th .ce-tag{white-space:normal}
}

/* Owner, 2026-11-13 (evening): empty domain-table cells show a dash,
   and the tab strip never wears the orange focus box — a focused tab
   reads through the same bottom bar as the selected tab. */
.ce-domain-table td:empty::after{content:"-";color:var(--cp-muted)}
.ce-tab:focus-visible{outline:none;box-shadow:inset 0 -3px 0 var(--cp-terra)}

/* Owner, 2026-11-13 (evening): the About-these-numbers and Reliability
   notes lists read at small-print size, not body size. */
.ce-about ul, section[aria-labelledby="ce-h-notes"] ul { font-size: 12.5px; line-height: 1.6; }

/* Owner, 2026-11-13 (evening): the ruled line above a domain heading
   separates stacked domains; the first (or only) heading in a tab has
   nothing above it to separate from, so it carries no line. */
#ce-county .ce-tpanel > .ce-domain:first-child > h3, #ce-state-profile .ce-tpanel > .ce-domain:first-child > h3 { border-top: 0; padding-top: 0; }

/* State finding-card bullet key (owner ruling 2026-11-14): the U.S. segment
   reads "U.S." and sits on the right side of the key line, so it does not
   stack above the "United States" comparison row beneath it. */
.ce-bullet-key-state { display: flex; align-items: center; }
.ce-bullet-key-state .ce-bk-us, .ce-bullet-key-state .ce-bk-us:first-child { margin-left: auto; }

/* Shell loading skeletons (fix round F1, 2026-11-22): the browser
   shells reserve each section's space before data arrives, so the
   page does not jump as the profile renders into it. The blocks are
   inert placeholders sized to the sections they stand in for: hero
   title and sub lines, the switcher band, the tab strip, a card
   grid, the map box, a chart box (the economy chart's 640x220
   aspect), and a table block. */
.ce-skel-bar { background: #E4E7EC; border-radius: 8px; }
.ce-skel-h1 { height: 42px; width: min(72%, 560px); margin: 12px 0 12px; }
.ce-skel-sub { height: 15px; width: min(88%, 700px); margin: 0 0 10px; }
.ce-skel-switch { height: 62px; margin: 18px 0 6px; }
.ce-skel-tabs { height: 42px; margin: 24px 0 6px; border-bottom: 2px solid var(--cp-line); background: #EFF1F4; border-radius: 8px 8px 0 0; }
.ce-skel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.ce-skel-card { background: #EFF1F4; border: 1px solid var(--cp-line); border-radius: 14px; height: 148px; }
.ce-skel-map { height: 300px; border: 1px solid var(--cp-line); border-radius: 14px; background: #EFF1F4; margin: 18px 0; }
.ce-skel-chart { aspect-ratio: 640 / 220; background: #EFF1F4; border: 1px solid var(--cp-line); border-radius: 14px; margin: 18px 0 26px; }
.ce-skel-table { min-height: 430px; border: 1px solid var(--cp-line); border-radius: 14px; background: #EFF1F4; margin: 0 0 26px; }
.ce-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* MB-DATA-001: County-Profile top row (visual | Quick facts | On this page). */
.ce-railrow{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:14px;margin:0 0 10px}
.ce-railrow-2{grid-template-columns:1fr 1fr}
.ce-railrow .ce-rail-card{margin-bottom:0}
.ce-railrow .ce-qf{margin-bottom:0}
@media (max-width:1023px){.ce-railrow{grid-template-columns:minmax(0,1fr)}}
.ce-jumplist{list-style:none;margin:6px 0 0;padding:0}
.ce-jumplist li{margin:2px 0}
.ce-jumplist button{border:0;background:none;padding:4px 0;font:inherit;font-size:14px;font-weight:600;color:#1d4f8a;cursor:pointer;text-align:left}
.ce-jumplist button:hover{text-decoration:underline}
