.candidates-hero .page-search>label{color:#fff;font-size:.82rem}
.candidates-hero .page-search>small{display:block;margin:.65rem .2rem 0;color:#a9c0ca;font-size:.72rem}
.candidates-hero .compare-entry{margin-top:1rem}
.candidates-view .filter-panel{margin-top:1.5rem}
.candidates-view .filter-panel .filters{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
.candidates-view #clearCandidateFilters{border:1px solid #b9c9cc;background:#fff;color:#35525e}
.candidates-view #clearCandidateFilters:disabled{border-color:#d9e1e2;background:#edf1f1;color:#819197;cursor:not-allowed}
.explorer-insights{display:flex;align-items:end;justify-content:space-between;gap:2rem;padding-top:2.5rem}
.explorer-insights[hidden]{display:none}
.explorer-insights h2{margin:.35rem 0 0;font-size:clamp(1.65rem,3vw,2.5rem)}
.explorer-insights p:not(.eyebrow){margin:.4rem 0 0;color:#60757e;font-size:.85rem}
.active-candidate-filters{display:flex;justify-content:flex-end;gap:.45rem;flex-wrap:wrap;max-width:560px}
.active-candidate-filters button{display:inline-flex;align-items:center;gap:.45rem;min-height:38px;border:1px solid #b9d0d2;border-radius:999px;padding:.5rem .7rem;background:#fff;color:#164d62;font-size:.75rem;font-weight:800;cursor:pointer}
.active-candidate-filters button span{color:#8a3434;font-size:1rem;line-height:1}
.active-candidate-filters .clear-all-candidate-filters{border-color:transparent;background:transparent;color:#8a3434;text-decoration:underline}
.candidates-view .candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;padding-top:1.4rem}
.candidates-view .candidate-card{position:relative;display:flex;min-height:248px;flex-direction:column;align-items:stretch;gap:0;padding:0;border-radius:16px;overflow:hidden;cursor:default}
.candidate-card-profile{width:100%;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}
.candidates-view .candidate-card-profile{display:grid;grid-template-columns:66px minmax(0,1fr);align-items:start;gap:1rem;flex:1;padding:1.25rem}
.candidates-view .candidate-card .avatar{grid-column:1;grid-row:1/3;width:66px;height:66px;flex-basis:66px;border-radius:50%}
.candidate-card-heading{display:flex;align-items:center;justify-content:space-between;gap:.7rem;grid-column:2}
.candidate-card-office{color:#657b84;font-size:.65rem;font-weight:800;letter-spacing:.065em;text-transform:uppercase}
.candidates-view .candidate-card .candidate-number{float:none;flex:0 0 auto;color:#1768d7;font-size:1.15rem}
.candidates-view .candidate-main{grid-column:2}
.candidates-view .candidate-main strong{font-size:1.08rem;white-space:normal;line-height:1.2}
.candidates-view .candidate-main small{display:block;margin-top:.35rem;font-size:.78rem}
.candidate-card-status{grid-column:1/-1;align-self:end;margin:1rem 0 0;padding-top:.8rem;border-top:1px solid #e0e7e8;color:#59717b;font-size:.7rem}
.candidate-card-status b{color:#17623e;font-weight:800}
.candidate-card-action{grid-column:1/-1;align-self:end;color:#1456a8;font-size:.76rem;font-weight:800;text-align:right}
.candidates-view .candidate-card:hover .candidate-card-action{text-decoration:underline}
.candidate-compare-toggle{width:calc(100% - 2rem);min-height:42px;margin:0 1rem 1rem;border:1px solid #bfd0e6;border-radius:10px;background:#edf4ff;color:#1456a8;font-size:.76rem;font-weight:800;cursor:pointer}
.candidate-compare-toggle:hover{border-color:#1768d7;background:#e2edff}
.candidate-compare-toggle.is-selected{border-color:#087b49;background:#e3f4ed;color:#075c38}
.candidate-compare-toggle:disabled{border-color:#d7dfe2;background:#f0f2f2;color:#839097;cursor:not-allowed}
.candidate-compare-tray{position:sticky;top:86px;z-index:9;display:grid;grid-template-columns:minmax(190px,.8fr) minmax(260px,1.4fr) auto;align-items:center;gap:1rem;margin-top:1rem;padding:1rem 1.15rem;border:1px solid #b7d6d1;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 14px 36px rgba(7,42,64,.12);backdrop-filter:blur(12px)}
.candidate-compare-tray[hidden]{display:none}
.candidate-compare-tray>div:first-child{display:grid;gap:.2rem}.candidate-compare-tray>div:first-child .tag{justify-self:start}.candidate-compare-tray>div:first-child small{color:#60757e;font-size:.72rem}
.candidate-compare-chips{display:flex;gap:.4rem;overflow-x:auto;padding:.25rem 0;scrollbar-width:thin}
.candidate-compare-chips button{display:inline-flex;align-items:center;gap:.45rem;flex:0 0 auto;max-width:180px;min-height:34px;border:1px solid #c7d5d7;border-radius:999px;padding:.35rem .65rem;background:#fff;color:#173f50;font-size:.7rem;font-weight:800;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.candidate-compare-chips button span{color:#8a3434;font-size:.95rem}
.candidate-compare-tray-actions{display:flex;gap:.45rem}.candidate-compare-tray-actions button{min-height:40px;border:0;border-radius:9px;padding:.55rem .8rem;font-size:.75rem;font-weight:800;cursor:pointer}.candidate-compare-tray-actions .clear-explorer-comparison{background:transparent;color:#7d3434}.candidate-compare-tray-actions .open-explorer-comparison{background:#1768d7;color:#fff}.candidate-compare-tray-actions .open-explorer-comparison:disabled{background:#dfe5e7;color:#7d8b91;cursor:not-allowed}
.candidates-view .candidate-grid>.empty{grid-column:1/-1}
.candidate-empty strong,.candidate-empty>span{display:block}.candidate-empty>span{margin-top:.35rem}
.candidate-empty-actions{display:flex;justify-content:center;gap:.55rem;margin-top:1rem}
.candidate-empty-actions button{border:0;border-radius:9px;padding:.65rem .85rem;background:#e5efff;color:#1456a8;font-weight:800;cursor:pointer}
.candidates-view .load-actions{display:grid;justify-items:center;gap:.7rem;padding-top:.5rem}
.candidates-view .load-actions p{margin:0;color:#657b84;font-size:.78rem}
.candidate-stats-section{margin-top:3rem;margin-bottom:5rem;padding-top:2.4rem;border-top:1px solid #cfdbdc}
.candidate-stats-heading{max-width:760px}.candidate-stats-heading h2{margin:.35rem 0;font-size:clamp(1.7rem,3vw,2.65rem)}.candidate-stats-heading>p:not(.eyebrow){margin:.4rem 0;color:#60757e}
#candidateRecutStats{margin-top:1.5rem}.candidate-stats-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.candidate-stats-summary>div{min-width:0;padding:1rem;border:1px solid #d5e0e1;border-radius:13px;background:#fff}.candidate-stats-summary span{display:block;color:#667a82;font-size:.7rem;font-weight:700}.candidate-stats-summary strong{display:block;margin-top:.3rem;font-size:1.18rem;line-height:1.2;overflow-wrap:anywhere}
.candidate-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}.candidate-stats-grid>article{padding:1.25rem;border:1px solid #d5e0e1;border-radius:15px;background:#fff}.candidate-stats-grid h3{margin:0 0 1rem;font-size:1.05rem}.candidate-stat-bars{display:grid;gap:.75rem}.candidate-stat-bars>div span{display:flex;justify-content:space-between;gap:1rem}.candidate-stat-bars b{font-size:.73rem}.candidate-stat-bars small{color:#60757e;font-size:.68rem;white-space:nowrap}.candidate-stat-bars i{display:block;height:7px;margin-top:.3rem;overflow:hidden;border-radius:99px;background:#e7edee}.candidate-stat-bars em{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1768d7,#21b6b0)}.candidate-stats-note{margin:1rem 0 0;color:#60757e;font-size:.75rem}

@media(max-width:960px){
  .candidates-view .candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .candidates-view .filter-panel .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .candidates-view #clearCandidateFilters{grid-column:1/-1}
  .candidate-compare-tray{grid-template-columns:1fr auto}.candidate-compare-chips{grid-column:1/-1;grid-row:2}.candidate-stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .explorer-insights{align-items:flex-start;flex-direction:column;gap:1rem;padding-top:2rem}
  .active-candidate-filters{justify-content:flex-start;max-width:100%}
  .candidate-compare-tray{top:75px;grid-template-columns:1fr;margin-inline:auto}.candidate-compare-tray>div:first-child,.candidate-compare-tray-actions{grid-column:1}.candidate-compare-chips{grid-column:1;grid-row:auto}.candidate-compare-tray-actions button{flex:1}.candidate-stats-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .candidates-view .filter-panel .filters,.candidates-view .candidate-grid{grid-template-columns:1fr}
  .candidates-view .candidate-card{min-height:224px}
  .candidates-view .candidate-card-profile{padding:1rem}
  .candidate-stats-summary{grid-template-columns:1fr 1fr}.candidate-stats-summary strong{font-size:1rem}
  .active-candidate-filters{flex-wrap:nowrap;width:100%;overflow-x:auto;padding-bottom:.35rem;scrollbar-width:thin}
  .active-candidate-filters button{flex:0 0 auto}
}
