/*
Theme Name: PurpleRollCall
Theme URI: https://purplerollcall.org
Author: PurpleRollCall
Description: A responsive, source-first civic information theme matched to the approved PurpleRollCall website mockup.
Version: 2.3.0
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: purple-roll-call
License: GPL-2.0-or-later
*/

:root {
  --ink: #1e1730;
  --paper: #f6f1e8;
  --white: #fffdf8;
  --purple: #6840c4;
  --purple-dark: #3c216f;
  --lilac: #c9b4ff;
  --lime: #dcefa0;
  --coral: #ff8d76;
  --muted: #6d6678;
  --line: rgba(30, 23, 48, 0.16);
  --display: Georgia, "Times New Roman", serif;
  --font-geist-sans: "Avenir Next", "Segoe UI", Arial, sans-serif;
  --font-geist-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-geist-sans), Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip: auto; overflow: visible; border-radius: 5px; background: white; color: var(--ink); }

.site-header { height: 82px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(246, 241, 232, .92); position: relative; z-index: 20; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -0.04em; }
.brand strong { font-weight: 750; }
.ballot-mark { width: 31px; height: 31px; display: inline-grid; place-items: center; border-radius: 7px; background: var(--purple); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); flex: 0 0 auto; }
.ballot-check { width: 15px; height: 15px; display: grid; place-items: center; border: 1.5px solid white; border-radius: 2px; font-size: 14px; font-weight: 800; line-height: 1; transform: rotate(-2deg); }
.desktop-nav { margin-left: auto; }
.desktop-nav .menu { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.desktop-nav a { font-size: 14px; font-weight: 600; color: #433b50; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--purple); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; border-left: 1px solid var(--line); padding-left: 28px; font-size: 13px; font-weight: 700; }
.search-icon { width: 18px; height: 18px; }
.mobile-menu { display: none; position: relative; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; padding-block: 72px 82px; overflow: hidden; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 10px; color: var(--purple); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
.eyebrow > span { width: 24px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .how-intro h2, .page-hero h1 { margin: 0; font-family: var(--display); font-size: clamp(51px, 5.35vw, 79px); line-height: .96; letter-spacing: -.055em; font-weight: 500; }
.hero h1 em, .section-heading h2 em, .how-intro h2 em, .page-hero h1 em { color: var(--purple); font-weight: 400; }
.hero-intro { max-width: 650px; margin: 29px 0 0; color: #5d5667; font-size: 17px; line-height: 1.75; }
.hero-search { max-width: 600px; margin-top: 30px; height: 61px; background: var(--white); border: 1px solid rgba(30,23,48,.18); border-radius: 8px; display: flex; align-items: center; padding-left: 19px; box-shadow: 0 13px 35px rgba(43, 27, 73, .08); }
.hero-search > svg { color: var(--purple); width: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 14px; color: var(--ink); font-size: 14px; }
.hero-search input::placeholder { color: #8d8795; }
.hero-search button { width: 60px; height: 100%; border: 0; border-radius: 0 7px 7px 0; background: var(--purple); color: white; display: grid; place-items: center; cursor: pointer; }
.hero-search button:hover { background: var(--purple-dark); }
.hero-actions { margin-top: 28px; display: flex; align-items: center; gap: 28px; }
.button { min-height: 48px; padding: 0 19px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; font-weight: 750; }
.button.primary { background: var(--ink); color: white; }
.button.primary:hover { background: var(--purple); }
.arrow-icon { width: 19px; height: 19px; flex: 0 0 auto; }
.text-link { font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(30,23,48,.3); text-underline-offset: 5px; }

.hero-visual { min-height: 530px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: var(--lilac); opacity: .5; }
.orbit { position: absolute; border: 1px solid rgba(104,64,196,.27); border-radius: 50%; }
.orbit-one { width: 510px; height: 510px; }
.orbit-two { width: 570px; height: 360px; transform: rotate(44deg); }
.record-card { position: relative; z-index: 2; width: min(395px, 86%); min-height: 461px; background: var(--white); border: 1px solid rgba(30,23,48,.18); border-radius: 10px; padding: 24px 25px 16px; transform: rotate(2.1deg); box-shadow: 0 30px 70px rgba(38, 23, 66, .18); }
.record-topline { display: flex; justify-content: space-between; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-family: var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 750; }
.status-pill { display: flex; align-items: center; gap: 6px; background: #eaf4d0; border-radius: 999px; padding: 6px 9px; }
.status-pill i { width: 6px; height: 6px; background: #4a731d; border-radius: 50%; }
.record-date { margin-top: 24px; font-family: var(--font-geist-mono), monospace; font-size: 10px; color: var(--purple); display: flex; align-items: baseline; gap: 5px; }
.record-date strong { font-family: var(--display); color: var(--ink); font-size: 42px; font-weight: 500; line-height: 1; }
.record-body { margin-top: 20px; }
.micro-label { margin: 0 0 9px; color: var(--purple); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.record-body h2 { margin: 0; font-family: var(--display); font-size: 29px; line-height: 1.04; letter-spacing: -.035em; font-weight: 500; }
.record-summary { margin: 13px 0 20px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.vote-row { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.vote-row > div { display: flex; align-items: center; gap: 6px; }
.vote-mark { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-geist-mono), monospace; font-size: 10px; font-weight: 700; }
.vote-mark.yes { background: var(--lime); }
.vote-mark.no { background: #ffd5cb; }
.vote-mark.absent { background: #e7e3ea; }
.vote-row p { margin: 0; font-size: 8px; color: var(--muted); }
.vote-row strong { display: block; color: var(--ink); font-size: 11px; }
.demo-note { margin: 13px 0 0; text-align: right; color: #9a94a0; text-transform: uppercase; letter-spacing: .12em; font-size: 7px; font-weight: 800; }
.floating-stamp { position: absolute; z-index: 3; border: 1px solid var(--ink); background: var(--paper); font-family: var(--font-geist-mono), monospace; font-size: 8px; line-height: 1.2; letter-spacing: .07em; }
.stamp-one { top: 55px; left: 4px; width: 82px; height: 82px; border-radius: 50%; display: grid; place-content: center; text-align: center; transform: rotate(-10deg); color: var(--purple); border-color: var(--purple); }
.stamp-two { right: -5px; bottom: 58px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; transform: rotate(6deg); }
.stamp-two .ballot-mark { width: 24px; height: 24px; border-radius: 5px; }
.stamp-two .ballot-check { width: 12px; height: 12px; font-size: 10px; }

.explore-section { background: var(--ink); color: white; padding-block: 100px 110px; }
.section-heading { display: grid; grid-template-columns: 1fr 360px; align-items: end; gap: 70px; }
.eyebrow.light { color: var(--lilac); }
.section-heading h2 { font-size: clamp(43px, 4.7vw, 66px); }
.section-heading h2 em { color: var(--lilac); }
.section-heading > p { margin: 0 0 5px; color: #bdb6c9; line-height: 1.7; font-size: 14px; }
.level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 56px; }
.level-card { min-height: 345px; color: var(--ink); padding: 23px; border-radius: 8px; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.level-card:hover { transform: translateY(-7px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.level-card.lime { background: var(--lime); }
.level-card.lilac { background: var(--lilac); }
.level-card.coral { background: var(--coral); }
.level-meta { display: flex; justify-content: space-between; font-family: var(--font-geist-mono), monospace; text-transform: uppercase; letter-spacing: .11em; font-size: 9px; font-weight: 800; }
.level-card > div:nth-child(2) { margin-top: auto; }
.level-card h3 { margin: 0; font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -.035em; }
.level-card p { margin: 12px 0 0; max-width: 285px; font-size: 12px; line-height: 1.6; }
.card-arrow { align-self: flex-end; margin-top: 20px; width: 37px; height: 37px; border: 1px solid rgba(30,23,48,.55); border-radius: 50%; display: grid; place-items: center; }

.how-section { padding-block: 105px 110px; display: grid; grid-template-columns: 1fr 1fr; gap: 38px 90px; }
.how-intro h2 { font-size: clamp(43px, 4.5vw, 64px); }
.how-intro > p:not(.eyebrow) { max-width: 500px; margin: 25px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 19px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li > span { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: white; display: grid; place-items: center; font-family: var(--font-geist-mono), monospace; font-size: 11px; }
.steps h3 { margin: 0 0 7px; font-family: var(--display); font-size: 22px; font-weight: 500; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.mission-card { grid-column: 1 / -1; margin-top: 34px; min-height: 216px; border-radius: 8px; padding: 43px 50px; background: var(--purple); color: white; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 35px; }
.mission-card .ballot-mark { width: 46px; height: 46px; background: white; color: var(--purple); }
.mission-card .ballot-check { border-color: var(--purple); width: 21px; height: 21px; }
.mission-card p { margin: 0; font-family: var(--display); font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.035em; }
.mission-card p em { color: var(--lime); font-weight: 400; }
.mission-card > a { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 750; }

.site-footer { background: #171023; color: white; padding-top: 70px; }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding-bottom: 60px; }
.footer-brand { font-size: 25px; }
.footer-main > div:first-child > p { color: #9d95a9; font-size: 13px; margin-top: 17px; }
.footer-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.footer-links > div { display: flex; flex-direction: column; gap: 11px; }
.footer-links strong { color: var(--lilac); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; margin-bottom: 5px; }
.footer-links a { color: #c8c3cf; font-size: 12px; }
.footer-links a:hover { color: white; }
.footer-bottom { min-height: 70px; border-top: 1px solid rgba(255,255,255,.11); display: flex; align-items: center; justify-content: space-between; color: #8f8899; text-transform: uppercase; letter-spacing: .09em; font-size: 8px; }

/* Interior pages */
.page-hero { padding-block: 96px 105px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(52px, 5.7vw, 82px); }
.page-hero > .shell > p:last-child { max-width: 670px; margin: 31px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.explore-hero { padding-bottom: 65px; }
.explore-search { margin-top: 45px; width: min(850px, 100%); height: 66px; display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 0 20px; box-shadow: 0 15px 45px rgba(43,27,73,.08); }
.explore-search > svg { color: var(--purple); width: 21px; }
.explore-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; }
.explore-search > span { color: var(--muted); border-left: 1px solid var(--line); padding-left: 18px; font-size: 11px; font-weight: 700; }
.directory-section { padding-block: 60px 105px; }
.directory-toolbar { display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; }
.filter-tabs { display: flex; gap: 8px; margin-top: 10px; }
.filter-tabs button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 15px; color: var(--ink); font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-tabs button.active, .filter-tabs button:hover { background: var(--purple); border-color: var(--purple); color: white; }
.preview-notice { max-width: 370px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.preview-notice span { color: var(--purple); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; margin-right: 6px; }
.representative-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.representative-card { background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 23px; box-shadow: 0 10px 30px rgba(30,23,48,.04); }
.profile-monogram { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-size: 19px; }
.profile-monogram.lilac { background: var(--lilac); }.profile-monogram.lime { background: var(--lime); }.profile-monogram.coral { background: var(--coral); }
.profile-heading { margin-top: 23px; }
.level-tag { display: inline-block; color: var(--purple); text-transform: uppercase; letter-spacing: .11em; font-family: var(--font-geist-mono), monospace; font-size: 8px; font-weight: 800; }
.profile-heading h2 { margin: 7px 0 5px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.profile-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.profile-stats { margin: 22px 0; padding-block: 15px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.profile-stats div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.profile-stats dt { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.profile-stats dd { margin: 5px 0 0; font-family: var(--display); font-size: 25px; }
.recent-vote > p { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.recent-vote > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.recent-vote strong { max-width: 230px; font-family: var(--display); font-size: 16px; font-weight: 500; }
.recent-vote span, .vote-table-row > strong { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: 9px; }
.yea { background: var(--lime); color: #29430f; }.nay { background: #ffd5cb; color: #7c2c1c; }.neutral { background: #e7e3ea; color: #4d4656; }
.representative-card > a { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 750; }
.empty-state { min-height: 300px; display: grid; place-content: center; text-align: center; }
.empty-state h2 { font-family: var(--display); font-size: 30px; font-weight: 500; margin: 0; }.empty-state p { color: var(--muted); }.empty-state button { justify-self: center; border: 0; background: var(--purple); color: white; padding: 10px 16px; border-radius: 5px; cursor: pointer; }
.issue-browser { background: var(--ink); color: white; padding-block: 90px; }
.issue-browser-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.issue-browser h2 { margin: 0; font-family: var(--display); font-size: 52px; font-weight: 500; }.issue-browser p:not(.eyebrow) { color: #aaa3b4; font-size: 13px; line-height: 1.7; }
.issue-list { border-top: 1px solid rgba(255,255,255,.16); }
.issue-list a { min-height: 58px; border-bottom: 1px solid rgba(255,255,255,.16); display: grid; grid-template-columns: 43px 1fr auto; align-items: center; font-family: var(--display); font-size: 20px; }
.issue-list a span { color: var(--lilac); font: 8px var(--font-geist-mono), monospace; }.issue-list a:hover { color: var(--lilac); }

.split-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.hero-side-copy { padding-bottom: 5px; }.hero-side-copy p { color: var(--muted); line-height: 1.75; font-size: 14px; }.hero-side-copy a { display: inline-flex; gap: 9px; margin-top: 14px; }
.method-process { padding-block: 100px; display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.method-intro h2, .source-section h2, .why-purple h2, .about-cta h2 { margin: 8px 0 0; font-family: var(--display); font-size: clamp(38px,4vw,56px); line-height: 1.03; letter-spacing: -.04em; font-weight: 500; }
.method-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.method-list li { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.method-list li > span, .standard-card > span, .principle-grid article > span { color: var(--purple); font-family: var(--font-geist-mono), monospace; font-size: 9px; font-weight: 800; }
.method-list h3, .standard-card h3, .principle-grid h3 { margin: 0 0 8px; font-family: var(--display); font-size: 23px; font-weight: 500; }.method-list p, .standard-card p, .principle-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.source-section { background: var(--purple); color: white; padding-block: 95px; }.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 85px; }.source-section h2 { font-size: 55px; }.source-section > div > div:first-child > p:last-child { color: #d4cae8; max-width: 480px; line-height: 1.7; font-size: 13px; }
.source-list { border-top: 1px solid rgba(255,255,255,.25); }.source-list div { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.25); display: grid; grid-template-columns: 80px 1fr; gap: 25px; }.source-list span { color: var(--lime); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; font-weight: 800; }.source-list p { margin: 0; color: #eee9f8; font-size: 12px; line-height: 1.65; }
.standards-section { padding-block: 90px; display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }.standard-card { min-height: 220px; border: 1px solid var(--line); padding: 25px; border-radius: 7px; }.standard-card h3 { margin-top: 50px; }.method-cta { grid-column: 1/-1; margin-top: 20px; background: var(--lilac); border-radius: 7px; padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }.method-cta p { margin: 0; font-family: var(--display); font-size: 27px; }

.about-hero { padding-bottom: 115px; }.about-lede { max-width: 850px !important; font-family: var(--display); color: var(--ink) !important; font-size: clamp(23px,2.5vw,34px) !important; line-height: 1.35 !important; letter-spacing: -.02em; }
.mission-section { padding-block: 100px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; }.mission-statement { display: flex; align-items: flex-start; gap: 25px; }.mission-statement .ballot-mark { margin-top: 7px; }.mission-statement p { margin: 0; font-family: var(--display); font-size: clamp(34px,4vw,54px); line-height: 1.08; letter-spacing: -.04em; }.mission-statement p em { color: var(--purple); font-weight: 400; }.why-purple { padding-top: 10px; }.why-purple p:last-child { color: var(--muted); line-height: 1.8; font-size: 13px; }
.principles-section { background: var(--ink); color: white; padding-block: 100px; }.about-heading h2 { font-size: clamp(40px,4.5vw,63px); }.principle-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-top: 55px; }.principle-grid article { min-height: 270px; border: 1px solid rgba(255,255,255,.17); border-radius: 7px; padding: 25px; }.principle-grid article > span { color: var(--lilac); }.principle-grid h3 { margin-top: 70px; color: white; font-size: 25px; }.principle-grid p { color: #aca5b6; }
.about-cta { padding-block: 95px; display: flex; align-items: flex-end; justify-content: space-between; gap: 45px; }.about-cta h2 { font-size: clamp(36px,4.2vw,58px); }

.sample-banner { min-height: 37px; display: grid; place-items: center; background: var(--lilac); color: var(--purple-dark); text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 800; text-align: center; padding: 7px 15px; }
.profile-hero { padding-block: 43px 65px; }.back-link { color: var(--muted); font-size: 10px; font-weight: 700; }.profile-overview { margin-top: 45px; display: grid; grid-template-columns: 100px 1fr 270px; gap: 30px; align-items: center; }.profile-monogram.large { width: 90px; height: 90px; font-size: 28px; }.profile-overview h1 { margin: 6px 0; font-family: var(--display); font-size: 54px; line-height: 1; letter-spacing: -.04em; font-weight: 500; }.profile-overview p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 11px; }.profile-source { border-left: 1px solid var(--line); padding-left: 25px; }.profile-source > span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; }.profile-source strong { display: flex; align-items: center; gap: 7px; font-size: 11px; margin: 7px 0; }.profile-source i { width: 7px; height: 7px; background: var(--purple); border-radius: 50%; }
.profile-source p { margin-top: 8px; }
.vote-position { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; padding: 6px 12px; border-radius: 999px; color: var(--ink); font-size: 9px; font-style: normal; }
.vote-position.yea { background: var(--lime); }
.vote-position.nay { background: #ffd0c6; }
.vote-position.not-voting { background: #e6e1ec; }
.record-dashboard { background: var(--white); border-top: 1px solid var(--line); padding-block: 0 90px; }.summary-stats { display: grid; grid-template-columns: repeat(4,1fr); border-inline: 1px solid var(--line); }.summary-stats > div { padding: 25px; border-right: 1px solid var(--line); }.summary-stats > div:last-child { border-right: 0; }.summary-stats span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }.summary-stats strong { display: block; margin-top: 8px; font: 32px var(--display); }.record-heading { padding: 70px 0 30px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }.record-heading h2 { margin: 0; font: 48px var(--display); letter-spacing: -.04em; }.record-heading > p { max-width: 400px; color: var(--muted); font-size: 11px; line-height: 1.7; }.vote-table { border-top: 1px solid var(--ink); }.vote-table-header, .vote-table-row { display: grid; grid-template-columns: 120px 1fr 100px 85px; gap: 20px; align-items: center; }.vote-table-header { padding: 13px 10px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .09em; font-size: 8px; font-weight: 800; }.vote-table-row { padding: 23px 10px; border-bottom: 1px solid var(--line); }.vote-table-row time, .vote-table-row > span { color: var(--muted); font-size: 10px; }.vote-table-row div > span { color: var(--purple); text-transform: uppercase; letter-spacing: .08em; font-size: 8px; font-weight: 800; }.vote-table-row h3 { margin: 5px 0; font: 19px var(--display); }.vote-table-row p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.profile-bottom-cta { margin-top: 35px; padding: 26px 30px; background: var(--paper); display: flex; justify-content: space-between; align-items: center; gap: 30px; border-radius: 6px; }.profile-bottom-cta p { margin: 0; color: var(--muted); font-size: 12px; }.profile-bottom-cta a { display: flex; align-items: center; gap: 14px; font-size: 11px; font-weight: 750; }

@media (max-width: 980px) {
  .desktop-nav, .nav-cta { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 23px; height: 2px; background: var(--ink); }
  .mobile-menu nav { position: absolute; right: 0; top: 48px; width: 230px; background: var(--white); border: 1px solid var(--line); padding: 14px; border-radius: 8px; box-shadow: 0 20px 40px rgba(30,23,48,.14); display: grid; }
  .mobile-menu .menu { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
  .mobile-menu nav a { padding: 12px; font-size: 14px; font-weight: 650; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { min-height: 560px; }
  .stamp-one { left: 9%; }
  .stamp-two { right: 8%; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p { max-width: 600px; }
  .level-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 270px; }
  .how-section { grid-template-columns: 1fr; }
  .mission-card { grid-column: auto; }
  .representative-grid, .principle-grid { grid-template-columns: 1fr 1fr; }
  .issue-browser-inner, .split-hero, .method-process, .source-grid, .mission-section { grid-template-columns: 1fr; gap: 55px; }
  .standards-section { grid-template-columns: 1fr 1fr; }.method-cta { grid-column: 1/-1; }
  .profile-overview { grid-template-columns: 90px 1fr; }.profile-source { grid-column: 1/-1; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
}

/* WordPress content and live-data integration */
.content-page-hero h1,
.vote-detail-hero h1 { max-width: 1000px; }
.content-section { padding-block: 72px 100px; }
.prose-card { max-width: 900px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 18px 55px rgba(43, 27, 73, .06); }
.prose-card > *:first-child { margin-top: 0; }
.prose-card > *:last-child { margin-bottom: 0; }
.prose-card h2,
.prose-card h3,
.post-card h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; }
.prose-card h2 { margin-top: 2.2em; font-size: clamp(30px, 4vw, 44px); }
.prose-card h3 { margin-top: 1.8em; font-size: 25px; }
.prose-card p,
.prose-card li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.prose-card a { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.post-grid .navigation { grid-column: 1 / -1; }
.post-card { max-width: none; }
.post-card h2 { font-size: 31px; }
.error-page { min-height: 620px; }
.error-page .button { margin-top: 30px; }

.directory-toolbar h2 { margin: 8px 0 0; font: 500 clamp(34px, 4vw, 50px)/1.05 var(--display); letter-spacing: -.04em; }
.explore-hero { padding-block: 82px 72px; }
.explore-hero .shell { max-width: 1180px; }
.explore-hero h1 { font-size: clamp(54px, 5vw, 76px); }
.explore-hero > .shell > p:not(.eyebrow) { margin: 14px 0 0; font-size: 14px; }
.explore-search { width: min(680px, 100%); height: 56px; margin-top: 38px; padding-left: 18px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: var(--white); box-shadow: 0 15px 40px rgba(43, 27, 73, .07); }
.explore-search svg { flex: 0 0 auto; color: var(--purple); }
.explore-search input { min-width: 0; flex: 1; height: 100%; padding: 0 15px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.explore-search > span { margin-right: 18px; padding-left: 18px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
.representative-directory { padding-block: 62px 100px; }
.representative-directory .directory-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; }
.representative-directory .micro-label { margin-bottom: 12px; }
.filter-tabs { display: flex; gap: 8px; }
.filter-tabs a { min-width: 44px; height: 30px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 10px; font-weight: 700; }
.filter-tabs a.active { border-color: var(--purple); background: var(--purple); color: white; }
.preview-notice { max-width: 330px; margin: 0 0 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.preview-notice span { margin-right: 8px; color: var(--purple); font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.representative-directory .representative-grid { margin-top: 26px; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.representative-card { min-height: 335px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.representative-card > a { min-height: 293px; display: flex; flex-direction: column; }
.representative-card > a .card-stats,
.representative-card > a .recent-vote { width: 100%; }
.profile-monogram { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-size: 16px; }
.profile-monogram.lilac { background: var(--lilac); }
.profile-monogram.lime { background: var(--lime); }
.profile-monogram.coral { background: var(--coral); }
.card-level { margin: 25px 0 12px; color: var(--purple); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.representative-card h2 { margin: 0; font: 500 25px/1.05 var(--display); letter-spacing: -.035em; }
.card-office, .card-location { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.card-location { margin-top: 1px; }
.card-stats { margin-top: 24px; padding-block: 13px; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.card-stats > div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.card-stats span, .recent-vote span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 7px; letter-spacing: .09em; text-transform: uppercase; }
.card-stats strong { font: 500 24px/1 var(--display); }
.recent-vote { padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recent-vote strong { display: block; font: 500 16px/1.1 var(--display); }
.recent-vote em { flex: 0 0 auto; min-width: 28px; height: 23px; display: grid; place-items: center; border-radius: 999px; font-size: 7px; font-style: normal; }
.recent-vote em.yea { background: var(--lime); }
.recent-vote em.nay { background: #ffd5cb; }
.view-record { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--purple); font-size: 10px; font-weight: 750; }
.records-placeholder { margin-top: 34px; padding: 45px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.records-placeholder h2 { margin: 0 0 10px; font: 500 29px/1.15 var(--display); }
.records-placeholder p { margin: 0; color: var(--muted); line-height: 1.7; }
.prc-directory .prc-records { margin-top: 42px; }
.prc-directory .prc-records > h2 { display: none; }
.prc-directory .prc-records__filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); box-shadow: 0 15px 45px rgba(43, 27, 73, .07); }
.prc-directory .prc-records__filters label { display: grid; gap: 7px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.prc-directory .prc-records__filters input,
.prc-directory .prc-records__filters select,
.prc-directory .prc-records__filters button { min-height: 48px; border: 1px solid var(--line); border-radius: 5px; padding: 0 12px; background: var(--paper); color: var(--ink); }
.prc-directory .prc-records__filters button { border-color: var(--purple); background: var(--purple); color: white; cursor: pointer; font-size: 12px; font-weight: 750; }
.prc-directory .prc-records__count { margin: 22px 0 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.prc-directory .prc-records__table { min-width: 720px; border-collapse: collapse; background: var(--white); }
.prc-directory .prc-records__table th { padding: 14px 12px; border-block: 1px solid var(--ink); background: transparent; color: var(--ink); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.prc-directory .prc-records__table td { padding: 21px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.prc-directory .prc-records__table td a { color: var(--purple); font-family: var(--display); font-size: 18px; font-weight: 500; }
.prc-live-detail .prc-vote-detail,
.record-dashboard .prc-representative { padding: clamp(25px, 4vw, 50px); border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.prc-live-detail .prc-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prc-live-detail .prc-counts div { border-radius: 0; background: var(--paper); }
.prc-live-detail .prc-counts strong { color: var(--purple); font-family: var(--display); font-size: 34px; font-weight: 500; }
.prc-official-link { display: inline-flex; min-height: 46px; align-items: center; padding: 0 16px; border-radius: 5px; background: var(--purple); color: white; font-size: 12px; font-weight: 750; }

@media (max-width: 980px) {
  .prc-directory .prc-records__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .representative-directory .representative-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .content-section { padding-block: 50px 75px; }
  .prose-card { padding: 27px 22px; }
  .post-grid { grid-template-columns: 1fr; }
  .records-placeholder { padding: 30px 22px; }
  .prc-directory .prc-records__filters,
  .prc-live-detail .prc-counts { grid-template-columns: 1fr; }
  .representative-directory .directory-toolbar { align-items: flex-start; flex-direction: column; }
  .representative-directory .representative-grid { grid-template-columns: 1fr; }
  .representative-card { min-height: 0; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 30px, 1180px); }
  .site-header { height: 70px; }
  .hero { padding-block: 48px 65px; gap: 24px; }
  .hero h1 { font-size: 48px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 19px; }
  .hero-visual { min-height: 480px; margin-inline: -10px; }
  .hero-visual::before { width: 335px; height: 335px; }
  .orbit-one { width: 390px; height: 390px; }
  .orbit-two { width: 415px; height: 280px; }
  .record-card { min-height: 420px; padding: 20px; }
  .stamp-one { top: 14px; left: 0; }
  .stamp-two { right: -5px; bottom: 18px; }
  .explore-section { padding-block: 77px; }
  .level-grid { margin-top: 40px; }
  .level-card { min-height: 255px; }
  .how-section { padding-block: 78px; gap: 55px; }
  .mission-card { padding: 36px 28px; grid-template-columns: 1fr; gap: 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 45px; }
  .footer-bottom { align-items: flex-start; padding-block: 24px; flex-direction: column; gap: 10px; }
  .page-hero { padding-block: 70px; }.page-hero h1 { font-size: 47px; }
  .explore-search > span { display: none; }.directory-toolbar { align-items: flex-start; flex-direction: column; }.filter-tabs { flex-wrap: wrap; }
  .representative-grid, .principle-grid { grid-template-columns: 1fr; }.issue-browser-inner { gap: 40px; }
  .method-process, .standards-section, .source-section, .mission-section { padding-block: 75px; }.standards-section { grid-template-columns: 1fr; }.method-cta { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .source-list div { grid-template-columns: 1fr; gap: 8px; }.mission-section { grid-template-columns: 1fr; }.about-cta { align-items: flex-start; flex-direction: column; }
  .profile-overview { grid-template-columns: 1fr; }.profile-overview h1 { font-size: 45px; }.profile-monogram.large { width: 75px; height: 75px; }.profile-source { grid-column: auto; }
  .summary-stats { grid-template-columns: 1fr 1fr; }.summary-stats > div:nth-child(2) { border-right: 0; }.summary-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .record-heading { align-items: flex-start; flex-direction: column; }.vote-table-header { display: none; }.vote-table-row { grid-template-columns: 1fr auto; gap: 12px; }.vote-table-row time { grid-column: 1/-1; }.vote-table-row > span { text-align: right; }.profile-bottom-cta { align-items: flex-start; flex-direction: column; }
}
