:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-soft: #edf5fb;
  --surface-glass: rgba(255,255,255,.72);
  --text: #0d1b32;
  --muted: #637086;
  --line: #dfe8f2;
  --primary: #176bff;
  --primary-deep: #0a4fc7;
  --teal: #0bbfad;
  --teal-deep: #07877d;
  --cyan: #6ed7f7;
  --warm: #ffb34e;
  --danger: #ff6c66;
  --shadow-sm: 0 8px 24px rgba(26, 61, 104, .07);
  --shadow-lg: 0 24px 70px rgba(23, 68, 121, .13);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1240px;
  --transition: 180ms ease;
}

html[data-theme="dark"] {
  --bg: #07111f;
  --surface: #0e1b2d;
  --surface-soft: #13243a;
  --surface-glass: rgba(14,27,45,.76);
  --text: #f3f8ff;
  --muted: #9aacbf;
  --line: #20334b;
  --primary: #5c91ff;
  --primary-deep: #87adff;
  --teal: #31d4c3;
  --teal-deep: #72e7db;
  --shadow-sm: 0 8px 28px rgba(0,0,0,.22);
  --shadow-lg: 0 28px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { display: block; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; transform: translateY(-150%); padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--primary); }
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: blur(18px) saturate(150%);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 44px; height: 44px; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 19px; letter-spacing: -.55px; }
.brand-name strong { font-weight: 800; }
.brand-name em { font-style: normal; font-weight: 700; color: var(--teal-deep); }
.brand-tagline { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.desktop-nav a { padding: 10px 13px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 600; transition: var(--transition); }
.desktop-nav a:hover { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button, .search-button, .primary-button, .secondary-button, .text-button { border: 0; cursor: pointer; transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition); }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.icon-button:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.icon-button svg, .search-button svg, .primary-button svg, .secondary-button svg, .text-link svg, .text-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: block; }
.search-button { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px; border-radius: 13px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 22%, transparent); }
.search-button:hover, .primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 30px color-mix(in srgb, var(--primary) 26%, transparent); }
.menu-toggle { display: none; }
.mobile-panel { padding: 0 20px 18px; background: var(--bg); }
.mobile-panel nav { display: grid; gap: 6px; }
.mobile-panel a { padding: 12px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.mobile-panel a:hover { color: var(--primary); background: var(--surface); }

.hero-section { position: relative; overflow: hidden; padding: 28px 0 34px; }
.hero-orb { position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.hero-orb-one { width: 420px; height: 420px; top: -190px; right: -80px; background: radial-gradient(circle, rgba(93,213,247,.25), transparent 69%); }
.hero-orb-two { width: 340px; height: 340px; left: -140px; bottom: -170px; background: radial-gradient(circle, rgba(11,191,173,.14), transparent 69%); }
.breadcrumbs { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--primary); }
.hero-card { position: relative; min-height: 390px; display: grid; grid-template-columns: 1.3fr .9fr; align-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.65); border-radius: var(--radius-lg); background: linear-gradient(115deg, #0d59de 0%, #1988ef 51%, #16bea9 100%); box-shadow: var(--shadow-lg); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .36; background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35) 0 1px, transparent 2px), radial-gradient(circle at 86% 12%, rgba(255,255,255,.22) 0 1px, transparent 2px); background-size: 36px 36px, 49px 49px; mask-image: linear-gradient(90deg, #000, transparent); }
.hero-card::after { content: ""; position: absolute; width: 390px; height: 390px; right: -80px; top: -105px; z-index: -1; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.035); }
.hero-content { padding: 54px 0 54px 60px; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 21px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.11); font-size: 12px; font-weight: 600; backdrop-filter: blur(12px); }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #8af5c8; box-shadow: 0 0 0 4px rgba(138,245,200,.14); }
.hero-content h1 { margin: 0; max-width: 650px; font-size: clamp(46px, 5.2vw, 74px); line-height: .98; letter-spacing: -.065em; }
.hero-content h1 span { color: #d4fff9; }
.hero-content > p { max-width: 570px; margin: 24px 0 22px; color: rgba(255,255,255,.82); font-size: 16px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; }
.hero-meta svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { align-self: stretch; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.weather-illustration { position: relative; width: 260px; height: 185px; filter: drop-shadow(0 25px 32px rgba(3,64,121,.22)); }
.sun { position: absolute; width: 102px; height: 102px; right: 20px; top: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #fff7c9 0 8%, #ffe178 28%, #ffbd4b 70%); box-shadow: 0 0 60px rgba(255,208,88,.46); }
.cloud { position: absolute; background: linear-gradient(180deg, #fff, #dcefff); border-radius: 999px; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud-back { width: 142px; height: 48px; left: 74px; top: 74px; opacity: .74; }
.cloud-back::before { width: 65px; height: 65px; left: 20px; top: -31px; }.cloud-back::after { width: 50px; height: 50px; right: 19px; top: -22px; }
.cloud-front { width: 196px; height: 62px; left: 24px; top: 98px; }
.cloud-front::before { width: 82px; height: 82px; left: 26px; top: -43px; }.cloud-front::after { width: 64px; height: 64px; right: 27px; top: -31px; }
.rain-line { position: absolute; top: 170px; width: 4px; height: 21px; border-radius: 99px; background: #a4efff; transform: rotate(18deg); box-shadow: 0 0 12px rgba(164,239,255,.5); }
.r1 { left: 90px; }.r2 { left: 134px; top: 179px; }.r3 { left: 176px; }
.hero-temperature { margin-top: 3px; font-size: 42px; font-weight: 800; letter-spacing: -.05em; line-height: 1; text-shadow: 0 8px 20px rgba(0,52,111,.2); }
.hero-temperature span { color: #c8fff8; font-weight: 600; }
.hero-condition { margin-top: 8px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; }

.date-search-card { position: relative; z-index: 2; display: flex; align-items: center; gap: 30px; margin: -31px 24px 0; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 21px; background: var(--surface-glass); box-shadow: 0 18px 48px rgba(26,63,108,.13); backdrop-filter: blur(22px) saturate(150%); }
.date-search-copy { min-width: 245px; display: flex; align-items: center; gap: 12px; }
.date-search-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface)); }
.date-search-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.date-search-copy strong, .date-search-copy small { display: block; }
.date-search-copy strong { font-size: 14px; }
.date-search-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.date-fields { flex: 1; display: grid; grid-template-columns: 1fr 1.25fr 1.25fr auto; align-items: end; gap: 10px; }
.date-fields label > span, .compact-select > span { display: block; margin: 0 0 5px 3px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
select { width: 100%; height: 43px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--text); background-color: var(--surface); outline: none; }
select:focus, input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent); }
.primary-button { height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 17px; border-radius: 12px; color: #fff; background: var(--primary); font-size: 13px; font-weight: 700; white-space: nowrap; }
.primary-button svg { width: 16px; }

.metrics-section, .analytics-section, .archive-section, .table-section, .about-section { padding: 52px 0; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-kicker { display: block; margin-bottom: 5px; color: var(--teal-deep); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2, .panel-header h2, .about-copy h2 { margin: 0; font-size: clamp(25px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.035em; }
.section-heading p, .panel-header p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.period-badge { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-size: 12px; font-weight: 600; }
.metrics-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 13px; }
.metric-card { position: relative; min-height: 144px; display: flex; align-items: flex-start; gap: 11px; padding: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.metric-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--metric) 32%, var(--line)); box-shadow: 0 18px 36px color-mix(in srgb, var(--metric) 9%, transparent); }
.metric-card::after { content: ""; position: absolute; width: 100px; height: 100px; right: -38px; bottom: -47px; border-radius: 50%; background: color-mix(in srgb, var(--metric) 8%, transparent); }
.metric-icon { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--metric); background: color-mix(in srgb, var(--metric) 11%, var(--surface)); }
.metric-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.metric-card div:nth-child(2) { min-width: 0; }
.metric-card div:nth-child(2) > span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-card strong { display: block; margin: 6px 0 0; font-size: 23px; line-height: 1.1; letter-spacing: -.035em; white-space: nowrap; }
.metric-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.metric-trend { position: absolute; left: 17px; bottom: 14px; padding: 3px 7px; border-radius: 7px; color: var(--muted); background: var(--surface-soft); font-size: 9px; font-weight: 700; }
.trend-up { color: #d66c21; background: #fff4e8; }.trend-down { color: #1678b8; background: #eaf7ff; }
html[data-theme="dark"] .trend-up, html[data-theme="dark"] .trend-down { background: var(--surface-soft); }
.metric-warm { --metric: #ff9248; }.metric-cool { --metric: #4aa7ff; }.metric-average { --metric: #8a78f5; }.metric-rain { --metric: #10bfc9; }.metric-wind { --metric: #18a98d; }

.analytics-section { padding-top: 28px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0,1.85fr) minmax(300px,.78fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.chart-panel, .climate-panel, .data-panel { padding: 25px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.chart-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-soft); }
.chart-tabs button { border: 0; border-radius: 9px; padding: 8px 11px; color: var(--muted); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; }
.chart-tabs button.active { color: var(--primary); background: var(--surface); box-shadow: 0 4px 12px rgba(26,61,104,.08); }
.chart-legend { min-height: 22px; display: flex; gap: 18px; margin-top: 19px; color: var(--muted); font-size: 10px; font-weight: 600; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }.chart-legend i { width: 18px; height: 3px; border-radius: 99px; }.legend-max { background: var(--primary); }.legend-min { background: var(--teal); }
.chart-wrap { height: 295px; margin-top: 8px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis-label { fill: var(--muted); font-size: 9px; font-family: Inter, sans-serif; }
.chart-area-max { fill: url(#areaMax); }.chart-area-min { fill: url(#areaMin); }
.chart-line-max, .chart-line-min { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }.chart-line-max { stroke: var(--primary); }.chart-line-min { stroke: var(--teal); }
.chart-dot { stroke: var(--surface); stroke-width: 2; }.chart-dot.max { fill: var(--primary); }.chart-dot.min { fill: var(--teal); }
.chart-bar { fill: color-mix(in srgb, var(--primary) 72%, var(--teal)); rx: 4; }
.chart-bar.wind { fill: var(--teal); }
.chart-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); background: var(--surface-soft); font-size: 10px; }
.chart-note span { width: 7px; height: 7px; border-radius: 50%; background: var(--warm); }
.climate-panel { display: flex; flex-direction: column; }
.panel-header.compact h2 { font-size: 25px; }
.climate-score { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 14px; margin: 26px 0 18px; }
.score-ring { --value: 72; width: 104px; aspect-ratio: 1; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--value) * 1%), color-mix(in srgb, var(--teal) 11%, var(--surface-soft)) 0); }
.score-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; z-index: 1; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.climate-score strong { font-size: 15px; }.climate-score p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.climate-list { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.climate-list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }.climate-list span { display: flex; align-items: center; color: var(--muted); }.climate-list strong { font-size: 12px; }
.climate-dot { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; }.climate-dot.temp { background: var(--warm); }.climate-dot.rain { background: var(--primary); }.climate-dot.wind { background: var(--teal); }
.text-link { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 18px; color: var(--primary); font-size: 11px; font-weight: 700; }.text-link svg { width: 14px; }

.archive-section { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 4%, transparent), transparent); }
.year-controls { display: flex; gap: 8px; }
.years-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 11px; }
.year-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; padding: 17px 15px; background: var(--surface); cursor: pointer; transition: var(--transition); }
.year-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); box-shadow: var(--shadow-sm); }
.year-card.featured { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--teal)); }
.year-card.featured::after { content: ""; position: absolute; width: 90px; height: 90px; right: -35px; top: -35px; border: 18px solid rgba(255,255,255,.09); border-radius: 50%; }
.year-card span, .year-card strong, .year-card small { display: block; }
.year-card span { color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }.year-card.featured span, .year-card.featured small { color: rgba(255,255,255,.72); }
.year-card strong { margin: 4px 0; font-size: 25px; line-height: 1.1; letter-spacing: -.04em; }.year-card small { color: var(--muted); font-size: 10px; }

