:root {
  --bg: #f7f8fb; --surface: #ffffff; --surface-2: #f1f5f9;
  --border: rgba(15,23,42,0.10); --border-hi: rgba(15,23,42,0.18);
  --text: #0f172a; --text-dim: #334155; --text-mid: #475569; --text-faint: #64748b;
  --temp: #f97316; --humid: #0284c7; --press: #7c3aed; --wind: #c2410c; --rain: #1d4ed8; --sun: #b45309;
  --temp-soft: #fff7ed; --humid-soft: #f0f9ff; --press-soft: #f5f3ff;
  --cold: #0369a1; --warm: #c2410c; --green: #15803d; --yellow: #d97706; --red: #b91c1c;
  --f-display: 'Syne', sans-serif; --f-body: 'DM Sans', sans-serif;
  --f-mono: 'DM Mono', monospace; --f-cond: 'Barlow Condensed', sans-serif;
  --r: 14px; --r-sm: 8px;
  --shadow: 0 1px 3px rgba(15,23,42,0.05), 0 2px 8px rgba(15,23,42,0.04);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; }
a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-hi); transition: border-color .15s; }
a:hover { border-color: var(--text); }
.container { max-width: 1240px; margin: 0 auto; padding: 24px 20px; }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.nav { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.nav a { border-bottom: 3px solid transparent; padding: 8px 16px 8px 0; margin-right: 16px; font-family: var(--f-cond); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mid); transition: color .15s, border-color .15s; text-decoration: none; }
.nav a:hover { color: var(--text); border-bottom-color: var(--border-hi); }
.nav a.active { color: var(--text); border-bottom-color: var(--temp); }
.nav a .ico { margin-right: 6px; }
/* ─── Hamburger toggle (mobile only) ─── */
.lang-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 12px 5px 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text);
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  align-items: center;
  gap: 4px;
}
.lang-toggle::after {
  content: "▾";
  font-size: 10px;
  transition: transform .2s;
  display: inline-block;
}
.lang-toggle.open::after { transform: rotate(180deg); }
.lang-toggle:hover { background: var(--surface); }
.lang-wrap { position: relative; }


.site-title { font-family: var(--f-display); font-size: clamp(22px,3vw,30px); font-weight: 700; letter-spacing: .01em; color: var(--text); }
.site-title .emoji { font-size: .9em; }
.site-sub { font-size: 14px; color: var(--text-dim); margin-top: 4px; font-weight: 400; }

.live-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 13px; font-weight: 500; border-radius: 99px; padding: 5px 11px; border: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2.4s ease-in-out infinite; }
.live-pill.ok { color: var(--green); background: #f0fdf4; border-color: #bbf7d0; }
.live-pill.warn { color: var(--yellow); background: #fffbeb; border-color: #fde68a; }
.live-pill.stale { color: var(--red); background: #fef2f2; border-color: #fecaca; }
.live-pill.error { color: var(--red); background: #fef2f2; border-color: #fecaca; }
.live-pill.error .dot { animation: none; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.error-banner { display: none; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--r); padding: 12px 16px; margin-bottom: 20px; color: #991b1b; font-size: 14px; }
.error-banner.show { display: block; }
.error-banner strong { font-weight: 600; }

.section-title { font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mid); margin: 40px 0 16px; display: flex; align-items: center; gap: 9px; }
.section-title:first-child { margin-top: 0; }
.section-title .ico { font-size: 17px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); position: relative; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--text-mid)); z-index: 2; border-radius: var(--r) var(--r) 0 0; }
.clbl { font-family: var(--f-cond); font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mid); padding: 14px 16px 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-temp { --accent: var(--temp); }
.card-hum { --accent: var(--humid); }
.card-press { --accent: var(--press); }
.card-rain { --accent: var(--rain); }
.card-wind { --accent: var(--wind); }

.live-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .live-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) {
  .live-grid { grid-template-columns: 1.4fr 0.9fr 1fr; grid-template-areas: "temp hum press" "wind rain rain"; }
  .card-temp { grid-area: temp; } .card-hum { grid-area: hum; } .card-press { grid-area: press; }
  .card-wind { grid-area: wind; } .card-rain { grid-area: rain; }
}

