/* GAL.IL forecast: light, compact daily tables with a reading order for phones. */
.site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) { min-height: 100vh; background: #f3f8f6; }
.site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .topbar { background: rgba(255,255,255,.96); }
.site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) main, .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) footer { width: min(1080px, calc(100% - 32px)); }
.waves-home { padding-top: 24px; container-type: inline-size; }
.waves-home [hidden] { display: none !important; }
.waves-home .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.forecast-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.spot-title { min-width: 0; }
.spot-title .section-kicker { color: #59677b; font-size: .8125rem; font-weight: 650; letter-spacing: 0; text-transform: none; }
.forecast-heading h1 { margin: 3px 0 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
.waves-home .favorite-btn { display: grid; place-items: center; width: 48px; height: 48px; min-width: 48px; padding: 0; flex: none; border: 1px solid #dae1ec; border-radius: 50%; background: white; font-size: 1.6rem; }
.waves-home .favorite-btn[aria-pressed="true"] { color: #087f85; background: #e3edff; }
.beach-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 14px; }
.waves-home .beach-toolbar .location-controls { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 10px; width: min(100%, 550px); grid-column: auto; }
.waves-home .spot-field { min-width: 0; gap: 4px; }
.waves-home .spot-field label, .waves-home .compact-field label { color: #59677b; font-size: .875rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.waves-home .spot-field select { width: 100%; min-width: 0; min-height: 44px; padding-inline: 12px 26px; border-color: #dfe5ef; border-radius: 10px; font-size: 1rem; font-weight: 650; text-overflow: ellipsis; }
.waves-home .beach-toolbar .sync-state { margin: 0 0 12px auto; padding: 0; font-size: .8125rem; }
.waves-home .sync-dot { flex-shrink: 0; }
.forecast-tabs { display: flex; gap: 26px; margin-bottom: 18px; border-bottom: 1px solid #d9e0ec; }
.forecast-tabs > button { position: relative; min-height: 48px; padding: 8px 0 12px; border: 0; color: #59677b; background: transparent; font-size: 1rem; font-weight: 750; cursor: pointer; }
.forecast-tabs > button[aria-selected="true"] { color: #112130; }
.forecast-tabs > button[aria-selected="true"]::after { position: absolute; inset-inline: 0; bottom: -1px; height: 3px; border-radius: 3px; content: ""; background: #087f85; }
.forecast-tabs > button:hover { color: #087f85; }
.forecast-panel { min-width: 0; }
.best-window-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 16px; padding: 12px 16px; border: 1px solid #d6e5ed; border-radius: 12px; background: #e8f5f4; }
.best-window-strip > span:first-child { color: #235965; font-size: .875rem; font-weight: 650; }
.best-window-strip > strong { color: #103c49; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.best-window-strip > span:last-child { color: #426271; font-size: .8125rem; }
.waves-home .forecast-section { padding-top: 0; }
.waves-home .forecast-section > .section-heading { align-items: center; gap: 16px; margin-bottom: 12px; }
.waves-home .forecast-section > .section-heading h2 { margin: 0; font-size: .9375rem; line-height: 1.3; font-weight: 650; letter-spacing: 0; color: #59677b; }
.waves-home .unit-switcher { padding: 2px; border-color: #dfe5ef; border-radius: 10px; background: white; }
.waves-home .unit-btn { min-height: 36px; font-size: .875rem; border-radius: 8px; }
.waves-home .unit-btn.active { color: white; background: #087f85; box-shadow: none; }
.waves-home .forecast-days { display: flex; flex-direction: column; gap: 12px; overflow: visible; padding: 0; }
.hourly-day { min-width: 0; border: 1px solid #e1e7f0; border-radius: 18px; background: white; overflow: hidden; }
.hourly-day > summary { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 16px 20px; cursor: pointer; list-style: none; }
.hourly-day > summary::-webkit-details-marker { display: none; }
.day-chevron { width: 10px; height: 10px; flex: 0 0 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.hourly-day[open] .day-chevron { transform: rotate(225deg); }
.day-caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; font-size: 1.0625rem; font-weight: 750; }
.day-caption > small { color: #7a8799; font-size: .875rem; font-weight: 500; }
.day-summary-wave { margin-inline-start: auto; flex-shrink: 0; color: #4666a3; font-size: .9375rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.hourly-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.hourly-table col:nth-child(1) { width: 12%; }
.hourly-table col:nth-child(2) { width: 22%; }
.hourly-table col:nth-child(3) { width: 12%; }
.hourly-table col:nth-child(4) { width: 16%; }
.hourly-table col:nth-child(5) { width: 20%; }
.hourly-table col:nth-child(6) { width: 18%; }
.hourly-table thead th { padding: 9px 3px; border-top: 1px solid #eef1f6; border-bottom: 1px solid #eef1f6; color: #68768c; font-size: .875rem; line-height: 1.35; font-weight: 500; text-align: center; overflow-wrap: anywhere; }
.hourly-table thead th > span { display: block; font-size: .75rem; color: #79869a; }
.hourly-table abbr { text-decoration: none; }
.hourly-table tbody th, .hourly-table tbody td { height: 68px; padding: 4px 5px; border-bottom: 1px solid #edf1f6; text-align: center; vertical-align: middle; }
.hourly-table tbody tr:last-child > * { border-bottom: 0; }
.hour-label { position: relative; padding-inline-start: 8px; font-size: .875rem; line-height: 1.2; font-weight: 600; color: #576679; white-space: nowrap; }
.hour-quality { position: absolute; inset-inline-start: 3px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: #d6dce6; }
.hour-quality.good { background: #23a99c; }
.hour-quality.fair { background: #e8a126; }
.hour-quality.poor { background: #d66479; }
.hour-wave { display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 4px; border-radius: 9px; background: #e7f4f0; color: #142237; font-size: clamp(1.125rem, 2.8cqi, 1.75rem); font-weight: 780; }
.hour-period { font-size: 1.125rem; font-weight: 650; color: #344154; }
.hour-period > small { margin-inline-start: 2px; font-size: .8125rem; font-weight: 500; }
.direction-cell { display: grid; justify-items: center; gap: 2px; color: #27384e; }
.direction-arrow { display: block; width: 23px; height: 23px; transform-origin: center; }
.direction-cell > small { color: #7a8799; font-size: .75rem; }
.wind-reading { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 3px; color: #142237; }
.wind-reading > strong { font-size: 1.5rem; line-height: 1.1; font-weight: 750; }
.wind-reading > small { color: #8590a3; font-size: .875rem; font-weight: 600; }
.wind-direction { display: grid; align-content: center; justify-items: center; gap: 2px; min-height: 54px; border-radius: 9px; background: #eaf5f2; }
.wind-direction.moderate { background: #d8efe8; }
.wind-direction.strong { background: #c3e8dc; }
.wind-direction > small { color: #263951; font-size: .8125rem; }
.day-plot { padding: 18px 22px 14px; border-top: 1px solid #e7ecf3; }
.day-plot-heading { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 8px; color: #63738a; font-size: .875rem; }
.day-plot-heading > strong { color: #344c73; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.day-wave-chart { display: block; width: 100%; height: 120px; overflow: visible; }
.day-wave-chart .wave-area { fill: #e0f3ec; }
.day-wave-chart .wave-line { fill: none; stroke: #139b99; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.day-wave-chart .wave-grid { stroke: #e8edf4; stroke-width: 1; vector-effect: non-scaling-stroke; }
.day-wave-chart .wave-dot { fill: #139b99; }
.plot-hours { display: flex; justify-content: space-between; gap: 5px; color: #708097; font-size: .75rem; direction: ltr; }
.day-sunlight { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 14px 22px 18px; }
.day-sunlight > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; color: #52647c; font-size: .875rem; }
.day-sunlight strong { font-size: .9375rem; color: #253c59; font-variant-numeric: tabular-nums; }
.sun-symbol { color: #139b99; font-size: 1.125rem; }
.forecast-notes { margin: 18px 4px 0; color: #63738a; font-size: .875rem; line-height: 1.6; }
.forecast-notes p { margin: 0 0 8px; }
.forecast-notes a { text-underline-offset: 3px; }
.forecast-error { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 14px; border: 1px solid #d9b694; border-radius: 12px; background: #fff7ee; color: #714b2c; }
.forecast-error p { flex: 1 1 200px; margin: 0; }
.forecast-error button { min-height: 44px; padding: 8px 16px; border: 1px solid currentColor; border-radius: 10px; color: inherit; background: transparent; font-size: 1rem; cursor: pointer; }
.forecast-empty { margin: 0; padding: 26px 20px; border-radius: 16px; background: white; color: #59677b; font-size: 1rem; }
/* Existing current conditions and local guide are independent forecast tabs. */
.waves-home .surf-overview { display: block; min-height: 0; padding: 24px; border: 1px solid #e1e7f0; border-radius: 18px; color: #13283c; background: white; box-shadow: none; }
.waves-home .surf-overview::after { content: none; }
.overview-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.waves-home .overview-heading h2 { margin: 5px 0 0; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.025em; }
.waves-home .overview-heading .eyebrow { color: #63738a; font-size: .8125rem; letter-spacing: 0; text-transform: none; }
.overview-source { color: #5c75a0; font-size: .8125rem; }
.overview-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.headline-metric { display: grid; min-width: 0; gap: 4px; }
.headline-label { color: #63738a; font-size: .9375rem; }
.headline-metric > strong { font-size: clamp(2rem, 8cqi, 3.75rem); line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.value-unit { font-size: .38em; letter-spacing: 0; white-space: nowrap; }
.wave-metric > strong { color: #087f85; }
.metric-direction { color: #63738a; font-size: .875rem; }
.overview-secondary { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; padding-top: 14px; border-top: 1px solid #e7ecf3; }
.overview-secondary > div { display: flex; gap: 8px; align-items: baseline; font-size: .9375rem; }
.overview-secondary strong { font-size: 1.125rem; }
.model-time { color: #63738a; font-size: .8125rem; }
.overview-footnote { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; color: #63738a; font-size: .8125rem; }
.waves-home .overview-footnote .photo-credit { position: static; max-width: 100%; padding: 0; border-radius: 0; background: transparent; text-align: start; font-size: .8125rem; opacity: 1; }
.waves-home .overview-footnote::after { display: block; width: 100%; height: 120px; margin-top: 8px; border-radius: 12px; background-image: var(--spot-image); background-size: cover; background-position: center; content: ""; }
.forecast-actions { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.profile-menu > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 14px; border: 1px solid #dfe5ef; border-radius: 10px; color: #52647c; background: white; font-size: .875rem; cursor: pointer; list-style: none; }
.profile-menu > summary::-webkit-details-marker { display: none; }
.waves-home .profile-menu .profile-controls { display: block; margin-top: 10px; padding: 12px; border: 1px solid #dfe5ef; border-radius: 12px; background: white; }
.waves-home .profile-menu .compact-field select { min-width: 0; width: 100%; font-size: 1rem; }
.waves-home .forecast-actions .share-btn { margin: 0; min-height: 44px; padding: 8px 14px; border: 1px solid #dfe5ef; border-radius: 10px; color: #52647c; background: white; font-size: .875rem; }
.waves-home .share-btn:disabled { opacity: .5; cursor: default; }
.waves-home .detail-panel { margin-top: 18px; border-radius: 18px; background: white; box-shadow: none; }
.conditions-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-top: 18px; }
.waves-home .conditions-detail .score-card { min-height: 0; padding: 24px; border-radius: 18px; box-shadow: none; }
.waves-home .score-body { gap: 20px; margin: 20px 0; }
.waves-home .score-ring { width: 116px; height: 116px; }
.waves-home .score-ring::before { width: 96px; height: 96px; }
.waves-home .score-ring strong { font-size: 2rem; letter-spacing: -.035em; }
.waves-home .score-copy .muted, .waves-home .quality-badge, .waves-home .safety-line { font-size: .875rem; }
.waves-home .daily-analysis { font-size: 1rem; margin-bottom: 18px; }
.support-metrics { display: grid; gap: 12px; }
.waves-home .metric-card { min-width: 0; min-height: 100px; border-radius: 16px; }
.waves-home .metric-card span, .waves-home .metric-card small { font-size: .875rem; }
.waves-home .spot-directory { margin: 0; padding: 22px; border-radius: 18px; background: white; box-shadow: none; }
.waves-home .spot-directory h2 { margin: 0 0 18px; font-size: 1.5rem; }
.waves-home .spot-directory .spot-grid { padding: 0; }
@container (max-width: 720px) {
  .waves-home .beach-toolbar .location-controls { width: 100%; }
  .waves-home .beach-toolbar .sync-state { margin: 0; }
  .beach-toolbar { gap: 8px; }
  .conditions-detail { grid-template-columns: minmax(0, 1fr); }
  .waves-home .detail-panel { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 480px) {
  .forecast-heading { margin-bottom: 12px; }
  .forecast-heading h1 { font-size: 1.375rem; }
  .spot-title .section-kicker { font-size: .75rem; }
  .forecast-tabs { justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .forecast-tabs > button { min-height: 44px; padding-bottom: 10px; font-size: .9375rem; }
  .best-window-strip { gap: 2px 10px; padding: 10px 12px; margin-bottom: 12px; }
  .best-window-strip > strong { font-size: 1.125rem; }
  .best-window-strip > span:last-child { font-size: .75rem; }
  .hourly-day { border-radius: 14px; }
  .hourly-day > summary { min-height: 58px; gap: 10px; padding: 13px 14px; }
  .day-caption { font-size: 1rem; gap: 2px 6px; }
  .day-caption > small { font-size: .8125rem; }
  .day-summary-wave { font-size: .8125rem; }
  .hourly-table tbody th, .hourly-table tbody td { height: 64px; padding: 4px 3px; }
  .hourly-table tbody th { padding-inline-start: 7px; }
  .hour-label { font-size: .875rem; }
  .hour-label time { display: inline-block; transform: rotate(-90deg); }
  .hour-quality { inset-inline-start: 0; width: 3px; }
  .hour-wave { min-height: 50px; font-size: 1.25rem; }
  .hour-period { font-size: 1rem; }
  .wind-reading > strong { font-size: 1.25rem; }
  .wind-reading > small { font-size: .8125rem; }
  .wind-direction { min-height: 50px; }
  .direction-arrow { width: 21px; height: 21px; }
  .day-plot { padding: 16px 12px 12px; }
  .day-wave-chart { height: 94px; }
  .day-sunlight { padding: 10px 14px 16px; gap: 8px; }
  .day-sunlight > div { gap: 3px 6px; }
  .waves-home .surf-overview, .waves-home .conditions-detail .score-card { padding: 20px; }
  .waves-home .spot-directory { padding: 18px; }
}
@media (max-width: 760px) {
  .waves-home { padding-top: 16px; }
  .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav { border-color: #dfe5ef; background: rgba(255,255,255,.97); }
  .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav a { color: #63738a; font-size: .875rem; }
  .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav a.active { color: #087f85; background: #e6f4ef; }
}
body[data-layout="mobile"] .waves-home { padding-top: 16px; }
body[data-layout="mobile"] .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) { background: #f3f8f6; }
body[data-layout="mobile"] .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav { border-color: #dfe5ef; background: rgba(255,255,255,.97); }
body[data-layout="mobile"] .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav a { color: #63738a; font-size: .875rem; }
body[data-layout="mobile"] .site-shell:is([data-site-page="waves"], [data-site-page="forecast"], [data-site-page="spot"]) .main-nav a.active { color: #087f85; background: #e6f4ef; }

/* Wave forecast: fixed metre/time axes, readable on portrait screens. */
.day-wave-chart, #waveChart.day-wave-chart { width:100%; height:auto; max-height:320px; min-height:200px; direction:ltr; overflow:visible; }
.day-wave-chart text { font-family:inherit; font-size:14px; direction:ltr; unicode-bidi:plaintext; }
.day-wave-chart .wave-axis-label { fill:#526675; }
.day-wave-chart .wave-peak-guide { stroke:#c58943; stroke-width:1; stroke-dasharray:3 3; }
.day-wave-chart .wave-peak-badge { fill:#ffedcf; }
.day-wave-chart .wave-peak-label { fill:#664119; font-weight:650; }
.day-wave-chart .wave-hit { fill:transparent; cursor:pointer; }
.day-wave-chart .wave-tooltip { display:none; }
.day-wave-chart .wave-tooltip rect { fill:#082f43; }
.day-wave-chart .wave-tooltip text { fill:white; font-weight:600; }
.day-wave-chart .wave-point:hover .wave-tooltip,
.day-wave-chart .wave-point:focus .wave-tooltip,
.day-wave-chart .wave-point.is-selected .wave-tooltip { display:block; }
.day-wave-chart .wave-point:focus { outline:none; }
.day-wave-chart .wave-point:focus .wave-dot { stroke:#c58943; stroke-width:3; }
