/* Forecast field guide: blue = provider data, lime = AI, sand = local physics. */
.forecast-expandable { width:100%; }
.forecast-expandable:not(.group-forecast-table) { min-width:0; }
.forecast-container, .embed-forecast { container-type:inline-size; }
.forecast-expandable .forecast-hour { cursor:pointer; height:40px; }
.forecast-expandable .forecast-expand-toggle { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:24px; padding:0 3px; color:#092f33; background:transparent; border:0; border-radius:5px; font:600 13px/1.2 Arial,sans-serif; }
.forecast-expand-toggle svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.6; transition:transform .18s; }
.forecast-expand-toggle[aria-expanded=true] svg { transform:rotate(180deg); }
.forecast-expandable .forecast-expand-toggle:hover { background:#dce9d1; }
.forecast-expandable button:focus-visible, .forecast-detail a:focus-visible { outline:2px solid #dd613b; outline-offset:3px; }
.forecast-expandable .forecast-hour.is-expanded { background:#e7efd9; }
.forecast-hour.is-expanded > td { border-bottom-color:#a6b794; }
.forecast-row-extras { display:flex; flex-wrap:nowrap; align-items:center; justify-content:space-between; gap:3px; min-width:0; }
.forecast-row-extras > .perk-list { flex:1; min-width:0; }
.forecast-row-extras > .surf-plan-button { position:sticky; right:0; z-index:1; flex:0 0 32px; width:32px; min-width:32px; min-height:24px; padding:0; background:#fafbf6; }
.forecast-row-extras .surfer-avatar-stack .surfer-avatar { width:20px; height:20px; font-size:8px; }
.forecast-row-extras .surfer-avatar-stack .surfer-avatar + .surfer-avatar { margin-left:-14px; }
.forecast-row-extras .surf-friend-count { display:none; }
.forecast-friends-preview { display:inline-flex; align-items:center; }
.forecast-friends-preview[hidden], .forecast-detail-row[hidden] { display:none!important; }
.forecast-friends-preview .surfer-avatar-stack .surfer-avatar { width:27px; height:27px; font-size:10px; }
.forecast-friends-preview .surfer-avatar + .surfer-avatar { margin-left:-11px; }
.forecast-expandable .forecast-detail-row > td { padding:0; white-space:normal; text-align:left; }
/* Compact cards stay in one horizontal strip at every width. */
.forecast-detail { contain:inline-size; padding:7px 10px; color:#123c3d; background:#f0f2e9; border-bottom:2px solid #a6b794; font:12px/1.4 Arial,sans-serif; text-align:left; white-space:normal; }
.forecast-detail *, .forecast-detail *::before, .forecast-detail *::after { box-sizing:border-box; }
.forecast-detail-toolbar, .forecast-card-controls, .forecast-detail-actions { display:flex; align-items:center; gap:5px; }
.forecast-detail-toolbar { justify-content:space-between; margin-bottom:3px; }
.forecast-card-controls button, .forecast-detail .forecast-detail-close { display:grid; place-items:center; width:26px; height:24px; min-height:24px; padding:0; border:1px solid #cbd6c2; border-radius:5px; color:#526b65; background:transparent; font:16px/1 Arial,sans-serif; cursor:pointer; }
.forecast-detail .forecast-detail-close { border-color:transparent; font-size:20px; }
.forecast-card-controls button:hover, .forecast-detail-close:hover { background:#dce9d1; color:#123c3d; }
.forecast-detail .surf-plan-detail-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:24px; padding:3px 9px; border:1px solid #bdcbb7; border-radius:5px; background:#fafbf6; color:#254c43; font:600 11px/16px Arial,sans-serif; text-decoration:none; }
.forecast-detail .surf-plan-detail-button:hover { background:#dce9d1; }
.forecast-detail-grid { display:flex; flex-wrap:nowrap; align-items:stretch; gap:8px; width:100%; max-width:100%; padding:1px 1px 3px; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scroll-snap-type:x proximity; scroll-padding-inline:1px; scrollbar-width:thin; scrollbar-color:#a6b794 #e1e7d9; }
.forecast-detail-grid:focus-visible { outline:2px solid #dd613b; outline-offset:2px; }
.forecast-detail-grid > .forecast-detail-card { flex:0 0 min(320px,calc(100% - 18px)); scroll-snap-align:start; }
.forecast-expandable .forecast-detail { position:sticky; left:0; width:100cqi; max-width:100cqi; }
.forecast-detail-card { min-width:0; padding:6px 10px; border:1px solid #d4ddd0; border-top:2px solid #95b5b5; border-radius:8px; background:#fafbf6; }
.forecast-detail-card--waves { border-top-color:#5e9dba; }
.forecast-detail-card--wind { border-top-color:#5e9dba; background:#f1f7f7; }
.forecast-detail-card--waves, .forecast-detail-card--wind { display:flex; flex-direction:column; }
.forecast-detail-card--features { border-top-color:#92ac58; }
.forecast-detail-card--pier { border-top-color:#c7a16c; background:#f8f4eb; }
.forecast-card-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; height:18px; margin-bottom:3px; }
.forecast-weather-icon { display:inline-flex; flex-shrink:0; color:#426562; }
.forecast-weather-icon svg { width:20px; height:20px; }
.forecast-weather-icon--sun, .forecast-weather-icon--cloud-sun { color:#967019; }
.forecast-weather-icon--cloud-drizzle, .forecast-weather-icon--cloud-rain, .forecast-weather-icon--cloud-rain-heavy, .forecast-weather-icon--cloud-rain-wind { color:#357597; }
.forecast-weather-icon--wind, .forecast-weather-icon--cloud-wind { color:#426d74; }
.forecast-detail .forecast-card-heading h4 { margin:0; color:#123c3d; font:600 13px/18px Arial,sans-serif; letter-spacing:-.01em; }
.forecast-origin, .forecast-surf-height { display:inline-flex; align-items:center; padding:1px 5px; border-radius:4px; background:#e1edc9; color:#405a26; font:600 10px/16px Arial,sans-serif; white-space:nowrap; }
.forecast-origin--local { background:#eee1cc; color:#6c512c; }
.forecast-detail .forecast-bearing svg { width:17px; height:17px; }
.forecast-wave-part { display:grid; grid-template-columns:minmax(0,1fr) 53px 43px max-content; align-items:center; gap:7px; min-height:20px; font-variant-numeric:tabular-nums; }
.forecast-wave-part + .forecast-wave-part { border-top:1px solid #e5ebe5; }
.forecast-wave-part h5 { margin:0; color:#526b65; font:400 11px/20px Arial,sans-serif; }
.forecast-wave-part:last-of-type h5 { color:#80603e; }
.forecast-wave-part > strong, .forecast-wave-part > span:not(.forecast-bearing) { text-align:right; white-space:nowrap; }
.forecast-wave-part > span:not(.forecast-bearing) { color:#657872; font-size:11px; }
.forecast-wind-metrics { margin:0; }
.forecast-wind-metrics > div { display:flex; justify-content:space-between; align-items:center; min-height:24px; }
.forecast-wind-metrics dt { color:#526b65; font-size:11px; }
.forecast-wind-metrics dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; }
.forecast-wind-metrics > div:first-child dd { font-size:19px; line-height:24px; }
.forecast-wind-orientation { display:flex; align-items:center; min-height:24px; margin-top:4px; padding:2px 7px; border-radius:4px; background:#e3f0ed; color:#315e58; font-size:11px; }
.forecast-features { display:grid; grid-template-columns:1fr 1fr; gap:5px 14px; padding:0; margin:0; list-style:none; }
.forecast-feature { display:flex; align-items:center; gap:7px; min-width:0; min-height:23px; }
.forecast-feature > svg { flex:0 0 18px; width:18px; height:18px; fill:none; stroke:#58743b; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.forecast-feature > div { flex:1; min-width:0; }
.forecast-feature strong { display:block; font-size:11px; line-height:15px; font-weight:500; }
.forecast-feature.is-muted { color:#657872; }
.forecast-feature-meter { display:block; height:3px; margin-top:3px; border-radius:3px; background:#e0e7d7; }
.forecast-feature-meter i { display:block; height:100%; border-radius:3px; background:#7e9c4c; }
.forecast-feature-unknown { display:block; height:6px; font-size:10px; line-height:6px; color:#899488; }
.forecast-card-condition { margin-top:auto; padding-top:8px; }
.forecast-pier-comparisons { margin:0; }
.forecast-pier-comparison { display:grid; grid-template-columns:minmax(0,1fr) auto 31px; align-items:center; gap:7px; min-height:20px; font-size:11px; font-variant-numeric:tabular-nums; }
.forecast-pier-comparison + .forecast-pier-comparison { border-top:1px solid #ebe3d5; }
.forecast-pier-comparison > strong { display:flex; align-items:center; gap:4px; font-weight:400; color:#756750; }
.forecast-pier-comparison > span { white-space:nowrap; }
.forecast-pier-comparison small { text-align:right; color:#80603e; font-size:10px; font-weight:600; }
.forecast-pier-empty { display:grid; gap:3px; margin:12px 0; color:#756750; font-size:12px; }
.forecast-pier-empty span { font-size:11px; }
.forecast-missing { color:#899488; }
.forecast-environment { display:grid; grid-template-columns:1fr 1fr; gap:0 12px; margin:0; }
.forecast-environment > div { display:flex; justify-content:space-between; align-items:center; gap:4px; min-height:20px; border-bottom:1px solid #e5ebe5; font-size:10px; }
.forecast-environment dt { color:#526b65; }
.forecast-environment dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.forecast-personal-match { margin-top:7px; }
.forecast-personal-match-label { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:#526b65; }
.forecast-personal-match-label strong { color:#657872; font-weight:600; font-variant-numeric:tabular-nums; }
.forecast-personal-match.is-positive strong { color:#3c7157; }
.forecast-personal-match.is-negative strong { color:#a05248; }
.forecast-personal-match-track { position:relative; height:5px; margin:6px 0 4px; border-radius:4px; background:#e1e7e3; }
.forecast-personal-match-track::after { content:""; position:absolute; left:50%; top:-2px; width:1px; height:9px; background:#81948c; opacity:.6; }
.forecast-personal-match-track i { position:absolute; height:100%; border-radius:4px; background:#79a58b; opacity:.8; }
.forecast-personal-match.is-negative .forecast-personal-match-track i { background:#c38b83; }
.forecast-wetsuit { border-top-color:#8fa883; background:#f0f5eb; }
.forecast-wetsuit--unknown { background:#f3f4ec; }
.forecast-wetsuit-recommendation { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; min-height:20px; }
.forecast-wetsuit-uncertainty { margin:6px 0; color:#526b65; font-size:11px; line-height:1.5; }
.forecast-wetsuit-suit { color:#254c43; font-size:11px; }
.forecast-wetsuit-suit strong { font-size:18px; line-height:20px; }
.forecast-wetsuit-feels { color:#526b65; font-size:10px; }
.forecast-wetsuit-feels strong { color:#254c43; }
.forecast-wetsuit-accessories { margin:0; }
.forecast-wetsuit-accessory { display:flex; align-items:center; justify-content:space-between; min-height:20px; border-top:1px solid #dce5d3; }
.forecast-wetsuit-accessory dt { display:flex; align-items:center; gap:6px; color:#526b65; font-size:11px; }
.forecast-wetsuit-accessory dt svg { width:14px; height:14px; fill:none; stroke:#607b50; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.forecast-wetsuit-accessory dd { margin:0; color:#254c43; font-weight:600; font-size:11px; }
.forecast-wetsuit-accessory.is-optional dd { color:#657872; font-weight:400; }
.forecast-wetsuit-unavailable { margin:15px 0 0; color:#657872; font-size:12px; }
@media(max-width:700px) {
    .forecast-detail { padding:6px; }
    .forecast-detail-grid { scroll-snap-type:x mandatory; }
    .forecast-detail-grid > .forecast-detail-card { flex-basis:calc(100% - 2px); scroll-snap-stop:always; }
    .forecast-detail-card { padding:6px 8px; }
    .forecast-expandable { table-layout:auto; }
    .forecast-expandable > tbody > .forecast-hour > td, .forecast-expandable > tbody > tr:first-child > th { padding:5px 3px; font-size:11px; white-space:normal; }
    .forecast-expandable:not(.group-forecast-table) > tbody > tr:first-child > th:first-child { width:59px; }
    .forecast-expandable:not(.group-forecast-table) > tbody > tr:first-child > th:nth-child(2) { width:42px; }
    .forecast-expandable .forecast-hour .unit, .forecast-expandable .forecast-hour .grey { font-size:9px; padding-right:2px; }
    .forecast-expandable .forecast-hour > td { white-space:nowrap; }
    .forecast-expandable .perk-list { flex-wrap:nowrap; gap:2px; white-space:nowrap; min-width:0; max-width:100%; }
    .forecast-expandable .perk-cell { min-width:0; }
    .forecast-expandable .perk-list .perk-text { flex:0 0 auto; padding:2px 3px; font-size:9px; }
    .forecast-expandable .perk-label { display:block; white-space:nowrap; }
    .forecast-expandable .perk-list .perk-icon { flex:0 0 22px; width:22px; height:22px; padding:3px; }
    .group-forecast-table.forecast-expandable { table-layout:auto; }
}
@media(prefers-reduced-motion:reduce) { .forecast-expand-toggle svg { transition:none; } }