.table-section { padding-top: 30px; }
.data-panel { padding-bottom: 16px; }
.table-header { align-items: center; margin-bottom: 20px; }
.table-actions { display: flex; align-items: flex-end; gap: 9px; }
.compact-select select { min-width: 128px; height: 40px; }
.secondary-button { height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--primary); font-size: 11px; font-weight: 700; }
.secondary-button:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.secondary-button svg { width: 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; min-width: 900px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: var(--surface-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--primary) 3%, var(--surface)); }
.date-cell strong, .date-cell span { display: block; }.date-cell span { color: var(--muted); font-size: 11px; }
.weather-cell { display: flex; align-items: center; gap: 8px; }.weather-mini { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-soft); font-size: 15px; }.weather-cell span { color: var(--muted); }
.temp-max { color: #e96f28; font-weight: 700; }.temp-min { color: #287fcd; font-weight: 700; }
.humidity-bar { width: 68px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }.humidity-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 0; color: var(--muted); font-size: 10px; }
.text-button { padding: 7px 9px; border-radius: 9px; color: var(--primary); background: transparent; font-size: 11px; font-weight: 700; }.text-button:hover { background: color-mix(in srgb, var(--primary) 7%, transparent); }

.about-section { padding-top: 42px; padding-bottom: 76px; }
.about-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.75fr); gap: 48px; align-items: center; }
.about-copy h2 { max-width: 720px; font-size: clamp(30px, 3.6vw, 48px); }
.about-copy > p { max-width: 780px; margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.source-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 14px; border: 1px solid color-mix(in srgb, var(--teal) 22%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--teal) 6%, var(--surface)); color: var(--muted); font-size: 11px; }.source-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--teal-deep); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }.source-note strong { display: block; color: var(--text); }
.feature-stack { display: grid; gap: 11px; }
.feature-card { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-card > span { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }.feature-card svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.feature-card strong { font-size: 13px; }.feature-card p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

.site-footer { padding: 46px 0 20px; color: #dce8f8; background: #08182b; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: 48px; }
.footer-brand .brand-name em { color: #5de0d2; }.footer-brand .brand-tagline { color: #7d90aa; }.footer-grid > div > p { margin: 14px 0 0; color: #8297b2; font-size: 12px; }.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }.footer-grid > div > strong { margin-bottom: 6px; color: #fff; font-size: 12px; }.footer-grid a:not(.brand) { color: #8da1bb; font-size: 11px; }.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.09); color: #6f849e; font-size: 10px; }.footer-bottom div { display: flex; gap: 18px; }

.search-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 110px 20px 20px; background: rgba(4,12,24,.56); backdrop-filter: blur(10px); }
.search-dialog { width: min(590px,100%); padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 30px 100px rgba(0,0,0,.27); }
.search-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }.search-dialog-head h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.search-field { height: 52px; display: flex; align-items: center; gap: 10px; margin-top: 19px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }.search-field svg { width: 20px; height: 20px; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.8; }.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; box-shadow: none; }
.search-field input:focus, .search-field input:focus-visible { outline: none; border: 0; box-shadow: none; }
.popular-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 10px; }.popular-searches button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; max-width: calc(100% - 30px); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 10px 15px; border-radius: 12px; color: #fff; background: #0d1b32; box-shadow: 0 12px 40px rgba(0,0,0,.22); font-size: 12px; transition: 220ms ease; }.toast.show { transform: translate(-50%,0); opacity: 1; }

