/* Vote with Pride: candidate records, the record indicator, and the 2026 ballot page (plugin 1.1.0). */

/* ---- Indicator pill ---- */
.vwp-record-pill {
    display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--vwp-rec) 14%, #fff); border: 1.5px solid color-mix(in srgb, var(--vwp-rec) 45%, #fff);
    color: #1f2937; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.vwp-record-pill--large { font-size: 16px; padding: 8px 16px 8px 12px; }
.vwp-record-pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--vwp-rec); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--vwp-rec) 25%, transparent); }
.vwp-record-pill--none, .vwp-record-pill--limited { color: #4b5563; }

/* ---- Profile: record section ---- */
.vwp-record { margin-top: 8px; }
.vwp-record__summary {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 18px;
    background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 2px 10px rgba(17, 24, 39, .05); margin-bottom: 22px;
}
.vwp-record__summary p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #374151; }
.vwp-record__summary a { color: #5046e5; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vwp-record__counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.vwp-record__count { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.vwp-record__count--affirming { background: #d1fae5; color: #065f46; }
.vwp-record__count--opposing { background: #fee2e2; color: #991b1b; }
.vwp-record h3.vwp-record__group { margin: 26px 0 12px; font-size: 18px; font-weight: 800; color: #111827; }
.vwp-record__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.vwp-record__item {
    position: relative; padding: 16px 18px 14px 22px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; margin: 0; list-style: none;
}
.vwp-record__item::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: #9ca3af; }
.vwp-record__item--affirming::before { background: #10b981; }
.vwp-record__item--anti::before { background: #ef4444; }
.vwp-record__item--affiliation.vwp-record__item--stance-affirming::before { background: #10b981; }
.vwp-record__item--affiliation.vwp-record__item--stance-anti::before { background: #ef4444; }
.vwp-record__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.vwp-record__badge { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.vwp-record__badge--affirming { background: #d1fae5; color: #065f46; }
.vwp-record__badge--anti { background: #fee2e2; color: #991b1b; }
.vwp-record__badge--neutral { background: #e5e7eb; color: #374151; }
.vwp-record__kind { font-size: 12.5px; font-weight: 600; color: #4b5563; padding: 3px 9px; border-radius: 999px; background: #f3f4f6; }
.vwp-record__date { font-size: 12.5px; color: #6b7280; margin-left: auto; }
.vwp-record__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: #111827; line-height: 1.35; }
.vwp-record__detail { margin: 0; font-size: 14.5px; line-height: 1.55; color: #374151; }
.vwp-record__quote { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid #c7d2fe; background: #f8f9ff; border-radius: 0 10px 10px 0; font-size: 14.5px; line-height: 1.5; color: #1f2937; font-style: italic; }
.vwp-record__source { margin: 10px 0 0; font-size: 13px; color: #6b7280; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.vwp-record__source a { color: #5046e5; font-weight: 600; text-decoration: none; }
.vwp-record__source a:hover { text-decoration: underline; }
.vwp-record__srctype { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #4b5563; }
.vwp-record__srctype--advocacy { background: #fef3c7; color: #92400e; }
.vwp-record__srctype--primary { background: #dbeafe; color: #1e40af; }
.vwp-record__empty { padding: 16px 18px; border-radius: 14px; background: #f9fafb; border: 1px dashed #d1d5db; color: #4b5563; font-size: 14.5px; }
.vwp-record__note { margin: 18px 0 0; font-size: 13px; color: #6b7280; line-height: 1.55; }

/* ---- Ballot page ---- */
.vwp-ballot { --vwp-ink: #111827; color: var(--vwp-ink); }
.vwp-ballot__intro { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: #374151; max-width: 70ch; }
.vwp-ballot .vwp-ballot__tools { position: relative !important; top: auto !important; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; padding: 14px 16px; margin: 0 0 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border: 1px solid #e5e7eb; border-radius: 18px; box-shadow: 0 4px 16px rgba(17,24,39,.05); }
.vwp-ballot__tools.is-stuck { border-radius: 0 0 18px 18px; border-top: 0; }
@media (max-width: 767px) { .vwp-ballot__tools { padding: 12px 12px; gap: 10px; margin-left: 0; margin-right: 0; } }
.vwp-ballot__search { flex: 1 1 240px; min-height: 44px; padding: 10px 14px; border: 1.5px solid #d1d5db; border-radius: 999px; font-size: 16px; background: #fff; color: #111827; -webkit-appearance: none; appearance: none; }
.vwp-ballot__search::-webkit-search-decoration { -webkit-appearance: none; }
.vwp-ballot__search:focus { outline: none; border-color: #5046e5; box-shadow: 0 0 0 4px rgba(80,70,229,.15); }
.vwp-ballot__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vwp-ballot__chip { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #d1d5db; background: #fff; font-size: 14px; font-weight: 600; color: #374151; cursor: pointer; }
.vwp-ballot__chip[aria-pressed="true"] { background: #5046e5; border-color: #5046e5; color: #fff; }
.vwp-ballot__chip:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.vwp-ballot__legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.vwp-ballot__legend .vwp-record-pill { font-size: 12px; }
.vwp-ballot__section { margin: 0 0 34px; }
.vwp-ballot__section h2 { margin: 0 0 14px; font-size: 24px; font-weight: 800; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
.vwp-ballot__race { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; }
.vwp-ballot__race h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.vwp-ballot__racenote { margin: 0 0 10px; font-size: 13.5px; color: #6b7280; }
.vwp-ballot__cands { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vwp-ballot__cand { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; margin: 0; padding: 8px 10px; border-radius: 12px; list-style: none; text-decoration: none; color: inherit; border: 1px solid transparent; }
@media (hover: hover) { .vwp-ballot__cand:hover { background: #f8f9ff; border-color: #e0e7ff; } }   /* hover only on pointers: iOS keeps :hover on the last tapped row */
.vwp-ballot__cand:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; }
.vwp-ballot__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #e5e7eb; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #4b5563; font-size: 14px; overflow: hidden; }
.vwp-ballot__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vwp-ballot__name { font-size: 16px; font-weight: 700; color: #111827; }
.vwp-ballot__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.vwp-ballot__party, .vwp-ballot__inc { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #f3f4f6; color: #374151; }
.vwp-ballot__party--d { background: #dbeafe; color: #1e40af; }
.vwp-ballot__party--r { background: #fee2e2; color: #991b1b; }
.vwp-ballot__party--g { background: #d1fae5; color: #065f46; }
.vwp-ballot__party--l { background: #fef3c7; color: #92400e; }
.vwp-ballot__measures { margin: 0 0 30px; padding: 16px 18px; border-radius: 16px; background: #f9fafb; border: 1px solid #e5e7eb; }
.vwp-ballot__measures h3 { margin: 0 0 8px; font-size: 18px; }
.vwp-ballot__measures p { margin: 0 0 6px; font-size: 14.5px; color: #374151; }
.vwp-ballot__hidden { display: none !important; }
.vwp-ballot__noresults { padding: 20px; text-align: center; color: #6b7280; }

/* ---- Methodology ---- */
.vwp-method { max-width: 76ch; }
.vwp-method h2 { margin: 26px 0 10px; font-size: 22px; }
.vwp-method p, .vwp-method li { font-size: 15.5px; line-height: 1.65; color: #374151; }
.vwp-method table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 14.5px; }
.vwp-method th, .vwp-method td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e7eb; vertical-align: top; }
.vwp-method__labels { display: grid; gap: 8px; margin: 10px 0 18px; }
.vwp-method__labels div { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }

@media (max-width: 640px) {
    .vwp-record__summary { grid-template-columns: 1fr; }
    .vwp-ballot__cand { grid-template-columns: 40px 1fr; }
    .vwp-ballot__cand .vwp-record-pill { grid-column: 2; justify-self: start; }
    .vwp-record__date { margin-left: 0; }
}

/* ---- Single candidate page framing ---- */
.single-vwp_candidate .vwp-single-race { margin: 6px 0 0; font-size: 15px; color: #4b5563; }
.single-vwp_candidate .vwp-single-race a { color: #5046e5; font-weight: 600; text-decoration: none; }
.single-vwp_candidate .vwp-candidate-profile .vwp-profile-name { margin: 0 0 4px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; color: #111827; line-height: 1.15; } /* the theme hides its own page heading */
.single-vwp_candidate .vwp-single-race { margin: 0 0 14px; }

/* ---- Profile header: compact, no empty photo box ---- */
.vwp-candidate-profile .vwp-profile-header { display: flex; gap: 20px; align-items: flex-start; text-align: left; padding: 0 0 18px; margin-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.vwp-candidate-profile .vwp-profile-header--nophoto { padding-top: 4px; }
.vwp-candidate-profile .vwp-profile-photo { width: 96px; height: 96px; flex: none; border-radius: 18px; overflow: hidden; margin: 0; }
.vwp-candidate-profile .vwp-profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vwp-candidate-profile .vwp-profile-info { flex: 1 1 auto; min-width: 0; }
.vwp-candidate-profile .vwp-profile-race { font-size: 17px; font-weight: 600; color: #1f2937; margin: 0 0 10px; }
.vwp-candidate-profile .vwp-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; margin: 0 0 12px; }
.vwp-candidate-profile .vwp-profile-party { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 13px; font-weight: 700; }
.vwp-candidate-profile .vwp-profile-incumbent { background: #e0e7ff; color: #3730a3; }
.vwp-candidate-profile .vwp-profile-office { font-size: 14px; color: #4b5563; }
.vwp-candidate-profile .vwp-profile-pill { text-decoration: none; }
.vwp-candidate-profile .vwp-profile-pill:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; border-radius: 999px; }
.vwp-candidate-profile .vwp-profile-social { justify-content: flex-start; margin: 0; }
.vwp-candidate-profile .vwp-profile-section-title { font-size: 22px; margin: 22px 0 10px; padding-bottom: 6px; }
.vwp-candidate-profile .vwp-profile-bio p { font-size: 16px; line-height: 1.6; color: #374151; }
@media (max-width: 640px) {
    .vwp-candidate-profile .vwp-profile-header { gap: 14px; }
    .vwp-candidate-profile .vwp-profile-photo { width: 72px; height: 72px; border-radius: 14px; }
    .vwp-candidate-profile .vwp-profile-race { font-size: 16px; }
    .vwp-candidate-profile .vwp-profile-section-title { font-size: 20px; }
    .vwp-candidate-profile .vwp-profile-bio p { font-size: 15.5px; }
}

/* ---- Accessibility (1.1.1) ---- */
.vwp-skip { position: absolute; left: 8px; top: -60px; z-index: 100001; padding: 10px 16px; border-radius: 10px; background: #111827; color: #fff; font-weight: 700; text-decoration: none; }
.vwp-skip:focus { top: 8px; outline: 3px solid #ffb703; outline-offset: 2px; }
#content:focus { outline: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vwp-ballot__title { margin: 0 0 10px; font-size: 28px; font-weight: 800; color: #111827; }
/* In-text links: underlined (not colour alone) and a darker purple for 4.5:1 on light backgrounds */
.vwp-ballot__intro a, .vwp-record__summary a, .vwp-record__note a, .vwp-record__empty a, .vwp-method a, .vwp-record__source a, .vwp-single-race a { color: #3b35b8; text-decoration: underline; text-underline-offset: 2px; }
.vwp-record__source { color: #4b5563; }
.vwp-record__date, .vwp-ballot__racenote, .vwp-record__srctype { color: #4b5563; }
.vwp-record__srctype--advocacy { color: #7c3d0a; }
.vwp-record-pill { color: #111827; }
/* Visible focus for everything interactive inside our UI and the theme nav */
.vwp-ballot a:focus-visible, .vwp-record a:focus-visible, .vwp-method a:focus-visible, .vwp-candidate-profile a:focus-visible, .vwp-candidate-card a:focus-visible,
.navbar a:focus-visible, .navbar button:focus-visible, #header a:focus-visible, .main-navigation a:focus-visible, .footer a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #ffb703 !important; outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) { .vwp-animate-in, [data-reveal], .animate-onscroll { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

.vwp-method__title { margin: 0 0 14px; font-size: 28px; font-weight: 800; color: #111827; }
.vwp-profile-credit { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; color: #4b5563; max-width: 140px; }
.vwp-profile-credit a { color: #3b35b8; text-decoration: underline; }
.vwp-ballot__intro a, .vwp-record__summary a, .vwp-record__note a, .vwp-record__empty a, .vwp-method a, .vwp-record__source a, .vwp-single-race a, .vwp-profile-credit a { text-decoration: underline !important; text-underline-offset: 2px; }

/* ---- Page heading: the theme's options CSS hides .page-heading !important, which leaves most pages without a visible h1.
   Restore a compact heading everywhere the plugin doesn't print its own h1 (home, ballot, methodology, candidate profiles). ---- */
body:not(.home):not(.page-id-204):not(.page-id-1131):not(.page-id-1491):not(.single-vwp_candidate) #content .page-heading {
    display: block !important; margin: 0 !important; padding: 22px 0 6px !important; background: transparent !important; position: static !important;
}
body:not(.home) #content .page-heading .entry-title { margin: 0 !important; font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; color: #111827; line-height: 1.2; }
body:not(.home) #content .page-heading .breadcrumbs, body:not(.home) #content .page-heading .breadcrumb { display: none; }

/* ---- In-content links on plain theme pages (Issues, Resources, forms): the theme strips underlines site-wide ---- */
body.page #content p a:not(.vwp-btn):not(.btn):not(.button):not([class*="vwp-"]), body.page #content li a:not(.vwp-btn):not(.btn):not(.button):not([class*="vwp-"]) {
    color: #3b35b8; text-decoration: underline !important; text-underline-offset: 2px; font-weight: 600;
}
body.page #content p a:not([class*="vwp-"]):hover, body.page #content li a:not([class*="vwp-"]):hover { color: #2a2690; }

/* ---- Counts mode (no evaluative label) ---- */
.vwp-record-pill--counts { background: #f1f5f9; border-color: #cbd5e1; color: #1f2937; }
.vwp-record-pill--counts .vwp-record-pill__dot { background: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,.2); }
.vwp-record__noend { margin: 8px 0 0 !important; font-size: 13.5px !important; color: #4b5563; }
.vwp-ballot__legendnote { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: #374151; max-width: 70ch; }

/* ---- Single candidate page: breadcrumb aligned with the (960px-centred) card; less dead space above; summary top-aligned ---- */
.single-vwp_candidate #content > .section.gray-bg { padding-top: 28px !important; }
.single-vwp_candidate .vwp-single-race { max-width: 960px; margin-left: auto !important; margin-right: auto !important; padding: 0 2px; }
.vwp-record__summary { align-items: start; }
.vwp-record__summary > .vwp-record-pill { margin-top: 2px; }
.vwp-record__summary p:first-child { margin-top: 2px !important; }
@media (max-width: 991px) {
    .single-vwp_candidate .vwp-single-race { max-width: none; padding: 0; }
}

/* ---- Profile card: solid, padded, no glass halo; consistent section headings ---- */
.vwp-candidate-profile.vwp-glass-card, .vwp-candidate-profile {
    background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border: 1px solid #e5e7eb !important; border-radius: 20px !important; box-shadow: 0 6px 24px rgba(17, 24, 39, .06) !important;
    padding: 30px 34px 26px !important; margin: 0 auto !important;
}
.vwp-candidate-profile .vwp-profile-header { padding-bottom: 22px; margin-bottom: 4px; border-bottom: 1px solid #e5e7eb; }
.vwp-candidate-profile .vwp-profile-section { margin: 0; padding: 0; }
.vwp-candidate-profile .vwp-profile-section-title, .vwp-candidate-profile .vwp-record h2.vwp-profile-section-title {
    font-size: 19px !important; font-weight: 800 !important; color: #111827 !important; letter-spacing: -.01em;
    margin: 26px 0 12px !important; padding: 0 0 8px !important; border-bottom: 2px solid #eef0f3 !important;
}
.vwp-candidate-profile .vwp-profile-bio { padding: 0; }
.vwp-candidate-profile .vwp-profile-bio p { font-size: 16.5px !important; line-height: 1.65 !important; color: #374151 !important; margin: 0 0 12px !important; }
.vwp-candidate-profile .vwp-record__summary { background: #f8f9ff; border-color: #e0e4f5; box-shadow: none; }
.vwp-candidate-profile .vwp-profile-meta { gap: 8px 10px; }
.vwp-candidate-profile .vwp-profile-office { flex-basis: 100%; }
@media (max-width: 767px) {
    .vwp-candidate-profile.vwp-glass-card, .vwp-candidate-profile { padding: 20px 18px 18px !important; border-radius: 16px !important; }
    .single-vwp_candidate #content > .section.gray-bg { padding-top: 18px !important; }
}

/* ---- Archived 2024 pages: note at the top ---- */
.vwp-archive-note { margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; background: #fff7e6; border: 1px solid #f6d58f; color: #4a3a12; font-size: 15px; line-height: 1.55; }
.vwp-archive-note p { margin: 0; }
.vwp-archive-note a { color: #4a3a12; text-decoration: underline !important; font-weight: 700; }

/* ---- Footer on phones/tablets: one centred column, tighter rhythm ---- */
@media (max-width: 900px) {
  #vwp-footer .vwp-footer-brand { align-items: center !important; text-align: center !important; }
  #vwp-footer .vwp-footer-project-by { align-items: center !important; }
  #vwp-footer .vwp-partner-logo img { max-width: 260px; height: auto; }
}
@media (max-width: 600px) {
  #vwp-footer .vwp-footer-main { gap: 28px !important; padding: 36px 0 24px !important; }
  #vwp-footer .vwp-footer-title { font-size: 22px !important; margin-bottom: 4px !important; }
  #vwp-footer .vwp-footer-tagline { font-size: 14px !important; margin-bottom: 14px !important; }
  #vwp-footer .vwp-footer-links h4, #vwp-footer .vwp-footer-partners h4 { margin-bottom: 10px !important; }
  #vwp-footer .vwp-footer-links li, #vwp-footer .vwp-footer-partners li { margin-bottom: 4px !important; }
  #vwp-footer .vwp-footer-links > ul > li > a, #vwp-footer .vwp-footer-partners > ul > li > a { display: inline-block; padding: 8px 6px; font-size: 16px !important; }
  #vwp-footer .vwp-footer-subitem { padding-left: 0 !important; }
  #vwp-footer .vwp-footer-subitem a { font-size: 15px !important; }
  #vwp-footer .vwp-footer-bottom { padding-top: 22px !important; }
  #vwp-footer .vwp-footer-pride-stripe { margin-top: 22px !important; }
}
/* iOS Safari can leave a ghost of the menu button's box under the fixed, backdrop-filtered header: give the button its own layer. */
#menu-button { transform: translateZ(0); -webkit-tap-highlight-color: transparent; isolation: isolate; }

/* ---- UI/UX sweep (1.2.4): ballot and profile measure, pill legibility, sticky toolbar, hover states ---- */
.vwp-ballot { max-width: 900px; margin: 0 auto; }
#content .vwp-ballot__title, #content .vwp-method__title, #content .vwp-candidate-profile .vwp-profile-name { color: #111827 !important; }
#content .vwp-ballot__section h2 { font-size: 24px; font-weight: 800 !important; }
.vwp-method { margin: 0 auto; }
.vwp-ballot__intro, .vwp-ballot__legendnote { max-width: 72ch; }
.vwp-ballot__racenote { font-size: 14.5px; max-width: 70ch; }
.vwp-ballot__tools { padding: 10px 12px; margin-left: -12px; margin-right: -12px; border-radius: 14px; box-shadow: 0 10px 24px -18px rgba(15, 23, 42, .35); }
.vwp-ballot__chip:hover { border-color: #5046e5; color: #3b35b8; background: #f5f3ff; }
.vwp-ballot__chip[aria-pressed="true"]:hover { background: #3b35b8; color: #fff; }
.vwp-ballot__search:hover { border-color: #94a3b8; }
.vwp-ballot__cand { min-height: 56px; }
.vwp-ballot__party, .vwp-ballot__inc { font-size: 12px; padding: 3px 9px; }
.vwp-ballot__party--d { color: #1e3a8a; }
.vwp-ballot__party--r { color: #7f1d1d; }
.vwp-ballot__party--g { color: #064e3b; }
.vwp-ballot__party--l { color: #78350f; }
.vwp-record-pill { font-size: 13.5px; max-width: 100%; white-space: normal; text-align: left; }
.vwp-ballot__cand .vwp-record-pill { justify-self: end; }
@media (max-width: 640px) { .vwp-ballot__cand .vwp-record-pill { justify-self: start; } }
.vwp-ballot__measures h3 { font-size: 19px; }
.vwp-ballot__measures p { font-size: 15.5px; }

/* Profile */
.vwp-candidate-profile { max-width: 920px; }
#content .vwp-candidate-profile h2.vwp-profile-section-title { font-size: 24px !important; font-weight: 800 !important; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e5e7eb; }
#content .vwp-candidate-profile .vwp-record h3.vwp-record__group { font-size: 19px !important; }
.vwp-candidate-profile .vwp-profile-bio { max-width: 72ch; }
.vwp-record__summary p, .vwp-record__noend { font-size: 15.5px; }
.vwp-record__count { font-size: 13px; padding: 4px 11px; }
.vwp-record__badge { font-size: 12px; }
.vwp-record__kind, .vwp-record__date { font-size: 13px; }
.vwp-record__srctype { font-size: 12px; }
.vwp-record__detail, .vwp-record__quote { font-size: 15.5px; max-width: 72ch; }
.vwp-record__title { max-width: 72ch; }
.vwp-record__source { font-size: 13.5px; }
.vwp-record__source a { word-break: break-word; }
.vwp-record__item--affirming:hover, .vwp-record__item--anti:hover, .vwp-record__item:hover { border-color: #cbd5e1; }
.vwp-profile-credit { font-size: 12px; }
.vwp-social-link:focus-visible { outline: 3px solid #ffb703; outline-offset: 3px; }
.vwp-candidate-profile .vwp-profile-office { font-size: 14.5px; max-width: 60ch; }
.vwp-candidate-profile .vwp-profile-pill:hover .vwp-record-pill { border-color: #94a3b8; }
@media (max-width: 640px) {
    #content .vwp-candidate-profile h2.vwp-profile-section-title { font-size: 22px !important; }
    #content .vwp-ballot__section h2 { font-size: 22px; }
}

/* Methodology: give its headings the same voice as the ballot */
#content .vwp-method h2 { font-size: 24px; font-weight: 800 !important; margin: 28px 0 10px; }
#content .vwp-method h3 { font-size: 19px; margin: 20px 0 8px; }
@media (max-width: 640px) { #content .vwp-method h2 { font-size: 22px; } }

/* ---- Ballot rows on phones: avatar spans both rows, name/party on the first, pill tucked under ---- */
@media (max-width: 767px) {
  .vwp-ballot .vwp-ballot__cands { gap: 0; }
  .vwp-ballot .vwp-ballot__cand { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 5px; align-items: start; min-height: 0; padding: 12px 6px; border-radius: 0; border: 0; border-bottom: 1px solid #eef0f3; }
  .vwp-ballot .vwp-ballot__cands > li:last-child .vwp-ballot__cand { border-bottom: 0; }
  .vwp-ballot .vwp-ballot__avatar { grid-row: 1 / span 2; width: 40px; height: 40px; margin-top: 1px; }
  .vwp-ballot .vwp-ballot__cand > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .vwp-ballot .vwp-ballot__name { font-size: 17px; line-height: 1.25; }
  .vwp-ballot .vwp-ballot__meta { margin-top: 4px; gap: 5px; }
  .vwp-ballot .vwp-ballot__party, .vwp-ballot .vwp-ballot__inc { font-size: 11px; padding: 2px 8px; }
  .vwp-ballot .vwp-ballot__cand .vwp-record-pill { grid-column: 2; grid-row: 2; justify-self: start; font-size: 13px; padding: 4px 10px 4px 8px; }
  .vwp-ballot .vwp-ballot__race { padding: 14px 14px 6px; }
  .vwp-ballot .vwp-ballot__race h3 { font-size: 18px; }
  .vwp-ballot .vwp-ballot__racenote { margin-bottom: 8px; }
}
/* iOS: a button-width grey box shows just under the header's menu button. Nothing in the DOM should be there, so
   whatever Safari paints (the nav wrapper's 6% black band poking below the 64px header, or the button's own box)
   is clipped and made transparent here. The open menu is position:fixed against #header, so it is not clipped. */
@media (max-width: 991px) {
  #header #lower-header, #header #lower-header .container { background: transparent !important; box-shadow: none !important; border: 0 !important; }
  #header #lower-header { max-height: 64px !important; overflow: hidden !important; }
  #header #lower-header .container { max-height: 44px !important; overflow: hidden !important; }
  #header #menu-button { max-height: 44px !important; overflow: hidden !important; box-shadow: none !important; transform: none !important; }
  #header #menu-button::before, #header #menu-button::after, #header #lower-header::before, #header #lower-header::after, #header #lower-header .container::before, #header #lower-header .container::after { display: none !important; content: none !important; }
}
/* Phones: pin the menu button to the 64px header itself (10px top/bottom, 12px right) so its centring no longer depends on the nav wrapper's height. */
@media (max-width: 991px) {
  #header { position: fixed; }
  #header #menu-button { position: absolute !important; top: 10px !important; right: 12px !important; bottom: auto !important; left: auto !important; margin: 0 !important; }
}

/* ---- Issues page ---- */
.vwp-iss { max-width: 960px; margin: 0 auto; color: #111827; }
.vwp-iss__intro { font-size: 17px; line-height: 1.6; color: #374151; margin: 0 0 12px; }
.vwp-iss__noend { font-size: 14.5px; line-height: 1.55; color: #4b5563; margin: 0 0 22px; padding: 12px 16px; border-left: 4px solid #5046e5; background: #f5f6ff; border-radius: 0 12px 12px 0; }
.vwp-iss__jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.vwp-iss__jump a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid #d1d5db; background: #fff; color: #1f2937 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.vwp-iss__jump a:hover { border-color: #5046e5; color: #5046e5 !important; }
.vwp-iss__jumpn { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #eef0ff; color: #3730a3; font-size: 12px; font-weight: 800; }
.vwp-iss__issue { margin: 0 0 28px; padding: 26px 28px; background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; box-shadow: 0 6px 24px rgba(17,24,39,.05); scroll-margin-top: 96px; }
.vwp-iss__title { margin: 0 0 10px !important; font-size: 24px !important; font-weight: 800 !important; line-height: 1.2 !important; color: #111827 !important; }
.vwp-iss__lede { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: #374151; max-width: 78ch; }
.vwp-iss__decides { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.vwp-iss__dlabel { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin-right: 2px; }
.vwp-iss__chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; font-size: 13px; font-weight: 600; }
.vwp-iss__facts { margin: 0 0 18px; padding: 0 0 0 18px; font-size: 14px; line-height: 1.55; color: #4b5563; }
.vwp-iss__facts li { margin: 0 0 3px; }
.vwp-iss__facts a { color: #3730a3 !important; text-decoration: underline !important; }
.vwp-iss__onrecord { margin: 18px 0 10px !important; padding: 10px 0 0; border-top: 2px solid #eef0f3; font-size: 15px !important; font-weight: 800 !important; letter-spacing: .04em; text-transform: uppercase; color: #374151 !important; }
.vwp-iss__sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vwp-iss__side { padding: 14px 16px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fafafa; }
.vwp-iss__side--affirming { border-color: #bfdbfe; background: #f3f8ff; }
.vwp-iss__side--opposing { border-color: #fecaca; background: #fff5f5; }
.vwp-iss__side--related { border-color: #e5e7eb; background: #fafafa; }
.vwp-iss__sidetitle { display: flex; align-items: center; gap: 8px; margin: 0 0 10px !important; font-size: 15px !important; font-weight: 800 !important; color: #111827 !important; }
.vwp-iss__side--affirming .vwp-iss__sidetitle { color: #1e3a8a !important; }
.vwp-iss__side--opposing .vwp-iss__sidetitle { color: #7f1d1d !important; }
.vwp-iss__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; border: 1px solid #d1d5db; font-size: 12px; font-weight: 800; color: #374151; }
.vwp-iss__none { margin: 0; font-size: 14px; color: #6b7280; }
.vwp-iss__cands { list-style: none; margin: 0; padding: 0; }
.vwp-iss__cand { padding: 10px 0; border-top: 1px solid rgba(17,24,39,.08); }
.vwp-iss__cand:first-child { border-top: 0; padding-top: 0; }
.vwp-iss__name { font-size: 16px !important; font-weight: 800 !important; color: #111827 !important; text-decoration: none !important; }
.vwp-iss__name:hover { text-decoration: underline !important; }
.vwp-iss__race { display: block; font-size: 12.5px; color: #6b7280; margin: 1px 0 4px; }
.vwp-iss__items { list-style: none; margin: 0; padding: 0; }
.vwp-iss__items li { position: relative; margin: 0 0 5px; padding: 0 0 0 12px; font-size: 14px; line-height: 1.45; color: #1f2937; }
.vwp-iss__items li::before { content: ""; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: #9ca3af; }
.vwp-iss__kind { display: inline-block; margin-right: 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.vwp-iss__src { font-size: 12.5px; color: #3730a3 !important; text-decoration: underline !important; white-space: nowrap; }
.vwp-iss__more a { font-size: 13px; font-weight: 700; color: #3730a3 !important; text-decoration: underline !important; }
.vwp-iss__related { margin: 14px 0 0; }
.vwp-iss__related summary { cursor: pointer; font-size: 14px; font-weight: 700; color: #374151; padding: 8px 0; }
.vwp-iss__related .vwp-iss__side { margin-top: 8px; }
.vwp-iss__issue--ask { background: #f8f9ff; }
.vwp-iss__questions { margin: 0; padding: 0 0 0 22px; }
.vwp-iss__questions li { margin: 0 0 10px; font-size: 15.5px; line-height: 1.5; color: #1f2937; }
.vwp-iss__questions li span { display: block; font-size: 14px; color: #4b5563; }
.vwp-iss__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 24px 28px; border-radius: 20px; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.vwp-iss__cta p { margin: 0; color: #fff; }
.vwp-iss__ctatitle { margin: 0 0 6px !important; font-size: 21px !important; font-weight: 800 !important; color: #fff !important; }
.vwp-iss__ctabtns { display: flex; flex-wrap: wrap; gap: 10px; }
.vwp-iss__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #3730a3 !important; font-weight: 800; font-size: 15px; text-decoration: none !important; }
.vwp-iss__btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); color: #fff !important; }
@media (max-width: 767px) {
  .vwp-iss__issue { padding: 18px 16px; border-radius: 16px; }
  .vwp-iss__title { font-size: 21px !important; }
  .vwp-iss__sides { grid-template-columns: 1fr; gap: 12px; }
  .vwp-iss__cta { padding: 20px 18px; }
  .vwp-iss__jump a { min-height: 36px; font-size: 13.5px; padding: 5px 12px; }
}
@media (prefers-reduced-motion: no-preference) { .vwp-iss__issue { scroll-behavior: smooth; } }

/* ---- Election results (ballot race cards, home strip, profile chip) ---- */
.vwp-ballot__results-note { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fff7e6; border: 1px solid #f6d58f; color: #4a3a12; font-size: 14.5px; line-height: 1.5; }
.vwp-res { margin: 12px 0 2px; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid #e5e7eb; }
.vwp-res__status { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b7280; }
.vwp-res__rows { list-style: none; margin: 0; padding: 0; }
.vwp-res__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 6px; font-size: 14px; color: #1f2937; }
.vwp-res__name { font-weight: 600; }
.vwp-res__bar { display: block; height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.vwp-res__bar > span { display: block; height: 100%; border-radius: 999px; background: #94a3b8; }
.vwp-res__row--leading .vwp-res__bar > span, .vwp-res__row--won .vwp-res__bar > span { background: #4f46e5; }
.vwp-res__row--runoff .vwp-res__bar > span { background: #f59e0b; }
.vwp-res__num { font-variant-numeric: tabular-nums; font-size: 13.5px; color: #374151; white-space: nowrap; }
.vwp-res__chip, .vwp-home__result-chip, .vwp-profile-result { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #eef0ff; color: #3730a3; vertical-align: middle; }
.vwp-res__chip--won, .vwp-profile-result--won { background: #dcfce7; color: #166534; }
.vwp-res__chip--runoff, .vwp-profile-result--runoff { background: #fef3c7; color: #92400e; }
.vwp-res__note { margin: 8px 0 0; font-size: 13px; color: #6b7280; }
.vwp-profile-result { margin-left: 0; padding: 4px 10px; font-size: 12px; }
.vwp-profile-result__u { font-weight: 600; text-transform: none; letter-spacing: 0; }
.vwp-home__results { margin: 0 0 22px; padding: 22px 26px; border-radius: 20px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 6px 24px rgba(17,24,39,.06); }
.vwp-home__results-title { margin: 0 0 4px !important; font-size: 24px !important; font-weight: 800 !important; color: #111827 !important; }
.vwp-home__results-sub { margin: 0 0 14px; font-size: 14px; color: #6b7280; }
.vwp-home__results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 14px; }
.vwp-home__result { padding: 12px 14px; border-radius: 14px; background: #f8fafc; border: 1px solid #e5e7eb; }
.vwp-home__result-race { margin: 0 0 6px !important; font-size: 14px !important; font-weight: 800 !important; letter-spacing: .03em; text-transform: uppercase; color: #374151 !important; }
.vwp-home__result-row { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px !important; font-size: 15px !important; color: #111827 !important; }
.vwp-home__result-row.is-leading .vwp-home__result-name, .vwp-home__result-row.is-won .vwp-home__result-name { font-weight: 800; }
.vwp-home__result-pct { font-variant-numeric: tabular-nums; font-weight: 700; }
.vwp-home__result-rep { margin: 4px 0 0 !important; font-size: 12.5px !important; color: #6b7280 !important; }
@media (max-width: 767px) { .vwp-res__row { grid-template-columns: minmax(0, 1fr) auto; } .vwp-res__bar { grid-column: 1 / -1; } .vwp-home__results { padding: 18px 16px; } }

/* ---- Office-holders ---- */
.vwp-off__tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #dcfce7; color: #166534; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.vwp-record__elected { margin: 8px 0 0; font-size: 14px; color: #166534; }
.vwp-off { max-width: 960px; margin: 0 auto; color: #111827; }
.vwp-off__empty { padding: 20px 22px; border-radius: 16px; background: #fff; border: 1px solid #e5e7eb; font-size: 16px; color: #374151; }
.vwp-off__empty p { margin: 0; }
.vwp-off__group { margin: 0 0 26px; }
.vwp-off__h { margin: 0 0 10px !important; padding: 0 0 8px; border-bottom: 2px solid #e5e7eb; font-size: 22px !important; font-weight: 800 !important; color: #111827 !important; }
.vwp-off__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vwp-off__card { margin: 0; }
.vwp-off__link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; text-decoration: none !important; color: #111827 !important; }
@media (hover: hover) { .vwp-off__link:hover { border-color: #c7d2fe; background: #f8f9ff; } }
.vwp-off__name { display: block; font-size: 17px; font-weight: 800; }
.vwp-off__office { display: block; font-size: 13.5px; color: #4b5563; margin: 1px 0 4px; }
.vwp-off__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vwp-off__elected { font-size: 12px; font-weight: 700; color: #6b7280; }
@media (max-width: 640px) { .vwp-off__link { grid-template-columns: 40px minmax(0, 1fr); } .vwp-off__link .vwp-record-pill { grid-column: 2; justify-self: start; } }