.temp-body { padding: 4px 18px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; border-radius: 0 0 var(--r) var(--r); }
.temp-main-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.temp-big { font-family: var(--f-cond); font-size: clamp(54px,9vw,96px); font-weight: 300; color: var(--temp); line-height: .95; letter-spacing: -.02em; }
.temp-big .unit { font-size: .42em; vertical-align: super; opacity: .55; margin-left: 2px; }
.temp-range { font-family: var(--f-cond); font-size: clamp(14px,1.4vw,17px); color: var(--text-mid); font-weight: 500; letter-spacing: .03em; }
.temp-range strong { color: var(--text); font-weight: 600; }
.temp-mm { display: flex; gap: 28px; justify-content: flex-start; align-items: baseline; font-family: var(--f-cond); font-size: clamp(18px,2.2vw,26px); font-weight: 600; letter-spacing: .04em; margin: 6px 0 2px; }
.temp-mm .mn { color: var(--cold); } .temp-mm .mx { color: var(--warm); }
.temp-mm-time { font-family: var(--f-mono); font-size: 13px; color: var(--text); font-weight: 500; letter-spacing: .01em; }
.temp-note { font-size: 12px; color: var(--text-mid); border-top: 1px dashed var(--border); padding-top: 8px; margin-top: auto; line-height: 1.5; }
.temp-bg-svg { position: absolute; inset: 24px 0 62px 0; width: 100%; pointer-events: none; opacity: .34; z-index: 0; }
.temp-main-row, .temp-mm, .temp-mm-time, .temp-note { position: relative; z-index: 1; }

.hum-body { padding: 4px 18px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.hum-big { font-family: var(--f-cond); font-size: clamp(48px,7vw,78px); font-weight: 300; color: var(--humid); line-height: .95; letter-spacing: -.01em; }
.hum-big .unit { font-size: .42em; vertical-align: super; opacity: .55; margin-left: 2px; }
.hum-bar-wrap { height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.hum-bar { height: 100%; background: var(--humid); border-radius: 4px; transition: width .8s ease; min-width: 6px; }
.hum-mm { display: flex; justify-content: space-between; gap: 18px; font-family: var(--f-cond); font-size: clamp(18px,2vw,24px); font-weight: 600; margin: 4px 0 2px; }
.hum-mm .mn { color: var(--cold); } .hum-mm .mx { color: var(--warm); }
.hum-dew { font-size: 13px; color: var(--text-dim); background: var(--humid-soft); border-radius: 6px; padding: 7px 11px; display: flex; align-items: center; justify-content: space-between; }
.hum-dew strong { font-family: var(--f-cond); font-size: 19px; font-weight: 500; color: var(--humid); }

.press-body { padding: 4px 18px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.press-main { display: flex; align-items: baseline; gap: 6px; }
.press-big { font-family: var(--f-cond); font-size: clamp(40px,6vw,64px); font-weight: 300; color: var(--press); line-height: .95; letter-spacing: -.01em; }
.press-unit { font-family: var(--f-cond); font-size: 18px; font-weight: 400; color: var(--text-mid); }
.press-mm { display: flex; gap: 18px; font-family: var(--f-cond); font-size: 15px; font-weight: 500; }
.press-mm .lbl { color: var(--text-mid); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; display: block; font-weight: 600; }
.press-mm .val { font-size: 19px; }
.press-mm .mn .val { color: var(--cold); } .press-mm .mx .val { color: var(--warm); }
.press-spark { width: 100%; height: 52px; }
.press-spark-axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; font-weight: 500; color: var(--text); margin-top: 2px; }
.press-6h { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px dashed var(--border); }
.p6-arrow { font-size: 30px; font-weight: 300; line-height: 1; }
.p6-arrow.up { color: var(--green); } .p6-arrow.down { color: var(--yellow); } .p6-arrow.stable { color: var(--cold); }
.p6-delta { font-family: var(--f-cond); font-size: 21px; font-weight: 400; }
.p6-lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .1em; text-transform: uppercase; }

.wind-body { padding: 4px 14px 16px; flex: 1; display: flex; gap: 14px; min-height: 0; }
.wind-left { flex: 0 0 42%; display: flex; flex-direction: column; gap: 12px; }
.wind-dir-block { display: flex; flex-direction: column; gap: 2px; }
.wind-dir-lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .1em; text-transform: uppercase; }
.wind-dir-big { font-family: var(--f-cond); font-size: clamp(34px,5vw,52px); font-weight: 600; color: var(--wind); line-height: 1; letter-spacing: -.01em; }
.wind-deg { font-family: var(--f-cond); font-size: 17px; color: var(--text-mid); font-weight: 400; }
.wind-gust-val, .wind-max-val { font-family: var(--f-cond); font-size: clamp(22px,3vw,30px); font-weight: 400; color: var(--text); line-height: 1; }
.wind-max-val { color: var(--text-mid); }
.wind-compass-wrap { flex: 1; display: flex; align-items: center; justify-content: center; min-width: 0; }
.wind-compass { width: 100%; max-width: 220px; aspect-ratio: 1/1; display: block; }

