/* Styles for the Geneva water screen. Same frame as the other info screens; the map fills the middle, as on the bus screen. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url("/weather/screen/assets/fonts/roboto-latin.woff2") format("woff2"); }
html { font-size: 20px; }
:root { --bg: #eeece6; --panel: #ffffff; --panel-2: #f5f4f0; --ink: #14161b; --muted: #555c68; --rule: #dcd9d1; --warn: #a85800; --logo: #001489;
  --rhone: #0a6fb8; --arve: #7d6b55; --lake: #00707a; --band: #d9dee6; --flood: #b3261e; --ok: #0f7a43; --low: #a85800; --high: #0033a0; }
html.dark { --bg: #0d0f13; --panel: #161a22; --panel-2: #1d222b; --ink: #f4f5f7; --muted: #a3abb9; --rule: #2a303b; --warn: #ffb020; --logo: #ffffff;
  --rhone: #5fb4f0; --arve: #c4ae92; --lake: #4fd1c5; --band: #2f3745; --flood: #ff8a80; --ok: #4ade80; --low: #ffb020; --high: #8fb0ff; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); }
body { overflow: hidden; }
#stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: hidden;
  font-family: Roboto, system-ui, sans-serif; font-variant-numeric: tabular-nums; display: grid; grid-template-columns: 1920px; grid-template-rows: 92px 1fr 43.2px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--rule); }
.title { display: flex; align-items: center; gap: 23px; }
.logo { height: 2.9rem; aspect-ratio: 441 / 120; flex: none; background: var(--logo);
  -webkit-mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; mask: url("/weather/screen/ecolint-logo.png") center / contain no-repeat; }
.hdr-sep { width: 2px; height: 2.6rem; background: var(--rule); flex: none; }
.title h1 { margin: 0; line-height: 1; font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; }
.title .date { font-size: 1.5rem; color: var(--muted); font-weight: 500; }
.badge { font-size: 1.3rem; font-weight: 900; letter-spacing: 0.08em; color: var(--bg); background: var(--warn); border-radius: 0.5rem; padding: 0.3rem 0.8rem; align-self: center; }
.clock { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.02em; }
.clock .secs { font-size: 1.5rem; color: var(--muted); margin-left: 0.3rem; font-weight: 600; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 38px; font-size: 1.05rem; color: var(--muted); border-top: 1px solid var(--rule); white-space: nowrap; overflow: hidden; }
footer.stale #status { color: var(--warn); font-weight: 800; }

main { position: relative; min-height: 0; overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--panel-2); }
html.dark #map .leaflet-tile-pane { filter: brightness(0.8); }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 500; }
#leaders line { stroke-width: 4; stroke-linecap: round; }
.pin { width: 30px; height: 30px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.place { font: 800 1.05rem Roboto, system-ui, sans-serif; color: #14161b; background: rgba(255,255,255,0.92); border-radius: 0.5rem; padding: 0.2rem 0.6rem; white-space: nowrap; box-shadow: 0 1px 5px rgba(0,0,0,0.3); width: max-content; transform: translate(-30%, 22px); }

/* The cards: one for each river and one for the lake, each joined to its place on the map by a line. */
/* Two columns over the map. Each stacks its cards with a gap between them, so one can never lie over another
   however tall its contents grow. */
.col { position: absolute; top: 26px; bottom: 26px; z-index: 600; width: 560px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.col.left { left: 38px; } .col.right { right: 38px; }
.card { flex: none; width: 560px; background: var(--panel); border: 1px solid var(--rule); border-radius: 1.3rem; padding: 0.85rem 1.2rem 0.75rem; box-shadow: 0 6px 24px rgba(0,0,0,0.16); }
#card-rhone { --c: var(--rhone); }
#card-arve { --c: var(--arve); }
#card-lake { --c: var(--lake); }
.card h2 { margin: 0; font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1; display: flex; align-items: baseline; gap: 0.7rem; }
.card h2 small { font-size: 1.15rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.big { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.5rem; white-space: nowrap; }
.big .v { font-size: 3.7rem; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.big .u { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.chip { margin-left: auto; align-self: center; font-size: 1.2rem; font-weight: 900; border-radius: 0.6rem; padding: 0.35rem 0.75rem; color: #fff; background: var(--ok); }
.chip.low { background: var(--low); } .chip.high { background: var(--high); } .chip.none { background: var(--muted); }
html.dark .chip { color: #0d0f13; }
.verdict { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-top: 0.25rem; }
.bars { margin-top: 0.7rem; display: grid; gap: 0.38rem; }
.bar { display: grid; grid-template-columns: 9.2rem 1fr 5.2rem; align-items: center; gap: 0.6rem; font-size: 1.1rem; font-weight: 700; }
.bar .n { color: var(--muted); font-weight: 600; white-space: nowrap; }
.bar .t { position: relative; height: 1.15rem; background: var(--panel-2); border-radius: 0.3rem; overflow: hidden; }
.bar .t i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 0.3rem; }
.bar .t .range { background: var(--band); border-radius: 0; }
.bar .t .mid { width: 5px; background: var(--ink); border-radius: 0; left: auto; }
.bar.week .t i { opacity: 0.55; }
.bar .x { text-align: right; white-space: nowrap; }
.spark { display: block; width: 100%; height: 60px; margin-top: 0.45rem; }
.spark .band { fill: var(--band); } .spark .med { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 6; opacity: 0.6; }
.spark .line { fill: none; stroke: var(--c); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.spark text { font: 600 15px Roboto, system-ui, sans-serif; fill: var(--muted); }
/* The flood scale: nothing to the largest flood measured, with the 2, 10 and 100-year floods marked. */
.flood { margin-top: 0.45rem; }
.flood-top { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.98rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.flood-top b { color: var(--ink); font-weight: 800; } .flood-top .rec b { color: var(--flood); }
.flood-track { position: relative; height: 0.85rem; margin-top: 0.25rem; background: var(--panel-2); border-radius: 0.3rem; }
.flood-track .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c); border-radius: 0.3rem; min-width: 4px; }
.flood-track .tick { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1.5px; background: var(--ink); }
.flood-track .tick.rec { background: var(--flood); width: 5px; margin-left: -2.5px; }
.flood-axis { position: relative; height: 1.15rem; margin-top: 0.2rem; font-size: 0.92rem; font-weight: 700; color: var(--muted); }
.flood-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.facts { margin-top: 0.4rem; font-size: 1.05rem; font-weight: 600; color: var(--muted); display: flex; gap: 1.1rem; white-space: nowrap; }
.facts b { color: var(--ink); font-weight: 800; }
.note { margin-top: 0.35rem; font-size: 1.02rem; line-height: 1.3; color: var(--muted); font-weight: 500; }
#card-key { font-size: 1.08rem; line-height: 1.35; font-weight: 500; color: var(--muted); }
#card-key .label { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
#card-key p { margin: 0.35rem 0 0; } #card-key b { color: var(--ink); }
.sw { display: inline-block; width: 1.6rem; height: 0.8rem; background: var(--band); vertical-align: -0.05rem; margin-right: 0.3rem; border-radius: 2px; }
.sw.m { width: 5px; background: var(--ink); margin-left: 0.6rem; }