.reveal { opacity: 0; transform: translateY(15px); transition: opacity 520ms ease, transform 520ms ease; }.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .desktop-nav { display: none; }.menu-toggle { display: grid; }
  .hero-card { grid-template-columns: 1.15fr .85fr; }.hero-content { padding-left: 42px; }.hero-content h1 { font-size: 59px; }
  .date-search-card { display: block; }.date-search-copy { margin-bottom: 13px; }.metrics-grid { grid-template-columns: repeat(3,1fr); }.analytics-grid { grid-template-columns: 1fr; }.climate-panel { display: grid; grid-template-columns: 1.2fr .8fr; column-gap: 24px; }.climate-panel .panel-header, .climate-panel .text-link { grid-column: 1 / -1; }.climate-score { margin-top: 18px; }.years-grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 24px), var(--container)); }.header-inner { min-height: 68px; }.brand-tagline, .search-button span { display: none; }.search-button { width: 42px; padding: 0; justify-content: center; }.header-actions { margin-left: auto; }.hero-section { padding-top: 18px; }.breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .hero-card { min-height: 540px; grid-template-columns: 1fr; align-content: center; }.hero-content { padding: 34px 25px 10px; text-align: center; }.eyebrow { margin-bottom: 17px; }.hero-content h1 { font-size: clamp(44px, 13vw, 62px); }.hero-content > p { margin-inline: auto; }.hero-meta { justify-content: center; }.hero-visual { padding-bottom: 38px; }.weather-illustration { width: 230px; height: 190px; transform: scale(.9); margin-bottom: 0; }.hero-temperature { font-size: 37px; }
  .date-search-card { margin: -18px 9px 0; padding: 15px; }.date-search-copy { min-width: 0; }.date-fields { grid-template-columns: 1fr 1fr; }.date-fields .primary-button { grid-column: 1 / -1; }
  .metrics-section, .analytics-section, .archive-section, .table-section, .about-section { padding: 40px 0; }.section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }.period-badge { align-self: flex-start; }.metrics-grid { grid-template-columns: 1fr 1fr; }.metric-card:last-child { grid-column: 1 / -1; }
  .chart-panel, .climate-panel, .data-panel { padding: 18px; border-radius: 22px; }.panel-header { flex-direction: column; }.chart-tabs { width: 100%; overflow-x: auto; }.chart-tabs button { flex: 1; }.chart-wrap { height: 240px; }.climate-panel { display: flex; }.years-grid { grid-template-columns: repeat(3,1fr); }
  .table-header { align-items: flex-start; }.table-actions { width: 100%; justify-content: space-between; }.about-grid { grid-template-columns: 1fr; gap: 25px; }.footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }.footer-grid > div:first-child { grid-column: 1 / -1; }.footer-bottom { flex-direction: column; }.search-modal { padding-top: 80px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 39px; height: 39px; }.brand-name { font-size: 17px; }.theme-toggle { display: none; }
  .hero-card { min-height: 515px; }.hero-content { padding-inline: 18px; }.hero-content > p { font-size: 14px; }.hero-meta { gap: 8px 13px; }.hero-card::after { right: -190px; }.date-fields { grid-template-columns: 1fr; }.date-fields .primary-button { grid-column: auto; }
  .metrics-grid { grid-template-columns: 1fr; }.metric-card:last-child { grid-column: auto; }.metric-card { min-height: 126px; }.years-grid { grid-template-columns: repeat(2,1fr); }.table-actions { align-items: stretch; flex-direction: column; }.compact-select select { width: 100%; }.secondary-button { justify-content: center; }.footer-grid { grid-template-columns: 1fr; }.footer-grid > div:first-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .date-search-card, .search-modal { backdrop-filter: none; }
  .site-header, .date-search-card { background: var(--surface); }
}

