:root {
  --ink: #182127;
  --muted: #5f6b70;
  --paper: #f3efe5;
  --surface: #fffdf7;
  --vine: #315849;
  --wine: #a13e2e;
  --gold: #d59a32;
  --line: #d8d1c1;
  --storm: #14242c;
  --storm-mid: #1c3540;
  --sky: #78aebc;
  --rain: #4f8096;
  --heat: #c96d3e;
  --cool: #5b8796;
  --warning: #8b4a11;
  --compare-a: #7d2937;
  --compare-b: #356a78;
  --info: #356a78;
  --info-surface: #eaf2f3;
  --success: #315c3b;
  --success-surface: #e8f0e7;
  --warning-surface: #fff3df;
  --unavailable-surface: #eeece5;
  --feature-surface: #f8f2e8;
  --radius-sm: .25rem;
  --radius-md: .45rem;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body, "Source Sans 3"), ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.error-document {
  min-height: 42vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--vine); font-weight: 700; text-decoration: none; }
button, input, select { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 20; top: .5rem; left: .5rem; padding: .6rem 1rem; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.environment-banner { background: #2a2622; color: white; padding: .3rem 5vw; text-align: center; font-size: .75rem; letter-spacing: .15em; }
.site-header, main, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.site-header p, footer { color: var(--muted); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand span { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--wine); color: white; font-family: var(--font-display, "Merriweather"), ui-serif, serif; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions p { margin: 0; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .55rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.primary-nav a[aria-current="page"] { border-bottom: 3px solid var(--wine); }
.unit-toggle { display: flex; align-items: center; gap: .25rem; min-width: auto; margin: 0; padding: .18rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.unit-toggle legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.unit-toggle label { display: flex; align-items: center; min-height: 38px; gap: .25rem; padding: .22rem .45rem; border-radius: 999px; color: var(--muted); font-size: .78rem; font-weight: 700; cursor: pointer; }
.unit-toggle input { min-height: 0; width: 0; margin: 0; opacity: 0; }
.unit-toggle label:has(input:checked) { background: var(--vine); color: white; }
.unit-toggle label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
main { display: flex; flex-direction: column; }
main > section, main > details { margin: 4.5rem 0; }
.breadcrumbs { order: 0; }
.region-hero { order: 1; }
.conditions-tabs { order: 2; }
.season-progress-section { order: 3; }
.outlook { order: 5; }
.interpretation-section { order: 6; }
.sources-section { order: 7; }
.hero { padding: 6rem 0 3rem; max-width: 850px; }
.page-heading { max-width: 820px; padding: clamp(3rem, 7vw, 5rem) 0 1rem; }
.page-heading h1 { font-size: clamp(2.75rem, 7vw, 5rem); text-wrap: balance; }
.home-hero { position: relative; display: flex; align-items: center; max-width: none; min-height: min(620px, calc(100vh - 5rem)); padding: clamp(3rem, 8vw, 7rem); overflow: hidden; isolation: isolate; }
.home-hero-copy { position: relative; z-index: 1; max-width: 760px; }
.home-hero h1 { margin-bottom: 1.25rem; color: white; font-size: clamp(2.1rem, 5.6vw, 4.55rem); text-wrap: balance; }
.home-hero .lede { color: #f2f5ed; }
.home-hero .eyebrow { color: #f3d27a; }
.home-hero-art { position: absolute; z-index: 0; inset: 0; margin: 0; background: var(--vine); }
.home-hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(12 26 18 / 82%) 0%, rgb(12 26 18 / 58%) 48%, rgb(12 26 18 / 15%) 100%); }
.home-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.85) contrast(1.05); }
.home-hero-art figcaption { position: absolute; z-index: 1; right: .75rem; bottom: .65rem; margin: 0; padding: .35rem .5rem; color: white; background: rgb(23 34 26 / 78%); font-size: .68rem; }
.home-hero-art a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display, "Merriweather"), ui-serif, serif; line-height: 1.1; margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); letter-spacing: -.045em; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.4rem; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 65ch; color: #3f4c42; }
.eyebrow, .label, .country, .signal-strength, .season-name { margin: 0 0 .7rem; color: var(--wine); font-weight: 750; letter-spacing: .11em; text-transform: uppercase; font-size: .76rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.section-heading > a { flex: 0 0 auto; white-space: nowrap; }

/* Discovery map and filters */
.region-filters { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(170px, 1fr) auto auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.region-filters div { display: grid; gap: .25rem; }
input, select, button { min-height: 44px; padding: .55rem .75rem; border: 1px solid #9d9a90; border-radius: .2rem; background: var(--surface); color: var(--ink); }
button { cursor: pointer; font-weight: 700; }
button:disabled { cursor: not-allowed; opacity: .5; }
.clear-filters { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .75rem; border: 1px solid #9d9a90; border-radius: .2rem; color: var(--ink); font-weight: 700; text-decoration: none; }
.atlas-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 1.25rem; align-items: start; }
.map-panel { position: sticky; top: 1rem; background: #dce5df; border: 1px solid #b9c7bd; overflow: hidden; }
.region-map { width: 100%; background: #dce5df; z-index: 0; }
.region-map.leaflet-container { min-height: 520px; }
.static-map-activation { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 2 / 1; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #dce5df; }
.static-world-map { display: block; width: 100%; height: 100%; }
.static-ocean { fill: #dce5df; }
.static-region path { fill: var(--wine); fill-opacity: .55; stroke: white; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.static-region circle { fill: var(--wine); stroke: white; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.static-region.approximate path { fill: var(--vine); fill-opacity: .38; stroke: var(--vine); stroke-dasharray: 5 4; }
.static-region.approximate circle { fill: var(--vine); }
.map-activation-label { position: absolute; left: 50%; bottom: 1rem; translate: -50% 0; width: max-content; max-width: calc(100% - 2rem); padding: .55rem .85rem; border-radius: .2rem; color: white; background: rgb(23 34 26 / 88%); font-size: .82rem; }
.static-map-activation:hover .map-activation-label { background: var(--wine); }
.map-loading { margin: 0; padding: 2rem; color: var(--muted); }
.leaflet-container { font: inherit; color: var(--ink); }
.leaflet-control-attribution { font-size: .68rem; }
.leaflet-popup-content { margin: .9rem 1rem; line-height: 1.45; }
.leaflet-popup-content strong, .leaflet-popup-content span { display: block; }
.leaflet-popup-content span { color: var(--muted); margin-bottom: .4rem; }
.leaflet-popup-content a { font-weight: 750; }
.map-note { margin: 0; padding: .65rem 1rem; color: var(--muted); background: var(--surface); font-size: .82rem; }
.geometry-key { font-weight: 750; color: var(--ink); }
.geometry-key::before { content: ""; display: inline-block; width: 1.5rem; margin-right: .35rem; border-top: 3px solid var(--wine); vertical-align: middle; }
.approximate-key::before { border-top-style: dashed; border-color: var(--vine); }
.region-grid, .signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.atlas-layout .region-grid { grid-template-columns: 1fr; }
.region-country-list { display: grid; gap: 1rem; }
.region-country { border: 1px solid var(--line); background: var(--surface); }
.region-country > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: 1rem 1.25rem; cursor: pointer; color: var(--ink); font: 600 1.2rem/1.2 var(--font-display, "Merriweather"), ui-serif, serif; }
.region-country > summary::marker { color: var(--wine); }
.region-country[open] > summary { border-bottom: 1px solid var(--line); }
.region-country-count { color: var(--muted); font-family: var(--font-body, "Source Sans 3"), sans-serif; font-size: .8rem; font-weight: 700; }
.region-country .region-grid { padding: 1.25rem; gap: 1.25rem; }
.region-card, .signal-grid article, .fact-card, .season-grid article, .chart-card { background: var(--surface); padding: 1.5rem; border: 1px solid var(--line); border-radius: .25rem; }
.region-card h3 a { color: var(--ink); }
.region-aliases { color: var(--muted); font-size: .84rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
.tag-list li { background: #e2e9de; color: var(--vine); border-radius: 1rem; padding: .2rem .65rem; font-size: .8rem; }
.text-link { font-weight: 700; }
.empty-state { padding: 2rem; background: var(--surface); border: 1px dashed var(--line); }

/* Region header and metrics */
.breadcrumbs { margin: 2rem 0; color: var(--muted); }
.breadcrumbs span { margin-inline: .3rem; }
.region-hero { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; min-height: min(590px, calc(100vh - 7rem)); margin-top: 1.25rem; padding: clamp(2rem, 5vw, 4rem); overflow: hidden; isolation: isolate; }
.region-hero-copy, .region-hero .fact-card { position: relative; z-index: 1; }
.region-hero-copy { max-width: 680px; }
.region-hero h1 { margin-bottom: .55rem; color: white; font-size: clamp(3rem, 6vw, 5.25rem); }
.region-hero .eyebrow { color: white; }
.region-hero-copy .lede, .region-hero-copy > p:not(.eyebrow) { color: white; }
.region-hero .fact-card { align-self: start; color: white; border-color: transparent; background: rgb(0 0 0 / 50%); }
.region-hero .fact-card .label, .region-hero .region-mini-map figcaption { color: white; }
.region-hero-art { position: absolute; z-index: 0; inset: 0; margin: 0; background: var(--vine); }
.region-hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(12 26 18 / 82%) 0%, rgb(12 26 18 / 58%) 52%, rgb(12 26 18 / 30%) 100%); }
.region-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.82) contrast(1.05); }
.region-hero-art figcaption { position: absolute; z-index: 1; left: .75rem; bottom: .65rem; margin: 0; padding: .35rem .5rem; color: white; background: rgb(23 34 26 / 78%); font-size: .68rem; }
.region-hero-art a { color: inherit; }
.fact-card p:last-child { margin-bottom: 0; }
.region-mini-map { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.region-mini-map figcaption { margin-bottom: .55rem; color: var(--muted); font-size: .85rem; font-weight: 700; }
.region-mini-map svg { display: block; width: 100%; aspect-ratio: 1.6 / 1; background: #dce5df; border: 1px solid #b9c7bd; }
.mini-map-ocean { fill: #dce5df; }
.mini-map-region { fill: var(--wine); fill-opacity: .58; stroke: white; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-block: 1px solid var(--line); }
.metric-grid div { padding: 1.3rem; border-right: 1px solid var(--line); }
.metric-grid div > span, .metric-grid strong, .metric-grid small { display: block; }
.metric-grid div > span, .metric-grid small { color: var(--muted); font-size: .85rem; }
.metric-grid strong { font-size: 1.7rem; font-family: var(--font-body, "Source Sans 3"), sans-serif; }
.metric-grid strong > [data-unit-value] { color: inherit; font: inherit; }
.warning { padding: .8rem 1rem; color: var(--warning); border-left: 4px solid var(--warning); background: #fff3df; }
.warning.compact { margin: .75rem 0 0; padding: .35rem .6rem; font-size: .8rem; }

/* Forecast */
.outlook { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: 2rem; background: var(--vine); color: white; padding: clamp(1.5rem, 5vw, 4rem); }
.outlook .eyebrow, .outlook .fine-print { color: #dce9dc; }
.outlook h2 { color: white; font-size: clamp(2rem, 2.8vw, 3rem); white-space: nowrap; margin-bottom: .35rem; }
.forecast-model { margin: 0 0 1.25rem; color: #dce9dc; font-size: .84rem; font-weight: 700; }
.forecast-metrics { margin-bottom: .65rem; }
.forecast-period-label { margin: 0 0 .45rem; color: #dce9dc; font-size: .76rem; }
.forecast-period-comparison { margin: 0 0 1rem; border-block: 1px solid rgb(255 255 255 / 24%); }
.forecast-period-comparison > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .6rem 0; }
.forecast-period-comparison > div + div { border-top: 1px solid rgb(255 255 255 / 14%); }
.forecast-period-comparison dt { color: #dce9dc; font-size: .78rem; }
.forecast-period-comparison dd { display: grid; gap: .1rem; margin: 0; text-align: right; }
.forecast-period-comparison dd strong { color: white; font-size: 1rem; }
.forecast-period-comparison dd span { color: #dce9dc; font-size: .7rem; }
.forecast-summary { margin: 0; color: #dce9dc; }
.fine-print, .caveat { font-size: .88rem; }
.compact-details { margin-top: .85rem; color: var(--muted); font-size: .88rem; }
.compact-details summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; width: fit-content; color: var(--vine); font-weight: 750; }
.compact-details p { margin: .55rem 0 0; }
.compact-details[open] { padding-top: .1rem; }
.inverse-details { color: #dce9dc; }
.inverse-details summary { color: white; text-decoration: underline; text-underline-offset: .18em; }
.caveat-details { border-left: 4px solid var(--wine); padding: .8rem 1rem; background: #eee8dd; }
.forecast-chart { display: grid; grid-template-columns: repeat(10, minmax(46px, 1fr)); gap: .35rem; align-items: end; min-height: 240px; overflow-x: auto; padding-bottom: .5rem; }
.forecast-day { display: grid; grid-template-rows: auto auto 110px auto auto auto; gap: .25rem; min-width: 46px; text-align: center; }
.forecast-label { font-weight: 700; font-size: .8rem; }
.forecast-label small { display: block; font-weight: 400; color: #dce9dc; }
.forecast-temperature { display: grid; gap: .12rem; min-height: 2.15rem; align-content: start; }
.forecast-temperature strong, .forecast-temperature small { display: block; }
.forecast-temperature small { color: #dce9dc; font-size: .58rem; line-height: 1; white-space: nowrap; }
.temperature-track { display: flex; align-items: end; width: 18px; height: 100%; margin: auto; background: rgb(255 255 255 / 12%); overflow: hidden; }
.temperature-track span { width: 100%; background: #efbf55; }
.forecast-high { color: #ffb0a8; font-size: 1rem; line-height: 1; }
.forecast-low { color: #a9d7ff; font-size: 1rem; line-height: 1; }
.rain-amount { color: #cbe2f3; font-size: .72rem; white-space: nowrap; }
.gdd-amount { color: #f7d889; font-size: .72rem; white-space: nowrap; }

/* Vintage controls and charts */
.conditions-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: .25rem; padding: 1.25rem; }
.mode-toggle { display: inline-flex; gap: .25rem; margin-bottom: 1.25rem; padding: .25rem; border: 1px solid var(--line); border-radius: 999px; background: #eee8dd; }
.mode-toggle button { min-height: 0; padding: .45rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .88rem; }
.mode-toggle button[aria-selected="true"] { background: var(--vine); color: white; }
.tab-panel > section { margin: 0; }
.current-conditions .section-heading, .vintage-panel .section-heading { margin-bottom: 1.2rem; }
.year-picker { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.year-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 1rem; }
.year-nav strong { font: 600 1.4rem/1.2 var(--font-display, "Merriweather"), ui-serif, serif; }
.selected-year { display: flex; align-items: baseline; gap: .55rem; }
.selected-year small { color: var(--muted); font-size: .78rem; font-weight: 500; white-space: nowrap; }
.year-nav a:last-child { text-align: right; }
.vintage-metrics { margin-bottom: 1rem; }
.tasting-card { margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; background: #fff8e8; border: 1px solid #e2cf96; border-left: 4px solid var(--gold); }
.tasting-card h3 { margin-bottom: .65rem; }
.tasting-card ul { margin: 0; padding-left: 1.2rem; }
.tasting-card li + li { margin-top: .45rem; }
.history-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.chart-card { margin: 0; padding: 1rem; overflow: hidden; }
.chart-card figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.chart-card figcaption span { color: var(--muted); font-size: .82rem; text-align: right; }
.chart-scroll { overflow-x: auto; max-width: 100%; }
.history-chart { display: block; min-width: 650px; width: 100%; height: auto; }
.season-progress-charts .chart-card, .season-progress-charts .chart-scroll { min-width: 0; max-width: 100%; }
.season-progress-charts .chart-scroll { overflow: hidden; }
.season-progress-charts .history-chart { min-width: 0; max-width: 100%; }
.chart-legend { --chart-legend-color: var(--wine); display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0 0 .35rem; color: var(--muted); font-size: .76rem; }
.chart-legend--rain { --chart-legend-color: #4f7d92; }
.chart-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.chart-legend span::before { width: 1.5rem; border-top: 3px solid var(--chart-legend-color); content: ""; }
.chart-legend .chart-legend-climatology::before { border-top-style: dashed; }
.history-chart text { fill: var(--muted); font: 12px var(--font-body, "Source Sans 3"), sans-serif; }
.chart-zero { stroke: #979990; stroke-width: 1.5; stroke-dasharray: 4 5; }
.season-progress-charts .season-zero { display: none; }
.temperature-line { fill: none; stroke: var(--wine); stroke-width: 2.5; stroke-linejoin: round; }
.gdd-line { fill: none; stroke: var(--wine); stroke-width: 3; stroke-linejoin: round; }
.season-rain-line { fill: none; stroke: #4f7d92; stroke-width: 3; stroke-linejoin: round; }
.climatology-line { fill: none !important; fill-opacity: 0; stroke-width: 2; stroke-dasharray: 7 6; stroke-linecap: butt; stroke-linejoin: round; opacity: 1; }
.climatology-gdd-line { stroke: var(--wine); }
.climatology-rain-line { stroke: #4f7d92; }
.chart-axis { stroke: var(--line); stroke-width: 1; }
.chart-x-label { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.chart-hover-target, .chart-hover-band { fill: rgb(255 255 255 / 0%); stroke: none; pointer-events: all; }
.season-chart-point { stroke: white; stroke-width: 1.25; pointer-events: all; cursor: crosshair; }
.season-chart-point.gdd-point { fill: var(--wine); }
.season-chart-point.rain-point { fill: #4f7d92; }
.chart-point { fill: var(--wine); stroke: white; stroke-width: 1.5; }
.chart-point.selected { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.rain-bar.wet { fill: #4f7d92; }
.rain-bar.dry { fill: #b46b45; }
.rain-bar.selected { stroke: var(--ink); stroke-width: 2; }
.history-chart a:focus .chart-point, .history-chart a:focus .rain-bar { stroke: var(--gold); stroke-width: 4; }
.chart-tooltip { position: fixed; z-index: 30; max-width: 18rem; padding: .45rem .6rem; border: 1px solid rgb(23 34 26 / 18%); border-radius: .2rem; background: rgb(23 34 26 / 94%); color: white; font-size: .82rem; line-height: 1.35; white-space: pre-line; pointer-events: none; box-shadow: 0 .35rem 1.5rem rgb(23 34 26 / 18%); }
.data-table { margin-top: 1rem; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); }
.data-table summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 700; }
.table-scroll { margin-top: .8rem; max-height: 360px; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .5rem .7rem; border-bottom: 1px solid var(--line); text-align: right; }
th:first-child, td:first-child { text-align: left; }
thead th { position: sticky; top: 0; background: var(--surface); }
tr[aria-current="true"] { background: #f3e6be; }
.season-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; margin-top: 1rem; }
.season-grid p { margin: .2rem 0; color: var(--muted); }
.season-grid h3 { margin-bottom: .4rem; }
.season-name { color: var(--wine) !important; }
.region-section-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.25rem 0; padding-block: .7rem; border-block: 1px solid var(--line); }
.region-section-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: .4rem .65rem; color: var(--vine); font-size: .88rem; font-weight: 750; }
.analogs-card { margin-top: 1.5rem; border-top: 4px solid var(--wine); background: #fffdf8; }
.analog-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 1rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.analog-card { padding: 1.25rem; border: 1px solid var(--line); background: white; }
.analog-rank { margin: 0; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.analog-card h4 { margin: .25rem 0 .5rem; font: 600 2rem/1.1 var(--font-display, "Merriweather"), ui-serif, serif; }
.analog-differences { display: grid; gap: .5rem; margin: 1rem 0; }
.analog-differences div { padding-top: .5rem; border-top: 1px solid var(--line); }
.analog-differences dt { color: var(--muted); font-size: .78rem; }
.analog-differences dd { margin: .1rem 0 0; font-variant-numeric: tabular-nums; }
.analog-principal { padding: .65rem .75rem; border-left: 3px solid var(--wine); background: #f5e9e7; font-size: .9rem; }
.analog-card > a { display: inline-flex; align-items: center; min-height: 44px; color: var(--wine); font-weight: 750; }
.event-timeline { margin-top: 1.5rem; border-color: #94b3c2; background: #eef6f8; }
.event-timeline-list { position: relative; display: grid; gap: 1rem; margin: 1.2rem 0 0; padding: 0 0 0 2rem; list-style: none; }
.event-timeline-list::before { position: absolute; top: .5rem; bottom: .5rem; left: .52rem; width: 2px; background: #94b3c2; content: ""; }
.event-timeline-list > li { position: relative; }
.event-marker { position: absolute; z-index: 1; top: 1rem; left: -1.82rem; width: 1rem; height: 1rem; background: #536b8c; transform: rotate(45deg); }
.event--heat_episode .event-marker { border-radius: 50%; background: #9b3e30; transform: none; }
.event--dry_spell .event-marker { background: #8b6417; transform: none; }
.event--harvest_rain .event-marker { border: 3px solid #356a78; border-radius: 50%; background: white; transform: none; }
.event-timeline-list article { padding: 1rem; border: 1px solid var(--line); border-left: 4px solid #536b8c; background: white; }
.event--heat_episode article { border-left-color: #9b3e30; }.event--dry_spell article { border-left-color: #8b6417; }.event--harvest_rain article { border-left-color: #356a78; }
.event-timeline-list time { color: var(--wine); font-size: .85rem; font-weight: 800; }
.event-timeline-list h4 { margin: .2rem 0 .5rem; }
.event-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .7rem 0; }
.event-evidence div { padding: .45rem; background: #f3f5f2; }.event-evidence dt { color: var(--muted); font-size: .72rem; }.event-evidence dd { margin: .15rem 0 0; font-variant-numeric: tabular-nums; font-weight: 750; }
.analog-list, .event-list { margin: .8rem 0 0; padding-left: 1.35rem; }
.analog-list li, .event-list li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.analog-list li:last-child, .event-list li:last-child { border-bottom: 0; }
.analog-list span, .analog-list small { display: block; color: var(--muted); }
.analog-list span { font-size: .85rem; }
.event-list h4 { margin: .15rem 0 .25rem; }
.event-list p { margin: .15rem 0; }
.event-dates { color: var(--wine) !important; font-weight: 700; }
.unavailable { color: var(--muted); }
.sampling-section { order: 8; margin-top: 3rem; }
.sampling-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1rem 0; border: 1px solid var(--line); background: var(--surface); }
.sampling-summary div { display: grid; gap: .15rem; padding: 1rem; border-right: 1px solid var(--line); }.sampling-summary strong { font-family: var(--font-body, "Source Sans 3"), sans-serif; font-size: 1.2rem; }.sampling-summary span { color: var(--muted); font-size: .82rem; }
.technical-panel { padding: 1rem 1.2rem; border-left: 4px solid var(--wine); background: #eee8dd; }.technical-panel summary { cursor: pointer; color: var(--vine); font-weight: 750; }
.sampling-map { max-width: 620px; margin: 1rem 0; }
.sampling-map figcaption { margin-bottom: .5rem; color: var(--muted); font-weight: 700; }
.sampling-map svg { display: block; width: 100%; aspect-ratio: 1.6 / 1; background: #dce5df; border: 1px solid #b9c7bd; }
.sampling-grid-cell { fill: #efbf55; fill-opacity: .18; stroke: #9a6f20; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sampling-point { fill: var(--wine); stroke: white; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sampling-point-number, .sampling-cell-badge { dominant-baseline: middle; fill: white; font: 800 11px var(--font-body, "Source Sans 3"), sans-serif; pointer-events: none; text-anchor: middle; }.sampling-cell-badge { fill: var(--ink); }
.sampling-section table { font-size: .9rem; }
.interpretation-summary { font-size: 1.35rem; max-width: 70ch; }
.signal-strength { color: var(--vine); }
.comparison-selection-panel { display: grid; gap: .5rem; padding: 1rem; border: 1px solid var(--line); background: var(--surface); }
.comparison-selection-panel legend { font: 600 1.35rem/1.2 var(--font-display, "Merriweather"), ui-serif, serif; padding: 0 .35rem; }
.comparison-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.comparison-form > button { grid-column: 1 / -1; justify-self: start; }
.comparison-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.comparison-context article { padding: 1rem; border-left: 4px solid var(--vine); background: var(--surface); }
.comparison-context-card--a { border-left-color: var(--compare-a) !important; }.comparison-context-card--b { border-left-color: var(--compare-b) !important; }
.comparison-context h3 { margin-bottom: .4rem; }
.comparison-context p { margin: .2rem 0; color: var(--muted); font-size: .9rem; }
.comparison-table-scroll { background: var(--surface); border: 1px solid var(--line); }
.comparison-table small { color: var(--muted); }
.comparison-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }.comparison-actions button { min-height: 44px; }.comparison-badge { display: inline-grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: var(--compare-a); color: white; font-size: .75rem; }.comparison-context-card--b .comparison-badge, .comparison-table th:nth-child(3) .comparison-badge { background: var(--compare-b); }.comparison-anomaly, .comparison-direction { display: block; margin-top: .25rem; color: var(--muted); font-size: .82rem; }.anomaly-track { display: block; position: relative; height: 4px; margin-top: .5rem; background: #e5e1d8; }.anomaly-bar { position: absolute; left: 50%; width: calc(abs(var(--anomaly-bar)) * 1%); height: 100%; background: var(--wine); transform: translateX(min(0%, var(--anomaly-bar))); }.comparison-seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }.comparison-season-card { padding: 1rem; border: 1px solid var(--line); background: var(--surface); }.comparison-season-card table { font-size: .82rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sources-section { margin-top: 3rem; }
.caveat, .sources { border-left: 4px solid var(--wine); padding: 1rem 1.4rem; background: #eee8dd; }
.sources summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 750; color: var(--vine); }
.sources p, .sources ul { margin-top: .8rem; }
footer { border-top: 1px solid var(--line); padding: 2rem 0 4rem; display: flex; justify-content: space-between; gap: 2rem; }

/* Shared feature components */
.feature-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.feature-card__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.feature-card__actions, .section-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.feature-kicker { margin: 0 0 .45rem; color: var(--wine); font-size: .76rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.feature-meta { color: var(--muted); font-size: .86rem; }
.feature-note { margin: 1rem 0; padding: 1rem; border-left: 4px solid var(--info); background: var(--info-surface); }
.status-panel { display: flex; gap: .8rem; margin: 1rem 0; padding: 1rem 1.15rem; border-left: 4px solid var(--muted); background: var(--unavailable-surface); }
.status-panel--processing { border-color: var(--gold); background: var(--feature-surface); }
.status-panel--unavailable { border-color: var(--muted); background: var(--unavailable-surface); }
.status-panel--empty { border-color: var(--success); background: var(--success-surface); }
.status-panel--error, .status-panel--stale { border-color: var(--warning); background: var(--warning-surface); }
.status-panel__body { min-width: 0; }
.status-panel__title { margin: 0 0 .25rem; font-size: 1.15rem; }
.status-panel__message { margin: 0; }
.evidence-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.evidence-chip { display: inline-flex; gap: .3rem; align-items: baseline; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: .84rem; }
.side-badge { display: inline-grid; width: 1.5rem; height: 1.5rem; place-items: center; border-radius: 50%; color: white; font-size: .76rem; font-weight: 800; }
.side-badge--a { background: var(--compare-a); }
.side-badge--b { background: var(--compare-b); }
.feature-legend { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .85rem; }
.responsive-table { position: relative; }
.responsive-table:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.scroll-hint { display: none; margin: .5rem 0 0; color: var(--muted); font-size: .84rem; }
.metric-pair { display: grid; gap: .15rem; }
.metric-pair strong, .comparison-value { font-variant-numeric: tabular-nums; }

/* Grape-first discovery */
.grape-index h2 { margin-bottom: 1.25rem; }
.grape-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grape-card { display: flex; flex-direction: column; min-height: 250px; padding: 1.5rem; border: 1px solid var(--line); border-top: 4px solid var(--wine); border-radius: var(--radius-md); background: var(--surface); }
.grape-card h3 { margin-bottom: .55rem; font-size: 1.65rem; }
.grape-card h3 a { color: var(--ink); }
.grape-card p { margin-top: 0; }
.grape-card-meta, .grape-aliases, .window-note, .grape-local-label { color: var(--muted); font-size: .88rem; }
.grape-card-action { margin-top: auto !important; padding-top: .8rem; color: var(--vine); font-weight: 750; }
.grape-card:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.grape-card--processing { border-top-color: var(--gold); }
.grape-detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; margin: clamp(3rem, 7vw, 5rem) 0 2rem; }
.grape-detail-copy h1 { font-size: clamp(2.75rem, 7vw, 5rem); text-wrap: balance; }
.weather-questions-card { padding: 1.5rem; border-left: 4px solid var(--vine); background: #e8eee5; }
.weather-questions-card h2 { font-size: 1.7rem; }
.weather-questions-card li + li { margin-top: .55rem; }
.grape-map { position: static; margin: 2rem 0; padding: 1rem; border: 1px solid #b9c7bd; background: #dce5df; }
.grape-map figcaption { margin-bottom: .65rem; color: var(--ink); font-weight: 750; }
.grape-map .static-world-map { aspect-ratio: 2 / 1; }
.grape-map .static-region a:focus circle { stroke: var(--gold); stroke-width: 5; }
.grape-profiles { margin-top: 3rem; }
.grape-country-group { margin-top: 2.5rem; }
.grape-country-group > h3 { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.grape-country-group > h3 span { color: var(--muted); font-family: inherit; font-size: .9rem; font-weight: 500; }
.grape-region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grape-region-grid .region-card { min-width: 0; }
.profile-metrics { display: grid; gap: .45rem; margin: 1rem 0 0; }
.profile-metrics div { display: flex; justify-content: space-between; gap: .75rem; padding-top: .45rem; border-top: 1px solid var(--line); }
.profile-metrics dt { color: var(--muted); font-size: .8rem; }
.profile-metrics dd { margin: 0; font-weight: 750; text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.editorial-references { margin-top: 3rem; padding: 1rem 1.25rem; border: 1px solid var(--line); background: var(--surface); }
.editorial-references summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--vine); font-weight: 750; }
.editorial-references span { color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .atlas-layout, .outlook { grid-template-columns: 1fr; }
  .home-hero { min-height: 520px; padding: clamp(2rem, 8vw, 4rem); }
  .home-hero-art::after { background: rgb(12 26 18 / 66%); }
  .map-panel { position: static; }
  .history-charts { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; }
  .header-actions { flex: 1; justify-content: flex-end; flex-wrap: wrap; }
  .header-actions > p { display: none; }
  .grape-grid, .grape-region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grape-detail-hero { grid-template-columns: 1fr; }
  .analog-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 700px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .brand { grid-column: 1; grid-row: 1; }
  .header-actions { display: contents; }
  .unit-toggle { grid-column: 2; grid-row: 1; margin-left: auto; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); }
  .primary-nav a { flex: 1; justify-content: center; }
  .hero { padding-top: 3rem; }
  main > section { margin: 3rem 0; }
  .region-hero { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding: 2rem; }
  .section-heading { align-items: start; flex-direction: column; gap: .5rem; }
  .region-filters { grid-template-columns: 1fr; }
  .region-map.leaflet-container { min-height: 380px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid div { border-bottom: 1px solid var(--line); }
  .vintage-heading form { width: 100%; flex-wrap: wrap; }
  .year-picker label { width: 100%; }
  .year-picker select { flex: 1; }
  .forecast-chart { grid-template-columns: repeat(10, 52px); }
  .chart-card { padding: .75rem; }
  .chart-card figcaption { flex-direction: column; }
  .chart-card figcaption span { text-align: left; }
  footer { flex-direction: column; }
  .comparison-form, .comparison-context { grid-template-columns: 1fr; }
  .comparison-seasons { grid-template-columns: 1fr; }
  .sampling-summary { grid-template-columns: 1fr; }.sampling-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .event-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-timeline-list { padding-left: 1.55rem; }.event-marker { left: -1.43rem; }
  .feature-card { padding: 1rem; }
  .scroll-hint { display: block; }
  .responsive-table thead th:first-child, .responsive-table tbody th:first-child { position: sticky; left: 0; z-index: 2; background: var(--surface); }
  .grape-grid, .grape-region-grid { grid-template-columns: 1fr; }
  .grape-card { min-height: 0; }
  .analog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid strong { font-size: 1.35rem; }
  .site-header, main, footer { width: min(1180px, calc(100% - 1.5rem)); }
}

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

/* Mockup 7 production design system: a weather atlas for wine regions and vintages. */
body {
  min-width: 320px;
  background:
    radial-gradient(circle at 92% 7%, rgb(120 174 188 / 8%), transparent 22rem),
    var(--paper);
  color: var(--ink);
}

a { color: #285a61; }

.environment-banner {
  position: relative;
  z-index: 50;
  background: #a13e2e;
  color: white;
  font-weight: 800;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgb(20 36 44 / 97%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 8%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1280px, calc(100% - 2.5rem));
  min-height: 68px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { color: white; white-space: nowrap; }
.brand span {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / 36%);
  background: var(--sky);
  color: var(--storm);
  font: 800 .68rem/1 var(--font-body, "Source Sans 3"), sans-serif;
  letter-spacing: -.04em;
}
.brand strong { font-family: var(--font-display, "Merriweather"), ui-serif, serif; font-size: 1.08rem; }
.header-actions { gap: 1.25rem; }
.primary-nav { gap: .1rem; }
.primary-nav a {
  padding-inline: .65rem;
  color: #dce8e9;
  font-size: .78rem;
  font-weight: 720;
}
.primary-nav a:hover { color: white; }
.primary-nav a[aria-current="page"] { border-color: var(--sky); color: white; }
.unit-toggle { border-color: rgb(255 255 255 / 23%); background: rgb(255 255 255 / 7%); }
.unit-toggle label { color: #cbd9db; }
.unit-toggle label:has(input:checked) { background: var(--sky); color: var(--storm); }

main, .site-footer { width: min(1280px, calc(100% - 2.5rem)); }
main > section, main > details { margin-block: 3.5rem; }
.breadcrumbs { margin-top: 1.4rem; font-size: .85rem; }

h1, h2, h3 { color: var(--ink); }
.eyebrow, .label, .country, .signal-strength, .season-name { color: var(--wine); }
.lede { color: #3f4e53; }

.weather-atlas-home { width: 100%; }
.weather-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, .76fr) minmax(0, 1.24fr);
  min-height: min(710px, calc(100vh - 68px));
  margin: 0;
  isolation: isolate;
}
.weather-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3.25rem, 7vw, 7.5rem) clamp(2rem, 5vw, 5.5rem) clamp(3.25rem, 7vw, 7.5rem) clamp(1.5rem, 3vw, 2.75rem);
  overflow: hidden;
}
.weather-hero-vineyard {
  position: absolute;
  z-index: 0;
  /* main is centered and capped at ~1280px even on the home page, so
     .weather-hero's own left/right edges sit inset from the true viewport
     edges on wide screens. Bleed the background photo out to the real
     viewport edge on both sides (not just the right) using the same
     half-the-overflow calculation for each side. The hero's bottom border
     lives here rather than on .weather-hero itself so it bleeds the same
     full width as the photo instead of stopping at the constrained
     container edge. */
  inset: 0 calc((100vw - 100%) / -2) 0 calc((100vw - 100%) / -2);
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.weather-hero-vineyard img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  opacity: .65;
  filter: grayscale(.25) saturate(.68) contrast(.88) brightness(1.05);
}
.weather-hero-vineyard::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgb(243 239 229 / 56%) 0%, rgb(243 239 229 / 48%) 48%, rgb(243 239 229 / 38%) 100%);
}
.weather-hero-vineyard figcaption {
  position: absolute;
  z-index: 2;
  top: .55rem;
  right: .7rem;
  padding: .2rem .35rem;
  color: #465358;
  background: rgb(243 239 229 / 78%);
  font-size: .62rem;
}
.weather-hero-vineyard a { color: inherit; }
.weather-hero-copy h1 {
  max-width: 10ch;
  margin-bottom: 1.35rem;
  font-size: clamp(3.25rem, 5vw, 5.5rem);
  line-height: .95;
  text-wrap: balance;
}
.weather-hero-copy .lede { max-width: 48ch; margin-top: 0; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.vintage-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(112px, .65fr);
  gap: .75rem;
  max-width: 610px;
  margin-top: 1.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgb(255 253 247 / 82%);
  box-shadow: 0 12px 38px rgb(36 48 50 / 8%);
}
.vintage-lookup div { display: grid; gap: .25rem; }
.vintage-lookup select,
.vintage-lookup input {
  width: 100%;
  min-width: 0;
}
.vintage-lookup label, .region-filters label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.vintage-lookup button { grid-column: 1 / -1; border-color: var(--storm); background: var(--storm); color: white; }
.vintage-lookup button:hover { background: var(--storm-mid); }

.weather-map-room {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  margin-right: calc((100vw - min(1280px, calc(100vw - 2.5rem))) / -2);
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.weather-map-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
  color: #33464b;
}
.weather-map-heading p { margin: 0; }
.weather-map-heading .map-kicker {
  color: var(--ink);
  font: 800 .78rem/1.3 var(--font-body, "Source Sans 3"), sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.map-count { font-size: .8rem; white-space: nowrap; }
.weather-map-room .map-panel {
  position: static;
  border: 1px solid rgb(255 255 255 / 16%);
  background: #203943;
  box-shadow: 0 22px 60px rgb(0 0 0 / 25%);
}
.weather-map-room .static-ocean { fill: #203943; }
.weather-map-room .static-world-map image { opacity: .52; filter: brightness(.55) sepia(.15) hue-rotate(135deg) saturate(.8); }
.weather-map-room .static-region path { fill: var(--sky); fill-opacity: .47; stroke: #d7eff0; }
.weather-map-room .static-region circle { fill: #f0b466; stroke: white; }
.weather-map-room .static-region.approximate path { fill: var(--sky); stroke: #d7eff0; }
.weather-map-room .static-region.approximate circle { fill: #f0b466; }
.weather-map-room .static-map-activation { background: #203943; }
.weather-map-room .map-note { border-top: 1px solid rgb(255 255 255 / 10%); background: #172b34; color: #b9cccf; }
.weather-map-room .geometry-key { color: white; }
.weather-map-room .region-map.leaflet-container { min-height: clamp(400px, 52vw, 610px); }

.atlas-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.atlas-ways > a {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.2rem, 2.5vw, 2.25rem);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}
.atlas-ways > a + a { border-left: 1px solid var(--line); }
.atlas-ways > a:hover { background: rgb(255 253 247 / 58%); }
.atlas-ways > a strong { font-family: var(--font-display, "Merriweather"), ui-serif, serif; font-size: 1.3rem; }
.atlas-ways > a small { max-width: 34ch; color: var(--muted); line-height: 1.55; }

.region-catalog { margin-block: clamp(4rem, 8vw, 7rem); }
.section-heading {
  align-items: end;
  padding-bottom: 1.25rem;
  border-color: var(--ink);
}
.section-heading > p { max-width: 62ch; color: var(--muted); }
.region-filters {
  grid-template-columns: minmax(230px, 2fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
input, select, button, .clear-filters { border-color: #9ea5a2; border-radius: 2px; }
button { background: var(--storm); color: white; }
.clear-filters { color: var(--ink); }
.region-country-list { gap: .85rem; }
.region-country { border-color: #cfc8b7; background: rgb(255 253 247 / 68%); }
.region-country > summary { min-height: 76px; padding-inline: 1.5rem; font-size: 1.35rem; }
.region-country[open] > summary { background: var(--storm); color: white; }
.region-country[open] > summary .region-country-count { color: #c8d8da; }
.region-country .region-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 1.5rem; }
.region-card {
  display: flex;
  min-height: 290px;
  flex-direction: column;
  border: 0;
  border-top: 3px solid var(--sky);
  border-radius: 0;
  box-shadow: 0 5px 20px rgb(26 42 45 / 7%);
}
.region-card-country { margin: 0 0 .3rem; color: var(--wine); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.region-card .text-link { margin-top: auto; padding-top: .8rem; }
.tag-list li { border-radius: 2px; background: #e5ece8; }

.method-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
  margin-block: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--storm);
  color: #d6e3e4;
}
.method-strip h2 { margin-bottom: 0; color: white; }
.method-strip > p { margin: 0; }
.method-strip > a { grid-column: 2; color: white; font-weight: 800; }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr minmax(310px, .8fr);
  align-items: start;
  gap: 1.5rem;
  padding-block: 2.5rem 4rem;
  border-color: var(--ink);
}
.footer-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  background: var(--storm);
  color: white;
  font-size: .7rem;
  font-weight: 850;
}
.site-footer p { margin: 0 0 .4rem; }
.footer-title { color: var(--ink); font: 600 1.18rem/1.2 var(--font-display, "Merriweather"), ui-serif, serif; }
.footer-meta { text-align: right; }
.site-feedback {
  grid-column: 1 / -1;
  justify-self: end;
  width: min(100%, 38rem);
  margin-top: .5rem;
}
.site-feedback > summary {
  width: fit-content;
  margin-left: auto;
  padding: .65rem .9rem;
  border: 1px solid var(--control-line);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}
.site-feedback > summary::-webkit-details-marker { display: none; }
.site-feedback > summary::before { content: "+ "; }
.site-feedback[open] > summary::before { content: "− "; }
.site-feedback-panel {
  margin-top: .75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
}
.site-feedback-panel > p { margin-bottom: 1rem; }
.site-feedback-panel form,
.site-feedback-panel label { display: grid; gap: .35rem; }
.site-feedback-panel form { gap: .9rem; }
.site-feedback-panel select,
.site-feedback-panel textarea { width: 100%; }
.site-feedback-panel textarea { min-height: 8rem; resize: vertical; }
.feedback-submit {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}
.feedback-submit small { max-width: 40ch; color: var(--muted); }
.feedback-honeypot { position: absolute; left: -10000px; }

@media (max-width: 1080px) {
  .primary-nav a { padding-inline: .42rem; font-size: .72rem; }
  .weather-hero { grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr); }
  .weather-hero-copy h1 { font-size: clamp(3.15rem, 5vw, 4.8rem); }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .vintage-lookup { grid-template-columns: minmax(0, 1fr); }
  .vintage-lookup button { grid-column: 1; }
}

@media (min-width: 1081px) {
  .weather-hero {
    grid-template-columns: minmax(440px, .92fr) minmax(0, 1.08fr);
  }

  .weather-hero-copy {
    padding-inline: clamp(2rem, 3vw, 3.5rem);
  }
}

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: .65rem; }
  .header-actions { flex: 1 1 100%; justify-content: space-between; }
  .weather-hero { grid-template-columns: 1fr; min-height: 0; }
  .weather-hero-copy { padding: clamp(3rem, 9vw, 6rem) clamp(1.5rem, 5vw, 3rem); }
  .weather-map-room { margin-inline: calc((100vw - min(1280px, calc(100vw - 2.5rem))) / -2); }
  .region-country .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: auto 1fr; }
  .footer-meta { grid-column: 2; text-align: left; }
  .site-feedback { justify-self: stretch; }
}

@media (max-width: 700px) {
  .site-header { display: block; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: min(1280px, calc(100% - 1.5rem)); }
  .header-actions { display: contents; }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: start;
    overflow-x: auto;
    border-top: 1px solid rgb(255 255 255 / 12%);
    scrollbar-width: thin;
  }
  .primary-nav a { flex: 0 0 auto; padding-inline: .7rem; }
  .unit-toggle { grid-column: 2; grid-row: 1; }
  main, .site-footer { width: min(1280px, calc(100% - 1.5rem)); }
  .weather-hero-copy h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .weather-map-room { margin-inline: -.75rem; padding: 1.25rem .75rem; }
  .vintage-lookup { grid-template-columns: 1fr; }
  .vintage-lookup button { grid-column: 1; }
  .atlas-ways { grid-template-columns: 1fr; }
  .atlas-ways > a { min-height: 145px; border-top: 1px solid var(--line); }
  .atlas-ways > a + a { border-left: 0; }
  .region-filters { grid-template-columns: 1fr; }
  .region-country .region-grid { grid-template-columns: 1fr; }
  .region-card { min-height: 0; }
  .method-strip { grid-template-columns: 1fr; padding: 2rem 1.25rem; }
  .method-strip > a { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-feedback { grid-column: 1; }
  .feedback-submit { align-items: stretch; flex-direction: column; }
  .footer-meta { grid-column: 1; }
}

/* Region records */
.region-record-page main { display: flex; }
.region-record-page .region-hero {
  display: grid;
  grid-template-areas: "copy art" "facts art";
  grid-template-columns: minmax(0, .95fr) minmax(330px, .7fr);
  gap: 0;
  min-height: 610px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 55px rgb(24 33 39 / 7%);
}
.region-record-page .region-hero-copy {
  grid-area: copy;
  max-width: none;
  padding: clamp(2.25rem, 5vw, 4.5rem);
  padding-bottom: 1.5rem;
}
.region-record-page .region-hero-copy h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(3.7rem, 6.5vw, 6.4rem);
  line-height: .91;
}
.region-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .75rem;
}
.region-title-line h1 { flex: 0 1 auto; }
.region-title-line .follow-control {
  flex: 0 0 auto;
  margin: 0 0 .55rem;
}
.region-title-line .follow-control button,
.region-title-line a.follow-control {
  min-height: 30px;
  padding: .15rem .55rem;
  border: 1px solid var(--wine);
  background: transparent;
  color: var(--wine);
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.region-title-line .follow-control button:hover,
.region-title-line a.follow-control:hover {
  background: var(--wine);
  color: white;
}
.region-record-page .region-hero-copy .eyebrow { color: var(--wine); }
.region-record-page .region-hero-copy .lede,
.region-record-page .region-hero-copy > p:not(.eyebrow) { color: #3f4e53; }
.region-record-page .region-hero > .fact-card {
  grid-area: facts;
  align-self: stretch;
  margin: 0 clamp(2.25rem, 5vw, 4.5rem) clamp(2.25rem, 5vw, 4.5rem);
  padding: 1.4rem;
  color: var(--ink);
  border-color: var(--line);
  border-left: 4px solid var(--sky);
  border-radius: 0;
  background: #eaf0ee;
}
.region-record-page .region-hero > .fact-card .label,
.region-record-page .region-hero .region-mini-map figcaption { color: var(--muted); }
.region-record-page .region-hero-art {
  position: relative;
  grid-area: art;
  align-self: stretch;
  height: 100%;
  min-height: 610px;
  inset: auto;
  background: var(--storm);
}
.region-record-page .region-hero-art::after {
  background: linear-gradient(180deg, rgb(20 36 44 / 8%), rgb(20 36 44 / 38%));
}
.region-record-page .region-hero-art img { filter: saturate(.72) contrast(1.04); }
.region-record-page .region-hero-art img,
.grape-index-hero .home-hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.region-record-page .region-hero-art figcaption { left: auto; right: .75rem; }

.conditions-tabs {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: 0;
  box-shadow: 0 12px 40px rgb(24 33 39 / 6%);
}
.mode-toggle { border-radius: 2px; background: #e9e5dc; }
.mode-toggle button { border-radius: 2px; color: var(--ink); }
.mode-toggle button[aria-selected="true"] { background: var(--storm); }
.current-conditions .section-heading h2,
.vintage-panel .section-heading h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.metric-grid { background: var(--surface); }
.metric-grid div { min-height: 118px; }
.metric-grid strong { color: var(--storm); font-size: clamp(1.5rem, 2.5vw, 2rem); font-variant-numeric: tabular-nums; }
.vintage-answer {
  margin: 1rem 0 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-left: 5px solid var(--heat);
  background: var(--storm);
  color: #d7e5e6;
}
.vintage-answer h3 { max-width: 34ch; margin-bottom: .65rem; color: white; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.vintage-answer p { max-width: 68ch; }
.vintage-answer .eyebrow { color: #f0b466; }
.vintage-answer p:last-child { margin-bottom: 0; }
.tasting-card {
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sky);
  background: #edf2f0;
}
.tasting-card .eyebrow { color: #3d6c73; }
.region-section-nav {
  position: sticky;
  z-index: 10;
  top: 74px;
  background: rgb(255 253 247 / 95%);
  backdrop-filter: blur(10px);
}
.feature-card, .chart-card, .season-grid article, .signal-grid article {
  border-radius: 0;
  box-shadow: 0 6px 22px rgb(24 33 39 / 5%);
}
.chart-card { border-top: 3px solid var(--sky); }
.history-chart text { fill: #5a666b; }
.temperature-line, .gdd-line { stroke: var(--heat); }
.climatology-gdd-line { stroke: var(--heat); }
.rain-bar.wet { fill: var(--rain); stroke: var(--rain); }
.season-rain-line { fill: none; stroke: var(--rain); }
.outlook {
  background:
    radial-gradient(circle at 72% 35%, rgb(120 174 188 / 18%), transparent 20rem),
    var(--storm);
}
.interpretation-section {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--line);
  background: #e9ece7;
}
.sources-section {
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--storm);
  color: #d2e0e1;
}
.sources-section h2 { color: white; }
.sources-section .eyebrow { color: #f0b466; }
.sources-section .sources {
  border-left-color: var(--sky);
  background: rgb(255 255 255 / 8%);
}
.sources-section .sources summary, .sources-section a { color: white; }
.sampling-section { padding-bottom: 2rem; border-bottom: 1px solid var(--ink); }
.technical-panel { border-left-color: var(--sky); background: #e7ecea; }

/* Grape climate paths */
.grape-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  min-height: 590px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}
.grape-index-hero .home-hero-copy {
  display: flex;
  max-width: none;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5.5rem);
}
.grape-index-hero h1 {
  max-width: 10ch;
  color: var(--ink);
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: .94;
}
.grape-index-hero .lede { color: #3f4e53; }
.grape-index-hero .eyebrow { color: var(--wine); }
.grape-index-hero .home-hero-art { position: relative; min-height: 590px; inset: auto; }
.grape-index-hero .home-hero-art::after { background: linear-gradient(180deg, transparent 45%, rgb(20 36 44 / 45%)); }
.grape-index-hero .home-hero-art img { filter: saturate(.72) contrast(1.03); }
.grape-grid { gap: 1.25rem; }
.grape-card {
  min-height: 285px;
  border-radius: 0;
  border-top-color: var(--sky);
  box-shadow: 0 7px 24px rgb(24 33 39 / 6%);
}
.grape-card:hover { border-top-color: var(--heat); transform: translateY(-2px); }
.grape-card-action { color: #285a61; }
.grape-detail-hero {
  margin-top: 1rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--storm);
  color: #d4e1e2;
}
.grape-detail-copy h1 { color: white; line-height: .92; }
.grape-detail-hero .lede { color: #e4eeee; }
.grape-detail-hero .eyebrow { color: #f0b466; }
.weather-questions-card { border-left-color: var(--sky); background: rgb(255 255 255 / 9%); }
.weather-questions-card h2 { color: white; }
.grape-map {
  padding: 1.5rem;
  border-color: rgb(255 255 255 / 14%);
  background: var(--storm);
  color: white;
}
.grape-map figcaption, .grape-map .geometry-key { color: white; }
.grape-map .static-ocean { fill: #203943; }
.grape-map .static-world-map image { opacity: .5; filter: brightness(.58) hue-rotate(135deg); }
.grape-map .map-note { background: #172b34; color: #c2d3d5; }
.grape-region-grid .region-card { min-height: 0; }
.grape-profiles > .status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr) auto;
  align-items: center;
  gap: 1.5rem;
}
.grape-profiles > .status-panel h3,
.grape-profiles > .status-panel p { margin: 0; }
.editorial-references { border-left: 4px solid var(--sky); }

/* Vintage comparison workbench */
.compare-page .page-heading {
  max-width: none;
  margin-top: 1rem;
  padding: clamp(2.5rem, 6vw, 5.5rem);
  background:
    radial-gradient(circle at 82% 35%, rgb(120 174 188 / 20%), transparent 20rem),
    var(--storm);
}
.compare-page .page-heading h1 { max-width: 12ch; margin-bottom: 1.25rem; color: white; font-size: clamp(3.5rem, 7vw, 6.7rem); line-height: .92; }
.compare-page .page-heading .eyebrow { color: #f0b466; }
.compare-page .page-heading .lede { color: #d8e6e7; }
.comparison-selection-panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-top: 4px solid var(--compare-a);
  border-radius: 0;
  box-shadow: 0 8px 28px rgb(24 33 39 / 6%);
}
.comparison-selection-panel:nth-child(2) { border-top-color: var(--compare-b); }
.comparison-form > button { padding-inline: 2rem; background: var(--storm); }
.compare-page main > .status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr) auto;
  align-items: center;
  gap: 2rem;
  margin-block: 2rem;
  padding: 1.5rem;
}
.compare-page main > .status-panel h2 { margin: 0; }
.compare-page main > .status-panel p { margin: 0; }
.comparison-context article { border-left-width: 5px; box-shadow: 0 5px 18px rgb(24 33 39 / 5%); }
.comparison-table-scroll { box-shadow: 0 8px 30px rgb(24 33 39 / 5%); }
.comparison-table thead { background: var(--storm); color: white; }
.comparison-table thead th { color: white; }
.comparison-season-card { border-top: 3px solid var(--sky); }

/* Reader preferences and followed regions */
.account-page {
  width: min(760px, calc(100% - 2rem));
  margin: clamp(2rem, 6vw, 5rem) auto;
}
.account-page > header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}
.account-page > section,
.account-page > details {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.account-page form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: .75rem 1rem;
}
.account-page label {
  display: grid;
  gap: .35rem;
}
.account-page input,
.account-page select { min-height: 2.7rem; }

.admin-page {
  width: min(100% - 2 * var(--gutter), var(--layout-wide));
  margin-inline: auto;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}
.admin-heading,
.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}
.admin-heading { padding-bottom: 2rem; border-bottom: 2px solid var(--ink); }
.admin-heading h1 { max-width: none; margin-bottom: .5rem; font-size: clamp(2.6rem, 7vw, 5.5rem); }
.admin-heading p,
.admin-section-heading p { max-width: 62ch; margin: 0; color: var(--muted); }
.admin-notice { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 4px solid var(--success); }
.admin-section { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.admin-section h2 { margin-bottom: .35rem; font-size: clamp(1.8rem, 4vw, 3rem); }
.admin-section-heading form { display: flex; align-items: center; gap: .7rem; }
.admin-section-heading select { min-height: 2.6rem; }
.usage-chart { margin: 2rem 0 1rem; }
.usage-bars {
  display: grid;
  height: 13rem;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: clamp(2px, .3vw, 6px);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 calc(25% - 1px), var(--line) 25%);
}
.usage-bars span { min-height: 1px; height: var(--bar-height); background: var(--wine); }
.usage-chart figcaption,
.admin-attribution { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.admin-data-table { margin-top: 1rem; }
.admin-data-table summary,
.admin-user-actions summary { cursor: pointer; font-weight: 700; }
.admin-breakdowns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: 2rem;
}
.admin-breakdowns h3 { margin-bottom: .75rem; }
.admin-subdivision-heading { margin: 2rem 0 .75rem; }
.admin-map {
  position: relative;
  margin-block: 2rem;
  border-block: 1px solid var(--line);
  background: var(--theme-map);
  overflow: hidden;
}
.admin-map > img { display: block; width: 100%; opacity: .58; }
.admin-map-point {
  position: absolute;
  left: var(--point-x);
  top: var(--point-y);
  width: var(--point-size);
  height: var(--point-size);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--wine);
  transform: translate(-50%, -50%);
}
.admin-users-table { margin-top: 1.5rem; }
.admin-feedback-table { margin-top: 1.5rem; }
.admin-feedback-table table { min-width: 68rem; }
.admin-feedback-table td:nth-child(3) { min-width: 20rem; }
.admin-feedback-table details summary { cursor: pointer; }
.admin-feedback-table details p { max-width: 60ch; white-space: normal; }
.admin-feedback-table td:last-child form { display: inline-block; margin: .15rem; }
.admin-feedback-table small { display: block; color: var(--muted); }
.admin-users-table table { min-width: 72rem; }
.admin-users-table small { display: block; color: var(--muted); font: inherit; }
.admin-user-actions { min-width: 13rem; }
.admin-user-actions form { display: grid; gap: .45rem; margin-top: .8rem; }
.admin-user-actions input { min-height: 2.5rem; }
.danger-button { border-color: var(--warning); }

@media (max-width: 700px) {
  .admin-heading,
  .admin-section-heading { display: grid; align-items: start; gap: 1rem; }
  .admin-heading h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
  .usage-bars { height: 9rem; }
  .admin-breakdowns { grid-template-columns: 1fr; }
}
.account-list,
.my-regions-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.account-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  padding-block: .75rem;
  border-top: 1px solid var(--line);
}
.account-list li > span { margin-right: auto; }
.my-regions {
  margin-block: 2rem;
  padding-block: 1.5rem;
  border-block: 1px solid var(--ink);
}
.my-regions-list li + li { border-top: 1px solid var(--line); }
.my-regions-list a {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) 2fr auto;
  gap: 1rem;
  padding-block: .9rem;
  color: inherit;
  text-decoration: none;
}
.follow-control {
  display: inline-flex;
  margin-top: .5rem;
}

@media (max-width: 900px) {
  .region-record-page .region-hero { grid-template-areas: "copy" "art" "facts"; grid-template-columns: 1fr; }
  .region-record-page .region-hero-art { height: auto; min-height: 420px; }
  .region-record-page .region-hero > .fact-card { margin-top: 2rem; }
  .grape-index-hero { grid-template-columns: 1fr; }
  .grape-index-hero .home-hero-art { min-height: 420px; }
}

@media (max-width: 700px) {
  .region-record-page .region-hero-copy { padding: 2.2rem 1.4rem; }
  .region-record-page .region-hero-copy h1 { font-size: clamp(3.1rem, 16vw, 4.8rem); }
  .region-record-page .region-hero-art { min-height: 310px; }
  .region-record-page .region-hero > .fact-card { margin: 1.25rem; }
  .region-section-nav { top: 116px; overflow-x: auto; white-space: nowrap; }
  .grape-index-hero .home-hero-copy { padding: 2.5rem 1.5rem; }
  .grape-index-hero .home-hero-art { min-height: 320px; }
  .compare-page .page-heading { padding: 2.5rem 1.4rem; }
  .compare-page .page-heading h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .compare-page main > .status-panel { grid-template-columns: 1fr; gap: 1rem; }
  .grape-profiles > .status-panel { grid-template-columns: 1fr; gap: .75rem; }
  .my-regions-list a { grid-template-columns: 1fr; gap: .25rem; }
}
