/* =============================================================================
   RINO Watch — site styles
   Patriotic navy / red / white. Mobile first. No external fonts or frameworks.
   Sections: tokens · base · header · hero · sections · cards · meter & badges ·
             votes · profile · tables · forms & filters · footer · utilities · print
   ============================================================================= */

:root {
  --navy: #0b1f44;
  --navy-2: #13306b;
  --red: #b22234;
  --red-2: #d1323f;
  --blue-dem: #1f5fbf;
  --gold: #f2b705;
  --ink: #18202e;
  --muted: #5b6477;
  --line: #dde2ec;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --ok: #1f8a4c;
  --warn: #c77700;
  --radius: 14px;
  --shadow: 0 6px 22px rgba(11, 31, 68, .10);
  --shadow-hover: 0 12px 30px rgba(11, 31, 68, .18);
  --wrap: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ── base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-underline-offset: 2px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .86rem; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ── header ───────────────────────────────────────────────────────────────── */
.flagbar { height: 6px; background: repeating-linear-gradient(90deg, var(--red) 0 40px, #fff 40px 60px); }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark { font-size: 2rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; letter-spacing: .02em; }
.brand-text small { color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a { color: #e6ecff; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--red); color: #fff; }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer; }

/* ── hero ─────────────────────────────────────────────────────────────────── */
.hero {
  color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.08) 0 2px, transparent 3px) 0 0 / 46px 46px,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #5a1424 100%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 8px; background: repeating-linear-gradient(90deg, var(--red) 0 60px, #fff 60px 90px); opacity: .9; }
.hero h1 { color: #fff; max-width: 900px; text-shadow: 0 3px 18px rgba(0,0,0,.35); }
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .9rem; }
.lead { font-size: 1.16rem; max-width: 780px; }
.hero .lead { color: #dfe6fa; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 900px; }
.stats li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 14px 16px; }
.stats strong { display: block; font-size: 2.2rem; line-height: 1; color: #fff; font-weight: 800; }
.stats span { color: #cbd5f0; font-size: .92rem; }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; border: 2px solid var(--navy); cursor: pointer; font: inherit; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.hero .btn-ghost { color: #fff; }
.btn.small { padding: 7px 14px; font-size: .9rem; }

/* ── sections ─────────────────────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy); color: #e8edfb; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #b9c4e2; }
.section-h { margin-bottom: 26px; }
.section-h p { color: var(--muted); max-width: 760px; }
.section-dark .section-h p { color: #c7d1ee; }
.page-head { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 42px 0 26px; border-bottom: 1px solid var(--line); }
.more { margin-top: 26px; text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.crumbs { font-size: .9rem; margin-bottom: 6px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.prose h2 { margin-top: 1.6em; }
.plain { padding-left: 1.1em; }
.callout { margin-top: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 18px 22px; }
.section-alt .callout, .section .callout { background: #fff; border-color: var(--line); border-left-color: var(--gold); }
.section-dark .callout { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); border-left-color: var(--gold); }
.section-dark .callout a { color: #ffd75e; }
.cta-box { background: var(--bg-alt); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }

/* ── steps ────────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; box-shadow: var(--shadow); }
.step-n { position: absolute; top: -14px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; }

/* ── profile cards ────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; border-top: 5px solid var(--red); }
.pcard.group-maverick { border-top-color: var(--warn); }
.pcard.group-weeded { border-top-color: var(--ok); }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pcard-link { display: flex; flex-direction: column; height: 100%; padding: 18px; color: inherit; text-decoration: none; }
.pcard-link:hover { color: inherit; }
.pcard-top { display: flex; gap: 14px; align-items: center; }
.pcard-id h3 { margin: 0; font-size: 1.2rem; }
.pcard-seat { margin: 2px 0 6px; color: var(--muted); font-size: .9rem; }
.pcard-badges { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pcard-headline { margin: 14px 0 12px; font-weight: 600; color: var(--navy); }
.pcard-stats { margin-top: auto; }
.pcard-kv { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.pcard-kv strong { color: var(--blue-dem); font-size: 1.05rem; }
.pcard-more { margin-top: 12px; font-weight: 700; color: var(--red); }
.cards-compact .pcard { color: var(--ink); }
.section-dark .pcard { border-color: transparent; }

/* ── avatars ──────────────────────────────────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: #d9dfeb; flex: none; }
.avatar-full { width: 76px; height: 76px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); }
.avatar-thumb { width: 34px; height: 34px; }
.avatar-xl { width: 150px; height: 150px; border: 5px solid #fff; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.avatar-initials { display: inline-grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--navy-2), var(--red)); }
.avatar-full.avatar-initials { font-size: 1.5rem; }
.avatar-thumb.avatar-initials { font-size: .8rem; }
.avatar-xl.avatar-initials { font-size: 3rem; }

/* ── meter & badges ───────────────────────────────────────────────────────── */
.meter { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.meter-num { grid-row: 1 / span 2; font-size: 1.9rem; font-weight: 800; line-height: 1; min-width: 2.2ch; text-align: center; }
.meter-bar { height: 10px; background: #e7ebf3; border-radius: 99px; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--red)); transform-origin: left; animation: grow .9s ease-out both; }
.meter-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.score-hi .meter-num { color: var(--red); }
.score-mid .meter-num { color: #d0451b; }
.score-low .meter-num { color: var(--warn); }
.score-ok .meter-num { color: var(--ok); }
.score-ok .meter-fill { background: linear-gradient(90deg, #6cc48f, var(--ok)); }
.score-none .meter-num { color: var(--muted); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: #eef1f7; color: var(--navy); }
.verdict-certified { background: var(--red); color: #fff; }
.verdict-alert { background: #ffe2d6; color: #a3300c; }
.verdict-wobbly { background: #fff2cc; color: #7a5600; }
.verdict-reliable { background: #dff3e7; color: #17683a; }
.verdict-maverick { background: #ffeccc; color: #8a4b00; }
.verdict-unrated { background: #eef1f7; color: var(--muted); }
.status-defeated, .status-former { background: #dff3e7; color: #17683a; }
.status-retiring, .status-left_party { background: #e8ecf7; color: var(--navy-2); }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pos-dem { background: #dbe7fb; color: #123e86; }
.pos-maga { background: #fbe0e3; color: #8c1726; }
.pos-absent, .pos-none { background: #eef1f7; color: var(--muted); }

/* ── vote cards ───────────────────────────────────────────────────────────── */
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.vcard-h { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; margin-bottom: 8px; }
.vcard-cat { font-weight: 700; color: var(--red); }
.vcard-meta { color: var(--muted); }
.vcard h3 a { color: var(--navy); text-decoration: none; }
.vcard h3 a:hover { color: var(--red); }
.vcard-tally { display: flex; flex-wrap: wrap; gap: 10px; font-size: .9rem; }
.tally { background: var(--bg-alt); padding: 2px 10px; border-radius: 6px; font-weight: 600; }
.maga-side { color: var(--muted); }
.vcard-cross { margin: 6px 0 8px; color: var(--blue-dem); }
.crossers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crossers li a { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--bg-alt); text-decoration: none; color: var(--ink); font-size: .9rem; border: 1px solid var(--line); }
.crossers li a:hover { border-color: var(--red); color: var(--red); }
.crossers small { color: var(--muted); }
.crossers-more a { padding: 6px 14px !important; font-weight: 700; }

/* ── profile ──────────────────────────────────────────────────────────────── */
.profile-head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 40px 0; }
.profile-head-inner { display: grid; grid-template-columns: auto 1fr 300px; gap: 30px; align-items: center; }
.profile-head h1 { color: #fff; margin-bottom: 4px; }
.profile-head .crumbs a { color: var(--gold); }
.profile-office { color: #d7def3; margin-bottom: 10px; }
.seat { font-weight: 700; color: #fff; }
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-status { color: #c7d1ee; font-size: .95rem; }
.profile-headline { font-size: 1.25rem; font-weight: 700; color: #fff; border-left: 5px solid var(--red); padding-left: 14px; margin: 0; }
.profile-score { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-hover); }
.profile-score .meter-num { font-size: 2.6rem; }
.rank { margin: 10px 0 6px; font-size: .95rem; }
.parts { margin: 10px 0; display: grid; gap: 6px; }
.parts div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; font-size: .9rem; }
.parts dt { color: var(--muted); }
.parts dd { margin: 0; font-weight: 700; text-align: right; }
.big-number strong { display: block; font-size: 3rem; line-height: 1; color: var(--blue-dem); }
.summary { font-size: 1.12rem; }
.trump-said { margin: 24px 0 0; padding: 20px 24px; border-radius: var(--radius); background: linear-gradient(135deg, #fff6f6, #f3f6ff); border-left: 6px solid var(--red); font-size: 1.1rem; font-weight: 600; color: var(--navy); }
.trump-said footer { font-size: .9rem; font-weight: 400; color: var(--muted); margin-top: 6px; }
.quote { margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--navy-2); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; }
.quote footer { font-style: normal; font-size: .88rem; color: var(--muted); }
.record { padding-left: 1.1em; }
.record li { margin-bottom: 10px; }
.their-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.src-inline { font-size: .82rem; white-space: nowrap; text-decoration: none; font-weight: 600; }
.crossover-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.crossover-list li { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; padding: 12px 16px; background: var(--bg-alt); border-radius: 10px; align-items: start; }
.crossover-list small { display: block; margin-top: 2px; }
.context { background: #fff9e6; border: 1px solid #f3dd94; border-radius: 10px; padding: 12px 16px; }

/* ── facts list ───────────────────────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 20px 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 700; }

/* ── tables ───────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--navy); color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; position: sticky; top: 0; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: " ↕"; opacity: .5; }
th[aria-sort="ascending"]::after { content: " ▲"; opacity: 1; }
th[aria-sort="descending"]::after { content: " ▼"; opacity: 1; }
tbody tr:nth-child(even) { background: #fafbfe; }
tbody tr:hover { background: #fff5f6; }
td.who { display: flex; align-items: center; gap: 10px; min-width: 220px; }
td.who a { font-weight: 700; text-decoration: none; }
.score-cell { min-width: 150px; }
.score-cell .meter-num { font-size: 1.25rem; }
.score-cell .meter-label { display: none; }
tr.left-office { opacity: .6; }
.kv-table td:first-child a { font-weight: 600; text-decoration: none; display: block; }
.kv-table td .muted { display: block; }
.result-count { color: var(--muted); font-weight: 600; }

/* ── forms & filters ──────────────────────────────────────────────────────── */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.chip-btn { border: 2px solid var(--line); background: #fff; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--navy); }
.chip-btn:hover { border-color: var(--navy-2); }
.chip-btn.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.score-controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 18px; }
.tabs { display: flex; gap: 6px; }
.tab { padding: 9px 16px; border-radius: 10px 10px 0 0; background: #e8ecf5; color: var(--navy); text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.tab.is-on { background: var(--navy); color: #fff; border-bottom-color: var(--red); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.field input, .field select { font: inherit; font-size: .95rem; padding: 8px 12px; border-radius: 10px; border: 2px solid var(--line); min-width: 190px; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus { border-color: var(--navy-2); outline: none; }

/* ── states: tile map, picker, member cards ───────────────────────────────── */
.tilemap { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 5px; max-width: 760px; margin: 0 auto; }
.tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 8px; text-decoration: none; font-weight: 800; line-height: 1; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease; }
.tile:hover { transform: translateY(-2px) scale(1.06); box-shadow: var(--shadow-hover); z-index: 2; }
.tile-abbr { font-size: clamp(.62rem, 2.4vw, 1.05rem); }
.tile-n { display: none; font-size: .68rem; font-weight: 700; opacity: .85; margin-top: 3px; }
.tile.is-current { border-color: var(--gold); box-shadow: 0 0 0 3px var(--navy); }
.heat-0 { background: #e8ecf5; color: #6b7488; }
.heat-1 { background: #dff3e7; color: #17683a; }
.heat-2 { background: #fff2cc; color: #7a5600; }
.heat-3 { background: #ffd2bd; color: #8f2a09; }
.heat-4 { background: var(--red); color: #fff; }
.tile:hover.heat-0 { color: #6b7488; }
.tile:hover.heat-1 { color: #17683a; }
.tile:hover.heat-2 { color: #7a5600; }
.tile:hover.heat-3 { color: #8f2a09; }
.tile:hover.heat-4 { color: #fff; }
.tile-legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 0; margin: 16px 0 0; font-size: .86rem; color: var(--muted); }
.tile-legend li { display: inline-flex; align-items: center; gap: 6px; }
.tile-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; flex: none; vertical-align: -2px; border: 1px solid rgba(0, 0, 0, .12); }
.tile-legend .tile-swatch { margin-right: 0; }
.state-link { text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; }
.state-picker { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 18px 0 8px; }
.state-picker .field select { min-width: 230px; }
.state-head-tools { margin-top: 6px; }
.more .state-picker { justify-content: center; }
.state-facts { margin-bottom: 0; }
.state-jump { color: var(--gold); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.seat-link { text-decoration: none; font-weight: 600; }
.more-left { margin-top: 18px; }
.table-h { margin-top: 30px; }
.pager { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-weight: 700; }
.pager a { text-decoration: none; }
.clean-sheet { background: #dff3e7; border-left: 6px solid var(--ok); border-radius: 10px; padding: 14px 18px; font-weight: 600; color: #17683a; }
.action-list { padding-left: 1.1em; }
.action-list li { margin-bottom: 8px; }
.mcard { padding: 18px; display: flex; flex-direction: column; gap: 12px; border-top-color: var(--line); }
.mcard.verdict-card-certified { border-top-color: var(--red); }
.mcard.verdict-card-alert { border-top-color: #e0572b; }
.mcard.verdict-card-wobbly { border-top-color: var(--gold); }
.mcard.verdict-card-reliable { border-top-color: var(--ok); }
.mcard.verdict-card-maverick { border-top-color: var(--warn); }
.mcard .pcard-id h3 a { color: var(--navy); text-decoration: none; }
.mcard .pcard-id h3 a:hover { color: var(--red); }
.mcard .pcard-kv { margin: 0; }
.mcard-votes { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.mcard-votes li { margin-bottom: 3px; }
.mcard-clean { margin: 0; color: #17683a; font-weight: 600; font-size: .92rem; }
.mcard .pcard-more { margin-top: auto; text-decoration: none; }
.contact-line { margin: 0; font-size: .9rem; line-height: 1.7; }
.contact-line a { font-weight: 600; }
.profile-score .contact-line { margin: 12px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line); }

/* ── method ───────────────────────────────────────────────────────────────── */
.formula { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.formula-part { background: var(--bg-alt); border-radius: var(--radius); padding: 18px; border-top: 5px solid var(--red); }
.formula-part strong { font-size: 2rem; color: var(--red); display: block; line-height: 1; }
.formula-part span { font-weight: 800; color: var(--navy); display: block; margin: 6px 0; }
.formula-part p { font-size: .92rem; margin: 0; }
.verdict-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.kv-mini li { margin-bottom: 6px; }
.kv-mini .muted { display: block; }

/* ── faq / share / sources ────────────────────────────────────────────────── */
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); }
.faq[open] summary { color: var(--red); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 20px; }
.share-label { font-weight: 700; color: var(--muted); }
.share-btn { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); text-decoration: none; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.share-btn:hover { border-color: var(--red); color: var(--red); }
.sources { padding-left: 1.1em; }
.sources li { margin-bottom: 6px; }
.src-pub { color: var(--muted); font-size: .86rem; }
.sources-h { margin-top: 20px; }
.used { display: block; font-size: .85rem; color: var(--muted); }
.h-pub { font-size: 1.2rem; border-bottom: 2px solid var(--line); padding-bottom: 4px; }

/* ── footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: #08152f; color: #c9d2ea; padding: 44px 0 20px; margin-top: 0; border-top: 6px solid var(--red); }
.site-footer a { color: #fff; }
.site-footer .muted { color: #96a3c4; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer-brand { font-size: 1.1rem; color: #fff; }
.footer-h { color: var(--gold); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8f9cbd; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-hover); z-index: 200; font-weight: 600; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .tile-n { display: block; }
  .tilemap { gap: 6px; }
}
@media (max-width: 960px) {
  .profile-head-inner { grid-template-columns: auto 1fr; }
  .profile-score { grid-column: 1 / -1; }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .formula { grid-template-columns: 1fr; }
}
@media (max-width: 1140px) {
  /* seven menu items no longer fit beside the logo: use the menu button */
  .nav-toggle { display: inline-flex; gap: 6px; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .site-nav.is-open { display: flex; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 44px; }
  .profile-head-inner { grid-template-columns: 1fr; text-align: left; }
  .avatar-xl { width: 110px; height: 110px; }
  .vcards { grid-template-columns: 1fr; }
  .crossover-list li { grid-template-columns: 1fr; gap: 4px; }
  .score-controls { align-items: stretch; }
  .field input, .field select { min-width: 0; width: 100%; }
  .field { flex: 1 1 140px; }
  td.who { min-width: 180px; }
}
@media (max-width: 640px) {
  /* tables that become a stack of small cards on phones */
  .stack-table thead { display: none; }
  .stack-table, .stack-table tbody, .stack-table tr, .stack-table td { display: block; width: 100%; }
  .stack-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stack-table td { border: 0; padding: 3px 0; }
  .stack-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ── print ────────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .flagbar, .site-footer, .share, .filterbar, .score-controls, .nav-toggle, .hero-cta, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero, .profile-head, .section-dark { background: none !important; color: #000; }
  .hero h1, .profile-head h1, .section-dark h2, .profile-headline, .seat { color: #000 !important; text-shadow: none; }
  .pcard, .vcard, .table-wrap { box-shadow: none; break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; word-break: break-all; }
  th { background: #ddd !important; color: #000; }
}

/* GovCheck family bar v2: begin (master copy: GovCheck.org/site_src/family-bar/; keep identical on every GovCheck site) */
.gcbar { position: relative; z-index: 60; background: #071526; border-bottom: 1px solid rgba(242, 199, 92, 0.3); line-height: 1.2; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; text-align: left; }
.gcbar *, .gcbar *::before, .gcbar *::after { box-sizing: border-box; }
.gcbar-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px; }
.gcbar a, .gcbar a:hover, .gcbar a:visited { color: #f7f3ea; text-decoration: none; }
.gcbar a::after { content: none; }
.gcbar-home { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 8px; border-radius: 8px; }
.gcbar-home svg { display: block; flex: none; width: 26px; height: 26px; }
.gcbar-name { font-family: Georgia, "Times New Roman", Times, serif; font-size: 17px; font-weight: 700; letter-spacing: 0.01em; color: #ffffff; }
.gcbar-tld { color: #f2c75c; }
.gcbar-sub { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: #d9d0bd; }
.gcbar-home:hover .gcbar-name { text-decoration: underline; text-underline-offset: 3px; }
.gcbar .gcbar-menu { position: static; margin: 0; padding: 0; border: 0; background: none; }
.gcbar .gcbar-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #f7f3ea; font: 600 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; list-style: none; user-select: none; }
.gcbar .gcbar-toggle::-webkit-details-marker { display: none; }
.gcbar .gcbar-toggle::before, .gcbar .gcbar-toggle::after { content: none; display: none; }
.gcbar .gcbar-toggle:hover { background: rgba(242, 199, 92, 0.14); }
.gcbar-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #a10f22; color: #ffffff; font-size: 12px; font-weight: 800; }
.gcbar-caret { font-size: 12px; transition: transform 0.15s ease; }
.gcbar-menu[open] .gcbar-caret { transform: rotate(180deg); }
.gcbar-list { position: absolute; right: 8px; top: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; width: min(560px, calc(100vw - 16px)); max-height: 75vh; overflow-y: auto; margin: 4px 0 0; padding: 8px; list-style: none; background: #0b1f3a; border: 1px solid rgba(242, 199, 92, 0.45); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.gcbar-list li { margin: 0; padding: 0; list-style: none; }
.gcbar-list li::before, .gcbar-list li::marker { content: none; }
.gcbar .gcbar-item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; }
.gcbar .gcbar-item:hover { background: rgba(255, 255, 255, 0.08); }
.gcbar .gcbar-item[aria-current="page"] { border-color: rgba(242, 199, 92, 0.6); background: rgba(242, 199, 92, 0.1); }
.gcbar-emo { flex: none; font-size: 20px; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; }
.gcbar-label { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 15px; color: #ffffff; }
.gcbar-host { font-weight: 400; font-size: 13px; color: #d9d0bd; }
.gcbar-home:focus-visible, .gcbar .gcbar-toggle:focus-visible, .gcbar .gcbar-item:focus-visible { outline: 3px solid #f2c75c; outline-offset: -3px; }
.gcbar-toggle-short { display: none; }
@media (max-width: 560px) { .gcbar-sub, .gcbar-toggle-text { display: none; } .gcbar-toggle-short { display: inline; } }
@media (prefers-reduced-motion: reduce) { .gcbar-caret { transition: none; } }
@media print { .gcbar { display: none; } }
/* GovCheck family bar: end */