.rain-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 4px; }
.rain-header .clbl { padding: 0; flex-shrink: 0; }
.rain-bar-wrap { flex: 1; height: 7px; background: #e2e8f0; border-radius: 4px; overflow: hidden; }
.rain-bar { height: 100%; background: var(--rain); border-radius: 4px; transition: width .8s ease, background .8s ease; width: 0; }
.rain-badge { font-family: var(--f-cond); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; color: var(--text-mid); border: 1px solid var(--border); flex-shrink: 0; }
.rain-body { padding: 8px 16px 16px; display: flex; gap: 16px; flex: 1; min-height: 0; }
.rain-left { flex: 0 0 40%; display: flex; flex-direction: column; gap: 6px; }
.rain-rate { display: flex; align-items: baseline; gap: 5px; }
.rain-rate-val { font-family: var(--f-cond); font-size: clamp(40px,6vw,64px); font-weight: 300; color: var(--rain); line-height: 1; }
.rain-rate-unit { font-family: var(--f-cond); font-size: 15px; font-weight: 500; color: var(--text-mid); }
.rain-today { display: flex; align-items: baseline; gap: 5px; border-top: 1px dashed var(--border); padding-top: 6px; }
.rain-today-val { font-family: var(--f-cond); font-size: clamp(28px,4vw,42px); font-weight: 300; color: var(--rain); line-height: 1; }
.rain-today-lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .08em; text-transform: uppercase; }
.rain-my { display: flex; gap: 12px; font-family: var(--f-cond); }
.rain-my .item { flex: 1; }
.rain-my .lbl { font-size: 11px; font-weight: 600; color: var(--text-mid); letter-spacing: .08em; text-transform: uppercase; }
.rain-my .val { font-size: clamp(20px,2.6vw,28px); font-weight: 300; line-height: 1.1; }
.rain-my .month .val { color: var(--yellow); } .rain-my .year .val { color: var(--press); }
.rain-chart-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rain-chart-lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
#rain-bar-svg { width: 100%; flex: 1; min-height: 80px; display: block; overflow: visible; }

