:root{font-family:system-ui,"Microsoft JhengHei",sans-serif;color:#dce7ef;background:#080f18;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(at 25% 0,#163444,transparent 65%)}a{color:#74d5d3}header{max-width:1680px;margin:auto;padding:30px 32px 18px}header>a{float:right;font-size:13px}header>span,small{font-family:ui-monospace,monospace;letter-spacing:1px;color:#8eb6c8}h1{font-size:30px;font-weight:500;margin:20px 0 8px}h2{font-weight:500;font-size:20px}p{line-height:1.7;color:#a5b9c8}main{max-width:1680px;margin:auto;display:grid;grid-template-columns:235px minmax(0,1fr);gap:22px;padding:12px 32px}aside,article{min-width:0}aside>h2{padding-left:12px;font-size:15px;color:#8eb6c8}nav{display:grid;gap:4px;margin-bottom:18px}button,select{font:inherit;color:inherit;background:#152636;border:1px solid #334c5d;border-radius:7px;padding:10px;cursor:pointer}nav button{text-align:left;padding:14px 12px;border-color:transparent;background:#10202c}nav button.active{background:#236872;color:white;border-color:#68cbd1}button:hover{border-color:#7bcfd1}select{width:100%;margin-top:7px;font-size:13px}section{padding:16px;background:#101d2a;border:1px solid #2b4152;border-radius:10px;margin-bottom:15px}label{display:block;margin:0 0 16px;font-size:13px}input{accent-color:#57c9cf}input[type=range]{width:100%;margin-top:12px}fieldset{border:0;margin:18px 0;padding:0}legend{font-size:12px;color:#9bb7c8;margin-bottom:12px}fieldset label{display:inline-block;margin-right:8px}#refresh,#fit{width:100%;margin-bottom:16px}.hint{font-size:12px;line-height:1.8;color:#96abba}.summary{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:14px 0}.summary h2{font-size:25px;margin:8px 0}.summary p{font-size:13px;margin:0}.metric{text-align:right}.metric small{display:block;font-size:10px}.metric strong{display:block;font-size:25px;font-weight:400;margin-top:8px}#status{font-size:13px;background:#112333;padding:9px 12px;border-radius:7px;min-height:40px}#status.error{color:#ffb8a2}#map{height:650px;border:1px solid #3b5364;border-radius:10px;background:#dce2e6}#chart-wrap{background:#e9edef;border-radius:10px;padding:8px}#chart{display:block;width:100%;height:auto;min-height:250px;object-fit:contain}#chart-wrap p{margin:8px;color:#234}#chart-wrap a{color:#215b7c}.legend{display:flex;flex-wrap:wrap;gap:15px;padding:16px 0;font-size:12px}.legend span{display:flex;align-items:center;gap:7px}.legend i{width:12px;height:12px;border:2px solid var(--c);border-radius:50%}.sources{margin-top:25px}.sources h2{font-size:16px}.sources p{font-size:12px}footer{text-align:center;color:#8093a4;padding:30px;font-size:12px}.grid-label{color:#647987;font:10px monospace;white-space:nowrap}.navy-basemap .grid-label{color:#93abbc}.leaflet-popup-content{font:13px/1.8 system-ui;color:#173041}.storm-start{color:#123;font:12px system-ui;white-space:nowrap;text-shadow:0 0 4px white}.navy-basemap .storm-start{color:white;text-shadow:0 0 4px black}[hidden]{display:none!important}@media(min-width:1550px){#map{height:740px}}@media(max-width:850px){main{grid-template-columns:1fr;padding:10px 16px}header{padding:24px 16px 8px}nav{grid-template-columns:repeat(2,minmax(0,1fr))}nav button{font-size:12px}aside{display:grid;grid-template-columns:1fr 1fr;gap:12px}aside>h2,nav{grid-column:1/-1}aside>section{margin:0}#map{height:580px}.summary h2{font-size:20px}.metric strong{font-size:19px}}@media(max-width:480px){aside{display:block}aside>section{margin-bottom:12px}#map{height:520px}.summary{align-items:start}.metric{max-width:100px}.summary h2{font-size:18px}}

input[type=file]{display:block;width:100%;font-size:11px;margin-top:10px;color:#a6bfcd}input[type=file]::file-selector-button{padding:7px;border:1px solid #46616d;border-radius:5px;background:#243c4a;color:#dce7ef;font:inherit;margin-bottom:8px}

.forecast-figure{--paper:#f8fafb;--ink:#172631;--key-bg:#f7fafce0;margin:16px 0;background:var(--paper);color:var(--ink);padding:12px 12px 9px 4px;border:1px solid #7793a3;border-radius:0}.forecast-figure[data-theme=DARK]{--paper:#0c1d2b;--ink:#e1ecf1;--key-bg:#102433dd}.forecast-figure figcaption{padding:0 0 8px 42px;font:400 16px/1.5 system-ui}.figure-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:13px}.plot-area{position:relative;padding-left:42px;padding-bottom:28px}.plot-area #map{height:680px;border:1px solid #6e8594;border-radius:0}#axis-lat{position:absolute;left:0;top:0;width:38px;pointer-events:none;font:11px/1.2 system-ui}#axis-lat span{position:absolute;right:2px;transform:translateY(-50%);white-space:nowrap}#axis-lon{position:absolute;left:0;bottom:0;width:100%;height:24px;pointer-events:none;font:11px/1.2 system-ui}#axis-lon span{position:absolute;top:5px;transform:translateX(-50%);white-space:nowrap}.plot-key{position:absolute;z-index:450;left:54px;top:12px;display:flex;flex-direction:column;gap:5px;padding:9px 10px;background:var(--key-bg);font:400 11px/1.2 system-ui;color:var(--ink);pointer-events:none}.plot-key span{display:flex;align-items:center;gap:8px}.plot-key i{width:10px;height:10px;display:inline-block;border:2px solid var(--c);border-radius:50%}.figure-credit{font-size:11px;line-height:1.6;padding-left:42px;color:var(--ink)}.system-center{color:#111;text-align:center;font:400 11px/16px system-ui;white-space:nowrap;text-shadow:-1px -1px 1px white,1px 1px 1px white,-1px 1px 1px white,1px -1px 1px white}.system-center .center-cross{font-size:21px;line-height:18px;font-weight:400}.forecast-figure[data-theme=DARK] .system-center,.forecast-figure[data-theme=COLOR] .system-center{color:white;text-shadow:-1px -1px 1px #112433,1px 1px 1px #112433,-1px 1px 1px #112433,1px -1px 1px #112433}@media(max-width:850px){.forecast-figure figcaption{font-size:13px}.plot-area #map{height:590px}.plot-key{font-size:10px;gap:4px}}@media(max-width:480px){.plot-area #map{height:510px}.plot-key{left:48px;top:8px;padding:6px;font-size:9px}.plot-key i{width:8px;height:8px}.forecast-figure{padding-right:5px}.forecast-figure figcaption{font-size:12px}.figure-meta{font-size:11px}.system-center{font-size:10px;line-height:14px}}

.system-center .center-cross{font-size:17px}.center-text{font-weight:400}

.plot-area #map{cursor:default}

.export-controls{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin:12px 0}.export-controls small{font-family:inherit;font-size:12px;letter-spacing:0}button:disabled{opacity:.55;cursor:default}#export-dialog{width:min(1100px,96vw);max-height:94vh;padding:16px;color:#dce7ef;background:#0d1d2a;border:1px solid #557685;border-radius:10px}#export-dialog::backdrop{background:#030c16c9}.export-toolbar{position:sticky;top:-16px;background:#0d1d2a;display:flex;justify-content:space-between;align-items:center;padding:10px 0;z-index:2}#export-dialog p{font-size:13px}#export-image{display:block;width:100%;height:auto;user-select:auto;-webkit-user-select:auto;-webkit-touch-callout:default}#export-save{display:inline-block;padding:10px 15px;border-radius:6px;background:#206775;color:white;text-decoration:none}

.forecast-figure .plot-area #map{width:100%;height:auto!important;min-height:0;aspect-ratio:16/9}.forecast-figure[data-theme=COLOR] .system-center{color:#111;text-shadow:-1px -1px 1px white,1px 1px 1px white,-1px 1px 1px white,1px -1px 1px white}

#figure-viewport{position:relative;width:100%;overflow:hidden;margin:16px 0;height:720px}#forecast-figure{position:absolute;left:0;top:0;width:1100px!important;max-width:none;margin:0;transform-origin:top left;padding:12px 12px 9px 4px}#forecast-figure figcaption{font-size:16px}#forecast-figure .figure-meta{font-size:13px}#forecast-figure .plot-key{left:54px;top:12px;padding:9px 10px;font-size:11px;gap:5px}#forecast-figure .plot-key i{width:10px;height:10px}#forecast-figure .system-center{font-size:11px;line-height:16px}#forecast-figure .figure-credit{font-size:11px;line-height:1.6}#forecast-figure .plot-area #map{width:100%;height:auto!important;min-height:0;aspect-ratio:16/9}

#legend a,#legend a[x-apple-data-detectors],#legend [x-apple-data-detectors]{color:inherit!important;text-decoration:none!important;font:inherit!important;pointer-events:none}

main{max-width:1920px;grid-template-columns:190px minmax(0,1fr) 245px;grid-template-areas:"navigation chart controls";gap:18px;padding:12px 22px}.model-sidebar{grid-area:navigation;display:block}.control-sidebar{grid-area:controls;display:block}main>article{grid-area:chart}.model-category{border:1px solid #2b4152;background:#101d2a;border-radius:9px;overflow:hidden}.model-category summary{cursor:pointer;padding:16px 12px;font-size:14px;color:#dce7ef}.model-category nav{display:grid;grid-template-columns:1fr;gap:0;margin:0}.model-category nav button{border-radius:0;border-top:1px solid #263d4e;font-size:13px}.control-sidebar>h2{padding:0 0 8px;font-size:16px}.control-sidebar section{padding:14px}.control-sidebar fieldset label{margin-right:4px}.control-sidebar #refresh{font-size:13px}@media(max-width:1000px){main{grid-template-columns:175px minmax(0,1fr);grid-template-areas:"navigation controls" "chart chart"}.control-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:12px}.control-sidebar>h2{grid-column:1/-1;margin:0}.control-sidebar>section{margin:0}}@media(max-width:600px){main{padding:10px 12px;grid-template-columns:1fr;grid-template-areas:"navigation" "controls" "chart"}.control-sidebar{display:block}.control-sidebar>section{margin-bottom:12px}.model-category nav{grid-template-columns:1fr}.model-sidebar>h2{padding-left:0}}

.basin-select-label{display:none}#basin-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:16px 0}#basin-buttons button{border-radius:22px;font-size:11px;padding:9px 5px;border-color:#57b9b5;background:transparent}#basin-buttons button[aria-pressed=true]{background:#236872;color:white}#product-controls label{margin-bottom:12px}#product-status{overflow-wrap:anywhere}.plot-key .product-key{display:block;max-width:230px;font-size:10px;line-height:1.5}.figure-credit{white-space:normal}

#reference-figure{margin:16px 0;border:1px solid #547184;border-radius:8px;background:#fff;color:#263641;overflow:hidden}#reference-image{display:block;width:100%;height:auto;-webkit-touch-callout:default}#reference-notice{margin:0;padding:12px 15px;background:#fff2ce;color:#654b13;font-size:13px}#reference-credit{padding:12px 15px;font-size:12px;line-height:1.7}#reference-credit a{color:#226b80}

@media(max-width:1000px){main{grid-template-areas:"chart chart" "navigation controls" "sources sources"}}@media(max-width:600px){main{grid-template-areas:"chart" "navigation" "controls" "sources"}}main>.sources{grid-area:sources}main{grid-template-areas:"navigation chart controls" "sources sources sources"}@media(max-width:1000px){main{grid-template-areas:"chart chart" "navigation controls" "sources sources"}}@media(max-width:600px){main{grid-template-areas:"chart" "navigation" "controls" "sources"}}

#strike-models{padding-top:8px}#comparison-models label{margin-bottom:10px}#product-controls>label:first-child{display:none}.product-key{white-space:normal}#comparison-status{overflow-wrap:anywhere}

#potential-summary{display:grid;grid-template-columns:1.5fr 1fr;gap:18px;padding:10px 12px 5px 42px;color:var(--ink);font-size:12px}#potential-summary[hidden]{display:none}.potential-caption{font-size:12px;margin-bottom:8px}#potential-cities{display:flex;flex-wrap:wrap;gap:8px 12px}#potential-cities span{border-bottom:4px solid;padding-bottom:4px}#potential-pressure svg{width:100%;height:95px}.pressure-quantiles{font-size:11px}#potential-summary{background:var(--paper)}

#comparison-subtitle{font:400 13px/1.5 system-ui;color:var(--ink);margin:2px 0 6px}#forecast-figure[data-product=comparison]:not([data-theme=DARK]) #map{background:#f4f6fa!important}#forecast-figure[data-product=comparison]:not([data-theme=DARK]) .leaflet-color-land-pane path{fill:#e5e7e7;stroke:#8a9298}#forecast-figure[data-product=comparison] .plot-key{font-size:12px;max-width:310px}#forecast-figure[data-product=comparison] .product-key{line-height:1.65}

#forecast-figure[data-product=comparison] .plot-key{padding:6px 8px;border:1px solid #c2c8cc;max-width:none;background:rgba(255,255,255,.94)}.comparison-legend{font:400 11px/1.2 system-ui;color:#263747}.comparison-legend-title{font-size:12px;margin:0 0 4px;white-space:nowrap}.comparison-legend-row{display:flex;align-items:center;gap:7px;min-height:16px;margin:0;padding:0;white-space:nowrap}.plot-key .comparison-legend-row span{display:block;margin:0;padding:0;font:inherit;line-height:16px;color:inherit}.plot-key .comparison-legend-row i{display:block;flex:0 0 22px;width:22px;height:0;border:0;border-top:3px solid var(--line);border-radius:0;margin:0}

#trend-subtitle{font:400 13px/1.5 system-ui;color:var(--ink);margin:3px 0 6px}#trend-scale{padding:12px 25px 3px 60px;color:var(--ink);font:400 11px/1.5 system-ui}#trend-scale[hidden]{display:none}#trend-gradient{height:12px;border:1px solid #bbc6cf}#trend-ticks{display:flex;justify-content:space-between;gap:5px;margin-top:5px}#trend-ticks span{white-space:nowrap}.trend-scale-caption{text-align:center;margin-top:4px;color:var(--ink)}#forecast-figure[data-product=trend] .plot-key{padding:7px 9px;border:1px solid #bcc7d0;max-width:none}#forecast-figure[data-product=trend]:not([data-theme=DARK]) #map{background:#f4f6fa!important}#forecast-figure[data-product=trend] .comparison-legend-row{min-height:19px}#forecast-figure[data-product=trend] .comparison-legend-row i{flex-basis:26px;width:26px}

#map-window{position:relative;width:100%;aspect-ratio:1.779162167;overflow:hidden}#forecast-figure .plot-area #map{position:absolute;width:var(--view-width,100%)!important;height:var(--view-height,100%)!important;aspect-ratio:auto!important;min-height:0}#axis-lon{bottom:auto}

#forecast-figure:is([data-product=comparison],[data-product=trend]):not([data-theme=DARK]) #map{background:#f4f6fa!important}
#forecast-figure:is([data-product=comparison],[data-product=trend]) .leaflet-pane path.leaflet-interactive{stroke-linejoin:round}

#forecast-figure:is([data-product=comparison],[data-product=trend]) #figure-credit{display:none}

.combined-model-row{display:flex;align-items:center;background:#10202c}.combined-model-row>label{margin:0;padding:10px 0 10px 10px}.combined-model-row>button{flex:1;min-width:0}.combined-toggle{padding:10px 12px;background:#152636;border:1px solid #334c5d;border-radius:7px}

#forecast-figure[data-product=combined][data-theme=LIGHT] #map{background:#f8fcfd!important}#forecast-figure[data-product=combined] .plot-key .combined-key i{width:18px;height:0;border:0;border-top:3px solid var(--c);border-radius:0}#combined-models{display:grid;grid-template-columns:1fr 1fr;gap:12px 5px}#combined-models label{margin:0}.combined-toggle{font-size:13px}

#chart-loading{position:absolute;z-index:800;top:12px;right:12px;padding:9px 14px;background:var(--key-bg);color:var(--ink);border:1px solid #7793a3;font:400 15px/1.4 system-ui;pointer-events:none}

#chart-loading{inset:0 0 28px 42px;display:flex;align-items:center;justify-content:center;border:0;background:#fff;color:#999;padding:0;font:400 20px/1.5 system-ui}

#forecast-figure[data-product=cluster] .plot-area{padding-right:110px}#cluster-members{position:absolute;right:0;top:0;width:103px;font:12px/14px Arial,sans-serif;column-count:1}#cluster-members[hidden],#cluster-thresholds[hidden]{display:none}#cluster-members div{white-space:nowrap}#cluster-thresholds{position:absolute;right:125px;top:12px;z-index:450;text-align:right;background:var(--key-bg);padding:5px;font:13px/19px Arial,sans-serif}#forecast-figure[data-product=cluster] .plot-key{background:var(--key-bg);font:13px/1.3 Arial,sans-serif;gap:4px}#forecast-figure[data-product=cluster] .cluster-mean-key i{width:24px;height:0;border:0;border-top:4px solid var(--c);border-radius:0}#forecast-figure[data-product=cluster] .cluster-mean-key{margin-top:4px}

.ensemble-canvas{position:absolute;left:0;top:0}.forecast-figure{contain:layout style}#export-image{max-height:calc(95dvh - 155px);object-fit:contain}

.model-category nav a{display:block;padding:14px 12px;border-top:1px solid #263d4e;color:#dce7ef;text-decoration:none;font-size:13px}.model-category nav a:hover{background:#1b3a4a}

/* Comparison legend sits below the map and is included in PNG exports. */
#comparison-legend-footer{display:none}
#forecast-figure[data-product=comparison] .plot-key{display:none}
#forecast-figure[data-product=comparison] #comparison-legend-footer{display:block;padding:6px 4px 8px 42px;color:var(--ink)}
#comparison-legend-footer .comparison-legend{display:flex;flex-flow:row wrap;align-items:center;gap:7px 20px;color:var(--ink);font:400 12px/1.5 system-ui}
#comparison-legend-footer .comparison-legend-title{font:inherit;margin:0}
#comparison-legend-footer .comparison-legend-row{display:inline-flex;gap:7px;min-height:18px}
#comparison-legend-footer .comparison-legend-row i{display:block;flex:0 0 22px;width:22px;height:0;border-top:3px solid var(--line)}
