.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mapbody { background: var(--night); color: var(--night-ink); overflow: hidden; height: 100svh; margin: 0; }
#map { position: fixed; inset: 0; background: #0A1219; }
.mapframe { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: #0A1219; pointer-events: none; transition: opacity 450ms ease-out; }
.mapframe img { position: absolute; left: 0; top: 0; max-width: none; display: block; }
.mapframe.is-gone { opacity: 0; }
html:not(.js) .mapframe, html:not(.js) .maplabels { display: none; }
.maplabels { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
.maplibregl-canvas-container > .maplabels { position: absolute; z-index: auto; }
.ml { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; font: 600 11px/15px var(--font); will-change: transform;
  text-shadow: 0 0 3px #0A1219, 0 0 3px #0A1219, 0 0 6px #0A1219; }
.ml--country { color: #8DA2B4; letter-spacing: .12em; }
.ml--island { color: #9DB0C0; letter-spacing: .04em; font-style: italic; font-weight: 500; font-size: 12px; }
.ml--city { color: #C2CDD7; font-size: 12px; }
#wind { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.mapbody .ic { width: 18px; height: 18px; flex: none; }
.maptop { position: fixed; z-index: 12; inset: 0 0 auto 0; height: 56px; display: flex; align-items: center; gap: var(--s4);
  padding: 0 var(--gutter); background: linear-gradient(180deg, rgba(11,18,25,.92) 0, rgba(11,18,25,.6) 60%, rgba(11,18,25,0)); color: #fff; pointer-events: none; }
.maptop > * { pointer-events: auto; }
.maptop .wordmark { color: #fff; }
.maptop__title { display: none; font-weight: 600; color: var(--night-ink-2); font-size: var(--t-sm); }
@media (min-width: 1200px) { .maptop__title { display: block; } }
.maploading { position: fixed; z-index: 13; left: 50%; top: 62px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  margin: 0; max-width: calc(100vw - 24px); width: max-content; border-radius: 999px; background: rgba(11,18,25,.9); border: 1px solid rgba(255,255,255,.08);
  font-size: var(--t-xs); line-height: 1.2; color: var(--night-ink); backdrop-filter: blur(8px); transition: opacity .5s; pointer-events: none; }
.maploading.is-done { opacity: 0; }
.maploading__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--fire); }
.maploading:not(.is-busy) .maploading__dot { display: none; }
.maploading.is-busy .maploading__dot { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .3; } to { opacity: 1; } }
.timecard { position: fixed; z-index: 11; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center;
  background: rgba(14,22,32,.9); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); color: var(--night-ink); }
.timecard__play { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fire); color: var(--night); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-press) var(--spring-press), background-color var(--dur-fast) ease; }
.timecard__play:hover { transform: scale(1.06); }
.timecard__play .ic { width: 20px; height: 20px; }
.timecard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.timecard__top b { font-weight: 700; }
.chip-latest { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255,195,107,.16); color: var(--fire); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.timecard__count { color: var(--night-ink-2); font-size: var(--t-xs); white-space: nowrap; }
.timecard__track { position: relative; height: 34px; margin-top: 2px; }
#spark { position: absolute; left: 0; right: 0; bottom: 13px; width: 100%; height: 20px; }
#slider { position: absolute; inset: auto 0 0 0; width: 100%; margin: 0; height: 26px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
#slider::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: rgba(233,237,240,.22); }
#slider::-moz-range-track { height: 3px; border-radius: 2px; background: rgba(233,237,240,.22); }
#slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8.5px; border-radius: 50%; background: #fff; border: 4px solid var(--fire); box-shadow: 0 1px 6px rgba(0,0,0,.5); }
#slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--fire); }
#slider:focus-visible { outline: 2px solid var(--fire); outline-offset: 4px; border-radius: 4px; }
.timecard__days { position: relative; height: 14px; font-size: 10.5px; color: var(--night-ink-2); }
.timecard__days span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.panel { position: fixed; z-index: 11; left: 0; right: 0; bottom: 0; max-height: 52svh; display: flex; flex-direction: column;
  background: rgba(14,22,32,.96); backdrop-filter: blur(14px); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.45);
  padding: 0 var(--s4) env(safe-area-inset-bottom); transform: translateY(calc(100% - 56px)); transition: transform var(--dur-sheet) var(--spring-sheet); }
.panel.is-open { transform: none; }
.panel__handle { font: inherit; color: inherit; background: none; border: 0; padding: 8px 0 10px; display: grid; justify-items: center; gap: 8px; cursor: pointer; flex: none; }
.panel__handle .grip { width: 44px; height: 5px; border-radius: 3px; background: rgba(233,237,240,.35); }
.panel__handle-t { display: inline-flex; gap: 8px; align-items: center; font-size: var(--t-sm); font-weight: 600; color: var(--night-ink); }
.panel__toggle { display: none; }
.panel__body { overflow: auto; padding-bottom: var(--s5); overscroll-behavior: contain; }
.panel__title { font-size: var(--t-md); margin: var(--s2) 0 var(--s2); line-height: 1.15; font-variation-settings: "wdth" 106; }
.panel__lede { margin: 0 0 var(--s4); font-size: var(--t-sm); color: var(--night-ink-2); line-height: 1.45; }
.panel__lede b { color: var(--night-ink); }
.timecard { left: 10px; right: 10px; bottom: 66px; padding: 10px 14px 6px 10px; border-radius: 16px; transition: opacity var(--dur-base) var(--ease-ios); }
@media (max-width: 899px) {
  .timecard { grid-template-columns: 44px 1fr; gap: 10px; }
  .timecard__play { width: 44px; height: 44px; }
  .timecard__top { flex-direction: column; align-items: flex-start; gap: 1px; }
  .timecard__main { min-width: 0; }
}
body.sheet-open .timecard { opacity: 0; pointer-events: none; }
.layers { display: grid; gap: 2px; margin: 0 0 var(--s4); }
.layers__h { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--night-ink-2); margin: 0 0 6px; font-weight: 700; }
.lyr { position: relative; display: grid; grid-template-columns: 32px 1fr 40px; gap: 12px; align-items: center; padding: 9px 8px; border-radius: 12px; cursor: pointer; transition: background-color var(--dur-fast) ease, transform var(--dur-press) var(--spring-press); }
.lyr:hover { background: rgba(255,255,255,.05); }
.lyr input { position: absolute; opacity: 0; pointer-events: none; }
.lyr__ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--night-ink); }
.lyr__ic--fire { background: radial-gradient(circle at 50% 60%, rgba(255,170,80,.45), rgba(255,255,255,.05) 70%); color: var(--fire); }
.lyr__ic--smoke { background: linear-gradient(135deg, rgba(196,170,140,.55), rgba(120,100,85,.3)); }
.lyr__ic--air { background: conic-gradient(var(--aqi-0) 0 17%, var(--aqi-1) 0 33%, var(--aqi-2) 0 50%, var(--aqi-3) 0 67%, var(--aqi-4) 0 83%, var(--aqi-5) 0); border-radius: 50%; width: 22px; height: 22px; margin: 5px; box-shadow: 0 0 0 2px #fff inset; }
.lyr__ic--peat { background: #6F4E37; }
.lyr__ic--palm { background: rgb(227,181,74); }
.lyr__t { font-size: var(--t-sm); font-weight: 600; line-height: 1.25; }
.lyr__t small { display: block; font-weight: 400; color: var(--night-ink-2); font-size: var(--t-xs); margin-top: 2px; }
.lyr--sub { grid-template-columns: 1fr 40px; padding-left: 52px; }
.switch { width: 40px; height: 24px; border-radius: 999px; background: rgba(233,237,240,.18); position: relative; transition: background-color var(--dur-base) var(--ease-ios); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform var(--dur-press) var(--spring-press); box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.lyr input:checked ~ .switch { background: var(--fire-2); }
.lyr input:checked ~ .switch::after { transform: translateX(16px); }
.lyr input:focus-visible ~ .switch { outline: 2px solid var(--fire); outline-offset: 2px; }
.lyr.is-off-dep { opacity: .45; }
.seg { display: inline-flex; margin: 0 0 6px 52px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); }
.seg button { font: 600 var(--t-xs)/1 var(--font); color: var(--night-ink-2); background: none; border: 0; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-ios), color var(--dur-base) var(--ease-ios), transform var(--dur-press) var(--spring-press); }
.seg button[aria-checked="true"] { background: #fff; color: var(--ink); }
.seg[hidden] { display: none; }
.followpill { position: absolute; left: 0; bottom: calc(100% + 8px); min-height: 40px; padding: 9px 14px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.followpill:disabled { opacity: .6; }
.panel__more { font-size: var(--t-xs); color: var(--night-ink-2); border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--s3); }
.panel__more summary { cursor: pointer; color: var(--night-ink); font-weight: 600; font-size: var(--t-sm); }
.panel__more p { margin: 8px 0 0; line-height: 1.5; }
.panel__more ul { margin: 8px 0 0; padding-left: 1.1em; display: grid; gap: 6px; line-height: 1.45; }
.panel__pic { margin: 0 0 var(--s3); }
.panel__pic img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.panel__pic .credit { color: var(--night-ink-2); }
.panel__more a, .panel__src a { color: #fff; }
.panel__src { font-size: 11.5px; color: rgba(233,237,240,.55); line-height: 1.5; margin: var(--s3) 0 0; }
.maplegend { position: fixed; z-index: 10; right: 10px; top: 64px; display: grid; gap: 8px; padding: 10px 12px; max-width: 220px; border-radius: 14px;
  background: rgba(14,22,32,.82); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.08); font-size: 11.5px; color: var(--night-ink-2); }
.maplegend:empty { display: none; }
.lg { display: grid; gap: 4px; }
.lg b { color: var(--night-ink); font-weight: 600; font-size: 12px; }
.lg__ramp { height: 8px; border-radius: 4px; }
.lg__ends { display: flex; justify-content: space-between; }
.lg__row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.lg__row span { display: inline-flex; align-items: center; gap: 5px; }
.lg__row i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg__epa { display: grid; grid-template-columns: repeat(6, 1fr); border-radius: 3px; overflow: hidden; height: 8px; }
.panel .maplegend { position: static; max-width: none; margin: 0 0 var(--s4); background: rgba(255,255,255,.04); backdrop-filter: none; }
.panel .maplegend .lg--optional { display: grid; }
@media (max-width: 899px) {
  .maplegend { top: auto; right: 10px; left: auto; bottom: 196px; max-width: 168px; padding: 8px 10px; font-size: 10.5px; }
  .maplegend .lg--optional { display: none; }
}
@media (min-width: 900px) {
  .panel { left: 16px; right: auto; top: 72px; bottom: 16px; width: 372px; max-height: none; border-radius: 18px; padding: var(--s4) var(--s4) 0;
    transform: none; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 60px rgba(0,0,0,.45); }
  .panel.is-collapsed { transform: translateX(calc(-100% - 16px)); }
  .panel__handle { display: none; }
  .panel__toggle { display: grid; place-items: center; position: absolute; top: 18px; right: -44px; width: 36px; height: 36px; border-radius: 50%;
    background: rgba(14,22,32,.92); color: #fff; border: 1px solid rgba(255,255,255,.14); cursor: pointer; transition: transform var(--dur-sheet) var(--spring-sheet); }
  .panel.is-collapsed .panel__toggle { transform: translateX(16px) rotate(180deg); right: -60px; }
  .panel__title { font-size: var(--t-lg); margin-top: 0; }
  .timecard { left: calc(16px + 372px + 24px); right: auto; width: min(680px, calc(100vw - 372px - 300px)); bottom: 18px; padding: 12px 18px 8px 12px; border-radius: 18px;
    transition: left var(--dur-sheet) var(--spring-sheet); }
  body.panel-collapsed .timecard { left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 340px)); }
  .maplegend { top: 64px; bottom: auto; right: 58px; width: 230px; max-width: none; }
}
.aq { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(14,22,32,.88); color: #fff;
  font: 600 12px/1 var(--font); box-shadow: 0 2px 10px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.14); cursor: pointer; white-space: nowrap; }
