/* El Niño Flood Watch — one stylesheet for all pages.
   Light only for now: the Oxford lockup is drawn for a light background. */
/* Inter, self-hosted (SIL Open Font License, vendor/inter/LICENSE.txt) */
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../vendor/inter/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../vendor/inter/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: light;
  --surface: #fcfcfb;
  --surface-2: #f4f3f0;
  --surface-3: #eeede9;
  --border: #e2e0da;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #7a7974;
  --accent: #184f95;          /* blue 600 */
  --accent-soft: #cde2fb;     /* blue 100 */
  /* ordinal risk ramp: blue 250 / 450 / 650 (first step >= 2:1 on the surface) */
  --risk-0: #eeede9;
  --risk-1: #86b6ef;
  --risk-2: #2a78d6;
  --risk-3: #104281;
  --line-normal: #8a8984;
  --line-year: #2a78d6;
  --flood: #0b0b0b;
  --radius: 10px;
  --gutter: 16px;
  --maxw: 1440px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- header -- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: inherit; }
.brand img { height: 40px; width: auto; display: block; }
.brand .divider { width: 1px; height: 36px; background: var(--border); }
.brand .name { font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-secondary); padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.nav a:hover { background: var(--surface-2); color: var(--text-primary); }
.nav a[aria-current="page"] { color: var(--text-primary); background: var(--surface-3); font-weight: 600; }
.nav .short { display: none; }
.toggles { display: inline-flex; gap: 8px; align-items: center; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: #fff; padding: 6px 10px; font: inherit; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text-primary); color: #fff; }
@media (max-width: 760px) {
  .site-header .wrap { padding-top: 10px; padding-bottom: 4px; gap: 10px; }
  .brand { gap: 10px; min-width: 0; }
  .brand img { height: 30px; }
  .brand .divider { height: 26px; }
  .brand .name { font-size: 0.95rem; }
  .toggles { margin-left: auto; }
  .nav { margin-left: 0; width: 100%; order: 3; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; font-size: 0.9rem; }
  .nav { overflow-x: visible; }
  .nav .full { display: none; } .nav .short { display: inline; }
  .hero { padding-top: 24px; }
}
@media (max-width: 400px) { .brand .name { display: none; } .brand .divider { display: none; } }

/* ------------------------------------------------------------------ hero -- */
.hero { padding-top: 40px; padding-bottom: 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px 40px; align-items: end; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 10px; max-width: 24ch; }
.hero p { margin: 0; color: var(--text-secondary); max-width: 66ch; font-size: 1.05rem; }
.hero .hint { margin-top: 8px; font-size: .9rem; }
.search { display: flex; gap: 10px; flex-wrap: wrap; position: relative; max-width: 720px; }
.search input { flex: 1 1 320px; font: inherit; font-size: 1.05rem; padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; min-width: 0; }
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { font: inherit; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); padding: 12px 16px;
  cursor: pointer; color: var(--text-primary); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 20; list-style: none; padding: 6px; display: none; }
.suggest.open { display: block; }
.suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggest li:hover, .suggest li[aria-selected="true"] { background: var(--surface-2); }
.suggest li small { display: block; color: var(--text-muted); }

/* ---------------------------------------------------------------- layout -- */
/* row 1: map | headline + highest-risk days, same height; row 2: flood level + day | calendar, top-aligned */
.layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "map head" "lower cal";
  gap: 16px 24px; padding-bottom: 48px; align-items: stretch; }
