/* Forecast workspace: a reserved reading rail, with a continuous map surface. */
:root {
  --ink: #172d40;
  --muted: #617587;
  --accent: #147f91;
  --accent-dark: #126778;
  --line: #e0e7ed;
  --panel: #fff;
  --panel-strong: #fff;
  --shadow: 0 4px 20px #152d4010;
  --wind: #176dd1;
  --solar: #c4750a;
  --rail-width: 344px;
  --timeline-height: 214px;
}
html { font-size: 16px; }
body { font-size: 0.875rem; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #2491c0;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.weather-app { min-height: 0; display: flex; flex-direction: column; height: 100dvh; background: #f5f8fa; }
.workspace-header { height: 68px; flex: none; display: flex; align-items: center; gap: 28px; padding: 0 24px; background: #132c40; color: #f4f8fc; z-index: 20; }
.brand { min-width: 296px; color: inherit; padding: 0; gap: 12px; }
.brand-mark { background: #ffffff0c; border: 1px solid #ffffff2e; box-shadow: none; border-radius: 10px; color: #7bd7e2; font-size: 30px; }
.brand strong { font-size: 0.875rem; letter-spacing: 0.12em; }
.brand small { color: #a6bdcf; font-size: 0.75rem; font-weight: 400; letter-spacing: 0.015em; margin-top: 4px; }
.header-context { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: #ccdbe6; }
.status-light { height: 6px; width: 6px; border-radius: 50%; background: #78cfce; }
.header-divider { padding: 0 4px; color: #628098; }
.snapshot-status { margin-left: auto; color: #adcad9; font-size: 0.75rem; border: 1px solid #3a5366; border-radius: 5px; padding: 6px 10px; }
.snapshot-status.stale { color: #ffe0a0; border-color: #b08045; }
.outlook-toggle { display: none; }
.workspace-body { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); flex: 1; min-height: 0; }
.outlook-panel { background: #fff; overflow: auto; border-right: 1px solid #d5e0e8; z-index: 14; scrollbar-width: thin; }
.outlook-content { padding: 16px 22px 24px; }
.search-box { position: relative; top: auto; left: auto; width: 100%; padding: 14px 22px; background: #f8fafc; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; backdrop-filter: none; }
.search-box label { font-size: 0.75rem; color: #516777; text-transform: none; letter-spacing: 0; margin: 0 0 9px; font-weight: 600; }
.search-box input { font-size: 0.875rem; height: 40px; border-radius: 6px; padding: 0 10px; }
.search-box button { font-size: 0.875rem; border-radius: 6px; min-width: 52px; }
.search-results { max-height: 270px; }
.search-box .search-result { color: var(--ink); background: #fff; margin-top: 4px; padding: 10px; }
.search-result strong { font-size: 0.875rem; }
.search-result small, .search-message { font-size: 0.75rem; line-height: 1.5; }
.eyebrow { display: block; color: #687e8d; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.location-heading h1 { font-size: 1.625rem; letter-spacing: -0.04em; line-height: 1.2; margin: 7px 0 5px; overflow-wrap: anywhere; }
.location-heading p { color: var(--muted); font-size: 0.75rem; line-height: 1.5; margin: 0; }
.selected-time { margin-top: 10px; display: flex; flex-direction: column; gap: 3px; border-left: 3px solid #178494; padding: 1px 0 1px 11px; }
.selected-time span { display: none; }
.selected-time strong { font-size: 0.875rem; font-weight: 600; }
.metric-section { margin-top: 16px; }
.metric-section + .metric-section { border-top: 1px solid var(--line); padding-top: 16px; }
.metric-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.metric-heading h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 0.875rem; font-weight: 650; }
.metric-heading h2 i { width: 7px; height: 7px; background: var(--wind); border-radius: 50%; }
.solar-section h2 i { background: var(--solar); }
.metric-heading h2 span { font-size: 0.75rem; color: var(--muted); font-weight: 400; }
.direction-chip { font-size: 0.75rem; color: #607688; }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.metric-value > strong { font-size: 2rem; font-weight: 650; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; color: var(--ink); }
.metric-value > span { color: var(--muted); font-size: 0.75rem; }
.metric-value .change-chip { margin-left: auto; color: var(--wind); font-weight: 600; font-size: 0.75rem; }
.solar-section .change-chip { color: var(--solar); }
.metric-insight { font-size: 0.75rem; color: var(--muted); margin: 4px 0 8px; min-height: 18px; line-height: 1.5; }
.trend-chart { width: 100%; color: var(--wind); position: relative; }
.solar-section .trend-chart { color: var(--solar); }
.trend-chart svg { width: 100%; height: 86px; display: block; overflow: visible; }
.chart-axis { font: 12px 'Segoe UI', sans-serif; fill: #607688; }
.chart-hit { fill: transparent; cursor: pointer; }
.chart-hit:hover { fill: #147f9112; }
.chart-hit:focus { stroke: #147f91; stroke-width: 1.5; outline: none; }
.peak-row { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.75rem; color: var(--muted); }
.peak-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.change-summary { margin-top: 20px; padding: 13px 14px; background: #f2f7fa; border-left: 2px solid #b8d6e1; }
.change-summary p { font-size: 0.875rem; line-height: 1.55; margin: 6px 0 0; color: #345164; }
.outlook-meta { display: flex; gap: 14px; justify-content: space-between; margin-top: 17px; color: var(--muted); font-size: 0.75rem; }
.outlook-meta strong { color: var(--ink); font-weight: 600; }
.forecast-notes { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.forecast-notes summary { cursor: pointer; }
.map-stage { min-width: 0; min-height: 0; position: relative; isolation: isolate; overflow: hidden; }
.topbar { top: 16px; right: 16px; left: 16px; min-height: 0; padding: 0; gap: 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; flex-wrap: wrap; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.layer-switcher { background: #fff; border: 1px solid #d7e0e7; border-radius: 9px; padding: 4px; gap: 2px; box-shadow: var(--shadow); }
.layer-button { min-width: 0; padding: 0 14px; font-size: 0.875rem; height: 36px; font-weight: 600; border-radius: 6px; color: #4c6273; }
.layer-button.active { background: #173b52; box-shadow: none; }
.layer-button:hover:not(.active) { background: #eff5f8; }
.overlay-controls { display: flex; flex-wrap: wrap; gap: 10px 13px; margin-left: auto; padding: 11px 14px; background: #fff; border: 1px solid #d7e0e7; border-radius: 9px; box-shadow: var(--shadow); }
.map-toggle { padding: 0; gap: 5px; font-size: 0.75rem; font-weight: 600; color: #4b6170; }
.map-toggle span { width: 27px; height: 16px; }
.map-toggle span::after { height: 10px; width: 10px; }
.map-toggle input:checked + span::after { transform: translateX(11px); }
.forecast-status { display: none; }
.farm-map-hint { top: 76px; left: 17px; font-size: 0.75rem; padding: 7px 10px; border-radius: 5px; background: #fffffff0; box-shadow: none; }
.maplibregl-ctrl-top-right { top: 74px; right: 8px; }
.maplibregl-ctrl-group { border-radius: 7px !important; border: 1px solid #d1dde5; background: #fff !important; box-shadow: var(--shadow) !important; }
.maplibregl-ctrl-group button { height: 36px; width: 36px; }
.maplibregl-ctrl-bottom-right { bottom: calc(var(--timeline-height) + 18px); right: 8px; z-index: 9; }
.maplibregl-ctrl-attrib { background: #fffffff2 !important; color: #536b7d; }
.hover-readout { font-size: 0.75rem; min-width: 150px; background: #fffffff5; border: 1px solid #d5e0e7; border-radius: 5px; }
.point-readout { display: none !important; }
.map-legends { position: absolute; z-index: 8; bottom: calc(var(--timeline-height) + 36px); left: 18px; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; max-width: calc(100% - 36px); pointer-events: none; }
.legend, .cloud-overlay-legend { display: block; position: static; width: 260px; padding: 10px 12px; background: #fffffff2; border: 1px solid #d4dfe7; border-radius: 7px; box-shadow: none; backdrop-filter: none; }
.legend-heading { margin-bottom: 8px; gap: 8px; }
.legend-heading strong { font-size: 0.75rem; text-transform: none; letter-spacing: 0; }
.legend-heading span { font-size: 0.75rem; }
.legend-labels { font-size: 0.75rem; margin-top: 6px; }
.wind-speed-labels { height: 15px; }
.wind-speed-labels span:nth-child(6) { left: 80%; right: auto; transform: translateX(-50%); }
.cloud-impact-labels { font-size: 0.75rem; gap: 0; }
.legend-meaning { font-size: 0.75rem; letter-spacing: 0; text-transform: none; padding-top: 6px; font-weight: 500; }
.wind-field-gradient { background: linear-gradient(90deg,#adc4e9,#70c2d7 16.667%,#65bdac 33.333%,#aabf6e 50%,#eab55d 66.667%,#dc6d74); }
.wind-field-labels { position: relative; display: block; height: 15px; }
.wind-field-labels span { position: absolute; transform: translateX(-50%); }
.wind-field-labels span:nth-child(1) { left: 0; transform: none; }
.wind-field-labels span:nth-child(2) { left: 16.667%; }
.wind-field-labels span:nth-child(3) { left: 33.333%; }
.wind-field-labels span:nth-child(4) { left: 50%; }
.wind-field-labels span:nth-child(5) { left: 66.667%; }
.wind-field-labels span:nth-child(6) { right: 0; transform: none; }
.particle-key { margin-top: 9px; padding-top: 7px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 5px; color: #536b7d; font-size: 0.75rem; }
.particle-key > span:first-child { margin-right: auto; white-space: nowrap; font-size: 0.75rem; }
.particle-key > span:not(:first-child) { display: grid; justify-items: center; gap: 4px; }
.particle-key i { width: 13px; height: 2px; display: inline-block; border-radius: 1px; }
.flow-guide { margin: 7px 0 0; color: #607687; font-size: 11px; line-height: 1.3; }
.timeline { left: 16px; right: 16px; bottom: 16px; min-height: 0; height: auto; padding: 14px 16px 0; display: block; border: 1px solid #d5dfe7; border-radius: 10px; background: #fff; box-shadow: 0 5px 25px #18354b16; }
.timeline-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.timeline-heading > span:nth-child(2) { font-size: 0.75rem; color: var(--muted); }
.time-jumps { margin-left: auto; display: flex; gap: 4px; }
.time-jumps button { font-size: 0.75rem; font-weight: 600; border: 1px solid #dce5eb; border-radius: 4px; padding: 4px 8px; color: #466171; background: #f8fafc; }
.time-jumps button.active { background: #e6f3f6; color: #126778; border-color: #8fbfce; }
.time-jumps button:disabled { opacity: 0.4; cursor: default; }
.timeline-scrubber { display: flex; align-items: center; gap: 14px; }
.play-button { width: 36px; height: 36px; flex: none; border-radius: 7px; box-shadow: none; font-size: 0.875rem; }
.timeline-main { flex: 1; }
.timeline-meta { margin-bottom: 10px; }
.timeline-meta strong { font-size: 0.875rem; font-weight: 600; }
.timeline-meta span, .timeline-ends { font-size: 0.75rem; }
.timeline input[type='range'] { height: 6px; }
.timeline-ends { margin-top: 6px; gap: 12px; }
.day-night-strip { height: 5px; border: 0; margin-top: 9px; }
.source-credit { display: none; }
.forecast-hours { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-top: 1px solid var(--line); margin: 12px -16px 0; overflow: hidden; border-radius: 0 0 10px 10px; }
.hour-cell { padding: 9px 12px; background: #fff; border: 0; border-right: 1px solid #e6ecf1; text-align: left; color: #4c6376; font-size: 0.75rem; display: grid; grid-template-columns: 1fr auto; gap: 5px; }
.hour-cell:last-child { border-right: 0; }
.hour-cell:hover { background: #f2f7fa; }
.hour-cell.active { background: #eaf5f8; box-shadow: inset 0 2px #1b8396; }
.hour-cell .hour-date { grid-column: 1/-1; color: #556c7c; white-space: nowrap; }
.hour-cell strong { font-size: 0.875rem; color: #215b9b; font-weight: 600; }
.hour-cell .hour-solar { color: #a56108; }
.hour-cell .hour-cloud { color: #6c8090; }
.wind-farm-panel { top: 126px; right: 16px; width: min(440px, calc(100% - 32px)); bottom: calc(var(--timeline-height) + 34px); max-height: none; padding: 20px; border-radius: 10px; border-color: #d6e1e8; }
.solar-farm-panel { top: 126px; right: 16px; width: min(440px, calc(100% - 32px)); bottom: calc(var(--timeline-height) + 34px); max-height: none; padding: 20px; border-radius: 10px; border-color: #ead7b3; }
.wind-farm-panel header small, .wind-farm-panel header span, .farm-metrics span, .farm-metrics small, .farm-chart-heading, .farm-chart-heading strong, #farm-data-note { font-size: 0.75rem; line-height: 1.5; }
.solar-farm-panel header small, .solar-farm-panel header span, .solar-farm-model-card span, .solar-farm-model-card strong, #solar-farm-data-note { font-size: 0.75rem; line-height: 1.5; }
.farm-metrics article { background: #f7f9fb; }
.farm-snapshot-status { margin: 10px 0 0; font-size: 0.75rem; color: #436475; }
.farm-snapshot-status.stale { background: #fff3de; border-left: 2px solid #cc982e; padding: 7px 9px; color: #7b5617; }
.farm-metrics span { letter-spacing: 0; }
.farm-metrics strong { font-size: 1.25rem; }
.farm-metrics small { white-space: normal; }
.farm-mode button { font-size: 0.875rem; min-height: 36px; }
.wind-farm-panel > button { width: 32px; height: 32px; font-size: 24px; }
.farm-chart-heading { flex-wrap: wrap; }
@media (max-width: 1200px) {
  :root { --rail-width: 320px; }
  .header-context { display: none; }
  .outlook-content { padding: 18px; }
  .search-box { padding: 14px 18px; }
  .topbar { gap: 8px; }
  .overlay-controls { margin-left: 0; padding: 10px; }
  .farm-map-hint, .maplibregl-ctrl-top-right { top: 116px; }
  .map-legends { gap: 6px; }
  .cloud-overlay-legend { display: none; }
  .hour-cell { padding: 9px 8px; }
}
@media (max-width: 900px) {
  :root { --rail-width: 290px; }
  .brand { min-width: 0; }
  .timeline-heading { flex-wrap: wrap; gap: 6px; }
  .time-jumps { margin-left: auto; }
  .time-jumps button { padding: 4px 6px; }
  .forecast-hours { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(115px, 1fr); overflow-x: auto; scrollbar-width: thin; }
  .layer-button { padding: 0 10px; }
  .timeline-ends #day-night-label { display: none; }
  .snapshot-status { max-width: 230px; }
}
@media (max-width: 680px) {
  .workspace-header { height: 60px; padding: 0 14px; gap: 12px; }
  .brand { width: auto; gap: 9px; }
  .brand > span:last-child { display: block; }
  .brand strong { font-size: 0.75rem; }
  .brand small { display: block; font-size: 0.75rem; }
  .brand-mark { height: 32px; width: 32px; }
  .snapshot-status { display: none; }
  .outlook-toggle { display: block; margin-left: auto; color: #e4f4ff; background: #ffffff12; border: 1px solid #486479; border-radius: 5px; padding: 7px 12px; font-size: 0.875rem; }
  .workspace-body { display: block; position: relative; }
  .map-stage { width: 100%; height: 100%; }
  .outlook-panel { display: none; position: absolute; inset: 0 40px 0 0; box-shadow: 8px 0 25px #12324835; z-index: 16; }
  .weather-app.outlook-open .outlook-panel { display: block; }
  .topbar { top: 10px; left: 10px; right: 10px; }
  .layer-switcher { flex: 1; }
  .layer-button { font-size: 0.75rem; padding: 0 8px; flex: 1; }
  .overlay-controls { padding: 9px 10px; gap: 10px; }
  .map-toggle { font-size: 0.75rem; }
  .map-toggle span { width: 22px; }
  .map-toggle input:checked + span::after { transform: translateX(6px); }
  .farm-map-hint { display: none; }
  .maplibregl-ctrl-top-right { top: 110px; right: 0; }
  .timeline { left: 10px; right: 10px; bottom: 10px; padding: 12px 12px 0; }
  .timeline-heading .eyebrow { font-size: 0.75rem; letter-spacing: 0; }
  .timeline-heading > span:nth-child(2) { margin-left: auto; }
  .time-jumps { flex-basis: 100%; }
  .timeline-scrubber { gap: 10px; }
  .timeline-meta strong { font-size: 0.75rem; }
  .timeline-meta span { display: none; }
  .forecast-hours { margin-left: -12px; margin-right: -12px; }
  .hour-cell { font-size: 0.75rem; padding: 8px; }
  .map-legends { left: 10px; bottom: calc(var(--timeline-height) + 43px); }
  .legend { display: block; width: 250px; padding: 8px 10px; }
  .legend-meaning { display: none; }
  .wind-farm-panel, .solar-farm-panel { left: 10px; right: 10px; top: 112px; width: auto; padding: 15px; bottom: calc(var(--timeline-height) + 22px); }
  .maplibregl-ctrl-bottom-right { bottom: calc(var(--timeline-height) + 3px); right: 0; }
}
@media (max-height: 650px) and (min-width: 681px) {
  .map-legends { bottom: calc(var(--timeline-height) + 24px); }
  .legend-meaning { display: none; }
  .metric-section { margin-top: 17px; }
}