.aq__v { min-width: 30px; height: 22px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; background: var(--c); color: var(--ci); font-weight: 800; font-size: 12.5px; transition: background 1.2s; }
.aq__n { color: var(--night-ink); }
.aq__n small { color: var(--night-ink-2); font-weight: 500; margin-left: 3px; }
.aq--est { border-style: dashed; }
.z-far .aq--est { padding: 4px; gap: 0; border: 0; background: transparent; box-shadow: none; }
.z-far .aq--est .aq__n { display: none; }
.z-far .aq--est .aq__v { box-sizing: border-box; min-width: 0; width: 16px; height: 16px; padding: 0; font-size: 0; border: 2px dashed rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.45); }
.mapbody .maplibregl-popup-content { font-family: var(--font); font-size: var(--t-xs); color: var(--ink); border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.35); line-height: 1.45; }
.mapbody .maplibregl-popup-content b { font-size: var(--t-sm); }
.mapbody .maplibregl-ctrl-attrib { font-size: 10px; }
.mapbody .maplibregl-ctrl-attrib a { text-decoration: underline; }
.mapbody .maplibregl-ctrl-group { background: rgba(14,22,32,.9); }
.mapbody .maplibregl-ctrl-group button + button { border-top-color: rgba(255,255,255,.12); }
.mapbody .maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.mapbody .maplibregl-ctrl-top-right { top: 60px; }
@media (max-width: 899px) { .mapbody .maplibregl-ctrl-top-right { display: none; } .mapbody .maplibregl-ctrl-bottom-right { bottom: 184px; } .mapbody .maplibregl-ctrl-bottom-left { display: none; } }
@media (min-width: 900px) { .mapbody .maplibregl-ctrl-top-right { top: 64px; } }
@media (prefers-reduced-motion: reduce) {
  .panel, .timecard, .panel__toggle, .switch::after, .mapframe, .maploading { transition: none !important; }
}
.mapbody main { display: contents; }
.maptop .live-pill { pointer-events: auto; }
@media (max-width: 899px) { .maptop .live-pill { margin-left: auto; } }
.maploading.is-error { background: rgba(60,24,18,.92); color: #fff; max-width: calc(100vw - 32px); white-space: normal; text-align: center; }
.maploading.is-error .maploading__dot { animation: none; background: #fff; }
.timecard__play:disabled, #slider:disabled { opacity: .5; cursor: default; }
body.is-playing .timecard__play { box-shadow: 0 0 0 4px rgba(255,195,107,.25); }
button.aq { appearance: none; -webkit-appearance: none; margin: 0; }
button.aq:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.aq--sg .aq__v { min-width: 44px; }
.aq--traj { cursor: default; pointer-events: none; background: rgba(14,22,32,.7); padding: 4px 10px; }
.pop-list { margin: 6px 0; padding-left: 16px; }
.pop-list li { margin: 2px 0; }
.pop-note { color: #5E666E; }
.pop-btn { margin-top: 8px; font: 600 var(--t-xs)/1 var(--font); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; min-height: 36px; }
.mapbody .maplibregl-popup-content a { color: var(--ink); font-weight: 600; }
.lg-traj { width: 18px !important; height: 0 !important; border-radius: 0 !important; border-top: 2px dashed #fff; }
.lg-sq { border-radius: 2px !important; }
.lg__attr { margin: 0; font-size: 10px; line-height: 1.4; color: rgba(233,237,240,.55); }
@media (max-width: 899px) { .maplegend .lg__attr { display: none; } .panel .maplegend .lg__attr { display: block; } }
.seg--map[hidden] { display: none; }
.seg--map button:focus-visible { outline: 2px solid var(--fire); outline-offset: 1px; }
.aq--sg { z-index: 3; }
.lg__attr a { color: inherit; }
html:not(.js) .panel { transform: none; }
html:not(.js) .timecard, html:not(.js) .panel__handle, html:not(.js) .panel__toggle, html:not(.js) #loading { display: none; }
.maptop__nav { margin-left: auto; color: #fff; }
.maptop__nav a[aria-current=page] { view-transition-name: none; }
@media (max-width: 899px) {
  .mapbody { --tb: calc(66px + env(safe-area-inset-bottom)); }
  .mapbody .tabbar { display: grid; background: rgb(14,22,32); color: var(--night-ink-2); box-shadow: 0 -1px 0 rgba(255,255,255,.08); }
  .mapbody .tabbar a[aria-current=page] { color: #fff; }
  .mapbody .tabbar a[aria-current=page] .ic { view-transition-name: none; }
  .mapbody .panel { bottom: var(--tb); padding-bottom: 0; max-height: calc(52svh - 20px); }
  .mapbody .timecard { bottom: calc(66px + var(--tb)); }
  .mapbody .maplegend { bottom: calc(196px + var(--tb)); }
  .mapbody .maplibregl-ctrl-bottom-right { bottom: calc(184px + var(--tb)); }
  .mapbody .maptop .live-pill { margin-left: auto; }
}
@media (min-width: 900px) { .maptop__nav { display: flex; } }
@media (max-width: 899px) { .maptop__nav { display: none; } }
