/* Approved 19 October layouts; geographic tag and marker styling remains untouched. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.weekly-columns{position:relative;margin-inline-start:23px;background:var(--soft);border-radius:5px;isolation:isolate}
.weekly-columns::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to left,transparent 0,transparent calc(100% / var(--weekly-day-count,7) - 1px),var(--line) calc(100% / var(--weekly-day-count,7) - 1px),var(--line) calc(100% / var(--weekly-day-count,7)));z-index:2}
.weekly-days,.weekly-rating-days{gap:0}.weekly-days>button{min-height:44px;padding:3px 0;background:transparent;border-radius:0;position:relative;z-index:3}
.weekly-height-label{display:none}.weekly-trend{height:38px;position:relative}.weekly-axis{font-size:10px;stroke:none}.weekly-trend svg{height:38px;overflow:visible}
.weekly-rating-day{padding:0 3px 4px;gap:2px;background:transparent;border-radius:0;min-height:25px;align-items:end}.weekly-rating-stack{gap:1.5px}.weekly-rating-track{height:3px}.weekly-info{margin-top:7px}.weekly-info summary{min-height:36px;padding:7px 0}
#forecast .forecast-page .forecast-compact td{height:49px;padding:3px 2px}
#forecast .forecast-page .forecast-compact th{height:34px;font-size:12px;padding:3px 1px}
#forecast .forecast-page .forecast-compact .breaking-value{display:inline-block;font-size:13px;padding:5px 4px;line-height:1.3;background:var(--soft)}
#forecast .forecast-page .forecast-compact .breaker-confidence{display:none}
#forecast .forecast-page .forecast-compact .fc-time{width:10%}#forecast .forecast-page .forecast-compact .fc-rating{width:13%}#forecast .forecast-page .forecast-compact .fc-break{width:22%}#forecast .forecast-page .forecast-compact .fc-swell{width:31%}#forecast .forecast-page .forecast-compact .fc-wind{width:24%}
#forecast .forecast-page .forecast-dark-group>td{height:auto;padding:0}
#mapView>.mapwrap,#mapView>.mapwrap.map-half-screen{height:50vh;height:50dvh;--map-height:50dvh;transition:none;overflow-anchor:none}
#mapView .group-coast-card{max-height:calc(50dvh - 85px)}
@container surf-forecast (max-width:520px){
#forecast .forecast-page .forecast-compact td{height:49px;font-size:11px;padding:3px 1px}
#forecast .forecast-page .forecast-compact .breaking-value{font-size:12px;padding:5px 2px;white-space:normal}
#forecast .forecast-page .forecast-compact .fc-time{width:10%}#forecast .forecast-page .forecast-compact .fc-rating{width:13%}#forecast .forecast-page .forecast-compact .fc-break{width:22%}#forecast .forecast-page .forecast-compact .fc-swell{width:31%}#forecast .forecast-page .forecast-compact .fc-wind{width:24%}
#forecast .forecast-page .forecast-compact time{font-size:11px}#forecast .forecast-page .forecast-compact .forecast-dark-group>td{height:auto;padding:0}
}
@container surf-forecast (min-width:521px){#forecast .forecast-page .forecast-compact td{height:45px}}
/* Card hierarchy from the approved alternative; every existing action remains available. */
.report-hero{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:12px;border-block:1px solid var(--line);padding:14px 0;margin-top:12px}
.report-wave{min-width:0}.report-wave>small{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:7px}.report-wave>small svg{width:18px;height:18px;color:var(--sand)}
.report-wave>b{display:block;font-size:clamp(22px,5vw,28px);line-height:1.25;overflow-wrap:anywhere}.report-wave>b>span{font-size:18px;font-weight:normal;color:var(--muted)}
.report-wave-labels{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:11px;color:var(--muted);margin-top:5px}
.report-hero-rating{border-inline-start:1px solid var(--line);padding-inline-start:10px;text-align:center;min-width:0}.report-hero-rating .bath-rating-button{margin:auto;max-width:100%;padding:0!important}.report-hero-rating .bath-score{font-size:16px}.report-hero-rating .bath-rating-button small{white-space:normal;font-size:11px}
.report .report-key-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-bottom:1px solid var(--line);padding:14px 0;margin:0}
.report .report-key-metrics .metric{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:5px;padding:0;background:transparent;border:0;border-radius:0}
.report .report-key-metrics .metric+.metric{border-inline-start:1px solid var(--line)}
.report .report-key-metrics .metric>b{font-size:15px;line-height:1.4}.report .report-key-metrics .metric>small{font-size:11px;line-height:1.4;color:var(--muted)}
.report .report-key-metrics .metric-icon{display:grid;place-items:center;height:30px;margin:0}.report .report-key-metrics .metric-icon>svg{width:25px;height:25px}.report .report-key-metrics .report-strength-tile{width:30px;height:30px}.report .report-key-metrics .report-strength-arrow{width:22px;height:25px}
.report .report-crowd .crowdgraphic{margin:0;padding:0;background:transparent;border:0;display:flex;flex-direction:column-reverse;align-items:center;gap:5px;width:100%}
.report .report-crowd .crowdgraphic .row{display:block}.report .report-crowd .crowdgraphic .row>small{display:none}.report .report-crowd .crowdgraphic b{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.report .report-crowd .surfers{height:30px;gap:1px;margin:0}.report .report-crowd .surfers svg{width:12px;height:23px}
.report-secondary{display:flex;flex-wrap:wrap;align-items:center;gap:7px 15px;padding:12px 0;color:var(--muted);font-size:12px}.report-secondary>span{display:flex;gap:5px;align-items:center}.report-secondary>span svg{width:15px;height:15px}
.report-secondary .jelly-graphic{border:0;background:transparent;padding:0;margin:0}.report-secondary .jelly-graphic .row{font-size:12px;gap:5px}.report-secondary .jelly-icons{margin:4px 0 0;gap:2px}.report-secondary .jelly-icons svg{width:15px;height:18px}.report-secondary .jelly-crossed{width:15px;height:18px}
.report .report-more{border-top:1px solid var(--line);padding:0}.report-more summary{min-height:44px;padding:12px 0;font-size:13px}
.report>.row{margin-top:10px;gap:7px}.report>.row>button{min-height:44px}.report>.row>button[data-verdict=confirm]{border-color:var(--accent);color:var(--accent)}
#cardBody>.report{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:16px;margin-top:10px}
#cardBody .card-actions{display:flex;flex-wrap:wrap}
@media(max-width:400px){#cardBody>.report{padding:12px}.report-hero{grid-template-columns:minmax(0,1fr) 72px;gap:8px}.report .report-key-metrics{gap:5px}.report .report-key-metrics .metric>b,.report .report-crowd .crowdgraphic b{font-size:13px}}

/* Both forecast pages share natural minimums; JS synchronizes wrapped content per hour. */
#forecast .forecast-pages .forecast-page .breaker-table>tbody>tr:not(.forecast-dark-group)>td{height:48px;padding-block:3px;vertical-align:middle}
#forecast .forecast-pages .forecast-page .breaker-table>thead>tr>th{height:40px;padding-block:4px;vertical-align:middle}
#forecast .forecast-pages .forecast-dark-group>td{height:auto;padding:0}
#forecast .forecast-pages .forecast-dark-group summary{min-height:34px;padding-block:8px;box-sizing:border-box}
#forecast .forecast-pages{position:relative}

/* Approved two-week strip: independent full-height day tiles and outside axis. */
.weekly-columns{margin-inline:34px;background:transparent}
.weekly-columns::after{display:none}
.weekly-tile-backgrounds{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--weekly-day-count,7),minmax(0,1fr));gap:3px;z-index:-1;pointer-events:none}
.weekly-tile-backgrounds>i{background:var(--soft);border-radius:5px}
.weekly-days,.weekly-rating-days{gap:3px}
.weekly-trend,.weekly-rating-day{background:transparent}
.weekly-nav{display:flex;justify-content:space-between;gap:8px;margin-top:5px}
.weekly-nav button{font-size:12px;padding:5px 8px;min-height:32px;background:transparent}
.weekly-horizon-note{display:block;color:var(--muted);margin-top:5px;font-size:11px}
.weekly-horizon-note[hidden]{display:none}
@media(min-width:901px){
 #mapView{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
 #mapView>.mapwrap,#mapView>.mapwrap.map-half-screen{position:sticky;top:var(--desktop-map-top,80px);height:calc(100dvh - var(--desktop-map-top,80px));--map-height:calc(100dvh - var(--desktop-map-top,80px))}
}

