:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #14251f; background: #dce8df; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #d9eff942 0%, #edf3e817 45%, #dfe8dc52 100%), url('/images/swiss-summer-weather.png') center top / cover fixed no-repeat; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: linear-gradient(90deg, #ffffff12, transparent 65%), linear-gradient(180deg, transparent 48%, #e7eee442 100%); }
main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 32px; }
.language-switcher { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-bottom: 24px; }
.language-switcher label { margin: 0; color: #173f34; }
.language-switcher select { width: auto; min-width: 145px; margin: 0; padding: 8px 34px 8px 11px; background: #ffffffa8; }
header { max-width: 1040px; margin-bottom: 42px; }
.eyebrow { color: #173f34; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
h1 { font-family: Inter, system-ui, sans-serif; font-size: clamp(2.7rem, 5.6vw, 4.6rem); line-height: 1; margin: 12px 0 20px; font-weight: 760; letter-spacing: -.045em; white-space: nowrap; text-shadow: 0 1px 18px #fff8; }
.intro { max-width: none; font-size: 1.15rem; line-height: 1.6; color: #263d35; white-space: nowrap; text-shadow: 0 1px 12px #fff; }
.explainer { padding: 24px 28px; }
.explainer-heading { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr); gap: 28px; align-items: end; margin-bottom: 20px; }
.explainer-heading .eyebrow { margin-bottom: 6px; }
.explainer-heading h2, .explainer-grid h3 { margin: 0; }
.explainer-heading > p { margin: 0; color: #38534a; line-height: 1.55; }
.explainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.explainer-grid article { min-width: 0; padding: 17px 18px; border: 1px solid rgba(255,255,255,.78); border-radius: 15px; background: linear-gradient(135deg, rgba(255,255,255,.62), rgba(255,255,255,.28)); box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 8px 20px rgba(38,75,62,.08); }
.explainer-grid h3 { font-size: .98rem; color: #153b31; }
.explainer-grid p { margin: 8px 0 0; color: #455d55; font-size: .91rem; line-height: 1.5; }
section { background: #ffffff8c; border: 1px solid #ffffffd9; border-radius: 22px; padding: 28px; margin: 20px 0; box-shadow: 0 22px 55px #173c2c29, 0 5px 14px #173c2c14, inset 0 1px 0 #fff, inset 0 -1px 0 #ffffff66; backdrop-filter: blur(17px) saturate(145%); -webkit-backdrop-filter: blur(17px) saturate(145%); }
main > section { position: relative; isolation: isolate; overflow: hidden; }
main > section::before { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(145deg, #ffffff70 0%, #ffffff12 38%, transparent 62%), radial-gradient(circle at 82% 8%, #ffffff54, transparent 28%); }
main > section::after { content: ''; position: absolute; inset: 1px; pointer-events: none; border-radius: 20px; border-top: 1px solid #fff; border-left: 1px solid #ffffffb0; box-shadow: inset 0 -12px 22px #345b4912; }
h2 { margin: 0 0 22px; font-size: 1.1rem; }
label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 8px; }
select, input { width: 100%; padding: 12px; margin-top: 7px; border: 1px solid #aebdb6; border-radius: 12px; background: #ffffffc7; box-shadow: inset 0 1px #fff, 0 5px 14px #1c40330b; font: inherit; }
.station-selectors { display: grid; gap: 10px; width: min(100%, 540px); padding-right: 48px; }
.station-row { position: relative; display: block; }
.station-row label { width: 100%; }
.remove-station { position: absolute; right: -48px; bottom: 14px; width: 36px; height: 34px; padding: 0; margin: 0; border-radius: 9px; background: #f3e7e3; color: #8b321f; box-shadow: none; font-size: 1.2rem; }
.years { display: grid; grid-template-columns: repeat(2, minmax(130px, 190px)); gap: 14px; margin-top: 20px; }
.metric-label { width: min(100%, 492px); margin-top: 12px; }
button { margin-top: 18px; border: 0; border-radius: 12px; padding: 13px 18px; background: linear-gradient(135deg, #197451, #279463); color: #fff; box-shadow: 0 8px 20px #15573d30; font-weight: 750; cursor: pointer; }
button:hover { background: #143e31; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary-button { margin-top: 4px; padding: 9px 12px; background: transparent; color: #1e5745; border: 1px solid #b8c4be; }
.secondary-button:hover { background: #edf4f0; }
.map-toggle { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; margin-left: 8px; }
.map-toggle span:last-child { transition: transform .2s ease; }
.map-toggle[aria-expanded='true'] span:last-child { transform: rotate(180deg); }
.map-panel { width: min(100%, 760px); margin-top: 14px; }
.map-search-label { width: min(100%, 360px); }
.map-hint { margin: 5px 0 10px; color: #596963; font-size: .78rem; }
.station-map { position: relative; height: 410px; overflow: hidden; border: 1px solid #ffffffdc; border-radius: 18px; background: #dce9df; box-shadow: inset 0 1px #fff, 0 12px 28px #173c2c17; }
.station-map .leaflet-control-attribution { font-size: .65rem; }
.station-map .leaflet-control-zoom a { color: #173f34; }
.map-info { position: absolute; z-index: 1000; left: 14px; bottom: 14px; max-width: calc(100% - 28px); min-height: 42px; padding: 10px 13px; border: 1px solid #ffffffd9; border-radius: 12px; background: #ffffffdf; box-shadow: 0 8px 20px #173c2c21; backdrop-filter: blur(12px); color: #3e514a; font-size: .78rem; pointer-events: none; }
.map-info strong { display: block; margin-bottom: 2px; color: #152a22; }
#status { color: #52615c; min-height: 1.2em; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.badge { flex: none; background: #fff0dc; color: #8b431e; border-radius: 99px; padding: 5px 10px; font-size: .75rem; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 20px; font-size: .8rem; color: #52615c; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; }
.legend .forecast-key i { border: 1px solid #52615c; background: repeating-linear-gradient(135deg, #52615c 0 2px, #fff 2px 4px); }
.chart { display: grid; grid-template-columns: 34px 1fr; height: 330px; padding-top: 20px; overflow-x: auto; border-bottom: 1px solid #cbd4cf; }
.chart-empty { display: grid; place-items: center; min-height: 220px; color: #66746e; background: #f6f8f7; border-radius: 10px; }
.y-axis { position: sticky; left: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 0 5px 30px 0; color: #586c64; font-size: .7rem; background: #f8faf8d9; }
.plot { min-width: 640px; display: flex; align-items: stretch; gap: 12px; padding: 0 12px; background: repeating-linear-gradient(to bottom, #dfe5e1 0, #dfe5e1 1px, transparent 1px, transparent 50%); }
.year-group { flex: 1; min-width: 50px; display: grid; grid-template-rows: 1fr 30px; }
.bars { display: flex; justify-content: center; align-items: end; gap: 3px; }
.bar-stack { width: min(18px, 30%); min-height: 0; display: flex; flex-direction: column; justify-content: end; position: relative; transition: height .35s ease; }
.bar-stack > span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .65rem; font-weight: 700; color: #46534e; }
.bar-measured { width: 100%; background: var(--bar-color); border-radius: 0 0 2px 2px; }
.bar-forecast { width: 100%; min-height: 3px; border: 1px solid var(--bar-color); border-bottom: 0; border-radius: 3px 3px 0 0; background: repeating-linear-gradient(135deg, var(--bar-color) 0 2px, #fff 2px 5px); }
.year-label { align-self: center; text-align: center; font-size: .72rem; color: #66746e; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.summary { position: relative; overflow: hidden; border: 1px solid #ffffffd4; border-left: 5px solid var(--station-color); border-radius: 14px; padding: 17px; background: linear-gradient(145deg, #ffffffa8, #edf5ef69); box-shadow: 0 12px 25px #173c2c17, inset 0 1px #fff, inset 0 -1px #ffffff80; backdrop-filter: blur(14px) saturate(135%); -webkit-backdrop-filter: blur(14px) saturate(135%); }
.summary::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, #ffffff50, transparent 38%); }
.summary strong { display: block; font-family: Inter, system-ui, sans-serif; font-size: 2rem; margin: 4px 0; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.summary strong em { font-family: Inter, system-ui, sans-serif; font-size: .9rem; font-style: normal; color: #7b5d2a; }
.summary small { color: #63716c; }
.climate-context-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-top: 34px; }
.climate-context-heading h2 { margin-bottom: 4px; }
.climate-context-heading p { margin: 0; color: #63716c; font-size: .8rem; }
.climate-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 14px; }
.context-card { border: 1px solid #ffffffd4; border-left: 5px solid var(--station-color); border-radius: 14px; padding: 17px; background: linear-gradient(145deg, #ffffffa8, #edf5ef69); box-shadow: 0 12px 25px #173c2c17, inset 0 1px #fff; backdrop-filter: blur(14px) saturate(135%); }
.context-card h3 { margin: 0; font-size: .95rem; }
.context-current { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 14px; }
.context-current strong { font-family: Inter, system-ui, sans-serif; font-size: 1.8rem; font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.context-current span { color: #63716c; font-size: .76rem; }
.context-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.context-fact { padding-top: 8px; border-top: 1px solid #b9c9c2; }
.context-fact span, .context-fact small { display: block; color: #63716c; font-size: .68rem; }
.context-fact strong { display: block; margin: 3px 0; font-size: 1rem; }
.top-years-title { margin: 26px 0 10px; font-size: .95rem; }
.top-years { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.top-years-card { padding: 14px 16px; border: 1px solid #ffffffd4; border-left: 5px solid var(--station-color); border-radius: 14px; background: linear-gradient(145deg, #ffffff9c, #edf5ef60); box-shadow: 0 9px 20px #173c2c12, inset 0 1px #fff; }
.top-years-card h4 { margin: 0 0 8px; font-size: .85rem; }
.top-year-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #c6d2cc; font-size: .78rem; }
.top-year-row:first-of-type { border-top: 0; }
.top-year-rank { color: #63716c; }
.top-year-value { font-weight: 800; }
.top-year-row.provisional { color: #80501c; }
.top-year-row small { grid-column: 2 / 4; color: #80501c; font-size: .66rem; }
.climate-details-toggle { display: flex; width: 100%; justify-content: space-between; margin-top: 14px; padding: 11px 2px 3px; border-radius: 0; border-top: 1px solid #b9c9c2; color: #1c2925; background: transparent; box-shadow: none; }
.climate-details-toggle:hover { color: #176249; background: transparent; }
.climate-details-toggle span:last-child { transition: transform .2s ease; }
.climate-details-toggle[aria-expanded='true'] span:last-child { transform: rotate(180deg); }
.climate-details { display: none; margin-top: 8px; overflow-x: auto; }
.climate-details.open { display: block; }
.climate-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.climate-table th, .climate-table td { padding: 9px 7px; border-bottom: 1px solid #cbd4cf; text-align: left; }
.climate-table th:not(:first-child), .climate-table td:not(:first-child) { text-align: right; }
.climate-table th { color: #63716c; }
.forecast-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 36px; }
.forecast-heading h2 { margin-bottom: 12px; }
#forecast-updated { color: #72807a; font-size: .75rem; }
.forecast { display: grid; gap: 16px; }
.forecast-station { position: relative; overflow: hidden; margin: 0; padding: 17px; border: 1px solid #ffffffd1; border-left: 5px solid var(--station-color); border-radius: 15px; background: linear-gradient(145deg, #ffffff9e, #eff6f07a); box-shadow: 0 14px 30px #173c2c1a, inset 0 1px #fff, inset 0 -1px #ffffff70; backdrop-filter: blur(15px) saturate(140%); -webkit-backdrop-filter: blur(15px) saturate(140%); }
.forecast-station::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at 88% 0%, #ffffff6b, transparent 28%); }
.forecast-station h3 { margin: 0 0 12px; font-size: .95rem; }
.forecast-days { display: grid; grid-template-columns: repeat(9, minmax(92px, 1fr)); gap: 7px; overflow-x: auto; padding-bottom: 4px; }
.forecast-day { position: relative; z-index: 1; min-width: 92px; padding: 10px; border: 1px solid #ffffffdb; border-radius: 11px; background: linear-gradient(150deg, #ffffffd1, #f4f8f3a3); box-shadow: 0 7px 16px #234b3b16, inset 0 1px #fff, inset 0 -1px #d9e7df75; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .18s ease, box-shadow .18s ease; }
.forecast-day:hover { transform: translateY(-2px); box-shadow: 0 11px 22px #234b3b20, inset 0 1px #fff; }
.forecast-day time, .forecast-day span { display: block; color: #63716c; font-size: .72rem; }
.forecast-day strong { display: block; margin: 7px 0 2px; font-family: Georgia, serif; font-size: 1.45rem; }
.events { min-height: 38px; margin-top: 8px; }
.event { display: block; width: max-content; margin: 3px 0; padding: 2px 5px; border-radius: 4px; font-size: .62rem; }
.event.heat { color: #94361f; background: #fde5dc; }
.event.tropical { color: #64458a; background: #eee5f7; }
footer { color: #29453b; text-align: center; font-size: .85rem; padding: 22px 10px; text-shadow: 0 1px 8px #fff; }
footer a { color: inherit; font-weight: 700; text-underline-offset: 3px; }
.legal-page { max-width: 900px; padding-top: 56px; }
.legal-page header { margin-bottom: 28px; }
.legal-page section { padding: clamp(24px, 4vw, 42px); }
.legal-page h2 { margin-top: 30px; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page .back-link { display: inline-block; margin-top: 28px; color: #155f4b; font-weight: 700; }
@media (max-width: 760px) { h1, .intro { white-space: normal; } h1 { font-size: clamp(2.5rem, 10vw, 4rem); } }
@media (max-width: 760px) { .explainer-heading, .explainer-grid { grid-template-columns: 1fr; } .explainer { padding: 21px 20px; } .explainer-heading { gap: 10px; } }
@media (max-width: 520px) { main { padding-top: 36px; } .station-selectors { width: 100%; } .map-toggle { margin: 8px 0 0; } .station-map { height: 360px; } .years { grid-template-columns: 1fr 1fr; } .metric-label { width: calc(100% - 48px); } section { padding: 20px; } .chart { height: 280px; } .context-facts { grid-template-columns: 1fr; } }
