/* Shared reading, focus, motion and responsive defaults. */
:root{--muted:#4d6056}
html{scroll-padding:1rem}
:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #0767aa;outline-offset:4px;box-shadow:0 0 0 2px #fffefa}
:where(.planet-page,.space-stage,.power-lab,.forecast-console) :focus-visible{outline-color:#edff69;box-shadow:0 0 0 2px #10232b}
#main:focus{outline:none}
.skip{z-index:1000;min-height:44px;color:#101a1b}
.motion-toggle{padding:.5rem .65rem;border:1px solid #65766b;background:transparent;color:#101a1b;font-size:.8rem;min-height:44px;white-space:normal}
.brand{flex-shrink:0}.brand span{white-space:nowrap}header nav a{white-space:nowrap}
html[data-motion="paused"] *,html[data-motion="paused"] *::before,html[data-motion="paused"] *::after{animation-play-state:paused!important;scroll-behavior:auto!important}
button,input,select,summary{font:inherit}
button,summary{min-height:28px}
input[type=checkbox]{min-width:24px;min-height:24px}
input[type=range]{min-height:32px}
a{overflow-wrap:anywhere}
.prose :where(p,li) a,.small a,.source-note a{ text-decoration:underline;text-underline-offset:.18em }
.prose :where(p,li),.gear-description,.guide-card p{font-size:1rem}
.small{font-size:.875rem}
.tool-explainer{padding:4rem 4%;display:grid;grid-template-columns:1fr 1.8fr;gap:3rem;border-top:1px solid #62766b;background:#f1f3ec;color:#101a1b}
.tool-explainer h2{font-size:clamp(2rem,4vw,3.4rem)}
.tool-explainer h3{font:600 1.3rem/1.4 var(--body);margin-bottom:1rem}
.tool-explainer .prose p{color:#354b40}
.related-tools{padding:1.5rem;background:#e1e8d9}
.map-coordinate-form{display:flex;align-items:end;gap:.75rem;flex-wrap:wrap;margin:1rem 0;color:#dce8e5}
.map-coordinate-form{background:#102832;padding:1rem;border:1px solid #627e87}
.map-coordinate-form label{flex:1;min-width:7rem}
.map-coordinate-form input{background:#18343e;color:#f3f7ed;border:1px solid #8aa7ac}
.map-coordinate-form button,.report-pages button{padding:.65rem 1rem;min-height:44px;border:1px solid #8aa7ac;background:#18343e;color:#f3f7ed}
.map-coordinate-form p{flex-basis:100%;margin:0;color:#c8dedb;font-size:.875rem}
.report-pages{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.8rem 0;color:#dbe9e5;font-size:.875rem}
.report-pages span{flex:1}
.planet-intelligence .planet-fire-help,.planet-quake-help{font-size:.875rem;color:#c5d8d3}
.planet-fire-list button span{font-size:.8rem}
.planet-readout{font-size:.8rem;overflow-wrap:anywhere}
.space-events button:focus-visible{outline-color:#edff69}
.table-scroll{overflow:auto;max-width:100%}
.day-temps span,.day-interval,.forecast-method,.forecast-source{color:#4b5b43!important}.day-interval,.forecast-method,.forecast-source{font-size:.8rem!important}
.forecast-day[aria-pressed="true"] .day-temps span,.forecast-day[aria-pressed="true"] .day-interval{color:#3b4b34!important}
.rd-check:has(input:checked){opacity:1}
.check-row:has(input:checked) strong,.rd-check:has(input:checked) small{color:#4d6056}
.planet-footnote>p,.space-method p{color:#c6d8cf}
.planet-page .planet-layer-about p,.planet-page .planet-footnote details p{color:#c6d8cf!important}
.art-label,.art-caption{background:#102329;padding:.65rem;color:#fff}
@media(max-width:1400px){header .header-cta{display:none}}
@media(max-width:1100px){header{gap:12px}nav{gap:12px}nav a{font-size:.875rem}.motion-toggle{margin-left:auto}}
@media(min-width:761px) and (max-width:1100px){header{position:relative}.menu{display:block;background:none;border:1px solid;padding:8px 16px}nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--paper);z-index:20;padding:20px 5%;border-bottom:1px solid;flex-direction:column;gap:3px}nav.open{display:flex}}
@media(max-width:760px){.tool-explainer{grid-template-columns:1fr;padding:2.5rem 5%;gap:1rem}header{height:auto;min-height:85px;flex-wrap:wrap;padding-block:12px}.motion-toggle{font-size:.75rem;max-width:110px}nav{top:100%;max-height:70vh;overflow:auto}.topline,.hero-foot{white-space:normal}.page-head h1{overflow-wrap:anywhere}.space-workbench,.readiness-shell,.forecast-console{min-width:0}.control-bar{max-width:100%}.forecast-periods{min-width:0}.report-pages{font-size:.8rem}.map-coordinate-form label{min-width:6rem}}
@media(forced-colors:active){:focus-visible{outline:3px solid Highlight!important;box-shadow:none!important}.progress-track,.rd-ring-fill{forced-color-adjust:auto}button,input,select{border:1px solid ButtonText}}
@media print{.motion-toggle{display:none}}

.index-number{color:#607453}

.update-toggle{background:transparent;border:1px solid #65766b;padding:.65rem;color:#101a1b;text-align:left;font-size:.875rem;min-height:44px}

footer>div>a{min-height:32px;margin-bottom:.5rem}

.planet-postal{padding:16px 20px;background:#102832;border-bottom:1px solid #3c5660;color:#e4efea}
.planet-postal-fields{display:grid;grid-template-columns:minmax(140px,1fr) minmax(150px,1.3fr) auto;gap:12px;align-items:end}
.planet-postal label{display:block;font-size:.875rem;font-weight:600}
.planet-postal input,.planet-postal select{display:block;width:100%;min-height:44px;padding:9px 12px;margin-top:5px;border:1px solid #8aa7ac;background:#18343e;color:#f3f7ed}
.planet-postal input::placeholder{color:#b9cdc9;opacity:1}
.planet-postal button{min-height:44px;padding:10px 18px;border:1px solid #e5fa75;background:#e5fa75;color:#10232b;font-weight:650}
.planet-postal button:disabled{background:#c7d690;cursor:wait}
.planet-page .planet-postal p{color:#c8dedb!important;font-size:.8rem;line-height:1.6;margin:10px 0 0}
.planet-postal #planet-postal-status:empty{display:none}
.planet-postal [hidden]{display:none!important}
.planet-postal #planet-postal-places-label{margin-top:12px}
@media(max-width:600px){.planet-postal{padding:14px}.planet-postal-fields{grid-template-columns:1fr 1fr}.planet-postal button{grid-column:1/-1}.planet-postal-fields label{min-width:0}}

/* Mode changes must not interpolate through low-contrast foreground/background pairs. */
.planet-page .planet-mode-tabs button{transition:none}

/* Keep attribution and overlay text readable over bright map tiles and error states. */
.planet-page .maplibregl-ctrl.maplibregl-ctrl-attrib{background:#102734;color:#d6e6e6}
.planet-page .maplibregl-ctrl.maplibregl-ctrl-attrib a{color:#d6e6e6}
.planet-page .maplibregl-ctrl-attrib-button{background-color:#d6e6e6}
.planet-page .planet-map-heading{background:#081820}
.planet-page #planet-motion-note{background:#081820;padding:4px 8px}
.local-weather-page #forecast-days>p{color:#d3e0e4}

.power-search select{width:100%;min-width:0;min-height:48px;padding:12px;border:1px solid #65776a;background:#fffef8;color:#18352b;font:inherit}