.weekly-days>button{border-radius:5px 5px 0 0}
.weekly-trend::after{content:'';position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to left,transparent 0,transparent calc((100% + 3px) / var(--weekly-day-count,7) - 3px),var(--panel) calc((100% + 3px) / var(--weekly-day-count,7) - 3px),var(--panel) calc((100% + 3px) / var(--weekly-day-count,7)))}
@media(min-width:901px){.guest-mode #mapView{height:auto}}

#mapBeachEditor>.beach-region-editor{grid-column:1 / -1;min-width:0;margin:8px 0;padding:10px;border-color:var(--line)}
.beach-region-editor legend{font-size:14px;color:var(--accent)}
.beach-region-editor .region-manual-toggle{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.beach-region-editor .region-manual-toggle input{width:18px;height:18px;margin:0;flex-shrink:0}
.region-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.region-editor-grid label,.region-editor-grid select{min-width:0;width:100%}
.beach-region-editor small{display:block;color:var(--muted);line-height:1.5}
.beach-settlement{display:block;color:var(--muted)}
@media(max-width:520px){.region-editor-grid{grid-template-columns:minmax(0,1fr)}}

/* Approved remaining package: preserve the existing 44 + 38 + 25px strip height. */
.weekly-columns{margin-inline:34px}
.weekly-y-axis{position:absolute;right:-30px;left:auto;top:0;width:24px;height:38px;direction:ltr;pointer-events:none;color:var(--muted);font:11px/1 Arial,sans-serif;text-align:left}
.weekly-y-axis>span{position:absolute;left:0;transform:translateY(-50%);white-space:nowrap}
.weekly-tile-backgrounds>i[data-selected=true]{background:color-mix(in srgb,var(--accent) 12%,var(--soft));box-shadow:inset 0 0 0 1.5px var(--accent)}
.weekly-days>button[aria-pressed=true]{background:transparent;border-bottom-color:transparent;color:var(--accent)}
.weekly-days>button[aria-pressed=true] small{color:var(--accent)}
.weekly-nav{margin-inline:34px}
/* One approved soft duck shape, with full-body red artwork in the horns state. */
.bath-grid{grid-template-columns:repeat(6,6px);grid-template-rows:12px 12px;height:27px;gap:3px 0}
.bath-slot{width:12px;height:12px}
.bath-slot .bath-duck{inset:0;width:100%;height:100%;transform:none;background:url('/surf/duck-soft-sand.png') center/contain no-repeat}
.bath-horns .bath-slot .bath-duck{background-image:url('/surf/duck-soft-red.png')}
.bath-slot .bath-filled{filter:none}
.bath-slot .bath-empty{opacity:.24;filter:grayscale(1)}
#forecast .forecast-compact .bath-grid{grid-template-columns:repeat(6,5px);grid-template-rows:9px 9px;height:19px;gap:1px 0}
#forecast .forecast-compact .bath-slot{width:10px;height:9px}
#forecast .forecast-compact .bath-duck{transform:none}
.report-hero-rating .bath-grid{grid-template-columns:repeat(6,8px);grid-template-rows:16px 16px;height:35px;gap:3px 0}
.report-hero-rating .bath-slot{width:16px;height:16px}
/* One button for entering and leaving the sea: it turns orange while the viewer is in the sea. */
button.sea-exit,button.primary.sea-exit,.map-beach-actions button.sea-exit,.point-actions button.sea-exit{background:#b3470f;border-color:#b3470f;color:#fff}
button.sea-exit:disabled{opacity:.7}

.brand-logo.logo-light{display:none}.light .brand-logo.logo-light{display:inline-block}.light .brand-logo.logo-dark{display:none}
.light header .brand-logo.logo-light,.light header .brand-logo{filter:none!important;opacity:1;border-radius:12px}header .brand-logo.logo-dark{filter:none;border-radius:12px}
.report-secondary .report-shape-note{flex-basis:100%;margin:0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
