/* Styles for the synoptic chart screen. Same frame as the other info screens. */
@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;
  --sea: #e6eef5; --land: #f6f3ea; --coast: #a9a394; --iso: #2b3340; --high: #0033a0; --low: #b3261e; --geneva: #b3261e; }
html.dark { --bg: #0d0f13; --panel: #161a22; --panel-2: #1d222b; --ink: #f4f5f7; --muted: #a3abb9; --rule: #2a303b; --warn: #ffb020; --logo: #ffffff;
  --sea: #101722; --land: #1c222c; --coast: #4a5466; --iso: #d5dbe6; --high: #6f9bff; --low: #ff8a80; --geneva: #ff8a80; }
* { 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 { display: grid; grid-template-columns: 1250px 1fr; gap: 26px; padding: 26px 38px; min-height: 0; }
.box { background: var(--panel); border: 1px solid var(--rule); border-radius: 1.3rem; overflow: hidden; }
.label { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }

/* The chart: the time it is drawn for along the top, the map below. */
.chart { display: grid; grid-template-rows: 78px 1fr; height: 888px; position: relative; }
.when { display: flex; align-items: center; gap: 1.2rem; padding: 0 1.5rem; border-bottom: 1px solid var(--rule); }
.when .t { font-size: 2.1rem; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; min-width: 21rem; }
.when .ahead { font-size: 1.3rem; font-weight: 800; color: var(--bg); background: var(--ink); border-radius: 0.5rem; padding: 0.25rem 0.7rem; white-space: nowrap; min-width: 6.4rem; text-align: center; }
.steps { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 34px; }
.steps i { display: block; height: 10px; border-radius: 3px; background: var(--rule); }
.steps i.day { height: 22px; } .steps i.on { background: var(--ink); height: 30px; }
#map { display: block; width: 1250px; height: 810px; background: var(--sea); }
#map .land { fill: var(--land); stroke: var(--coast); stroke-width: 1.2; stroke-linejoin: round; }
#map .iso { fill: none; stroke: var(--iso); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#map .iso.bold { stroke-width: 3.4; }
#map .isolabel { font: 700 17px Roboto, system-ui, sans-serif; fill: var(--iso); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round; }
#map .centre { font: 900 54px Roboto, system-ui, sans-serif; text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 8px; stroke-linejoin: round; }
#map .centre.small { font-size: 21px; font-weight: 800; stroke-width: 6px; }
#map .H { fill: var(--high); } #map .L { fill: var(--low); }
#map .gva { fill: var(--geneva); stroke: #fff; stroke-width: 4; }
#map .gvalabel { font: 900 24px Roboto, system-ui, sans-serif; fill: var(--geneva); paint-order: stroke; stroke: var(--panel); stroke-width: 7px; stroke-linejoin: round; }
.caption { position: absolute; left: 1rem; bottom: 0.9rem; max-width: 34rem; font-size: 1.02rem; line-height: 1.3; font-weight: 500; color: var(--muted); background: color-mix(in srgb, var(--panel) 90%, transparent); border-radius: 0.7rem; padding: 0.5rem 0.8rem; }
.caption b { color: var(--ink); }
.holding { display: grid; place-items: center; text-align: center; padding: 3rem; font-size: 2.3rem; font-weight: 700; color: var(--muted); line-height: 1.4; height: 888px; }

/* Beside the chart: Geneva's pressure at the time shown, the forecast, and the school's own station. */
.side { display: grid; grid-template-rows: auto 1fr auto; gap: 20px; height: 888px; }
.side .box { padding: 1.1rem 1.3rem; }
.big { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.4rem; white-space: nowrap; }
.big .v { font-size: 4.4rem; font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.big .u { font-size: 1.6rem; font-weight: 700; color: var(--muted); }
.big .trend { margin-left: auto; font-size: 1.35rem; font-weight: 800; }
.spark { display: block; width: 100%; height: 96px; margin-top: 0.5rem; }
.spark .line { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { fill: var(--geneva); stroke: var(--panel); stroke-width: 3; }
.spark text { font: 600 15px Roboto, system-ui, sans-serif; fill: var(--muted); }
.days { display: grid; grid-auto-rows: 1fr; margin-top: 0.3rem; height: calc(100% - 2rem); }
.day { display: grid; grid-template-columns: 6.6rem 1fr auto; align-items: center; gap: 0.8rem; border-top: 1px solid var(--rule); }
.day:first-child { border-top: 0; }
.day .d { font-size: 1.45rem; font-weight: 900; }
.day .w { font-size: 1.35rem; font-weight: 700; } .day .w small { display: block; font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-top: 0.1rem; }
.day .temps { font-size: 1.7rem; font-weight: 900; white-space: nowrap; } .day .temps span { color: var(--muted); font-weight: 600; font-size: 1.35rem; margin-right: 0.5rem; }
.roof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-top: 0.5rem; }
.roof .v { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.03em; white-space: nowrap; } .roof .v small { font-size: 1.1rem; font-weight: 700; color: var(--muted); margin-left: 0.2rem; }
.roof .k { font-size: 1.02rem; font-weight: 600; color: var(--muted); }
