/* Phase 1: urgent election access and truthful loading states. Uses existing theme tokens. */
.home-next-up{margin:0 0 26px;padding:20px 24px;border:1px solid var(--piq-border,#cbd4d8);border-left:4px solid var(--piq-accent,#d71938);border-radius:10px;background:var(--piq-glass,#fff);color:var(--piq-ink,#11212d)}
.next-up-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.next-up-label{font:600 12px system-ui;color:var(--piq-muted,#4a5c6a)}.home-next-up h2{display:inline;font:500 28px Georgia,serif;margin:0 14px}.next-up-heading time{font:13px system-ui}.next-up-clock{font:13px system-ui;font-variant-numeric:tabular-nums;text-align:right}.next-up-clock b{font-size:23px;margin-left:8px}.next-up-clock small{display:block;margin-top:5px;color:var(--piq-muted,#4a5c6a);font-size:11px}.next-up-races{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0}.next-up-races>a{display:block;border-top:1px solid var(--piq-border,#cbd4d8);padding-top:8px;color:inherit;text-decoration:none}.next-up-races strong{display:block;font:600 13px system-ui;margin-bottom:5px}.next-up-races>a>span{display:block;font:12px/1.5 system-ui;overflow-wrap:anywhere}.next-up-links{display:flex;flex-wrap:wrap;gap:10px}.next-up-links a{display:inline-flex;align-items:center;min-height:44px;padding:9px 14px;border:1px solid var(--piq-border,#cbd4d8);border-radius:6px;font:600 12px/1.4 system-ui;text-decoration:none;color:var(--piq-ink,#11212d);background:var(--piq-input,#fff)}.next-up-links a:first-child{background:var(--piq-ink,#11212d);color:var(--piq-bg,#f3f5f5)}.next-up-note{font:11px/1.5 system-ui;color:var(--piq-muted,#4a5c6a);margin:10px 0 0}.next-up-note a{color:inherit}
.outlook-calibration{display:inline-block!important;align-self:flex-start;max-width:100%;border:1px solid var(--piq-border,#cbd4d8);border-radius:5px;padding:5px 7px;font:500 11px/1.4 system-ui!important;color:var(--piq-ink,#11212d)!important;background:var(--piq-input,#fff);text-decoration:underline;text-underline-offset:3px;margin:3px 0 7px;white-space:normal}
.piq-skeleton{display:block;width:min(100%,18rem);min-width:3rem;height:1.15em;min-height:16px;background:var(--piq-border,#dce3e8);border-radius:4px;opacity:.7;margin:5px 0}.us-race-list[aria-busy="true"]>.piq-skeleton,#race-detail[aria-busy="true"]>.piq-skeleton{height:160px;width:100%}.home-next-up[hidden],.next-up-clock [hidden]{display:none!important}.home-next-up a:focus-visible,.outlook-calibration:focus-visible{outline:2px solid currentColor;outline-offset:4px}
/* Keep urgent Next up visible without replacing the existing map or its controls. */
@media(min-width:1001px){body[data-has-next-up] .world-atlas{padding:14px!important;margin-top:12px;margin-bottom:16px;gap:18px;max-height:320px;grid-template-columns:minmax(230px,.65fr) minmax(0,1.85fr)}body[data-has-next-up] .world-intro h1{font-size:30px!important;margin:6px 0}body[data-has-next-up] .world-intro>p{font-size:11px;line-height:1.4;margin:5px 0 8px}body[data-has-next-up] .world-desk-list{max-height:64px}body[data-has-next-up] .world-list-heading{margin:6px 0 3px}body[data-has-next-up] .world-map-top,body[data-has-next-up] .world-map-bottom{padding:5px 12px}body[data-has-next-up] .world-map{height:165px;min-height:0;aspect-ratio:auto}body[data-has-next-up] .world-map-shell{min-height:0}body[data-has-next-up] .world-map-toolbar{padding-bottom:4px}body[data-has-next-up] .world-map-viewport{padding-bottom:50px}body[data-has-next-up] .world-country-preview{padding:5px 10px;bottom:3px}.home-next-up{padding:14px 20px}.next-up-races{margin:10px 0}.next-up-note{margin-top:6px}}
@media(max-width:700px){.home-next-up{padding:16px}.next-up-heading{align-items:flex-start;flex-direction:column;gap:12px}.home-next-up h2{display:block;margin:4px 0;font-size:28px}.next-up-clock{text-align:left}.next-up-clock b:first-child{margin-left:0}.next-up-races{grid-template-columns:1fr;gap:9px;margin:12px 0}.next-up-links{display:grid;grid-template-columns:1fr}.next-up-links a{justify-content:center}.next-up-note{font-size:11px}body[data-has-next-up] .world-intro h1{font-size:30px!important;margin:6px 0}body[data-has-next-up] .world-intro>p{margin:6px 0}body[data-has-next-up] .world-desk-list{max-height:60px}body[data-has-next-up] .world-map-shell{min-height:220px}body[data-has-next-up] .world-map{min-height:160px;height:160px}body[data-has-next-up] .world-map-top,body[data-has-next-up] .world-map-bottom{padding:7px 10px}body[data-has-next-up] .world-atlas{gap:10px!important;margin-block:12px}}

html[data-resolved-theme="dark"] .next-up-links a:first-child{background:#e8edf1!important;color:#11212d!important}
.midterm-person-caption strong,.midterm-mini-match strong{overflow-wrap:anywhere;font-size:clamp(18px,2.2vw,32px)!important;line-height:1.1!important}

/* Natural grid height prevents translated controls or the map overflowing Next up. */
@media(min-width:1001px){body[data-has-next-up] .world-atlas{max-height:none!important;padding:10px!important;gap:16px}body[data-has-next-up] .world-map{height:115px!important}body[data-has-next-up] .world-map-viewport{padding-bottom:0!important}body[data-has-next-up] .world-map-top{padding:3px 10px}body[data-has-next-up] .world-map-toolbar{padding:2px 10px}body[data-has-next-up] .world-desk-list{max-height:40px}body[data-has-next-up] .world-intro h1{font-size:28px!important;line-height:1.02}body[data-has-next-up] .masthead .mast-row{padding-block:8px!important}body[data-has-next-up] .masthead .wordmark{font-size:54px!important}body[data-has-next-up] .world-country-preview{bottom:0;z-index:2}}