.layout > .map-card { grid-area: map; display: flex; flex-direction: column; }
.layout > .map-card #map { flex: 1 1 auto; }
.layout > .head { grid-area: head; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.layout > .head > .card { margin-top: 0; }
.layout > .head > #empty { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; }
.layout > .head > .topcard { flex: 1 1 auto; }
.layout > .lower { grid-area: lower; display: flex; flex-direction: column; gap: 16px; align-self: start; min-width: 0; }
.layout > .lower > .card, .layout > .calcard { margin-top: 0; }
.layout > .calcard { grid-area: cal; align-self: start; min-width: 0; }
@media (max-width: 960px) {
  .layout { display: flex; flex-direction: column; gap: 16px; }
  .layout > .head, .layout > .lower { display: contents; }
  .map-card { order: 1; } #empty, .placecard, #results > .empty { order: 2; } .topcard { order: 3; }
  .calcard { order: 4; } #daycard { order: 5; } #level { order: 6; }
}
.map-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
#map { min-height: clamp(320px, 44vh, 460px); }
@media (max-width: 960px) { #map { min-height: 320px; height: 320px; } }
.map-legend { display: flex; gap: 16px; padding: 10px 14px; font-size: 0.82rem; color: var(--text-secondary); border-top: 1px solid var(--border); flex-wrap: wrap; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 1.05rem; margin: 0 0 4px; }
.card h3 { font-size: 0.95rem; margin: 0 0 8px; }
.empty { color: var(--text-secondary); padding: 28px 20px; text-align: center; }

.place { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.place .title { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; }
.meta { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.meta span + span::before { content: "·"; margin: 0 6px; color: var(--text-muted); }
.note { font-size: 0.85rem; color: var(--text-secondary); background: var(--surface-2); border-radius: 8px; padding: 8px 12px; margin-top: 12px; }

/* headline numbers */
.headline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 560px) {
  .headline { gap: 8px; }
  .stat { padding: 10px; }
  .stat .k { font-size: 0.72rem; line-height: 1.25; }
  .stat .v { font-size: 1.45rem; }
  .card { padding: 16px; }
}
.stat { background: var(--surface-2); border-radius: 8px; padding: 14px; }
.stat .k { font-size: 0.8rem; color: var(--text-secondary); }
.stat .v { font-size: 1.9rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.stat .s { font-size: 0.8rem; color: var(--text-muted); }
.stat .only { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; margin-top: 6px; }
.sentence { margin: 14px 0 0; font-size: 1rem; }

/* flood level control */
.level { display: flex; gap: 14px; align-items: center; margin-top: 8px; }
.level input[type=range] { flex: 1 1 auto; min-width: 120px; accent-color: var(--accent); }
.level output { font-variant-numeric: tabular-nums; min-width: 7ch; font-size: 1.25rem; font-weight: 650; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* calendar */
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-secondary); margin: 6px 0 14px; align-items: center; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }
.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
@media (max-width: 1100px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .months { gap: 14px 10px; } .day { font-size: 0.6rem; border-radius: 3px; } .wk span { font-size: 0.6rem; } }
.month h4 { margin: 0 0 6px; font-size: 0.85rem; font-weight: 600; }
.wk, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wk span { font-size: 0.68rem; color: var(--text-muted); text-align: center; }
.day { aspect-ratio: 1; border: 0; border-radius: 4px; background: var(--risk-0); font: inherit; font-size: 0.66rem;
  color: var(--text-secondary); cursor: pointer; position: relative; padding: 0; }
.day.r1 { background: var(--risk-1); color: var(--text-primary); }
.day.r2 { background: var(--risk-2); color: #fff; }
.day.r3 { background: var(--risk-3); color: #fff; }
.day.past { opacity: 0.45; }
.day.today { outline: 2px solid var(--text-primary); outline-offset: 1px; }
.day.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.day .kt { position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.day:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.blank { aspect-ratio: 1; }

.tip { position: fixed; pointer-events: none; z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; font-size: 0.82rem; box-shadow: 0 6px 18px rgba(0,0,0,.08); display: none; max-width: 260px; }
.tip b { font-weight: 600; }

/* day chart */
.daychart svg { width: 100%; height: auto; display: block; overflow: visible; }
.daychart .grid line { stroke: var(--border); stroke-width: 1; }
.daychart .axis text { fill: var(--text-muted); font-size: 11px; }
.daychart .lbl { font-size: 11.5px; fill: var(--text-secondary); }
.daychart .series-normal { fill: none; stroke: var(--line-normal); stroke-width: 2; }
.daychart .series-year { fill: none; stroke: var(--line-year); stroke-width: 2; }
.daychart .flood { stroke: var(--flood); stroke-width: 1.5; stroke-dasharray: 5 4; }
.daychart .cross { stroke: var(--text-muted); stroke-width: 1; }
.daychart .mk { stroke: #fff; stroke-width: 2; }
.toplist { display: flex; flex-direction: column; gap: 6px; }
.toplist button { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 7rem) minmax(40px, 1fr) 3.5rem; gap: 12px; align-items: center;
  font: inherit; font-size: .88rem; text-align: left; background: var(--surface-2); border: 0; border-radius: 8px; padding: 9px 12px;
  cursor: pointer; color: var(--text-primary); }
.toplist button:hover { background: var(--surface-3); }
.toplist button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.toplist .tt { color: var(--text-secondary); }
.toplist .tb { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.toplist .tb span { display: block; height: 100%; background: var(--risk-2); border-radius: 3px; }
.toplist b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .toplist button { grid-template-columns: minmax(0, 1fr) auto 3rem; } .toplist .tb { display: none; } }
.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; font-size: 0.82rem; }
@media (max-width: 560px) { .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.parts div { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.parts b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* prose pages */
.prose { max-width: 70ch; padding-top: 32px; padding-bottom: 56px; }
.prose h1 { font-size: 2rem; letter-spacing: -0.02em; line-height: 1.2; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: #fff; padding: 28px 0 36px; font-size: 0.85rem; color: var(--text-secondary); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h5 { margin: 0 0 6px; font-size: 0.85rem; color: var(--text-primary); }
.site-footer p { margin: 0 0 8px; }
.partners { display: flex; gap: 14px 22px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.partners img { width: auto; display: block; }
.partners .p-ox { height: 34px; } .partners .p-whoi { height: 20px; } .partners .p-ucf { height: 22px; }
.site-footer h5.ph { margin-top: 16px; }
.flinks { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px !important; }
.flinks a { color: var(--text-secondary); }
.loading { color: var(--text-muted); font-size: 0.9rem; }
.maplibregl-ctrl-attrib { font-size: 10px; }

/* ------------------------------------------------- pages 2 and 3 ---------- */
.page-hero { padding-top: 40px; padding-bottom: 8px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 10px; max-width: 26ch; }
.page-hero p { color: var(--text-secondary); font-size: 1.08rem; max-width: 70ch; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 6px; }
@media (max-width: 860px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpis .stat .v { font-size: 1.7rem; }
.story { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 28px 40px; padding: 36px 0;
  border-top: 1px solid var(--border); align-items: start; }
.story:first-of-type { border-top: 0; }
.story.wide { grid-template-columns: 1fr; }
@media (max-width: 960px) { .story { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; } }
.story h2 { font-size: 1.35rem; letter-spacing: -0.01em; margin: 0 0 10px; line-height: 1.25; }
.story .num-badge { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.story p { color: var(--text-secondary); margin: 0 0 12px; max-width: 62ch; }
.story p b { color: var(--text-primary); }
.fig { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.fig .cap { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }
.fig svg { width: 100%; height: auto; display: block; }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .fig-row { grid-template-columns: 1fr; } }
.fig h3 { font-size: .9rem; margin: 0 0 6px; }
.lc .ax, .cm .ax, .hm .ax, .xs .ax { fill: #898781; font-size: 11px; font-variant-numeric: tabular-nums; }
.lc .lbl, .hm .lbl, .xs .lbl { fill: #52514e; font-size: 11.5px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--text-secondary); margin-bottom: 8px; }
.legend .lsw { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 6px; }
.legend .lsw.band { height: 10px; vertical-align: -1px; }
.legend .lsw.rng { width: 0; height: 12px; border-left: 2px solid; vertical-align: -2px; margin: 0 8px 0 4px; }
.tip .sw { width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.divleg { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-secondary); margin-top: 10px; flex-wrap: wrap; }
.divleg .bar { flex: 0 1 220px; height: 10px; border-radius: 5px; min-width: 120px; }
.divleg .lab { margin-right: 6px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.seg button { border: 0; background: #fff; font: inherit; font-size: .82rem; padding: 6px 12px; cursor: pointer; color: var(--text-secondary); }
.seg button[aria-pressed="true"] { background: var(--text-primary); color: #fff; }
.slider { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 4px 0 10px; font-size: .92rem; }
.slider input { flex: 1 1 200px; accent-color: var(--accent); }
.big { font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; }
.cta { display: inline-block; margin-top: 8px; text-decoration: none; }
.smalls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .smalls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .smalls { grid-template-columns: 1fr; } }
.smalls .fig { padding: 12px 12px 8px; }
.smalls h3 { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; }
.smalls h3 span { color: var(--text-muted); font-weight: 500; }
table.t { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.t th, table.t td { text-align: right; padding: 7px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t th { color: var(--text-secondary); font-weight: 600; font-size: .78rem; vertical-align: bottom; }
.tscroll { overflow-x: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: .8rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 4px 10px; color: var(--text-secondary); }
.chip b { color: var(--text-primary); }
.chip.ok::before { content: "✓ "; color: #006300; font-weight: 700; }
.pending { color: var(--text-muted); font-style: italic; }
.methods li { color: var(--text-secondary); margin-bottom: 6px; }
.methods { padding-left: 18px; max-width: 80ch; }

.ctaband { display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.ctaband > div { flex: 1 1 420px; }
.ctaband p { max-width: 80ch; }

@media (max-width: 960px) { .two { grid-template-columns: 1fr !important; } .two p[style] { margin-top: 0 !important; } }

.lc, .hm svg { max-width: 100%; }

.cite { font-size: .9rem; color: var(--text-secondary); margin: 14px 0 0; max-width: 90ch; }
.defs { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
@media (max-width: 960px) { .defs { grid-template-columns: 1fr; } }
.defs li { color: var(--text-secondary); font-size: .92rem; border-left: 3px solid var(--border); padding-left: 12px; }
.defs li b { color: var(--text-primary); }
a.chip { text-decoration: none; }

/* ------------------------------------------------- page 1 additions -------- */
.map-legend { align-items: center; gap: 6px 14px; }
.map-legend .ml-title { color: var(--text-primary); font-weight: 500; }
.dot.ring { width: 12px; height: 12px; background: #2a78d6; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px #c4c2bb; }
.dot.sel { background: #0b0b0b; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #0b0b0b; }
.empty-in { max-width: 46ch; margin: 0 auto; }
.empty-in p { margin: 0 0 10px; }
.empty-in .e1 { color: var(--text-primary); font-size: 1.05rem; font-weight: 500; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin-top: 14px; }
button.chip { font: inherit; font-size: .85rem; cursor: pointer; color: var(--text-primary); }
button.chip:hover { background: var(--surface-2); }
.placecard .lead { font-size: 1.3rem; line-height: 1.35; margin: 14px 0 4px; letter-spacing: -0.01em; }
.placecard .lead b { font-weight: 700; }
.placecard .cmp { margin: 0; color: var(--text-secondary); font-size: 1.02rem; }
.placecard .cmp b { color: var(--text-primary); }
.placecard .what { margin: 10px 0 0; }
details.about { margin-top: 10px; font-size: .85rem; color: var(--text-secondary); }
details.about summary { cursor: pointer; color: var(--accent); }
details.about p { margin: 6px 0 0; }
.kt-sw { background: var(--risk-0); position: relative; }
.kt-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 5px; height: 5px; border-radius: 50%; background: #52514e; }
.daychart .dlg { margin: 4px 0 6px; }
.daychart svg { width: auto; max-width: 100%; }
.daysheet { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 40; display: flex; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; box-shadow: 0 8px 28px rgba(0,0,0,.16); font-size: .9rem; }
.daysheet[hidden] { display: none; }
.daysheet .ds-txt { flex: 1 1 auto; min-width: 0; }
.daysheet .btn { padding: 8px 12px; white-space: nowrap; }
.ds-x { border: 0; background: none; font-size: 1.4rem; line-height: 1; padding: 4px 6px; cursor: pointer; color: var(--text-secondary); }
@media (min-width: 961px) { .daysheet { display: none !important; } }
.btn:disabled { opacity: .6; cursor: progress; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------------------------------------------- disclaimer ------ */
dialog.disclaimer { max-width: 560px; width: calc(100% - 32px); border: 0; border-radius: 14px; padding: 26px 26px 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); color: var(--text-primary); }
dialog.disclaimer::backdrop { background: rgba(11, 11, 11, .45); }
dialog.disclaimer h2 { margin: 0 0 12px; font-size: 1.3rem; letter-spacing: -0.01em; }
dialog.disclaimer p { margin: 0 0 12px; color: var(--text-secondary); line-height: 1.55; }
dialog.disclaimer p b { color: var(--text-primary); font-weight: 600; }
.dz-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 16px; }
.dz-actions a, .dz-actions .linkbtn { font-size: .9rem; }

/* ------------------------------------------------------------- about ------- */
.about-page { max-width: 78ch; padding-top: 36px; padding-bottom: 56px; }
.about-page h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.about-page h2 { font-size: 1.3rem; margin: 36px 0 10px; scroll-margin-top: 16px; }
.about-page p, .about-page li { color: var(--text-secondary); }
.about-page .logos { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; margin: 18px 0 6px; }
.about-page .logos img { width: auto; } .about-page .logos .p-ox { height: 44px; }
.about-page .logos .p-whoi { height: 26px; } .about-page .logos .p-ucf { height: 28px; }
.defs li.off { display: none; }
label.toggle { display: inline-flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--text-secondary); margin: 2px 0 12px; cursor: pointer; }
label.toggle input { accent-color: var(--accent); }
.lvl-track { flex: 1 1 auto; min-width: 120px; position: relative; padding-bottom: 20px; }
.lvl-track input[type=range] { width: 100%; margin: 0; accent-color: var(--accent); }
.lvl-marks { position: absolute; left: 8px; right: 8px; top: 22px; height: 18px; font-size: .72rem; color: var(--text-muted); }
.lvl-marks .lm { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.lvl-marks .lm i { display: block; width: 1px; height: 5px; background: var(--text-muted); margin: 0 auto 1px; }
