/* Shared public surfaces. Keep map colours and candidate identities intact. */
body[data-access=public] #main :is(#countyProfileContent,#intelligenceContent) :is(.cbx-postcard,.ib-hero-image){background:#123544!important;overflow:hidden!important}
body[data-access=public] #main .atlas-county-imagery{display:block!important;width:100%!important;height:100%!important;max-width:none!important}
body[data-access=public] #main :is(#countyProfileContent,#intelligenceContent) :is(.cbx-postcard,.ib-hero-image) .county-imagery-label{position:absolute!important;left:5px!important;top:4px!important;color:#e8fff8!important;background:#001724ba!important;padding:2px 4px!important;border-radius:2px!important;font:600 9px/1.3 Arial,sans-serif!important;white-space:nowrap!important}
body[data-access=public] #main :is(#countyProfileContent,#intelligenceContent) :is(.cbx-postcard,.ib-hero-image) .county-imagery-credit{position:absolute!important;right:4px!important;bottom:3px!important;color:#d4e3ec!important;background:#001724c9!important;padding:1px 3px!important;font:8px/1.3 Arial,sans-serif!important}
body[data-access=public] #main .county-imagery-unavailable{display:grid;place-items:center;height:100%;padding:8px;font:11px/1.3 Arial,sans-serif;color:#c2dce8}
body[data-access=public][data-public-navigation=shared] #main #intelligenceContent.atlas-intelligence-broadcast .ib-hero-image{opacity:1!important}
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast]{
 --atlas-page:#001724;--atlas-panel:#002333;--atlas-raised:#062d40;--atlas-control:#082d40;
 --atlas-workspace-background:#001724;--atlas-border:#285c72;--atlas-text:#edf7fc;--atlas-muted:#abcbdc;
 --ref-line:#285c72;--ref-surface:#002333;--ref-muted:#abcbdc;
 background:#001724!important;color:#edf7fc!important;color-scheme:dark;
}
body[data-access=public][data-public-navigation=shared] #main{background:#001724!important}
body[data-access=public][data-public-navigation=shared] #main :is(#mapView.atlas-reference-wall,#overviewContent.atlas-overview-command,#intelligenceContent.atlas-intelligence-broadcast,.ib-layout,.cbx-layout,.rb-layout,.os-layout){background:#001724!important}
body[data-access=public][data-public-navigation=shared] #main :is(.ib-panel,.oc-panel,.cbx-panel,.rb-panel,.rb-election,.os-panel,.ref-box,.cp-card){background:#002333!important;border-color:#285c72!important;box-shadow:none!important}
body[data-access=public][data-public-navigation=shared] #main #intelligenceContent.atlas-intelligence-broadcast .ib-panel{background:#002333!important;border-color:#285c72!important}
body[data-access=public][data-public-navigation=shared] #main #countyProfileContent.atlas-county-broadcast .cbx-panel,
body[data-access=public][data-public-navigation=shared] #main #comparisonContent :is(.rb-panel,.rb-election),
body[data-access=public][data-public-navigation=shared] #main #officeArchivePanel.oa-office-studio .os-panel{background:#002333!important;border-color:#285c72!important}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall :is(.ref-map-heading,.ref-wall-race>header){background:#002333!important;color:#edf7fc!important;border:1px solid #285c72;border-radius:3px;padding:3px 7px}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall :is(.ref-map-heading,.ref-wall-race>header) :is(h2,h3){color:#edf7fc!important}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-box{background:#002333!important;border-color:#285c72!important;box-shadow:none!important}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-breadcrumbs{background:#002333!important;border-color:#285c72!important}
body[data-access=public][data-public-navigation=shared] #main #intelligenceContent.atlas-intelligence-broadcast :is(.ib-map-panel>header,.ib-map-legend,.ib-tabs){background:#052c3d!important;border-color:#285c72!important}
body[data-access=public][data-public-navigation=shared] #main :is(.ib-panel,.oc-panel,.cbx-panel,.rb-panel,.os-panel,.ref-box,.cp-card) thead{background:#073043!important;color:#bddcea!important}
body[data-access=public][data-public-navigation=shared] #main :is(.ib-panel,.oc-panel,.cbx-panel,.rb-panel,.os-panel,.ref-box,.cp-card) tbody tr:nth-child(odd){background:#062c3e!important}
body[data-access=public][data-public-navigation=shared] #main :is(.ib-panel,.oc-panel,.cbx-panel,.rb-panel,.os-panel,.ref-box,.cp-card) :is(th,td){border-color:#1f495e!important}
/* Compact the county pathways card while preserving its three-column layout. */
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast] #main #mapView.atlas-reference-wall [data-ref-developments] :is(h3,h4){font-size:11px!important;line-height:1.2!important}
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast] #main #mapView.atlas-reference-wall [data-ref-developments] .ref-county-path :is(td,td>button){font-size:11px!important;line-height:1.25!important}
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast] #main #mapView.atlas-reference-wall [data-ref-developments] .ref-county-path :is(th,.ref-path-state,small){font-size:9px!important;line-height:1.2!important}
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast] #main #mapView.atlas-reference-wall [data-ref-developments] .ref-update-list :is(li,li>span){font-size:11px!important;line-height:1.3!important}
body[data-access=public][data-public-navigation=shared][data-atlas-theme=broadcast] #main #mapView.atlas-reference-wall [data-ref-developments] .ref-update-list :is(time,.ref-update-origin){font-size:9px!important;line-height:1.3!important}
/* Give the national share chart the space released by compact candidate rows. */
@media(min-width:1101px){
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-race{grid-template-rows:30px minmax(0,1fr) clamp(180px,25dvh,270px)!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall [data-ref-candidates]{grid-template-rows:repeat(4,minmax(0,1fr))!important;gap:7px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-candidate{grid-template-columns:56px minmax(0,1fr) 100px!important;padding:7px 9px!important;gap:9px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-candidate .candidate-portrait{width:56px!important;height:70px!important;flex-basis:56px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-person>strong{font-size:32px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-major .ref-person>strong{font-size:38px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall :is(.ref-person,.ref-votes){line-height:1!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-person h3{font-size:16px!important;line-height:1.15!important;margin:0 0 3px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-person>.atlas-party-identity{display:flex!important;height:18px!important;min-height:0!important;line-height:1!important;margin-bottom:3px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-person .atlas-party-symbol{width:16px!important;height:16px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-votes>b{font-size:16px!important;line-height:1.2!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-votes>small{line-height:1.2!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-spark{height:36px!important;min-height:36px!important;margin-top:4px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-vote-trend{display:flex!important;flex-direction:column!important;min-height:0!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall [data-ref-trend]{display:grid!important;grid-template-columns:auto auto!important;grid-template-rows:20px minmax(0,1fr) auto!important;flex:1!important;min-height:0!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall [data-ref-trend]>.ref-combined-trends,
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall [data-ref-trend]>small{grid-column:1/-1!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-vote-trend .ref-combined-trends{flex:1!important;min-height:80px!important;height:auto!important;margin:8px 0!important}
}
@media(min-width:1101px) and (max-height:800px){
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-race{grid-template-rows:28px minmax(0,1fr) 170px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-candidate{grid-template-columns:46px minmax(0,1fr) 90px!important;padding:5px 7px!important;gap:7px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-candidate .candidate-portrait{width:46px!important;height:58px!important;flex-basis:46px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-major .ref-person>strong{font-size:35px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-person h3{font-size:14px!important;margin-bottom:3px!important}
}

/* Compact the Results metrics and retain one uninterrupted geography path. */
@media(min-width:801px){
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats{height:78px!important;min-height:0!important;margin:0 0 8px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats article{padding:4px 14px!important;gap:1px!important;min-height:0}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats article>strong{font-size:27px!important;line-height:1!important;margin:1px 0!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats article:first-child>strong{font-size:32px!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats :is(article>span,.ref-stat-control){font-size:10px!important;line-height:1.15!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats small{font-size:9px!important;line-height:1.1!important}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats blockquote{padding:6px 14px!important;font-size:17px!important;min-height:0}
}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-location{flex-wrap:wrap!important;gap:4px 7px;align-items:center;min-height:0}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-location #mapBreadcrumbs{display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;width:max-content!important;max-width:100%;min-width:0;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall #mapBreadcrumbs>*{flex:none!important;white-space:nowrap!important}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-location>[data-ref-snapshot]{white-space:nowrap;flex:none}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-heading{height:auto!important;min-height:62px;flex:none!important}

body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .map-canvas-panel{grid-template-rows:max-content minmax(0,1fr)!important}
body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-map-heading{align-content:flex-start!important}

/* Official website links occupy the former quote card without changing the metrics. */
#main #mapView.atlas-reference-wall .ref-wall-stats .ref-brand-links{display:grid;grid-template-rows:auto minmax(0,1fr);align-items:stretch;gap:4px;padding:5px 10px;min-width:0}
#main #mapView.atlas-reference-wall .ref-brand-credit{display:block;text-align:center;font:600 10px/1.2 Arial,sans-serif!important;color:#a5d5e2;letter-spacing:.03em}
#main #mapView.atlas-reference-wall .ref-brand-actions{display:grid;grid-template-columns:1fr 1fr;align-items:stretch;gap:8px;min-height:0}
#main #mapView.atlas-reference-wall .ref-brand-links a{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:0;padding:5px 6px;color:#e5f8ff!important;text-decoration:none!important;background:#052c3d;border:1px solid #245b71;border-radius:4px;font-style:normal}
#main #mapView.atlas-reference-wall .ref-brand-links a:hover{background:#0c3c4e;border-color:#28c7c9}
#main #mapView.atlas-reference-wall .ref-brand-links a:focus-visible{outline:2px solid #24d8cc;outline-offset:2px}
#main #mapView.atlas-reference-wall .ref-brand-links img{display:block;width:27px;height:27px;max-width:none;object-fit:contain;flex:none}
#main #mapView.atlas-reference-wall .ref-brand-links b{display:block;font:650 12px/1.25 Arial,sans-serif!important;white-space:nowrap;color:#e5f8ff}
#main #mapView.atlas-reference-wall .ref-brand-links small{display:block;margin-top:4px;font:9px/1.2 Arial,sans-serif!important;color:#80c5d0!important;white-space:nowrap}
@media(min-width:1101px) and (max-width:1500px){
 #main #mapView.atlas-reference-wall .ref-wall-stats .ref-brand-links{gap:3px;padding:4px 8px}
 #main #mapView.atlas-reference-wall .ref-brand-actions{grid-template-columns:1fr;gap:3px}
 #main #mapView.atlas-reference-wall .ref-brand-links a{min-height:24px;padding:1px 7px;justify-content:flex-start}
 #main #mapView.atlas-reference-wall .ref-brand-links img{width:20px;height:20px}
 #main #mapView.atlas-reference-wall .ref-brand-links b{font-size:11px!important}
 #main #mapView.atlas-reference-wall .ref-brand-links small{display:none}
}
@media(max-width:1100px){
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats{height:auto!important}
 #main #mapView.atlas-reference-wall .ref-wall-stats .ref-brand-links{grid-column:1/-1;border-top:1px solid #246078;padding:8px 10px}
 #main #mapView.atlas-reference-wall .ref-brand-links a{min-height:43px}
}

@media(min-width:801px){
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats .ref-progress{height:4px!important;margin-top:3px!important;flex:none}
 body[data-access=public][data-public-navigation=shared] #main #mapView.atlas-reference-wall .ref-wall-stats blockquote b{font-size:12px!important;margin-top:3px!important}
}
