:root {
  color-scheme: light;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: #18342b;
  background: #f5f8f5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
.weather-app [hidden] { display: none !important; }

body { margin: 0; min-width: 320px; }

button, a { font: inherit; }

a { color: #126447; }

.weather-app { width: min(1440px, 100%); margin: 0 auto; padding: 34px clamp(16px, 4vw, 54px) 40px; }

.weather-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }

.weather-eyebrow { margin: 0 0 5px; color: #527267; font-size: .75rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }

h1, h2, p { margin-top: 0; }

h1 { margin-bottom: 8px; color: #124f3b; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }

.weather-intro { max-width: 680px; margin-bottom: 0; color: #52655e; line-height: 1.6; }

.weather-source-note { max-width: 310px; margin-bottom: 2px; color: #65766f; font-size: .86rem; line-height: 1.5; text-align: right; }

.weather-workspace { overflow: hidden; border: 1px solid #d9e4dd; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(24, 52, 43, .07); }

.weather-controls { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 14px 16px; border-bottom: 1px solid #e4ebe6; }

.weather-layer-controls, .weather-time-controls, .weather-time-controls [role="group"] { display: flex; align-items: center; gap: 8px; }

.weather-layer-controls { flex-wrap: wrap; }

.weather-layer-controls button, .weather-time-controls button { min-height: 40px; padding: 8px 12px; border: 1px solid #dbe5df; border-radius: 9px; color: #315548; background: #fff; font-size: .87rem; font-weight: 750; cursor: pointer; }

.weather-layer-controls button:hover, .weather-time-controls button:hover { border-color: #76a48e; background: #f3f8f4; }

.weather-layer-controls button[aria-pressed="true"], .weather-time-controls button[aria-pressed="true"] { border-color: #176747; color: #fff; background: #176747; }

.weather-layer-controls button:focus-visible, .weather-time-controls button:focus-visible, .weather-report-button:focus-visible, .weather-event-list button:focus-visible { outline: 3px solid #9ccbb3; outline-offset: 2px; }

.weather-time-controls { flex-wrap: wrap; justify-content: flex-end; color: #596b63; font-size: .78rem; font-weight: 750; }

.weather-time-controls[hidden] { display: none; }

.weather-time-controls [role="group"] { flex-wrap: wrap; }

.weather-time-controls button { min-height: 36px; padding: 6px 9px; font-size: .8rem; }

.weather-map-options { display: grid; justify-items: end; gap: 9px; }
.weather-view-controls { display: flex; gap: 0; }
.weather-view-controls button { min-height: 36px; padding: 6px 10px; border: 1px solid #dbe5df; background: #fff; color: #315548; font-size: .78rem; font-weight: 750; cursor: pointer; }
.weather-view-controls button:first-child { border-radius: 6px 0 0 6px; }
.weather-view-controls button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.weather-view-controls button[aria-pressed="true"] { background: #e9f3ed; color: #124f3b; }
.weather-community-toggle { display: flex; align-items: center; gap: 8px; color: #315548; font-size: .78rem; }
.weather-community-toggle input { width: 18px; height: 18px; accent-color: #176747; }

.weather-forecast-note { color: #718078; font-size: .72rem; font-weight: 500; }

.weather-technical-toggle { display: flex; align-items: center; gap: 8px; color: #315548; font-size: .78rem; font-weight: 800; cursor: pointer; }

.weather-technical-toggle[hidden] { display: none; }

.weather-technical-toggle input { width: 18px; height: 18px; margin: 0; accent-color: #176747; }

.weather-technical-toggle small { display: block; color: #718078; font-size: .68rem; font-weight: 500; }

.weather-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; min-height: 580px; }

.weather-map { min-height: 580px; background: #e5eee8; }
.weather-map-surface { min-width: 0; background: #fff; }
.weather-plot-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; padding: 16px 18px; border-bottom: 1px solid #e4ebe6; }
.weather-plot-heading h2 { margin: 0; color: #18342b; font-size: 1.1rem; }
.weather-plot-heading p { margin: 0; color: #52655e; font-size: .76rem; }
.weather-map-frame { display: grid; grid-template-columns: minmax(0, 1fr) 90px; min-width: 0; }
.weather-map[data-map-view="weather"] { background: #fff; }
.weather-temperature-scale { display: grid; grid-template-rows: 28px repeat(10, minmax(28px, 1fr)); gap: 0; padding: 12px 8px; align-self: stretch; font-size: .68rem; color: #315548; }
.weather-temperature-scale strong { font-size: .8rem; text-align: center; }
.weather-temperature-scale > div { display: grid; grid-template-columns: 26px 1fr; gap: 7px; align-items: center; }
.weather-temperature-scale > div > span:first-child { height: 100%; min-height: 28px; border: 1px solid rgba(24,52,43,.16); }
.weather-plot-note { margin: 0; padding: 8px 16px; color: #64766d; font-size: .7rem; }

.weather-details { display: flex; overflow-y: auto; flex-direction: column; min-width: 0; min-height: 0; max-height: 666px; padding: 16px; border-left: 1px solid #e4ebe6; }

.weather-condition-summary[hidden] { display: none; }
.weather-condition-summary { display: grid; gap: 8px; padding-top: 20px; }
.weather-condition-summary p { margin: 0; overflow-wrap: anywhere; }
.weather-condition-location { color: #52655e; font-size: .8rem; line-height: 1.5; }
.weather-condition-temperature { color: #164d3a; font-size: 2.3rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.weather-condition-description { color: #315548; font-size: .95rem; line-height: 1.5; }
.weather-condition-validity { color: #52655e; font-size: .76rem; line-height: 1.55; }
.weather-condition-validity[data-state="unknown"] { color: #8b4b23; }
.weather-heat-watch { padding: 10px 12px; border-left: 3px solid #bd8e30; background: #fff9ed; }
.weather-heat-watch[data-state="hot"] { border-color: #b54d13; background: #fff1df; }
.weather-heat-watch[data-state="unknown"] { border-color: #85958c; background: #f2f5f3; }
.weather-heat-watch[data-state="below"] { border-color: #b9cfc1; background: #f7f9f7; }
.weather-heat-watch[data-state="below"] strong { color: #315548; }
.weather-heat-watch[data-state="below"] small { display: none; }
.weather-heat-watch strong { color: #71420e; font-size: .9rem; }
.weather-heat-watch p { margin: 6px 0; color: #52655e; font-size: .76rem; line-height: 1.5; }
.weather-heat-watch small { color: #64766d; font-size: .68rem; line-height: 1.5; }
.weather-community-watch { margin-top: 20px; padding-top: 14px; border-top: 1px solid #e4ebe6; }
.weather-community-watch h3 { margin: 0 0 8px; font-size: .9rem; }
.weather-community-watch p { font-size: .75rem; color: #52655e; line-height: 1.5; }
.weather-community-watch .weather-event-card { padding: 9px 0; }
.weather-community-response-note { margin: 10px 0 0; }
.weather-review-all { padding: 6px 0; border: 0; background: transparent; color: #126447; font-size: .76rem; font-weight: 750; cursor: pointer; text-decoration: underline; }
.weather-status:empty { display: none; }
.weather-updated { line-height: 1.55; overflow-wrap: anywhere; }
.weather-data-resolution { color: #52655e; font-size: .76rem; line-height: 1.55; }

.weather-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.weather-details h2 { margin-bottom: 0; color: #164d3a; font-size: 1.25rem; }

.weather-count { display: inline-grid; min-width: 28px; height: 28px; place-items: center; padding: 0 8px; border-radius: 999px; color: #176747; background: #e5f3e9; font-size: .78rem; font-weight: 800; }

.weather-status { margin: 16px 0 6px; color: #52655e; font-size: .9rem; line-height: 1.55; }

.weather-status[data-state="error"] { color: #a33a2d; }

.weather-updated { margin: 0 0 10px; color: #77877f; font-size: .75rem; }

.weather-disclaimer { margin: 8px 0 14px; padding: 10px 12px; border-left: 3px solid #8ab69a; color: #50645a; background: #f2f7f2; font-size: .78rem; line-height: 1.5; }

.weather-event-list { overflow-y: auto; flex: 1; min-height: 0; }

.weather-event-list:empty { display: none; }

.weather-event-card { display: block; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #e8eee9; color: inherit; background: transparent; text-align: left; cursor: pointer; }

.weather-event-card:hover { background: #f7faf7; }

.weather-event-card strong { display: block; margin-bottom: 5px; color: #213e32; font-size: .88rem; line-height: 1.45; }

.weather-event-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: #718078; font-size: .74rem; }

.weather-event-category { color: #176747; font-weight: 800; }

.weather-placeholder { margin-top: 8px; padding: 13px; border: 1px dashed #ccd9d0; border-radius: 10px; background: #f8faf8; }

.weather-placeholder p { margin: 0; color: #596b63; font-size: .85rem; line-height: 1.55; }

.weather-report-button { margin-top: 12px; padding: 9px 12px; border: 0; border-radius: 8px; color: #fff; background: #176747; font-weight: 800; cursor: pointer; }

.weather-report-note { margin-top: 9px !important; color: #687970 !important; font-size: .76rem !important; }

.weather-report-form { display: grid; gap: 12px; margin-top: 14px; }

.weather-report-form[hidden] { display: none; }

.weather-report-form label { display: grid; gap: 5px; color: #315548; font-size: .78rem; font-weight: 750; }

.weather-report-form input:not([type="checkbox"]), .weather-report-form select, .weather-report-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #cbd9d0; border-radius: 7px; color: #263b31; background: #fff; font: inherit; font-weight: 500; }

.weather-report-form textarea { resize: vertical; }

.weather-report-form input:focus-visible, .weather-report-form select:focus-visible, .weather-report-form textarea:focus-visible { outline: 3px solid #9ccbb3; outline-offset: 2px; }

.weather-report-guidance { color: #687970 !important; font-size: .75rem !important; }

.weather-report-consent { grid-template-columns: 18px 1fr; align-items: start; font-weight: 500 !important; line-height: 1.5; }

.weather-report-consent input { margin: 3px 0 0; }

.weather-report-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.weather-report-submit { min-height: 42px; padding: 9px 12px; border: 0; border-radius: 8px; color: #fff; background: #176747; font-weight: 800; cursor: pointer; }

.weather-report-submit:disabled { opacity: .65; cursor: wait; }

.weather-credit { margin: 14px 0 0; color: #77877f; font-size: .72rem; }

.weather-current-legend { display: grid; gap: 7px; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #e0e9e2; border-radius: 9px; color: #52655e; background: #f7faf7; font-size: .74rem; line-height: 1.45; }

.weather-current-legend[hidden] { display: none; }

.weather-current-legend strong { color: #315548; }

.weather-about-data[hidden] { display: none; }

.weather-about-data { margin-top: 10px; border: 1px solid #e0e9e2; border-radius: 9px; background: #f7faf7; }

.weather-about-data > summary { padding: 10px 12px; color: #315548; font-size: .8rem; font-weight: 800; cursor: pointer; }

.weather-about-data > summary:focus-visible { outline: 3px solid #9ccbb3; outline-offset: 2px; }

.weather-about-data-content { display: grid; gap: 4px; padding: 0 12px 12px; }

.weather-about-data-content .weather-disclaimer { margin: 0 0 8px; }

.weather-about-data-content .weather-current-legend { margin: 0; }

.weather-about-data-content .weather-credit { margin: 4px 0 0; line-height: 1.5; }

.weather-value-scale { height: 12px; border: 1px solid rgba(24, 52, 43, .12); border-radius: 999px; }

.weather-value-scale--temperature { background: linear-gradient(90deg, #3167ad, #5ab1d9, #a4d677, #f9c14f, #d74b37); }

.weather-value-scale--rain { background: linear-gradient(90deg, #eff7fb, #a4d3eb, #4197cd, #0f4c81); }

.weather-value-scale--wind { background: linear-gradient(90deg, #e1f2e8, #8ecaaa, #3a8e72, #144c45); }

.weather-value-labels { display: flex; justify-content: space-between; color: #596b63; font-size: .68rem; font-variant-numeric: tabular-nums; }

.weather-city-marker { overflow: visible; border: 0; background: transparent; }

.weather-city-badge { position: absolute; top: 0; left: 0; display: block; overflow: hidden; max-width: 156px; padding: 4px 6px; border: 1px solid rgba(25, 67, 49, .42); border-radius: 5px; color: #153e2e; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(24, 52, 43, .25); font-size: 9px; font-weight: 800; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }

.weather-city-marker--dot { overflow: visible; }

.weather-city-dot { display: block; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #176747; box-shadow: 0 1px 5px rgba(24, 52, 43, .6); }

.weather-map-credit { margin: 10px 3px 0; color: #718078; font-size: .72rem; text-align: right; }

.weather-map-credit a { color: inherit; }

.leaflet-popup-content { min-width: 180px; }

.event-popup-title { margin: 0 0 7px; color: #18342b; font-size: .92rem; font-weight: 800; }

.event-popup-meta, .event-popup-description { margin: 0 0 6px; color: #56685f; font-size: .78rem; line-height: 1.45; }

.event-popup-links { display: flex; gap: 10px; margin-top: 8px; font-size: .78rem; }

.weather-city-marker:focus-visible .weather-city-badge { outline: 3px solid #176747; outline-offset: 2px; }

.weather-advisories { margin: 24px 0; padding: 22px; border: 1px solid #d9e4dd; border-radius: 14px; background: #fff; }

.weather-advisories-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.weather-advisories-heading h2 { margin-bottom: 0; color: #164d3a; font-size: 1.25rem; }

.weather-advisories-status, .weather-advisories-note { color: #52655e; font-size: .86rem; line-height: 1.55; }

.weather-advisories-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }

.weather-advisory-card { padding: 15px; border: 1px solid #ead6bd; border-left: 4px solid #a85e25; border-radius: 10px; background: #fffaf4; }

.weather-advisory-card h3 { margin-bottom: 8px; color: #59371e; font-size: 1rem; }

.weather-advisory-card p { margin-bottom: 8px; color: #52655e; line-height: 1.5; white-space: pre-wrap; }

.weather-advisory-type, .weather-advisory-level { font-size: .78rem; font-weight: 800; text-transform: uppercase; }

.weather-advisory-meta { font-size: .75rem; }

.weather-advisories-note { margin: 14px 0 0; }

.climate-panel { margin-top: 24px; padding: clamp(18px, 3vw, 30px); border: 1px solid #d9e4dd; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px rgba(24, 52, 43, .05); }

.climate-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

.climate-panel h2 { margin: 0 0 8px; color: #164d3a; font-size: clamp(1.2rem, 2vw, 1.65rem); }

.climate-panel-heading p:not(.weather-eyebrow) { max-width: 650px; margin-bottom: 0; color: #596b63; font-size: .88rem; line-height: 1.55; }

.climate-period { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; }

.climate-period label { display: grid; gap: 5px; color: #596b63; font-size: .72rem; font-weight: 800; }

.climate-period input { min-height: 38px; padding: 6px 8px; border: 1px solid #d5e0d8; border-radius: 7px; color: #28493b; background: #fff; font: inherit; font-size: .78rem; }

.climate-period button { min-height: 38px; padding: 7px 12px; border: 0; border-radius: 7px; color: #fff; background: #176747; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }

.climate-period button:focus-visible, .climate-period input:focus-visible { outline: 3px solid #9ccbb3; outline-offset: 2px; }

.climate-status { margin: 18px 0 8px; color: #596b63; font-size: .85rem; line-height: 1.5; }

.climate-status[data-state="error"] { color: #a33a2d; }

.climate-chart { margin: 0; }

.climate-chart[hidden] { display: none; }

.climate-chart svg { display: block; width: 100%; min-height: 320px; }

.climate-chart figcaption { margin-top: 8px; color: #738179; font-size: .75rem; line-height: 1.5; }

.climate-axis-label, .climate-tick-label, .climate-panel-title { fill: #64766d; font-family: inherit; font-size: 12px; }

.climate-panel-title { fill: #244a39; font-size: 14px; font-weight: 800; }

.climate-grid-line { stroke: #e4ebe6; stroke-width: 1; }

.climate-series-temperature { fill: none; stroke: #d55b36; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.climate-series-solar { fill: none; stroke: #bd9a2a; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }

.climate-rain-bar { fill: #3988d8; }

.climate-credit { margin-top: 12px; }

@media (max-width: 980px) {
  .weather-controls { align-items: flex-start; flex-direction: column; }
  .weather-map-options { width: 100%; justify-items: start; }
  .weather-time-controls { justify-content: flex-start; }
  .weather-map-layout { grid-template-columns: minmax(0, 1fr) 220px; }
  .climate-panel-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 820px) {
  .weather-app { padding-top: 24px; }
  .weather-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .weather-source-note { max-width: none; text-align: left; }
  .weather-advisories-heading { align-items: flex-start; flex-direction: column; }
  .weather-map-layout { grid-template-columns: 1fr; }
  .weather-map { min-height: 440px; height: 60svh; max-height: 620px; }
  .weather-map-frame { grid-template-columns: minmax(0, 1fr) 64px; }
  .weather-temperature-scale { padding: 8px 4px; font-size: .6rem; }
  .weather-temperature-scale > div { grid-template-columns: 18px 1fr; gap: 4px; }
  .weather-details { min-height: 0; max-height: none; padding: 16px; border-top: 1px solid #e4ebe6; border-left: 0; }
}

@media (max-width: 430px) {
  .weather-layer-controls { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weather-layer-controls button { text-align: left; }
  .weather-layer-controls button:last-child { grid-column: 1 / -1; }
  .weather-time-controls { align-items: flex-start; flex-direction: column; }
  .weather-time-controls [role="group"] { width: 100%; }
  .weather-time-controls button { flex: 1; }
}