.charts-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .charts-grid { grid-template-columns: 1fr 1fr; } }
.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 235px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; gap: 8px; }
.chart-title { font-family: var(--f-cond); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.chart-title .un { font-weight: 400; opacity: .65; font-size: 12px; }
.chart-delta { font-family: var(--f-cond); font-size: 15px; font-weight: 600; white-space: nowrap; }
.chart-svg { width: 100%; flex: 1; min-height: 170px; display: block; overflow: visible; }
.chart-temp .chart-title { color: var(--temp); } .chart-hum .chart-title { color: var(--humid); }
.chart-press .chart-title { color: var(--press); } .chart-wind .chart-title { color: var(--wind); }

.sun-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .sun-grid { grid-template-columns: 1.4fr 1fr; } }
.sun-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); position: relative; }
.sun-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--sun); border-radius: var(--r) var(--r) 0 0; }
.sun-body { padding: 18px 18px 16px; }
.sun-times { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.sun-item { display: flex; flex-direction: column; gap: 2px; }
.sun-lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .1em; text-transform: uppercase; }
.sun-val { font-family: var(--f-cond); font-size: clamp(22px,3vw,32px); font-weight: 400; color: var(--sun); line-height: 1; }
.sun-val.dim { color: var(--text); }
.sun-meta { display: flex; gap: 14px; padding-top: 12px; border-top: 1px dashed var(--border); flex-wrap: wrap; }
.sun-meta-item { flex: 1; min-width: 100px; }
.sun-meta-lbl { font-family: var(--f-cond); font-size: 11px; font-weight: 600; color: var(--text-mid); letter-spacing: .09em; text-transform: uppercase; }
.sun-meta-val { font-family: var(--f-cond); font-size: 23px; font-weight: 400; color: var(--text); }
.sun-meta-val.solar { color: var(--sun); }
.uv-scale-wrap { margin-top: 4px; position: relative; height: 8px; background: linear-gradient(to right, #15803d 0%, #15803d 27%, #ca8a04 27%, #ca8a04 45%, #ea580c 45%, #ea580c 64%, #b91c1c 64%, #b91c1c 82%, #6d28d9 82%, #6d28d9 100%); border-radius: 4px; }
.uv-pointer { position: absolute; top: -3px; width: 3px; height: 14px; background: var(--text); border-radius: 2px; transform: translateX(-50%); transition: left .5s ease; }
.moon-card { padding: 18px; }
.moon-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.moon-phase-name { font-family: var(--f-cond); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.moon-pct { font-family: var(--f-cond); font-size: 31px; font-weight: 300; color: var(--sun); line-height: 1; }
.moon-pct .lbl { font-size: 13px; color: var(--text-mid); margin-left: 4px; }

.forecast-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.forecast-card .intro { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.forecast-card .intro strong { color: var(--text); font-weight: 600; }
.forecast-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
@media (max-width: 600px) { .forecast-row { grid-template-columns: 1fr; } }
.forecast-cell { background: var(--surface-2); border-radius: var(--r-sm); padding: 12px 14px; border: 1px solid var(--border); }
.forecast-cell .lbl { font-family: var(--f-cond); font-size: 12px; font-weight: 600; color: var(--text-mid); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.forecast-cell .compare { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.forecast-cell .compare > div { display: flex; flex-direction: column; }
.forecast-cell .pred { font-family: var(--f-cond); font-size: 23px; font-weight: 400; color: var(--press); }
.forecast-cell .actual { font-family: var(--f-cond); font-size: 23px; font-weight: 500; color: var(--temp); }
.forecast-cell .lbl-mini { font-size: 11px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.forecast-cell .accuracy { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--border); font-family: var(--f-cond); font-size: 14px; color: var(--text-dim); }
.forecast-cell .accuracy strong { color: var(--green); }
.forecast-pending { padding: 18px 20px; background: var(--surface-2); border-radius: var(--r-sm); border: 1px dashed var(--border-hi); text-align: center; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.forecast-pending strong { color: var(--text); font-weight: 600; }

.site-footer { margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.site-footer strong { color: var(--text); font-weight: 600; }
.site-footer .footer-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }

.info-hint { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--text-mid); color: #fff; font-size: 11px; font-weight: 700; font-style: normal; cursor: help; margin-left: 5px; transition: background .15s, transform .15s; vertical-align: middle; -webkit-tap-highlight-color: transparent; user-select: none; border: none; padding: 0; font-family: inherit; }
.info-hint:hover, .info-hint:focus-visible { background: var(--text); transform: scale(1.1); outline: none; }

#tooltip-layer { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
.tip-bubble { position: absolute; background: var(--text); color: #fff; padding: 8px 12px; border-radius: 8px; font-family: var(--f-body); font-size: 13px; font-weight: 400; line-height: 1.45; max-width: 280px; box-shadow: 0 6px 20px rgba(15,23,42,0.25); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: auto; }
.tip-bubble.show { opacity: 1; transform: translateY(0); }
.tip-bubble::after { content: ""; position: absolute; width: 0; height: 0; border: 6px solid transparent; }
.tip-bubble.below::after { bottom: 100%; left: var(--arrow-x, 50%); margin-left: -6px; border-bottom-color: var(--text); }
.tip-bubble.above::after { top: 100%; left: var(--arrow-x, 50%); margin-left: -6px; border-top-color: var(--text); }

@media (max-width: 600px) {
  .container { padding: 18px 14px; }
  .site-title { font-size: 24px; }
  .temp-big { font-size: clamp(46px,13vw,64px); }
  .temp-mm { font-size: clamp(17px,5.2vw,23px); gap: 18px; }
  .hum-mm { font-size: clamp(17px,5vw,22px); }
  .chart-card { min-height: 245px; padding: 15px 14px; }
  .chart-svg { min-height: 180px; }
  .hum-big { font-size: clamp(42px,11vw,58px); }
  .press-big { font-size: clamp(36px,9vw,48px); }
  .rain-rate-val { font-size: clamp(36px,11vw,52px); }
  .wind-dir-big { font-size: clamp(30px,8vw,42px); }
  .wind-compass { max-width: 180px; }
  .rain-body { flex-direction: column; }
  .rain-left { flex: 0 0 auto; }
  .site-footer { font-size: 13px; }
  .site-footer .footer-row { gap: 10px; }
}

@media print {
  body { background: white; }
  .card, .chart-card, .sun-card, .forecast-card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  .live-pill, .error-banner { display: none; }
}

.seo-content{
  max-width: 1100px;
  margin: 64px auto 40px auto;
  padding: 28px;
  color: var(--text-mid);
  font-family: var(--f-body);
  line-height: 1.8;
  font-size: 15px;
  border-top: 1px solid var(--border);
}

.seo-content h1{
  font-family: var(--f-cond);
  font-size: 34px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: var(--text);
  letter-spacing: .02em;
}

.seo-content p{
  margin: 0 0 16px 0;
}

@media (max-width: 768px){
  .seo-content{
    padding: 22px;
    margin-top: 42px;
    font-size: 14px;
  }

  .seo-content h1{
    font-size: 28px;
  }
}


/* Externalized inline styles for CSP hardening */
.unit-inline { font-size: .5em; color: var(--text-mid); }
.unit-inline-lg { font-size: .55em; }
#wind-needle { transform-origin: 0 0; transition: transform 1s ease-out; }
.svg-text-stroke-lg { paint-order: stroke; stroke: #ffffff; stroke-width: 12; stroke-linejoin: round; }
.svg-text-stroke-sm { paint-order: stroke; stroke: #ffffff; stroke-width: 7; stroke-linejoin: round; }
.clbl-inline { padding: 0; }
.sun-lbl-moon { margin-bottom: 8px; }
.footer-row-note { margin-top: 8px; }
.footer-note { color: var(--text-mid); font-size: 12px; }
.forecast-measured { text-align: right; }

/* ─── Language switcher ─── */
.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px;
  font-family: var(--f-mono);
  font-size: 13px;
  margin-left: 12px;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.04);
}
.lang-switch a, .lang-switch span {
  padding: 6px 14px;
  border-radius: 99px;
  text-decoration: none;
  border: none;
  color: var(--text-mid);
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
  display: inline-block;
}
.lang-switch .active {
  background: var(--text);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.18);
}
.lang-switch a:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateY(-1px);
}
.lang-switch a:active {
  transform: translateY(0);
}
.lang-switch .active {
  background: var(--text);
  color: var(--surface);
}
.lang-switch a:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* ─── Chart tooltips (interactive hover on graphs) ─── */
.chart-tip {
  position: absolute;
  background: var(--text);
  color: #ffffff;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity .12s ease;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15,23,42,0.18);
  letter-spacing: 0.02em;
}
.chart-tip.show { opacity: 0.96; }
.chart-tip .t {
  color: #94a3b8;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.chart-tip strong {
  color: #fb923c;
  font-weight: 600;
}
/* Triangle pointing down to dot */
.chart-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text);
}

/* ─── Mobile header overrides (must be at end for cascade priority) ─── */
@media (max-width: 600px) { 
  .site-header { gap: 8px; margin-bottom: 12px; padding-bottom: 12px; }
  .site-title { font-size: clamp(18px, 5vw, 22px) !important; line-height: 1.15; }
  .site-title .emoji { font-size: .85em; }
  .site-sub { font-size: 12px; margin-top: 2px; line-height: 1.35; }
  .live-pill { font-size: 11px; padding: 3px 9px; gap: 5px; }
  .live-pill .dot { width: 6px; height: 6px; }
  
  /* Tabs: rovnomerne, bez emoji, kompaktné */
  .nav { 
    margin-bottom: 14px; 
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
  }
  .nav a { 
    font-size: 9px; 
    padding: 10px 2px; 
    margin-right: 0; 
    flex: 1; 
    text-align: center; 
    letter-spacing: .02em;
    white-space: nowrap;
  }
  .nav a .ico { display: none; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  
  .section-title { font-size: 12px; margin: 18px 0 10px; letter-spacing: .10em; gap: 6px; }
  .section-title .ico { font-size: 14px; }
  
  /* Hamburger viditeľný, lang-switch ako dropdown */
  .lang-toggle { display: inline-flex; }
  .lang-switch {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border-hi);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.18);
    padding: 6px;
    gap: 4px;
    margin-left: 0;
    z-index: 99;
    min-width: 90px;
  }
  .lang-switch.open { display: flex; }
  .lang-switch a, .lang-switch span {
    padding: 8px 14px;
    text-align: left;
    min-width: auto;
    border-radius: 8px;
    letter-spacing: .12em;
  }
  .lang-switch .active {
    background: var(--text);
    color: #ffffff;
  }
}
@media (min-width: 601px) {
  .nav-long { display: inline; }
  .nav-short { display: none; }
  .lang-toggle { display: none !important; }
  .lang-switch { display: inline-flex !important; }
}

/* ─── Mobile: collapsed pill (only dot visible) ─── */
@media (max-width: 600px) {
  .live-pill, .updated-pill {
    cursor: pointer;
    transition: padding .2s, border-color .2s, background .2s;
  }
  .live-pill:not(.expanded),
  .updated-pill:not(.expanded) {
    padding: 4px;
    border-color: transparent;
    background: transparent !important;
    gap: 0;
    min-width: 22px;
    min-height: 22px;
    justify-content: center;
  }
  .live-pill:not(.expanded) > span:not(.dot),
  .updated-pill:not(.expanded) > span:not(.dot) {
    display: none;
  }
  .live-pill:not(.expanded) .dot,
  .updated-pill:not(.expanded) .dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px currentColor;
  }
  /* Expanded state — full pill visible */
  .live-pill.expanded,
  .updated-pill.expanded {
    padding: 3px 9px;
    font-size: 11px;
  }
}

/* ── Verify panel (ICON-EU accuracy) ────────────────────────────── */
.fc-stats-wrap { overflow-x: auto; margin-top: 12px; }
.fc-stats { width: 100%; border-collapse: collapse; font-family: var(--f-cond); font-size: 14px; }
.fc-stats th { text-align: left; font-weight: 600; color: var(--text-mid); padding: 8px 10px; border-bottom: 1px solid var(--border); text-transform: uppercase; font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.fc-stats td { padding: 8px 10px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.fc-stats td.hz { font-weight: 700; color: var(--text); }
.fc-stats td.bias { color: var(--text-dim); }
.fc-stats td .u { font-size: 11px; color: var(--text-mid); margin-left: 3px; }
.fc-stats tbody tr:last-child td { border-bottom: none; }
.fc-chart-wrap { margin-top: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
.fc-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; flex-wrap: wrap; gap: 12px; }
.fc-chart-head .chart-title { font-family: var(--f-cond); font-size: 13px; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .08em; flex: 1 1 auto; }
.fc-legend { display: flex; gap: 14px; font-family: var(--f-cond); font-size: 12px; color: var(--text-dim); align-items: center; flex: 0 0 auto; }
.fc-legend .lg-dot { display: inline-block; width: 18px; height: 3px; vertical-align: middle; margin-right: 4px; border-radius: 2px; }
.fc-legend .lg-pred { background: repeating-linear-gradient(90deg, #8b5cf6 0 5px, transparent 5px 9px); }
.fc-legend .lg-real { background: #f97316; }
.fc-chart-svg { width: 100%; height: 220px; display: block; }
.fc-verdict { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }
.fc-verdict strong { color: var(--text); font-weight: 600; }
.fc-meta { margin-top: 8px; font-size: 12px; color: var(--text-mid); }
@media (max-width: 600px) {
  .fc-stats { font-size: 13px; }
  .fc-stats th, .fc-stats td { padding: 6px 6px; }
}


/* Yesterday-overlay legend + dual tooltip rows on ch-temp card */
.chart-temp .chart-head { flex-wrap: wrap; gap: 8px; }
.cmp-legend { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-cond); font-size: 11px; color: var(--text-mid); text-transform: uppercase; letter-spacing: .06em; margin-left: auto; }
.cmp-legend .cl-dot { display: inline-block; width: 16px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 3px; }
.cmp-legend .cl-today { background: #f97316; }
.cmp-legend .cl-y { background: repeating-linear-gradient(90deg, #94a3b8 0 4px, transparent 4px 7px); }
.chart-tip .tip-row { display: inline-flex; align-items: baseline; gap: 4px; font-size: 11px; }
.chart-tip .tip-key { color: #ffffff; text-transform: uppercase; letter-spacing: .04em; font-size: 9px; }
.chart-tip .tip-y { opacity: .8; }

/* ── Records page ──────────────────────────────────────────────────── */
.records-loading { text-align: center; padding: 40px 20px; color: var(--text-mid); font-size: 14px; }
.rec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; margin-bottom: 28px; }
.rec-grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .rec-grid-2 { grid-template-columns: 1fr; } }
.rec-period-col { display: flex; flex-direction: column; gap: 14px; }
.rec-period-h { font-family: var(--f-cond); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mid); margin: 0 0 4px 0; }
.rec-card { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--rec-color, var(--temp)); border-radius: var(--r-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.rec-card .rec-lbl { font-family: var(--f-cond); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-mid); margin-bottom: 6px; }
.rec-card .rec-val { font-family: var(--f-cond); font-size: 28px; font-weight: 600; color: var(--rec-color, var(--temp)); line-height: 1.1; }
.rec-card .rec-val.muted { color: var(--text-faint); font-size: 16px; }
.rec-card .rec-meta { margin-top: 6px; font-size: 12px; color: var(--text-dim); }
.rec-card .rec-meta strong { color: var(--text); font-weight: 600; }
.rec-chart-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); margin-bottom: 28px; }
#rec-monthly-chart { width: 100%; height: 280px; display: block; }
.rec-chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 8px; font-family: var(--f-cond); font-size: 12px; color: var(--text-dim); }
.rec-chart-legend .lg-dot { display: inline-block; width: 12px; height: 12px; vertical-align: middle; margin-right: 4px; border-radius: 50%; }
.rec-chart-legend .lg-max { background: #f97316; }
.rec-chart-legend .lg-min { background: #0284c7; }
.rec-chart-legend .lg-avg { background: #0f172a; }
.rec-top-table { width: 100%; border-collapse: collapse; margin-top: 8px; margin-bottom: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow); }
.rec-top-table th { text-align: left; font-family: var(--f-cond); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-mid); padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.rec-top-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.rec-top-table td.rk { font-family: var(--f-cond); font-weight: 700; color: var(--text-mid); width: 40px; }
.rec-top-table td.val, .rec-top-table th.val { text-align: right; font-family: var(--f-cond); font-weight: 600; }
.rec-top-table td .muted { color: var(--text-faint); font-size: 12px; margin-left: 6px; }
.rec-top-table tbody tr:last-child td { border-bottom: none; }
.rec-top-table tbody tr:nth-child(even) { background: var(--surface-2); }
.rec-top-table .muted { color: var(--text-faint); text-align: center; padding: 16px; }

/* Records — small note under specific cards */
.rec-card .rec-note { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); font-size: 11px; color: var(--text-mid); font-style: italic; }


/* Footer contact — bold and prominent */
.footer-contact { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.footer-contact span { font-weight: 600; font-size: 14px; color: var(--text); }
.footer-contact a { color: var(--temp); font-weight: 600; border-bottom: 1px solid var(--temp); }
.footer-contact a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ─── Lightning card (hlavná stránka) ─── */
.card-lightning::after{background:#eab308;}
.lightning-body{display:flex;flex-direction:column;gap:10px;padding:4px 2px;}
.lightning-main{display:flex;align-items:baseline;gap:6px;}
.lightning-dist{font-family:var(--f-cond);font-size:clamp(48px,6vw,72px);font-weight:300;color:#d97706;letter-spacing:.02em;line-height:1;}
.lightning-unit{font-size:18px;color:var(--text-faint);font-weight:500;}
.lightning-sub{display:flex;gap:24px;}
.lightning-item .lbl{font-size:12px;color:var(--text-faint);text-transform:uppercase;letter-spacing:.06em;margin-bottom:2px;}
.lightning-item .val{font-family:var(--f-cond);font-size:24px;font-weight:600;color:var(--text);}
.lightning-link{font-size:13px;color:var(--text-mid);border-bottom:1px solid var(--border-hi);align-self:flex-start;}
.lightning-link:hover{color:var(--text);}

.lightning-hidden{display:none !important;}

/* Status pill na strankach bleskov - zelena ako live-pill */
.updated-pill { display:inline-flex; align-items:center; gap:6px; font-family:var(--f-mono); font-size:13px; font-weight:500; border-radius:99px; padding:5px 11px; border:1px solid transparent; transition:background .3s,color .3s,border-color .3s; }
.updated-pill .dot { width:7px; height:7px; border-radius:50%; background:currentColor; animation:pulse 2.4s ease-in-out infinite; }
.updated-pill.ok { color:var(--green); background:#f0fdf4; border-color:#bbf7d0; }
.updated-pill.warn { color:var(--yellow); background:#fffbeb; border-color:#fde68a; }
.updated-pill.stale { color:var(--red); background:#fef2f2; border-color:#fecaca; }
