:root{--bg:#0a1c27;--panel:#0d2530;--panel2:#122f39;--fg:#eff8f5;--muted:#95b2b3;--line:#29424b;--accent:#f6a84d;--teal:#1fcbaa}
*{box-sizing:border-box}html,body{margin:0;height:100%;width:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--fg)}
button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:2px solid #fed47b;outline-offset:3px}
a{color:inherit}.shell{height:100dvh;min-height:600px;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}
.topbar{height:60px;flex:0 0 60px;background:#091a23;border-bottom:1px solid #22424d;display:flex;align-items:center;padding:0 27px;gap:19px;z-index:3}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none}.brand img{object-fit:contain}.brand strong{font-weight:790;font-size:18px;letter-spacing:-.045em}.brand-divider{height:23px;width:1px;background:#4a6068}.app-name{font-size:12px;font-weight:700;letter-spacing:.018em;color:#bed5d5}
.top-right{margin-left:auto;display:flex;align-items:center;gap:25px}.top-right a{font-size:12px;color:#acc6c5;text-decoration:none}.top-right a:hover{text-decoration:underline}
.live-status{font-size:10px;font-weight:750;letter-spacing:.09em;color:#8de5cb;display:flex;align-items:center;gap:8px}.live-status i{width:7px;height:7px;background:#25deb4;border-radius:100%;box-shadow:0 0 0 4px #25deb425}
.body{flex:1;display:grid;grid-template-columns:355px minmax(0,1fr);min-height:0}
.sidebar{background:linear-gradient(160deg,#102b35,#0b212e);border-right:1px solid #31515a;padding:27px 23px 20px;overflow:auto;scrollbar-width:thin;scrollbar-color:#35535b transparent;min-width:0;overscroll-behavior:contain}
.eyebrow{font-size:10px;letter-spacing:.15em;color:#88d5b7;font-weight:800;display:flex;gap:8px;align-items:center}.sun-dot{font-size:20px;line-height:.7;color:#ffc264}
h1{font-size:30px;line-height:1.12;letter-spacing:-.044em;margin:16px 0 11px;font-weight:780;max-width:285px}.intro{font-size:12px;line-height:1.65;color:#aac1c3;margin:0 0 22px}
.group,.reading,.method{padding:19px 0;border-top:1px solid #2d4b52}
.group-head,.reading-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:13px}.group-head h2,.method h2{font-size:13px;font-weight:740;margin:0}.group-head>span,.reading-head>span:first-child{color:#779fa3;letter-spacing:.11em;font-size:9px;font-weight:780}
.layers{display:grid;gap:7px}.layer{background:#15333c;border:1px solid #294952;min-height:59px;border-radius:10px;padding:10px;display:flex;align-items:center;text-align:left;gap:10px;color:#e1f2ed;width:100%;transition:background .15s,border-color .15s}
.layer:hover{border-color:#7f9990;background:#1a3b45}
.layer.active{background:linear-gradient(110deg,#21423f,#183c43);border-color:#57b698;box-shadow:inset 3px 0 #ffd073}
.layer-icon{flex:0 0 34px;width:34px;height:34px;border-radius:8px;background:#203e45;color:#78d4c8;display:grid;place-items:center;font-size:21px}.active .layer-icon{background:#4b4833;color:#ffce73}.solar-icon{font-size:24px}
.layer-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.layer-copy strong{font-size:12px;line-height:1.3;font-weight:760}.layer-copy small{font-size:10px;line-height:1.32;color:#91b4b4}.layer-chevron{font-size:21px;color:#7db1a6;margin-right:2px}
.reading{margin-top:1px}.reading-head>span:last-child{font-size:10px;color:#97c3bd}
.reading-primary{background:#143b43;border:1px solid #38615b;border-radius:12px;padding:15px 16px;display:flex;align-items:baseline;justify-content:space-between;gap:9px;min-height:88px}
.reading-primary strong{font-size:34px;font-weight:760;letter-spacing:-.055em;line-height:1.25;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.reading-primary span{font-size:9px;color:#93c2b2;letter-spacing:.06em;font-weight:760;line-height:1.5;text-align:right;max-width:80px}
.reading-secondary{color:#aac2c1;line-height:1.45;font-size:10px;margin-top:10px;min-height:28px}
.reading-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.reading-grid div{padding:11px;background:#16313a;border:1px solid #2b4a51;border-radius:8px;display:flex;flex-direction:column;gap:6px}
.reading-grid small{font-size:10px;color:#7fabb1}.reading-grid strong{font-size:16px;font-variant-numeric:tabular-nums}
.method{padding-bottom:15px}.method h2{margin-bottom:9px}.method p{font-size:11px;line-height:1.6;color:#a6c1c2;margin:0 0 12px}.method p strong{color:#e9f4ef}.method .method-fine{font-size:10px;color:#82a9b0}
.source-state{display:flex;align-items:flex-start;gap:8px;background:#19333d;border:1px solid #38525a;border-radius:8px;padding:11px 10px;margin:12px 0;color:#afc7c6;font-size:10px;line-height:1.55}
#sourceBullet{flex:0 0 7px;height:7px;border-radius:50%;background:#e3bd6e;margin-top:4px}
#sourceBullet.ok{background:#44d5a4}#sourceBullet.err{background:#f28b73}
.source-links{display:flex;justify-content:space-between;gap:12px}.source-links a{font-size:10px;color:#9fcebb;text-decoration:none}.source-links a:hover{text-decoration:underline}
.sidebar-footer{font-size:10px;color:#6f999b;border-top:1px solid #29444e;padding-top:18px;margin-top:12px}.sidebar-footer a{color:#b7d4cb}
.map-panel{position:relative;min-width:0;overflow:hidden;background:#cddad3;isolation:isolate}
#map{position:absolute;inset:0;z-index:1;background:#c2d7d6}#energyCanvas{position:absolute;inset:0;width:100%;height:100%;z-index:410;pointer-events:none;image-rendering:auto}
.map-top{position:absolute;z-index:500;top:18px;left:18px;display:flex;align-items:center;gap:20px;background:#0e2631f2;box-shadow:0 3px 20px #153a3f44;backdrop-filter:blur(10px);border:1px solid #466e69;border-radius:11px;padding:11px 13px;color:#f6f6ed}
.map-top>div{display:flex;flex-direction:column;gap:4px}.eyemark{font-size:9px;font-weight:780;letter-spacing:.12em;color:#91c7b7}.map-top strong{font-size:15px;letter-spacing:-.02em;font-weight:750}
.layer-type{font-size:10px;color:#d6e6d3;border-left:1px solid #426264;padding-left:12px;max-width:112px;line-height:1.4}
.model-badge{position:absolute;z-index:500;top:99px;left:18px;background:#fffffff0;border:1px solid #d3e1db;box-shadow:0 3px 10px #17363622;border-radius:7px;padding:8px 12px;color:#356056;font-size:10px;max-width:320px;line-height:1.3}
.map-legend{position:absolute;z-index:500;right:20px;bottom:151px;background:#102c34e8;color:#f0f7f0;border:1px solid #607b72;border-radius:11px;box-shadow:0 7px 30px #112c3840;min-width:220px;width:250px;padding:13px 15px;backdrop-filter:blur(7px)}
.legend-title{display:flex;justify-content:space-between;gap:12px;align-items:baseline;font-size:11px;font-weight:750;margin-bottom:9px}.legend-title b{font-size:10px;font-weight:550;color:#d3dbd2}
.legend-gradient{height:13px;border-radius:3px;background:linear-gradient(90deg,#122735,#9f5b7d,#ee704a,#ffd472)}
.legend-scale{display:flex;justify-content:space-between;font-size:10px;color:#bdcfd0;margin-top:7px;font-variant-numeric:tabular-nums}
.timebar{position:absolute;left:18px;right:18px;bottom:48px;z-index:530;display:flex;align-items:center;gap:13px;padding:12px 17px;background:#0c2630f2;color:#eff7ed;border:1px solid #54736c;border-radius:12px;box-shadow:0 8px 30px #102b3850;backdrop-filter:blur(12px)}
.time-first{flex:0 0 195px;display:flex;flex-direction:column;gap:3px}.time-kicker{font-size:9px;color:#9bc3b4;letter-spacing:.09em;font-weight:760}.time-first strong{font-size:15px;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.time-first small{font-size:10px;color:#c0cfc9}
.icon-button,.now-button{border:1px solid #658a85;border-radius:8px;flex-shrink:0;color:#e5fff2;background:#205147;height:36px;padding:0 13px;font-weight:800}.icon-button:hover,.now-button:hover{background:#34735b}.icon-button{font-size:15px;min-width:42px}
#timeSlider{flex:1;min-width:0;accent-color:#ffbc66;cursor:ew-resize}
.now-button{letter-spacing:.08em;font-size:10px}
.map-bottom{position:absolute;z-index:480;left:16px;right:16px;bottom:7px;display:flex;align-items:center;justify-content:space-between;gap:10px;pointer-events:none;color:#214841;font-size:9px}
.map-bottom span{background:#ffffffdb;border-radius:5px;padding:5px 7px;max-width:60%}.map-bottom a{pointer-events:auto;text-decoration:none}
.leaflet-control-zoom{border:1px solid #9daead!important;box-shadow:0 3px 10px #142f3130!important;border-radius:8px!important;overflow:hidden}
.leaflet-control-zoom a{color:#174c4a!important}
.leaflet-control-scale-line{border-color:#355c5a!important;background:#fffffff0!important;color:#214e4b!important;font-size:9px!important}
.leaflet-control-attribution{display:none!important}
@media(max-width:1040px){.body{grid-template-columns:312px minmax(0,1fr)}.sidebar{padding:22px 18px}.map-top{top:11px;left:10px}.model-badge{left:10px;top:86px}.time-first{flex-basis:140px}.map-legend{width:210px}}
@media(max-width:720px){.shell{min-height:0;height:100dvh}.topbar{height:54px;flex-basis:54px;padding:0 13px;gap:10px}.brand strong{font-size:16px}.app-name{font-size:11px}.top-right{gap:7px}.live-status{display:none}.top-right a{font-size:10px}
.body{display:flex;flex-direction:column-reverse}.map-panel{height:55dvh;min-height:290px;flex-shrink:0}.sidebar{flex:1;min-height:0;overflow:auto;padding:17px 18px;border-right:0;border-top:1px solid #31545b}
h1{font-size:24px;margin:9px 0 7px}.intro{font-size:11px;margin-bottom:13px}.group,.reading,.method{padding:15px 0}.layers{display:grid;grid-template-columns:1fr 1fr;gap:6px}.layer{min-height:62px;padding:8px 6px;gap:6px}.layer-icon{width:23px;flex-basis:23px;height:25px;font-size:16px}.layer-copy strong{font-size:10px}.layer-copy small{font-size:9px}.layer-chevron{display:none}
.map-top{top:8px;left:7px;gap:8px;padding:7px 9px}.eyemark{font-size:8px}.map-top strong{font-size:12px}.layer-type{font-size:8px;max-width:85px}
.model-badge{top:63px;left:7px;font-size:9px;padding:5px 7px;max-width:190px}
.timebar{left:7px;right:7px;bottom:32px;padding:7px;gap:8px}.time-first{flex:0 0 95px}.time-first strong{font-size:12px}.time-kicker{font-size:8px}.time-first small{font-size:9px}.icon-button,.now-button{height:31px;padding:0 9px}.icon-button{min-width:28px;font-size:11px}
.map-legend{bottom:101px;right:7px;width:160px;min-width:0;padding:8px}.legend-title{font-size:9px;margin-bottom:4px}.legend-gradient{height:9px}.legend-scale{font-size:8px}
.map-bottom{bottom:1px;left:3px;right:3px;font-size:8px}.map-bottom span:first-child{display:none}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Geographical basemap must stay visible beneath solar/meteorological tint. */
[hidden]{display:none!important}
.basemap-status{position:absolute;z-index:530;left:18px;top:152px;background:#fff6de;color:#5a4b22;border:1px solid #dcc67e;border-radius:8px;padding:8px 12px;max-width:300px;box-shadow:0 4px 12px #1c39352b;font-size:11px;line-height:1.4}
@media(max-width:720px){.basemap-status{left:7px;top:110px;font-size:9px;max-width:190px;padding:6px 9px}}


/* Follows the pointer independently of Leaflet popup layers. All units are
   shown at the exact hovered geographic location and source-labelled. */
.hover-readout{position:absolute;z-index:620;pointer-events:none;min-width:148px;max-width:230px;padding:10px 12px 11px;border-radius:10px;background:rgba(8,34,42,.96);border:1px solid #79b3a6;box-shadow:0 7px 23px #09273166;color:#f6fff9;display:flex;flex-direction:column;gap:5px;font-variant-numeric:tabular-nums;backdrop-filter:blur(8px);white-space:normal;transform:translate3d(0,0,0)}
.hover-readout[hidden]{display:none!important}
.hover-label{text-transform:uppercase;letter-spacing:.065em;font-size:9px;font-weight:780;color:#a4ddcd}
.hover-quantity{display:flex;align-items:baseline;gap:7px;max-width:100%}
.hover-quantity strong{font-size:25px;font-weight:800;letter-spacing:-.04em;line-height:1.1;white-space:nowrap}
.hover-quantity b{font-size:12px;font-weight:700;color:#ffd187;white-space:nowrap}
.hover-source{font-size:10px;line-height:1.45;color:#b7d6cf;max-width:190px}
@media(max-width:720px){.hover-readout{min-width:120px;max-width:176px;padding:8px 9px}.hover-quantity strong{font-size:21px}.hover-source{font-size:9px}.hover-label{font-size:8px}}

/* Evidence-first review: show source times and observation gaps directly on map. */
.science-note{position:absolute;z-index:520;top:151px;left:18px;max-width:375px;border-radius:9px;background:#fffdf0f2;border:1px solid #d8c482;box-shadow:0 4px 16px #142e3433;color:#4b4630;padding:10px 12px;font-size:11px;font-weight:560;line-height:1.55;pointer-events:none}
.science-note[hidden],.compare-button[hidden]{display:none!important}
.compare-button{flex:0 0 auto;min-height:36px;border:1px solid #9ccbb1;border-radius:8px;background:#264e47;color:#ddfbea;font-size:10px;font-weight:790;letter-spacing:.035em;padding:0 11px;max-width:142px;line-height:1.25}
.compare-button:hover{background:#366e57}
.compare-button[aria-pressed="true"]{background:#c3f1df;border-color:#63b897;color:#064335}
.timebar input:disabled{opacity:.45;cursor:not-allowed}
.timebar button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:1040px){.science-note{left:10px;top:143px;max-width:315px;font-size:10px}.compare-button{max-width:108px;font-size:9px;padding:0 7px}}
@media(max-width:720px){.science-note{left:7px;top:101px;max-width:205px;padding:7px 8px;font-size:9px;line-height:1.3}.compare-button{max-width:90px;min-height:31px;padding:0 5px;font-size:8px}}

/* 26 Oct usability pass: progressive disclosure, map-first viewport, fixed data clocks. */
.body{grid-template-columns:322px minmax(0,1fr)}
.topbar{height:54px;flex-basis:54px;padding:0 20px}
.sidebar{padding:22px 17px 16px}
.sidebar h1{font-size:24px;line-height:1.16;max-width:none;margin:0 0 7px;letter-spacing:-.037em}
.intro{font-size:11px;line-height:1.48;margin:0 0 17px;color:#acc6c4}
.group,.reading,.method{padding:13px 0}
.group-head,.reading-head{margin-bottom:9px}
.group-head h2{font-size:13px}
.group-head>span{text-transform:uppercase}
.layers{gap:5px}
.layer{min-height:51px;border-radius:8px;padding:7px 10px;gap:9px}
.layer.active{box-shadow:inset 3px 0 #ffc773;background:#193c41}
.layer-icon{width:31px;flex-basis:31px;height:31px;font-size:19px}
.layer-copy{gap:1px}
.layer-copy strong{font-size:12px;line-height:1.3}
.layer-copy small{font-size:10px;line-height:1.2}
.layer-chevron{font-size:16px;opacity:.72}
.layer:active{transform:translateY(1px)}
.science-note{position:static;z-index:auto;box-shadow:none;max-width:none;border:none;border-left:2px solid #78c3a7;border-radius:0;background:transparent;color:#b5cec8;padding:7px 4px 7px 10px;margin:8px 1px 9px;font-size:10px;line-height:1.5;pointer-events:auto}
.science-note[hidden]{display:none!important}
.reading{padding-top:12px}
.reading-head>span:first-child{font-size:10px;color:#b2d7d0;letter-spacing:.01em;font-weight:720}
.reading-head>span:last-child{font-size:10px}
.reading-primary{border:1px solid #31585a;background:#13343e;padding:10px 12px;min-height:64px;border-radius:9px}
.reading-primary strong{font-size:30px}
.reading-primary span{max-width:108px;font-size:10px;letter-spacing:0}
.reading-secondary{font-size:10px;margin-top:6px;min-height:0;color:#9dbbbb}
.secondary-readings{margin-top:10px}
.secondary-readings summary,.method>summary{cursor:pointer;list-style:none;color:#bed8d1;font-size:11px;font-weight:670;padding:8px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.secondary-readings summary::-webkit-details-marker,.method>summary::-webkit-details-marker{display:none}
.secondary-readings summary::after,.method>summary::after{content:"⌄";color:#89a8a5;font-size:14px;transition:transform .15s}
.secondary-readings[open] summary::after,.method[open]>summary::after{transform:rotate(180deg)}
.secondary-readings summary:hover,.method>summary:hover{color:#fff}
.reading-grid{margin-top:6px;gap:7px}
.reading-grid div{padding:8px}
.reading-grid strong{font-size:14px}
.method{padding:6px 0 13px}
.method>summary{border-top:1px solid #2b4850;padding:12px 0}
.method>p,.method>.source-state,.method>.source-links{margin-top:10px}
.method>p{font-size:10px}
.model-badge{position:static;z-index:auto;background:transparent;box-shadow:none;border:0;border-top:1px solid #24454a;border-radius:0;max-width:none;color:#94bbb4;font-size:10px;padding:9px 0 2px;margin:1px 0 0;line-height:1.45}
.model-badge[hidden]{display:none!important}
.sidebar-footer{padding-top:12px;margin-top:1px}
.map-top{top:14px;left:14px;gap:0;padding:9px 12px;border-radius:8px}
.map-top .eyemark{display:none}
.map-top strong{font-size:12px;letter-spacing:0}
.map-top .layer-type{display:none!important}
.map-top[hidden]{display:none!important}
.map-legend{bottom:102px;right:14px;width:205px;min-width:0;padding:10px 11px;border-radius:9px}
.legend-title{font-size:10px;margin-bottom:7px}
.legend-gradient{height:10px}
.legend-scale{font-size:9px}
.timebar{left:14px;right:14px;bottom:27px;border-radius:10px;padding:9px 13px;gap:12px;min-height:60px;box-shadow:0 6px 17px #0b253a55}
.time-first{flex:0 0 167px;gap:2px}
.time-first strong{font-size:14px}
.time-first small{font-size:9px;line-height:1.3}
.compare-button{max-width:129px;min-height:34px;padding:0 10px}
.icon-button,.now-button{height:34px}
.timebar.static-mode{width:max-content;max-width:calc(100% - 28px);right:auto;min-width:245px;bottom:21px;min-height:0;padding:10px 14px}
.timebar.static-mode .time-first{flex-basis:auto}
.timebar [hidden]{display:none!important}
.map-bottom{bottom:5px;justify-content:flex-end;font-size:8px}
.map-bottom span{max-width:none;background:#ffffffc9;padding:3px 5px}
.map-panel,#map{background:#b0d0d9}
.basemap-status{top:48px;left:14px}
@media(max-width:1040px){
 .body{grid-template-columns:292px minmax(0,1fr)}
 .sidebar{padding:18px 13px}
 .map-legend{width:180px}
 .time-first{flex-basis:136px}
 .timebar{gap:8px}
 .compare-button{max-width:105px;font-size:9px}
}
@media(max-width:720px){
 .topbar{height:52px;flex-basis:52px;padding:0 10px}
 .body{display:flex;flex-direction:column-reverse}
 .map-panel{height:54dvh;min-height:295px}
 .sidebar{padding:15px 15px 20px}
 .sidebar h1{font-size:22px}
 .intro{margin-bottom:9px}
 .group,.reading{padding:11px 0}
 .layers{grid-template-columns:1fr 1fr;gap:6px}
 .layer{min-height:52px;padding:6px 7px}
 .layer-icon{width:24px;height:26px;flex-basis:24px;font-size:16px}
 .layer-copy strong{font-size:10px}
 .layer-copy small{font-size:9px}
 .layer-chevron{display:none}
 .science-note{font-size:10px;margin:4px 0 7px}
 .reading-primary{min-height:57px}
 .reading-primary strong{font-size:26px}
 .map-top{top:7px;left:7px;padding:7px 9px}
 .map-top strong{font-size:10px}
 .map-legend{bottom:83px;right:7px;width:150px;padding:7px 9px}
 .timebar{left:7px;right:7px;bottom:21px;padding:6px 8px;gap:6px;min-height:49px}
 .time-first{flex:0 0 87px}
 .time-first strong{font-size:11px}
 .time-first small{font-size:8px;max-width:88px}
 .time-kicker{font-size:7px}
 .icon-button,.now-button{height:30px;padding:0 7px;font-size:10px}
 .icon-button{min-width:27px}
 .compare-button{max-width:76px;font-size:8px;min-height:30px;padding:0 4px}
 .timebar.static-mode{max-width:calc(100% - 14px);min-width:188px;bottom:20px;left:7px}
 .timebar.static-mode .time-first{flex-basis:auto}
 .map-bottom{bottom:2px}
}
@media(prefers-reduced-motion:reduce){.layer:active{transform:none}}

.model-badge.stale{color:#f3c38c;border-top-color:#946747}


/* NASA observations: offer recent single-day imagery or higher-coverage clear-sky mean. */
.satellite-choices{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:9px 0 0}
.satellite-choices[hidden]{display:none!important}
.satellite-choices button{min-height:35px;border:1px solid #41666b;border-radius:7px;background:#16323a;color:#bbd3cb;font-size:11px;font-weight:700;cursor:pointer}
.satellite-choices button.selected{color:#f2fff9;background:#245148;border-color:#80c7ad;box-shadow:inset 0 0 0 1px #80c7ad55}
.satellite-choices button:hover{border-color:#96e0ba}
@media(max-width:720px){.satellite-choices button{min-height:32px;font-size:10px}}