/* Laravel integration additions */
.chart-panel { position: relative; }
.chart-tooltip { position: absolute; z-index: 6; pointer-events: none; transform: translate(-50%, -130%); padding: 6px 10px; border-radius: 9px; background: #0d1b32; color: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 120ms ease; }
.chart-tooltip.show { opacity: 1; }
.chart-dot, .chart-bar { cursor: pointer; }
.date-cell a { color: var(--primary); }
.date-cell a:hover { text-decoration: underline; }
.date-cell a span { color: var(--muted); }
.city-facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-top: 24px; }
.city-facts > div { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.city-facts span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.city-facts strong { font-size: 15px; }
@media (max-width: 760px) { .city-facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .city-facts { grid-template-columns: 1fr; } }
/* Weather illustration variants */
.weather-illustration .sun,
.weather-illustration .cloud,
.weather-illustration .rain-line,
.weather-illustration .snow-flake,
.weather-illustration .lightning,
.weather-illustration .fog-line { display: none; }

.w-sunny .sun { display: block; right: auto; left: 79px; top: 40px; }
.w-partly .sun { display: block; }
.w-partly .cloud-front { display: block; }
.w-cloudy .cloud-back, .w-cloudy .cloud-front { display: block; }
.w-fog .cloud-back, .w-fog .cloud-front { display: block; }
.w-fog .fog-line { display: block; }
.w-drizzle .cloud-back, .w-drizzle .cloud-front { display: block; }
.w-drizzle .rain-line { display: block; }
.w-rain .cloud-back, .w-rain .cloud-front { display: block; }
.w-rain .rain-line { display: block; }
.w-snow .cloud-back, .w-snow .cloud-front { display: block; }
.w-snow .snow-flake { display: block; }
.w-thunder .cloud-back, .w-thunder .cloud-front { display: block; }
.w-thunder .rain-line { display: block; }
.w-thunder .lightning { display: block; }

.snow-flake { position: absolute; top: 172px; width: 9px; height: 9px; border-radius: 50%; background: #eaf9ff; box-shadow: 0 0 9px rgba(200,240,255,.75); }
.s1 { left: 92px; }
.s2 { left: 136px; top: 182px; }
.s3 { left: 178px; }
.lightning { position: absolute; left: 118px; top: 146px; width: 30px; height: 52px; background: linear-gradient(180deg, #ffe38a, #ffbf3f); clip-path: polygon(56% 0, 18% 56%, 46% 56%, 28% 100%, 84% 40%, 52% 40%); filter: drop-shadow(0 0 10px rgba(255,208,88,.65)); }
.fog-line { position: absolute; left: 28px; width: 204px; height: 11px; border-radius: 99px; background: rgba(255,255,255,.5); box-shadow: 0 0 14px rgba(255,255,255,.35); }
.f1 { top: 148px; }
.f2 { top: 174px; left: 58px; width: 150px; }

/* Home / shared */
.region-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
.region-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.region-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 38%, var(--line)); box-shadow: 0 16px 34px color-mix(in srgb, var(--primary) 10%, transparent); }
.region-card img { width: 54px; height: 54px; object-fit: contain; }
.region-card .region-name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.region-card .region-temp { padding: 2px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #0d1b32; }
.region-card .region-temp.empty { color: var(--muted); background: var(--surface-soft); }
@media (max-width: 1100px) { .region-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 760px) { .region-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 480px) { .region-grid { grid-template-columns: repeat(2,1fr); } }

.home-search { position: relative; width: 100%; }
.home-search .search-field { height: 54px; background: var(--surface); box-shadow: var(--shadow-sm); }
.map-panel { padding: 18px; }
.map-frame { position: relative; z-index: 0; width: 100%; height: 460px; border-radius: 18px; overflow: hidden; }
.map-panel { position: relative; z-index: 0; }
@media (max-width: 760px) { .map-frame { height: 340px; } }
.prose p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose h2 { margin: 28px 0 12px; font-size: 23px; letter-spacing: -.02em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 10px; font-size: 19px; letter-spacing: -.02em; }
.prose strong { color: var(--text); }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

.settlement-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.settlement-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); transition: var(--transition); }
.settlement-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.settlement-card strong { font-size: 14px; }
.settlement-card span { color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 1100px) { .settlement-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .settlement-grid { grid-template-columns: 1fr; } }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; transition: var(--transition); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip small { color: var(--muted); font-weight: 500; }

.city-nav-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 2px 0 8px; }
.city-nav-head h1 { margin: 0; font-size: clamp(26px,3vw,40px); letter-spacing: -.04em; }
.city-nav-selects { display: flex; gap: 10px; flex-wrap: wrap; }
.city-nav-selects select { width: auto; height: 42px; min-width: 170px; }
.day-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.day-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.day-card > span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.day-card strong { font-size: 22px; letter-spacing: -.03em; }
.day-temp { display: inline-block; padding: 3px 10px; border-radius: 9px; color: #0d1b32; }
.day-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
@media (max-width: 900px) { .day-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .day-grid { grid-template-columns: 1fr; } }

.breadcrumbs { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--primary); }
.region-hero { display: flex; align-items: center; gap: 20px; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.region-hero img { width: 76px; height: 76px; object-fit: contain; flex: 0 0 auto; }
.region-hero h1 { margin: 0; font-size: clamp(26px,3vw,40px); letter-spacing: -.04em; }
.region-hero p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }

.brand-logo { height: 46px; width: auto; display: block; }
.footer-logo { height: 42px; filter: brightness(0) invert(1); }
@media (max-width: 480px) { .brand-logo { height: 40px; } }
.year-card { display: block; }
.search-results { display: grid; gap: 6px; margin-top: 14px; max-height: 320px; overflow-y: auto; }
.search-result { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: var(--transition); }
.search-result:hover { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.search-result strong { font-size: 14px; }
.search-result span { color: var(--muted); font-size: 11px; }
.search-results:empty { display: none; }
.search-empty { margin: 0; padding: 12px; color: var(--muted); font-size: 12px; text-align: center; }
