.voter-guide{padding:36px 0 44px;color:var(--navy,#0A3161);border-top:1px solid var(--line,#becfe3);margin-top:24px}
.voter-guide[hidden]{display:none}
.finder-band + .voter-guide{margin-top:0;border-top:0}
.voter-guide>h2{max-width:24ch;font-size:clamp(1.65rem,3vw,2.25rem);line-height:1.15;letter-spacing:-.025em}
.guide-status{max-width:70ch;color:var(--muted,#47617E)}
.guide-group{margin-top:32px}
.guide-group>h3{font:700 .875rem/1.4 system-ui,sans-serif;letter-spacing:.035em;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #e3e9f0}
.guide-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;align-items:stretch}
.candidate-card{display:flex;flex-direction:column;min-width:0;border:1px solid #dce4ed;border-radius:2px;background:white;overflow:hidden}
.candidate-portrait{position:relative;aspect-ratio:4/3;background:#edf2f8;display:grid;place-items:center;overflow:hidden;flex-shrink:0}
.candidate-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%}
.candidate-initials{font:600 2.5rem/1 system-ui;color:#64788f;letter-spacing:.03em}
.candidate-ticket img{width:50%}
.candidate-ticket .running-mate-photo{left:50%}
.candidate-body{display:flex;flex-direction:column;flex:1;gap:8px;padding:18px;min-width:0}
.candidate-body h4{font:750 1.125rem/1.3 system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-.02em;margin:0;color:var(--navy);overflow-wrap:normal;word-break:normal}
.candidate-office{font:400 .875rem/1.45 system-ui,sans-serif;color:var(--muted);margin:0 0 12px;overflow-wrap:break-word}
.candidate-body>.candidate-learn-more{display:flex;align-items:center;justify-content:center;width:100%;margin-top:auto;text-align:center;min-height:44px;padding:11px 10px;font:650 .875rem/1.3 system-ui,sans-serif;text-decoration:none;border-radius:2px}
.voter-guide>a{display:inline-block;margin-top:24px;font-size:.875rem}
@media(max-width:1100px){.guide-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media(max-width:767px){
 .voter-guide{padding:28px 0 32px;margin-top:12px}
 .voter-guide>h2{max-width:22ch;font-size:1.75rem;line-height:1.15}
 .guide-group{margin-top:26px}
 .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .candidate-body{padding:14px 12px;gap:7px}
 .candidate-body h4{font-size:1.0625rem}
 .candidate-office{font-size:.8125rem;line-height:1.45;margin-bottom:9px}
 .candidate-card:has(.candidate-ticket){grid-column:1/-1}
 .candidate-ticket{aspect-ratio:2/1}
 .candidate-card:has(.candidate-ticket) h4{font-size:1.125rem}
}
@media(max-width:359px){.guide-grid{grid-template-columns:1fr}.candidate-portrait{aspect-ratio:3/2}.candidate-ticket{aspect-ratio:2/1}.candidate-body{padding:16px}}

.guide-export{margin:18px 0 22px}.guide-export-button{gap:10px;min-height:48px}.guide-export-button::before{content:"↓";font:700 1.25rem/1 system-ui}.guide-export-status{font-size:.875rem;color:var(--muted);margin:10px 0}.guide-export-status:empty{display:none}@media(max-width:767px){.guide-export-button{width:100%}}

/* Keep the desktop export action alongside the guide title. */
@media screen and (min-width:768px){
 .voter-guide:has(>.guide-export){display:flow-root}
 .voter-guide:has(>.guide-export)>h2{float:left;max-width:calc(100% - 285px);margin-right:24px}
 .voter-guide>.guide-export{float:right;width:260px;margin:0 0 20px;text-align:right}
 .voter-guide>.guide-export .guide-export-button{width:100%}
 .voter-guide>.guide-group{clear:both}
 .voter-guide>.guide-group:first-of-type{padding-top:8px}
}

/* Quiet candidate actions, with a clear blue hover and keyboard-focus state. */
.candidate-body>.candidate-learn-more{background:#edf0f3;color:var(--navy);border-color:transparent;transition:background-color .15s ease,color .15s ease}
.candidate-body>.candidate-learn-more:hover,.candidate-body>.candidate-learn-more:focus-visible{background:var(--blue);color:white}
.candidate-endorsement{display:flex;flex-wrap:wrap;align-items:center;align-self:flex-start;gap:4px 8px;margin:0 0 8px;color:var(--navy);font:600 .75rem/1.5 system-ui,sans-serif;text-decoration:none}
.candidate-endorsement time{color:var(--muted);font-size:.7rem;font-weight:400}
.candidate-party{font-size:.8125rem;margin:0 0 10px;color:var(--muted)}
.guide-coverage-note{font-size:.875rem;line-height:1.5;color:var(--muted);margin:12px 0 20px;max-width:95ch}
.candidate-endorsement:hover span,.candidate-endorsement:focus-visible span{text-decoration:underline;text-underline-offset:3px}
@media(prefers-reduced-motion:reduce){.candidate-body>.candidate-learn-more{transition:none}}

@media screen and (min-width:768px){.voter-guide{border-top:0}}

/* This site-wide message is independent of location and candidate matches. */
.statewide-endorsement{clear:both;margin:0;padding:24px 0 28px;color:var(--navy,#0A3161)}
.voter-guide:not([hidden])+.statewide-endorsement{padding-top:0}
.amendment-choice{color:var(--navy,#0A3161);padding:16px;text-align:center;font:900 clamp(1.75rem,3vw,2.5rem)/1.15 Acronym,Arial,sans-serif}
@media(max-width:767px){.statewide-endorsement{padding:20px 0 24px}}

/* Indeterminate source lookup: prominent without implying a completion percentage. */
.guide-loading{position:relative;display:flex;align-items:center;gap:24px;min-height:128px;margin:24px 0;padding:28px 32px 34px;border:1px solid #badbf6;border-radius:18px;background:linear-gradient(115deg,#edf6ff,#f7fbff);box-shadow:0 8px 28px #0a31610d;overflow:hidden}
.guide-loading-spinner{position:relative;display:block;flex:0 0 52px;width:52px;height:52px;border:5px solid #c4e3f6;border-top-color:var(--blue,#104b94);border-right-color:var(--cyan,#06aeef);border-radius:50%;animation:guide-loading-spin 1.05s linear infinite}
.guide-loading .guide-loading-label{margin:0;max-width:42ch;color:var(--navy,#0a3161);font:700 clamp(1.125rem,2vw,1.35rem)/1.45 system-ui,-apple-system,'Segoe UI',sans-serif}
.guide-loading-track{position:absolute;bottom:0;left:0;right:0;height:5px;background:#d9ecfb;overflow:hidden}
.guide-loading-track::after{content:'';position:absolute;inset:0 auto 0 0;width:40%;border-radius:99px;background:linear-gradient(90deg,var(--blue,#104b94),var(--cyan,#06aeef));animation:guide-loading-sweep 1.8s ease-in-out infinite}
@keyframes guide-loading-spin{to{transform:rotate(360deg)}}
@keyframes guide-loading-sweep{0%{transform:translateX(-105%)}100%{transform:translateX(355%)}}
@media(max-width:600px){.guide-loading{gap:18px;min-height:138px;padding:24px 20px 30px;border-radius:14px}.guide-loading-spinner{flex-basis:42px;width:42px;height:42px;border-width:4px}.guide-loading .guide-loading-label{font-size:1.0625rem}}
@media(prefers-reduced-motion:reduce){.guide-loading-spinner,.guide-loading-track::after{animation:none}.guide-loading-track::after{width:100%;transform:none}}
