:root {
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --bg: #fafaf7;
  --surface: #ffffff;
  --navy: #1a1b53;
  --navy-soft: #efeff6;
  --red: #ee2126;
  --red-dark: #b9141a;
  --red-soft: #fff0ef;
  --blue: #183e80;
  --text: #1b2031;
  --secondary: #4c5366;
  --muted: #62697b;
  --border: #dadce5;
  --warm: #f3eee5;
  --green: #17654b;
  --green-soft: #eaf4ee;
  --amber: #795011;
  --amber-soft: #fff5dc;
  --shadow: 0 12px 36px rgb(26 27 83 / 8%);
  --shadow-hover: 0 16px 36px rgb(26 27 83 / 14%);
  --white: #ffffff;
  --card-photo-shade: linear-gradient(180deg, rgb(10 15 40 / 38%) 0%, rgb(10 15 40 / 55%) 36%, rgb(10 15 40 / 96%) 78%);
  --quiz-photo: url("https://www.harriscountygop.com/wp-content/uploads/2023/04/Garden-Project-scaled-e1686685817643.webp");
  --photo-label-bg: rgb(10 15 40 / 88%);
  --photo-shade: linear-gradient(180deg, transparent 25%, rgb(10 15 40 / 80%) 100%);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.65; padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input, summary { transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease; }
button { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: var(--navy-soft); }
::selection { background: var(--navy); color: var(--white); }
input { caret-color: var(--red-dark); }
dialog { scrollbar-color: var(--muted) var(--bg); }
a, button, summary { touch-action: manipulation; }
a:active, button:not(:disabled):active { filter: brightness(.92); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
button:disabled { cursor: default; opacity: .6; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 84px; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 750; }
h2 { font: 600 clamp(32px, 3.2vw, 44px)/1.16 var(--serif); letter-spacing: -.025em; }
h3 { font-size: 24px; font-weight: 650; }
p { max-width: 70ch; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: .14em; line-height: 1.6; color: var(--red-dark); margin-bottom: 16px; }
.red-dot { display: inline-block; width: 7px; height: 7px; background: var(--red); border-radius: 50%; margin-right: 8px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.button { display: inline-flex; min-height: 50px; justify-content: center; align-items: center; gap: 24px; padding: 13px 22px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 650; text-decoration: none; line-height: 1.4; }
.button-primary { color: var(--white); background: var(--red-dark); }
.button-primary:hover { background: var(--navy); }
.button-outline { color: var(--navy); border-color: var(--border); background: var(--surface); }
.button-outline:hover { border-color: var(--navy); background: var(--navy-soft); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 650; text-decoration: none; gap: 8px; }
.text-link:hover { text-decoration: underline; }
.source-note, .small-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.source-note { margin-top: 22px; }
.source-link { display: inline-block; font-size: 12px; color: var(--blue); min-height: 44px; padding-block: 12px; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--navy); color: var(--white); }
.skip-link:focus { top: 10px; }
.preview-bar { background: var(--navy-soft); color: var(--secondary); font-size: 11px; padding-block: 4px; }
.preview-bar .container { display: flex; justify-content: space-between; align-items: center; }
.preview-bar a { display: inline-flex; align-items: center; min-height: 44px; color: var(--navy); text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 95%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 90px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .11em; line-height: 1.4; min-height: 48px; }
.brand small { display: block; font: inherit; font-size: 11px; letter-spacing: .14em; margin-top: 3px; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 28px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; }
nav a:hover { color: var(--red-dark); }
.header-vote { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 5px; padding: 9px 14px; color: var(--navy); text-decoration: none; font-weight: 650; }
.header-vote:hover { background: var(--navy-soft); }
.menu-toggle { display: none; min-height: 44px; min-width: 74px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 8px 10px; font-size: 12px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 76px; align-items: center; padding-block: 62px 72px; }
.hero h1 { font-size: clamp(48px, 5.7vw, 76px); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; }
.hero h1 span { color: var(--red); }
.hero-intro { font-size: 17px; line-height: 1.65; margin-block: 26px 28px; color: var(--secondary); max-width: 46ch; }
.hero-note { font-size: 12px; color: var(--muted); margin-top: 20px; }
.hero-photo { min-width: 0; height: 530px; border-radius: 10px; position: relative; overflow: hidden; background: var(--navy); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: var(--photo-shade); }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.photo-caption { position: absolute; inset: auto 32px 30px; z-index: 1; color: var(--white); }
.photo-caption > span { display: block; font-size: 11px; letter-spacing: .15em; font-weight: 650; }
.photo-caption strong { display: block; font: 600 40px/1.1 var(--serif); letter-spacing: -.025em; margin-block: 12px 18px; }
.photo-caption .photo-credit { font-size: 11px; letter-spacing: 0; opacity: .8; }
.election-stamp { position: absolute; top: 22px; right: 22px; z-index: 1; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--bg); border: 3px double var(--red-dark); border-radius: 2px; padding: 14px 18px; color: var(--navy); }
.election-stamp > span { font-size: 11px; letter-spacing: .08em; font-weight: 700; }
.election-stamp strong { font: 600 18px/1.5 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.election-stamp b { font-size: 42px; font-weight: 600; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; padding-top: 24px; border-top: 3px double var(--navy); }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-description { max-width: 36ch; font-size: 16px; color: var(--secondary); }
.candidate-overview { padding-top: 14px; }
.level-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.level-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 344px; padding: 28px; border: 1px solid var(--border); border-radius: 8px; color: var(--navy); text-decoration: none; background: var(--surface); }
.level-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.level-topline { display: flex; gap: 12px; font: 500 11px/1.7 var(--mono); margin-bottom: 40px; }
.level-topline > span { font-family: var(--sans); font-weight: 700; letter-spacing: .09em; font-size: 11px; }
.level-card h3 { font-size: 30px; }
.level-card p { font-size: 16px; margin-block: 18px 28px; color: var(--secondary); max-width: 32ch; }
.level-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 12px; }
.level-bottom b { font-size: 17px; }
.circle-arrow { display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; width: 38px; height: 38px; font-size: 20px; }
.level-county { background: var(--navy); color: var(--white); border-color: var(--navy); }
.level-county h3, .level-county p { color: var(--white); }
.level-county p { opacity: .8; }
.level-county .level-topline { opacity: .75; }
.level-county h3 { font-size: 34px; }
.level-county .circle-arrow { background: var(--red-dark); border-color: var(--red-dark); }
.state-symbol, .capitol-symbol { position: absolute; right: 26px; top: 63px; color: var(--red); font-size: 25px; line-height: 1; }
.capitol-symbol { color: var(--navy); }
.candidate-spotlight { display: grid; grid-template-columns: .8fr 2fr; gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border); }
.candidate-spotlight h3 { font: 600 28px/1.2 var(--serif); }
.candidate-spotlight p:not(.eyebrow) { font-size: 16px; color: var(--secondary); margin-block: 14px 8px; }
.featured-candidates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featured-candidate { color: var(--navy); text-decoration: none; display: block; min-width: 0; }
.featured-candidate .portrait { height: 190px; width: 100%; border-radius: 6px; }
.featured-candidate h4 { font-size: 16px; font-weight: 700; margin-top: 13px; line-height: 1.4; }
.featured-candidate p { margin-block: 4px !important; font-size: 16px !important; }
.featured-candidate:hover h4 { color: var(--red-dark); text-decoration: underline; }
.portrait { position: relative; overflow: hidden; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; position: absolute; inset: 0; }
.portrait img.portrait-orlando { object-position: 85% 25%; }
.portrait .initials { font: 600 36px var(--serif); }
.portrait .photo-fallback { position: absolute; bottom: 8px; padding-inline: 8px; font-size: 11px; text-align: center; color: var(--secondary); }
.issues-section { background: var(--warm); }
.issue-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.issue-card { padding: 22px 18px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.issue-card:hover { box-shadow: var(--shadow); border-color: var(--navy); }
.issue-label { font-size: 11px; font-weight: 750; letter-spacing: .11em; color: var(--muted); }
.issue-icon { font: 600 30px/1 var(--serif); color: var(--red-dark); margin-block: 25px 22px; }
.issue-card h3 { font-size: 19px; line-height: 1.3; }
.issue-card p { color: var(--secondary); font-size: 16px; margin-block: 12px 20px; }
.issue-card .text-link { font-size: 14px; margin-top: auto; }
.spending-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.tax-fact { padding: 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tax-number { display: block; font-size: 96px; line-height: 1; letter-spacing: -.04em; color: var(--red); font-weight: 800; margin-bottom: 20px; }
.tax-number > span { font-size: 50px; }
.tax-fact h3 { font-size: 25px; }
.tax-fact > p { font-size: 16px; color: var(--secondary); max-width: 46ch; margin-top: 16px; }
details { border-top: 1px solid var(--border); margin-top: 16px; }
summary { min-height: 44px; cursor: pointer; padding-block: 13px; color: var(--navy); font-size: 13px; font-weight: 650; }
summary:hover { color: var(--red-dark); }
details p { font-size: 16px; color: var(--secondary); margin-bottom: 12px; }
.quiz-teaser { position: relative; overflow: hidden; padding: 36px; border-radius: 8px; background: var(--navy-soft); display: flex; flex-direction: column; align-items: flex-start; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 4px; background: var(--surface); color: var(--navy); font-size: 11px; font-weight: 750; letter-spacing: .1em; }
.quiz-teaser h3 { font: 600 42px/1.1 var(--serif); margin-top: 30px; position: relative; z-index: 1; }
.quiz-teaser > p:not(.small-note) { font-size: 16px; color: var(--secondary); margin-block: 20px 28px; max-width: 34ch; position: relative; z-index: 1; }
.quiz-teaser .button { position: relative; z-index: 1; }
.quiz-teaser .small-note { margin-top: 12px; }
.quiz-decoration { position: absolute; bottom: 0; right: -8px; font: 600 270px/1 var(--serif); color: var(--border); opacity: .5; transform: rotate(12deg); pointer-events: none; }
.record-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-block: 42px 24px; }
.record-heading h3 { font-size: 20px; }
.segmented { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--border); width: fit-content; }
.segmented button { border: 1px solid transparent; border-bottom: 3px solid transparent; border-radius: 3px 3px 0 0; background: transparent; color: var(--secondary); min-height: 48px; padding: 10px 13px; font-size: 14px; font-weight: 600; }
.segmented button.is-active, .segmented button[aria-pressed="true"] { background: var(--navy-soft); border-bottom-color: var(--red-dark); color: var(--navy); }
.segmented button:hover { color: var(--red-dark); }
.record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.record-card { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.record-card:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.status { display: inline-flex; width: fit-content; background: var(--amber-soft); color: var(--amber); border-radius: 3px; padding: 5px 8px; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.4; }
.status-approved, .status-budget { background: var(--green-soft); color: var(--green); }
.record-card .record-amount { font-size: 30px; font-weight: 750; line-height: 1.2; letter-spacing: -.04em; color: var(--navy); margin-top: 22px; }
.record-card h4 { font-size: 15px; font-weight: 650; line-height: 1.4; margin-top: 10px; }
.record-card p { color: var(--secondary); font-size: 16px; margin-block: 12px 20px; }
.record-card .record-link { margin-top: auto; font-size: 12px; color: var(--blue); font-weight: 600; min-height: 28px; }
.record-card .record-meta { margin-top: 12px; font-size: 11px; color: var(--muted); }
.voting-section { background: var(--navy-soft); }
.voting-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voting-actions > a { position: relative; background: var(--surface); border-radius: 6px; padding: 26px; text-decoration: none; border: 1px solid var(--border); color: var(--text); }
.voting-actions > a:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.step-number { font: 500 13px var(--mono); color: var(--red-dark); }
.voting-actions h3 { font-size: 20px; margin-top: 24px; }
.voting-actions p { font-size: 16px; color: var(--secondary); margin-top: 12px; max-width: 32ch; }
.voting-actions a > span:last-child { position: absolute; top: 26px; right: 26px; color: var(--navy); }
.date-strip { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 28px; margin-top: 28px; border-top: 3px double var(--navy); border-bottom: 1px solid var(--border); gap: 24px; }
.date-strip > div { padding-right: 20px; border-right: 1px solid var(--border); }
.date-strip > div:last-child { border-right: 0; padding-right: 0; }
.date-strip span { display: block; font-size: 12px; letter-spacing: .04em; font-weight: 650; color: var(--secondary); }
.date-strip strong { display: block; font: 600 30px/1.2 var(--serif); color: var(--navy); margin-top: 12px; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.voting-bottom { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 32px; }
.voting-bottom h3 { font-size: 18px; }
.voting-bottom p { max-width: 48ch; font-size: 16px; color: var(--secondary); margin-top: 10px; }
.help-panel { margin-top: 24px; }
.help-panel a { display: inline-block; padding-block: 10px; min-height: 44px; }
.involvement-section { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.involvement-section p:not(.eyebrow) { color: var(--secondary); font-size: 16px; margin-top: 20px; }
.involvement-links a { display: flex; justify-content: space-between; padding-block: 24px; border-bottom: 1px solid var(--border); color: var(--navy); text-decoration: none; font-size: 17px; font-weight: 600; }
.involvement-links a:hover { color: var(--red-dark); }
.site-footer { background: var(--navy); color: var(--white); padding-block: 36px 24px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 28px; }
.site-footer .brand { color: var(--white); }
.footer-main > p { font-size: 13px; opacity: .8; }
.site-footer a:not(.brand) { color: var(--white); font-size: 11px; display: inline-block; padding-block: 12px; min-height: 44px; }
.footer-small { border-top: 1px solid rgb(255 255 255 / 20%); padding-top: 18px; display: flex; justify-content: space-between; gap: 32px; font-size: 11px; color: rgb(255 255 255 / 75%); }
.footer-small a { padding: 0 !important; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 12px; text-decoration: none; margin-bottom: 26px; }
.back-link:hover { text-decoration: underline; }
.directory-intro { font-size: 16px; color: var(--secondary); max-width: 75ch; margin-top: 20px; }
.directory-tools { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 36px; }
.search-box { display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--secondary); font-weight: 600; min-width: 260px; }
.search-box input { border: 1px solid var(--border); border-radius: 5px; background: var(--surface); min-height: 48px; padding: 10px 14px; color: var(--text); font-size: 16px; width: 100%; }
.directory-status { display: flex; align-items: center; justify-content: space-between; margin-block: 24px; font-size: 12px; color: var(--muted); }
.text-button { border: 0; background: transparent; color: var(--blue); padding: 10px; min-height: 44px; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--red-dark); }
.candidate-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.candidate-card { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--navy); background: var(--surface); border: 1px solid var(--border); padding: 18px; border-radius: 6px; min-width: 0; }
.candidate-card:focus-within { border-color: var(--navy); box-shadow: var(--shadow); }
.candidate-card > div:last-child { min-width: 0; overflow-wrap: anywhere; }
.candidate-card .portrait { width: 70px; height: 86px; border-radius: 4px; }
.candidate-card .initials { font-size: 24px; }
.candidate-card .photo-fallback { display: none; }
.candidate-card h3 { font: 650 16px/1.4 var(--sans); letter-spacing: -.02em; }
.candidate-card p { font-size: 16px; line-height: 1.5; color: var(--secondary); margin-top: 5px; }
.candidate-card .card-link { font-size: 14px; color: var(--blue); display: inline-flex; align-items: center; min-height: 44px; margin-top: 10px; }
.empty-state { grid-column: 1 / -1; border: 1px dashed var(--border); border-radius: 6px; padding: 36px; text-align: center; }
.empty-state h2 { font-size: 28px; }
.empty-state p { margin: 16px auto; font-size: 16px; color: var(--secondary); }
.profile-header { display: grid; grid-template-columns: 310px 1fr; gap: 64px; align-items: center; margin-top: 8px; }
.profile-header > .portrait { width: 100%; height: 360px; border-radius: 8px; }
.profile-header .initials { font-size: 84px; }
.profile-header h1 { font-size: clamp(38px, 4vw, 56px); }
.profile-office { font-size: 21px; color: var(--secondary); margin-block: 18px 26px; }
.profile-header .status { margin-top: 24px; }
.profile-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 60px; }
.profile-block { border-top: 1px solid var(--border); padding-top: 26px; }
.profile-block h2 { font-size: 29px; margin-bottom: 18px; }
.profile-block p { font-size: 16px; color: var(--secondary); margin-bottom: 16px; }
.profile-block ul { padding-left: 20px; }
.profile-block li { font-size: 16px; color: var(--secondary); margin-bottom: 14px; }
.profile-sources { margin-top: 40px; border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 24px; }
.profile-sources h2 { font-size: 24px; margin-bottom: 12px; }
.profile-sources a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: 12px; margin-right: 24px; }
.profile-sources p { color: var(--muted); font-size: 12px; }
.print-controls { border-block: 1px solid var(--border); padding-block: 24px; margin-top: 28px; }
.print-controls > p { color: var(--secondary); font-size: 12px; margin-top: 16px; }
.print-office { margin-top: 28px; }
.print-office h2 { font: 650 18px/1.4 var(--sans); letter-spacing: -.015em; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.print-row { display: flex; align-items: center; gap: 14px; padding: 12px; min-height: 60px; background: var(--surface); border: 1px solid var(--border); border-top: 0; border-radius: 0; cursor: pointer; font-size: 14px; }
.print-row input { appearance: auto; width: 22px; height: 22px; accent-color: var(--navy); }
.print-row:has(input:checked) { background: var(--navy-soft); }
.print-row span:last-child { margin-left: auto; color: var(--muted); font: 400 11px var(--mono); }
.print-only { display: none; }
.error-panel { margin-block: 32px; padding: 28px; background: var(--red-soft); border: 1px solid var(--red-dark); border-radius: 6px; }
.error-panel h2 { font-size: 28px; }
.error-panel p { margin-block: 16px; font-size: 16px; }
.error-panel .button { margin-right: 12px; margin-bottom: 12px; }
dialog { color: var(--text); background: var(--surface); border: 0; border-radius: 12px; padding: 48px; margin: auto; width: min(660px, calc(100% - 32px)); max-height: calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; scroll-padding-top: 64px; box-shadow: var(--shadow-hover); }
dialog::backdrop { background: rgb(15 20 47 / 65%); backdrop-filter: blur(3px); }
.dialog-toolbar { position: sticky; top: -48px; z-index: 3; display: flex; justify-content: flex-end; margin: -24px -24px 12px; padding-bottom: 8px; background: var(--surface); }
.dialog-close { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); font-size: 26px; line-height: 1; }
.dialog-close:hover { background: var(--navy-soft); }
dialog .eyebrow { padding-right: 0; }
dialog h2 { font-size: 34px; margin-block: 20px; }
dialog h3 { font-size: 19px; margin-block: 24px 12px; }
dialog p { font-size: 16px; color: var(--secondary); margin-block: 16px; }
dialog .detail-amount { font-size: 48px; font-weight: 750; letter-spacing: -.04em; color: var(--navy); margin-block: 20px 12px; }
.record-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 28px; padding-block: 20px; border-block: 1px solid var(--border); }
.record-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.record-facts dd { font-size: 16px; margin-top: 6px; }
.candidate-statements { margin-block: 22px; padding: 20px; background: var(--navy-soft); border-radius: 6px; }
.candidate-statements h3 { margin-top: 0; }
.candidate-statements a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.quiz-progress { display: flex; align-items: center; gap: 8px; margin-block: 28px; }
.quiz-progress span { display: block; height: 5px; flex: 1; background: var(--border); border-radius: 10px; }
.quiz-progress .complete { background: var(--navy); }
.quiz-progress .current { background: var(--red); }
.quiz-prompt { font: 600 27px/1.3 var(--serif); color: var(--navy); letter-spacing: -.015em; }
.quiz-options { display: grid; gap: 12px; margin-block: 28px; }
.quiz-options button { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 1px solid var(--border); background: var(--bg); color: var(--navy); border-radius: 5px; min-height: 62px; padding: 14px 18px; font-size: 19px; font-weight: 650; }
.quiz-options button:not(:disabled):hover { border-color: var(--navy); background: var(--navy-soft); }
.quiz-options button.correct { opacity: 1; border-color: var(--green); background: var(--green-soft); color: var(--green); }
.quiz-options button.incorrect { opacity: 1; border-color: var(--red-dark); background: var(--red-soft); color: var(--red-dark); }
.quiz-option-status { font-size: 11px; margin-left: 14px; }
.quiz-explanation { border-top: 1px solid var(--border); padding-top: 20px; }
.quiz-explanation:focus { outline: none; }
.quiz-explanation h3 { margin-top: 0; }
.quiz-explanation p { font-size: 16px; }
.quiz-score { display: block; color: var(--red); font: 750 72px/1.1 var(--sans); letter-spacing: -.04em; margin-block: 24px; }
.quiz-review { padding-left: 24px; font-size: 13px; margin-block: 24px; }
.quiz-review li { margin-bottom: 16px; }
.quiz-review a { display: inline-flex; align-items: center; min-height: 44px; }
.document { max-width: 900px; }
.document header { margin-bottom: 48px; }
.document h2 { margin-block: 40px 20px; }
.document h3 { margin-block: 30px 16px; }
.document p, .document li { margin-block: 14px; color: var(--secondary); font-size: 16px; }
.document ul, .document ol { padding-left: 24px; }
.document table { border-collapse: collapse; width: 100%; font-size: 13px; margin-block: 24px; }
.document td, .document th { padding: 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.document th { background: var(--navy-soft); color: var(--navy); }
.document code { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.document .table-wrap { overflow-x: auto; }
@media (max-width: 1100px) {
  .container { width: min(1200px, calc(100% - 48px)); }
  .header-inner { gap: 20px; }
  nav { gap: 18px; }
  .header-vote { display: none; }
  .hero { gap: 40px; }
  .hero .button { gap: 12px; font-size: 14px; padding-inline: 16px; }
  .hero-photo { height: 480px; }
  .level-card { padding: 24px; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-county { grid-column: 1 / -1; }
  .level-card h3 { font-size: 28px; }
  .level-county h3 { font-size: 30px; }
  .candidate-spotlight { gap: 28px; }
  .issue-grid { grid-template-columns: repeat(3, 1fr); }
  .issue-card:nth-child(4), .issue-card:nth-child(5) { grid-column: auto; }
  .voting-bottom { flex-direction: column; align-items: flex-start; }
  .candidate-list { grid-template-columns: repeat(2, 1fr); }
  .directory-tools { align-items: stretch; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  .preview-bar { font-size: 11px; }
  .preview-bar a { font-size: 11px; }
  .header-inner { min-height: 74px; flex-wrap: wrap; gap: 0; }
  .brand { font-size: 11px; gap: 9px; }
  .brand small { font-size: 11px; }
  .brand img { width: 40px; height: 40px; }
  .menu-toggle { display: block; }
  nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: 12px; }
  nav.is-open { display: flex; }
  nav a { padding: 12px 4px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 40px 48px; }
  .hero h1 { font-size: 58px; }
  .hero-intro { font-size: 16px; margin-block: 22px; }
  .hero .button { font-size: 14px; }
  .hero-note { font-size: 11px; }
  .hero-photo { height: 310px; }
  .photo-caption { inset: auto 24px 24px; }
  .photo-caption strong { font-size: 32px; margin-bottom: 12px; }
  .election-stamp { top: 18px; right: 18px; padding: 12px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .section-description { max-width: 50ch; font-size: 16px; }
  .candidate-overview { padding-top: 12px; }
  .level-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .level-county { grid-column: 1 / -1; min-height: 280px; }
  .level-card { padding: 22px; min-height: 318px; }
  .level-topline { gap: 10px; margin-bottom: 32px; font-size: 11px; }
  .level-topline > span { font-size: 11px; letter-spacing: .04em; }
  .level-card h3 { font-size: 24px; }
  .level-county h3 { font-size: 32px; }
  .level-card p { font-size: 16px; }
  .level-bottom { font-size: 11px; gap: 6px; }
  .level-bottom b { font-size: 14px; }
  .circle-arrow { width: 30px; height: 30px; flex-shrink: 0; }
  .state-symbol, .capitol-symbol { top: 56px; right: 22px; font-size: 20px; }
  .source-note { font-size: 11px; }
  .candidate-spotlight { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 28px; }
  .featured-candidates { gap: 10px; }
  .featured-candidate .portrait { height: 136px; }
  .featured-candidate h4 { font-size: 16px; }
  .featured-candidate p { font-size: 16px !important; }
  .issue-grid { grid-template-columns: 1fr; gap: 16px; }
  .issue-card { padding: 20px 16px; }
  .issue-card:nth-child(5) { grid-column: 1 / -1; }
  .issue-card h3 { font-size: 19px; }
  .issue-card p { font-size: 16px; }
  .spending-intro { grid-template-columns: 1fr; gap: 16px; }
  .tax-fact, .quiz-teaser { padding: 28px; }
  .tax-number { font-size: 90px; }
  .quiz-teaser h3 { font-size: 38px; margin-top: 24px; }
  .quiz-teaser > p:not(.small-note) { max-width: 34ch; }
  .record-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .segmented button { font-size: 14px; padding-inline: 10px; }
  .record-grid { grid-template-columns: 1fr; }
  .record-card { padding: 24px; }
  .record-card .record-amount { font-size: 34px; }
  .voting-actions { grid-template-columns: 1fr; gap: 12px; }
  .voting-actions > a { padding: 24px; }
  .voting-actions h3 { margin-top: 16px; }
  .date-strip { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .date-strip strong { font-size: 30px; }
  .date-strip span { font-size: 12px; }
  .voting-bottom { gap: 20px; }
  .voting-bottom .actions { align-items: stretch; flex-direction: column; width: 100%; }
  .involvement-section { grid-template-columns: 1fr; gap: 28px; }
  .footer-main, .footer-small { flex-direction: column; align-items: flex-start; gap: 18px; }
  .directory-tools { flex-direction: column; gap: 20px; }
  .directory-tools .segmented { width: 100%; }
  .directory-tools .segmented button { flex: 1; }
  .candidate-list { grid-template-columns: 1fr; }
  .candidate-card { padding: 18px; }
  .candidate-card .portrait { width: 70px; height: 82px; }
  .profile-header { grid-template-columns: 1fr; gap: 28px; }
  .profile-header > .portrait { width: min(100%, 330px); height: 330px; }
  .profile-office { font-size: 18px; margin-block: 16px 24px; }
  .profile-columns { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .profile-block h2 { font-size: 27px; }
  .print-controls .actions { align-items: stretch; flex-direction: column; }
  .print-row { padding: 10px; }
  dialog { padding: 42px 24px 28px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  dialog h2 { font-size: 29px; }
  dialog .detail-amount { font-size: 38px; }
  .record-facts { gap: 18px; }
  .quiz-prompt { font-size: 25px; }
  .quiz-options button { font-size: 17px; }
  .document table { min-width: 620px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 52px; }
  .hero .actions { align-items: stretch; flex-direction: column; }
  .hero .button { width: 100%; justify-content: space-between; }
  .level-card:not(.level-county) { padding: 18px 15px; }
  .level-card h3 { font-size: 22px; }
  .level-county h3 { font-size: 31px; }
  .state-symbol, .capitol-symbol { right: 15px; }
  .record-heading .segmented { width: 100%; }
  .record-heading .segmented button { font-size: 11px; padding-inline: 7px; flex: 1; }
  .preview-bar .container { gap: 12px; }
  .preview-bar span { max-width: 21ch; line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { margin: .5in; size: letter; }
  body { background: var(--surface); color: var(--text); font-size: 10pt; }
  .preview-bar, .site-header, .site-footer, .skip-link, dialog, #data-error, #home-view, #directory-view, #profile-view, .print-controls, .back-link, .print-row input, .print-row span:last-child, #print-view > .source-note { display: none !important; }
  #print-view { display: block !important; padding: 0; width: 100%; }
  #print-title { font: 700 23pt/1.15 var(--sans); }
  #print-title br { display: none; }
  #print-view .eyebrow { font-size: 8pt; margin-bottom: 8pt; }
  #print-view .directory-intro { font-size: 9pt; margin-top: 10pt; max-width: 100%; }
  #print-candidate-list { column-count: 2; column-gap: 28pt; margin-top: 20pt; }
  .print-office { break-inside: avoid; margin-top: 0; margin-bottom: 12pt; }
  .print-office h2 { font-size: 10pt; padding-bottom: 4pt; color: var(--text); }
  .print-row { display: block; border: 0; padding: 4pt 0; min-height: 0; font-size: 10pt; background: transparent !important; }
  .print-row:not(:has(input:checked)), .print-office:not(:has(input:checked)) { display: none; }
  .print-only { display: block; }
  .print-footer { font-size: 8pt; color: var(--secondary); margin-top: 20pt; border-top: 1px solid var(--border); padding-top: 8pt; }
  .document { padding: 0; width: 100%; }
  .document .table-wrap { overflow: visible; }
  .document table { min-width: 0; font-size: 9pt; }
}

/* Documentary photo cards retain legible foregrounds when an image is unavailable. */
.level-card { overflow: hidden; background: var(--navy); color: var(--white); min-height: 410px; }
.level-card .level-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.level-card::before { content: ""; position: absolute; inset: 0; background: var(--card-photo-shade); z-index: 1; }
.level-card > :not(.level-photo) { position: relative; z-index: 2; }
.level-card .level-topline { margin-bottom: 116px; align-self: flex-start; background: var(--photo-label-bg); padding: 7px 10px; border-radius: 4px; opacity: 1; }
.level-card h3, .level-card p { color: var(--white); }
.level-card p { opacity: 1; }
.level-card .circle-arrow { border-color: var(--white); }
.level-texas .level-photo { object-position: 50% 35%; }
.level-federal .level-photo { object-position: 45% 25%; }
.photo-sources { margin-top: 14px; font-size: 12px; color: var(--secondary); }
.photo-sources summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--blue); }
.photo-sources p { max-width: 85ch; }
.involvement-photo { margin-bottom: 24px; max-width: 390px; }
.involvement-photo img { width: 100%; height: 205px; object-fit: cover; border-radius: 8px; }
.involvement-photo figcaption { font-size: 11px; color: var(--muted); padding-top: 7px; }
.directory-groups { display: block; }
.directory-group { margin-block: 28px 54px; scroll-margin-top: 115px; }
.directory-group-heading { margin-bottom: 22px; }
.directory-group-heading h2 { font-size: 30px; }
.directory-group-heading p { color: var(--secondary); font-size: 16px; margin-top: 12px; max-width: 85ch; }
.directory-group-heading > span { display: block; font-size: 12px; color: var(--muted); margin-top: 10px; }
.directory-jump { display: flex; flex-wrap: wrap; gap: 12px; }
.directory-jump a { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid var(--border); border-radius: 5px; padding: 10px 16px; text-decoration: none; background: var(--surface); }
.directory-jump a:hover { background: var(--navy-soft); }
.hierarchy-key { padding: 22px; background: var(--navy-soft); border-left: 4px solid var(--red); border-radius: 6px; }
.hierarchy-key p { font-size: 16px; color: var(--secondary); margin-top: 8px; }
.state-pyramid { display: flex; flex-direction: column; gap: 38px; margin-top: 32px; }
.state-tier { width: 100%; scroll-margin-top: 115px; }
.state-tier .candidate-list { margin-top: 22px; }
.state-tier:not(#texas-tier-5) .candidate-list { width: calc((100% - 32px) / 3 * 2 + 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: auto; }
@media (max-width: 1100px) {
  .state-tier:not(#texas-tier-5) .candidate-list { width: 100%; }
}
@media (max-width: 760px) {
  .state-tier:not(#texas-tier-5) .candidate-list { grid-template-columns: 1fr; }
}
.pyramid-tier { margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--red); border-radius: 8px; padding: 20px 24px; min-height: 90px; text-decoration: none; color: var(--navy); text-align: center; }
.pyramid-tier { margin-inline: auto; }
.pyramid-tier h2 { font: 600 28px/1.25 var(--serif); }
.pyramid-tier p { font-size: 16px; color: var(--secondary); margin-top: 12px; }
.pyramid-tier > span { display: block; font-size: 12px; margin-top: 7px; }
.pyramid-tier-1 { width: 67%; }
.pyramid-tier-2 { width: 73%; }
.pyramid-tier-3 { width: 82%; }
.pyramid-tier-4 { width: 91%; }
.pyramid-tier-5 { width: 100%; }
.body-links { justify-content: center; margin-top: 18px; }
.body-directory-link { margin-top: 20px; }
.body-links .button { font-size: 13px; }
.body-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin-top: 30px; }
.body-facts > div { border-top: 4px solid var(--red); background: var(--surface); border-radius: 6px; padding: 24px; }
.body-facts strong { font: 600 42px/1.1 var(--serif); }
.body-facts p { font-size: 16px; color: var(--secondary); margin-top: 12px; }
.body-section { margin-top: 48px; }
.body-section h2 { font-size: 30px; margin-bottom: 18px; }
.body-section-intro { color: var(--secondary); font-size: 16px; max-width: 85ch; margin-bottom: 24px; }
.body-records { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.body-records h3 { font: 600 22px/1.25 var(--serif); margin-block: 16px 12px; }
.body-archive { margin-top: 40px; }
.quiz-teaser { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.quiz-teaser::before { content: ""; position: absolute; inset: 0; background-image: var(--quiz-photo); background-size: cover; background-position: center; opacity: .18; pointer-events: none; }
.quiz-teaser > * { position: relative; }
.quiz-teaser h3, .quiz-teaser p, .quiz-teaser > p:not(.small-note) { color: var(--white); }
.quiz-teaser .pill { background: var(--surface); color: var(--navy); }
.quiz-context-label { display: block; font: 650 11px var(--sans); color: var(--muted); margin-top: 18px; }
.quiz-source-note { font-size: 11px; color: var(--muted); margin-top: 8px; }
.quiz-review li p { font-size: 16px; color: var(--secondary); margin-top: 7px; }
@media (max-width: 760px) {
  .pyramid-tier { width: 100%; padding: 20px; }
  .state-pyramid { gap: 16px; }
  .directory-group-heading h2 { font-size: 27px; }
  .level-card { min-height: 398px; }
  .level-card .level-topline { margin-bottom: 110px; }
}
@media (max-width: 550px) {
  .body-facts, .body-records { grid-template-columns: 1fr; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .button { justify-content: space-between; }
  .body-directory-link { margin-top: 20px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card:not(.level-county) { padding: 24px; }
  .level-card h3 { font-size: 30px; }
  .level-county h3 { font-size: 34px; }
  .level-card p { font-size: 16px; }
  .level-topline > span { font-size: 11px; }
  .level-bottom { font-size: 12px; }
  .level-bottom b { font-size: 17px; }
  .level-card .circle-arrow { width: 38px; height: 38px; }
}

/* Device refinements retain the same candidate coverage and visual identity. */
@media screen and (max-width: 1100px) {
  .candidate-spotlight { grid-template-columns: 1fr; gap: 28px; }
  .featured-candidates { gap: 20px; }
  .directory-tools { flex-direction: column; align-items: stretch; }
}
@media screen and (min-width: 761px) and (max-width: 900px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .menu-toggle { display: block; }
  nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-block: 12px; }
  nav.is-open { display: flex; }
  nav a { padding: 12px 4px; }
}
@media screen and (max-width: 760px) {
  .hero-intro { font-size: 16px; }
  .hero-note { font-size: 13px; }
  .featured-candidates { grid-template-columns: 1fr; gap: 24px; }
  .featured-candidate { display: grid; grid-template-columns: 88px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .featured-candidate .portrait { grid-row: 1 / 4; width: 88px; height: 112px; }
  .featured-candidate h4 { margin-top: 0; }
  .featured-candidate .text-link { font-size: 14px; }
  .directory-tools .segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .directory-tools .segmented button { font-size: 14px; }
  .date-strip { grid-template-columns: 1fr; gap: 0; padding-block: 0; }
  .date-strip > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .date-strip > div:last-child { border-bottom: 0; }
  .date-strip span { font-size: 12px; max-width: 20ch; }
  .date-strip strong { margin-top: 0; font-size: 28px; }
  .dialog-toolbar { top: -42px; margin-inline: -8px; }
  .quiz-options button { overflow-wrap: anywhere; }
  .quiz-option-status { flex-shrink: 0; max-width: 8ch; font-size: 12px; }
  .record-facts { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media screen and (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  dialog { max-height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .level-card:hover { transform: none; box-shadow: none; }
}
@media print {
  body { padding: 0; }
}
