/* Wollongong Weather: "escarpment and sea" design system.
   Warm sand paper, deep ocean ink, a live sky that follows the real conditions. */

@font-face { font-family: 'Bricolage'; src: url('/assets/fonts/bricolage.woff2') format('woff2'); font-weight: 500 800; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f4f1ea;
  --surface: #fffdf9;
  --surface-2: #f8f5ef;
  --ink: #0d2433;
  --ink-2: #33495a;
  --muted: #5f7383;
  --line: rgba(13, 36, 51, .10);
  --line-2: rgba(13, 36, 51, .06);
  --sea: #0f5e7a;
  --sea-2: #1d86a6;
  --foam: #e3f1f4;
  --accent: #e8633a;
  --sun: #f6b73c;
  --rain: #2f7fd6;
  --cool: #4aa3d8;
  --good: #2e9d6b;
  --shadow: 0 1px 2px rgba(13,36,51,.05), 0 8px 24px -12px rgba(13,36,51,.18);
  --shadow-lg: 0 2px 4px rgba(13,36,51,.04), 0 24px 60px -24px rgba(13,36,51,.28);
  --r: 22px;
  --r-sm: 14px;
  --display: 'Bricolage', 'Figtree', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08141d; --surface: #0e1f2b; --surface-2: #112634; --ink: #e9f1f6; --ink-2: #bfd0db; --muted: #8ea4b3;
    --line: rgba(233,241,246,.10); --line-2: rgba(233,241,246,.06); --sea: #4cb3d4; --sea-2: #78c9e2; --foam: #12303f;
    --accent: #ff8a5b; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -14px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small { font-size: .78em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 16px; }
.loading { color: var(--muted); padding: 18px 0; margin: 0; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(13,36,51,.4); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); }
.brand:hover { color: var(--ink); }
.logo { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(160deg, #3a9ad9, #0f5e7a); color: #eaf4fa; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px -4px rgba(15,94,122,.6); flex: none; overflow: hidden; }
.logo svg { width: 30px; height: 30px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-txt b { font-weight: 600; color: var(--sea); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-links > a, .places summary { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 13px; border-radius: 999px; transition: background .15s, color .15s; cursor: pointer; }
.nav-links > a:hover, .places summary:hover { background: var(--line-2); color: var(--ink); }
.places { position: relative; }
.places summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.places summary::-webkit-details-marker { display: none; }
.places summary svg { width: 16px; height: 16px; transition: transform .25s; }
.places[open] summary svg { transform: rotate(180deg); }
.places-panel { position: absolute; right: 0; top: 100%; padding-top: 8px; width: 420px; overflow: hidden; }
.places-panel::before { content: ''; position: absolute; inset: 8px 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: -1; }
.places-panel p { margin: 0; padding: 16px 18px 6px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.places-panel ul { list-style: none; margin: 0; padding: 4px 10px 12px; display: grid; grid-template-columns: 1fr 1fr; }
.places-panel a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.places-panel a:hover { background: var(--foam); color: var(--sea); }
.hamburger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 11px; flex-direction: column; justify-content: space-between; }
.hamburger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
body.menu-open .hamburger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero sky ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; margin-top: calc(var(--nav-h) * -1); padding: calc(var(--nav-h) + clamp(28px, 5vw, 56px)) 0 clamp(130px, 13vw, 190px); }
.sky { position: absolute; inset: 0; z-index: -1; background: var(--sky); transition: background 1s; }
body { --sky: linear-gradient(180deg, #2c86cf 0%, #5aa9e2 45%, #a8d4ee 100%); --ridge: #3f6f86; --hills: #2f5b70; --city: #2a5266; --seac: #1d6f93; --seac2: #2f8db5; --head: #23495a; --glow: rgba(255, 223, 140, .75); }
body[data-sky="cloud"] { --sky: linear-gradient(180deg, #5d7b91 0%, #8ea7b8 55%, #c8d5de 100%); --ridge: #5a7385; --hills: #4b6374; --city: #43596a; --seac: #4a6f84; --seac2: #6a8ea2; --head: #3c5363; --glow: rgba(255,255,255,.25); }
body[data-sky="rain"] { --sky: linear-gradient(180deg, #3b4f62 0%, #637b8e 55%, #9fb1be 100%); --ridge: #4b5f6f; --hills: #3e5161; --city: #364858; --seac: #3d5a6c; --seac2: #577689; --head: #2f4150; --glow: rgba(255,255,255,.12); }
body[data-sky="storm"] { --sky: linear-gradient(180deg, #1d2834 0%, #364656 55%, #67788a 100%); --ridge: #2f3d4a; --hills: #26333f; --city: #212d38; --seac: #2c4050; --seac2: #3f5566; --head: #1d2731; --glow: rgba(190,200,255,.15); }
body[data-sky="night"] { --sky: linear-gradient(180deg, #071226 0%, #12284c 55%, #26446e 100%); --ridge: #18304d; --hills: #11243c; --city: #0e1f34; --seac: #0f2a45; --seac2: #1a3d5e; --head: #0b1a2b; --glow: rgba(220,230,255,.35); }
body[data-sky="night-rain"] { --sky: linear-gradient(180deg, #0b1520 0%, #1b2c3d 55%, #33475a 100%); --ridge: #1d2c3a; --hills: #16222e; --city: #121c27; --seac: #182b3b; --seac2: #23394c; --head: #0f1822; --glow: rgba(200,210,230,.12); }
.sky-glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; background: radial-gradient(circle, var(--glow), transparent 62%); transition: background 1s; }
.scape { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(150px, 17vw, 240px); }
.sc-ridge { fill: var(--ridge); transition: fill 1s; }
.sc-hills { fill: var(--hills); transition: fill 1s; }
.sc-city rect { fill: var(--city); transition: fill 1s; }
.sc-head { fill: var(--head); transition: fill 1s; }
.sc-light path, .sc-light rect { fill: #f3efe6; }
.sc-light .sc-lamp { fill: #ffd76a; }
.sc-beam { fill: url(#none); fill: rgba(255, 228, 140, .0); transition: fill 1s; transform-origin: 1277px 108px; }
body[data-sky^="night"] .sc-beam, body[data-sky="storm"] .sc-beam { fill: rgba(255, 228, 140, .16); animation: beam 7s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: rotate(-6deg); opacity: .6; } 50% { transform: rotate(8deg); opacity: 1; } }
.sc-sea { fill: var(--seac); transition: fill 1s; }
.sc-glint path { stroke: var(--seac2); stroke-width: 3; stroke-linecap: round; opacity: .9; animation: glint 6s ease-in-out infinite; }
.sc-glint path:nth-child(2n) { animation-delay: -3s; }
@keyframes glint { 0%, 100% { transform: translateX(0); opacity: .5; } 50% { transform: translateX(18px); opacity: 1; } }
.cloudfx i { position: absolute; height: 90px; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(22px); opacity: .5; animation: drift 70s linear infinite; }
.cloudfx i:nth-child(1) { width: 380px; top: 14%; left: -10%; }
.cloudfx i:nth-child(2) { width: 300px; top: 30%; left: 40%; animation-duration: 90s; animation-delay: -30s; }
.cloudfx i:nth-child(3) { width: 460px; top: 6%; left: 70%; animation-duration: 110s; animation-delay: -60s; }
body[data-sky="cloud"] .cloudfx i, body[data-sky="rain"] .cloudfx i, body[data-sky="storm"] .cloudfx i { opacity: .8; background: rgba(230,236,241,.6); }
body[data-sky^="night"] .cloudfx i { opacity: .12; }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(40vw); } }
.rainfx { position: absolute; inset: 0; display: none; }
body[data-sky*="rain"] .rainfx, body[data-sky="storm"] .rainfx { display: block; }
.rainfx i { position: absolute; top: -60px; left: var(--x); width: 1.5px; height: 46px; background: linear-gradient(transparent, rgba(255,255,255,.55)); animation: fall var(--d) linear var(--o) infinite; }
@keyframes fall { to { transform: translate(-30px, 115vh); } }

.hero-inner { position: relative; }
.hero-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: clamp(18px, 3vw, 30px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .9rem; letter-spacing: .02em; opacity: .92; }
.eyebrow svg { width: 18px; height: 18px; flex: none; }
.hero h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.01em; opacity: .95; }

/* ---------- now ---------- */
.now { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px clamp(20px, 4vw, 56px); align-items: center; text-shadow: 0 1px 18px rgba(0,0,0,.12); }
.now-left { display: flex; flex-direction: column; gap: 22px; }
.now-main { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); flex-wrap: wrap; }
.now .now-icon { width: clamp(84px, 11vw, 132px); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.18)); }
.now-temp { display: flex; align-items: flex-start; font-family: var(--display); font-weight: 700; line-height: .82; letter-spacing: -.06em; }
.now-temp .t { font-size: clamp(6rem, 15vw, 10.5rem); }
.now-temp .deg { font-size: clamp(3rem, 7vw, 5rem); margin-top: .1em; opacity: .9; }
.now-cond { display: flex; flex-direction: column; gap: 2px; font-size: 1.02rem; }
.now-cond strong { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: 4px; }
.hilo b { font-weight: 700; opacity: .7; margin-left: 2px; }
.now-summary { margin: 0; max-width: 54ch; font-size: 1.06rem; line-height: 1.55; opacity: .96; }
.now-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-shadow: none; }
.stat { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 18px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 108px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.stat .k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.stat .v { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; display: flex; align-items: center; gap: 6px; line-height: 1.1; }
.stat .v small { font-family: var(--text); font-size: .8rem; font-weight: 600; opacity: .8; letter-spacing: 0; align-self: flex-end; margin-bottom: 4px; }
.stat .v-sm { font-size: 1.45rem; }
.stat .s { font-size: .84rem; opacity: .88; line-height: 1.3; }
.now-updated { grid-column: 1 / -1; margin: 0; font-size: .82rem; opacity: .75; }
.now-loading .t { opacity: .5; }
.wdir { display: inline-grid; place-items: center; width: 1.1em; height: 1.1em; transform: rotate(var(--dir)); flex: none; }
.wdir .arrow { width: 100%; height: 100%; fill: currentColor; }
.stat .wdir { width: 26px; height: 26px; background: rgba(255,255,255,.2); border-radius: 50%; padding: 4px; }
.ring { width: 26px; height: 26px; border-radius: 50%; background: conic-gradient(#bfe2ff calc(var(--p) * 1%), rgba(255,255,255,.22) 0); -webkit-mask: radial-gradient(circle, transparent 7px, #000 7.5px); mask: radial-gradient(circle, transparent 7px, #000 7.5px); flex: none; }
.uvchip { font-family: var(--text); font-size: .68rem; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; color: #1b1b1b; white-space: nowrap; }
.uv-l { background: #9be29b; } .uv-m { background: #ffe066; } .uv-h { background: #ffb347; } .uv-vh { background: #ff8a6e; color: #2a0d05; } .uv-x { background: #8e3fd1; color: #fff; }

/* weather icons */
.wi { width: 40px; height: 40px; overflow: visible; }
.i-sun { fill: var(--sun); }
.i-ray { stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.i-moon { fill: #e8edf5; }
.i-cloud { fill: #f3f6f9; stroke: rgba(40,70,95,.28); stroke-width: 1.2; }
.i-back { fill: #d7e0e8; }
.i-dark { fill: #a9b8c5; }
.i-drop { stroke: #3d8bd9; fill: #3d8bd9; stroke-width: 3; stroke-linecap: round; }
.i-bolt { fill: #f6b73c; }
.i-fog { stroke: #9fb0bf; stroke-width: 3; stroke-linecap: round; }
.hero .i-cloud { fill: #fff; stroke: none; }
.hero .i-back { fill: rgba(255,255,255,.65); }
.hero .i-dark { fill: #d8e1e9; }
.hero .i-drop { stroke: #cfe8ff; fill: #cfe8ff; }
@media (prefers-reduced-motion: no-preference) { .now-icon .i-ray { animation: spin 40s linear infinite; transform-origin: 24px 24px; transform-box: view-box; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- generic sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid var(--line-2); }
.band { position: relative; z-index: 2; margin-top: -54px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.kicker { margin: 0 0 8px; font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 70ch; }
.source { font-size: .85rem; color: var(--muted); margin: 14px 0 0; max-width: 90ch; }
.more { font-weight: 700; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(18px, 2.6vw, 28px); }
.card-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.card-head h2 { font-size: 1.3rem; letter-spacing: -.015em; }
.card-head p { margin: 0; color: var(--muted); font-size: .92rem; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; font: 600 .9rem var(--text); color: var(--ink-2); padding: 8px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .wdir { color: var(--muted); }
.lg-bar { width: 6px; height: 12px; border-radius: 3px; background: var(--rain); display: inline-block; }
.lg-wave, .lg-swell { width: 18px; height: 3px; border-radius: 2px; background: var(--sea-2); display: inline-block; }
.lg-swell { background: none; border-top: 2px dashed var(--accent); }

/* ---------- hourly ---------- */
.hourly-card { box-shadow: var(--shadow-lg); }
.hours-scroll { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; margin: 8px calc(clamp(18px, 2.6vw, 28px) * -1) 0; padding: 0 clamp(18px, 2.6vw, 28px) 8px; cursor: grab; -webkit-mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); mask: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent); }
.hours-scroll.dragging { cursor: grabbing; user-select: none; }
.hours-inner { position: relative; width: max-content; }
.hours-line { display: block; }
.hours-line polyline { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hours-line circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.hours-line text { font: 700 13px var(--display); fill: var(--ink); text-anchor: middle; }
.hours { list-style: none; margin: 0; padding: 0; display: flex; }
.hour { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; border-radius: 14px; position: relative; }
.hour:first-child { background: var(--foam); }
.hour.newday::before { content: ''; position: absolute; left: 0; top: -54px; bottom: 0; border-left: 1px dashed var(--line); }
.h-time { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.hour.newday .h-time { color: var(--accent); }
.hour .wi { width: 34px; height: 34px; }
.h-rain { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .74rem; font-weight: 700; color: var(--rain); }
.h-rain .bar { width: 8px; height: 26px; border-radius: 4px; background: linear-gradient(to top, var(--rain) calc(var(--p) * 1%), var(--line-2) 0); }
.h-rain.dim { color: var(--muted); }
.h-rain.dim .bar { opacity: .5; }
.h-wind { display: inline-flex; align-items: center; gap: 2px; font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ---------- daily ---------- */
.week-summary { font-size: 1.08rem; color: var(--ink-2); max-width: 78ch; margin: -6px 0 20px; }
.week-summary:empty { display: none; }
.days-card { padding: 8px clamp(10px, 1.6vw, 18px); }
.days { list-style: none; margin: 0; padding: 0; }
.day { display: grid; grid-template-columns: 118px 44px minmax(0, 1fr) 92px 38px minmax(90px, 1.2fr) 38px 92px 62px; align-items: center; gap: 12px; padding: 12px 10px; border-bottom: 1px solid var(--line-2); }
.day:last-child { border-bottom: 0; }
.days-card[data-show="7"] .day:nth-child(n+8), .days-card[data-show="14"] .day:nth-child(n+15) { display: none; }
.days-card[data-show="7"] .day:nth-child(7), .days-card[data-show="14"] .day:nth-child(14) { border-bottom: 0; }
.day:first-child .d-name strong { color: var(--accent); }
.d-name { display: flex; flex-direction: column; line-height: 1.2; }
.d-name strong { font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.d-name span { font-size: .8rem; color: var(--muted); }
.d-icon { width: 40px; height: 40px; }
.d-cond { font-size: .92rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-rain { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--rain); font-size: .92rem; flex-wrap: wrap; }
.d-rain svg { width: 10px; height: 14px; fill: currentColor; }
.d-rain em { font-style: normal; font-weight: 600; font-size: .76rem; color: var(--muted); width: 100%; padding-left: 14px; line-height: 1; }
.d-rain.dim { color: var(--muted); }
.d-lo, .d-hi { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-align: center; }
.d-lo { color: var(--muted); }
.d-range { position: relative; height: 8px; border-radius: 99px; background: var(--line-2); }
.d-range .bar { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); border-radius: 99px; background: linear-gradient(90deg, #4aa3d8, #6cc3a0 30%, #f6c24c 62%, #ef6a3c); background-size: calc(10000% / (var(--b) - var(--a))) 100%; background-position: calc(var(--a) / (100 - (var(--b) - var(--a)) + .001) * 100%) 0; }
.d-wind { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.d-wind .wdir { color: var(--sea); }
.d-wind small { color: var(--muted); font-weight: 500; }
.d-uv { text-align: right; }

/* ---------- radar ---------- */
.radar-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; }
.radar-frame { position: relative; min-height: 520px; border-radius: var(--r); overflow: hidden; background: radial-gradient(circle at 50% 50%, #1b4a63, #0b2333 70%); box-shadow: var(--shadow-lg); }
.radar-frame::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(120,200,230,.14) 59px 60px); }
.radar-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.radar-load { position: absolute; inset: 0; margin: auto; width: max-content; height: max-content; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 12px 20px; font: 700 1rem var(--text); cursor: pointer; backdrop-filter: blur(8px); }
.radar-load svg { width: 22px; height: 22px; }
.radar-frame.loaded .radar-load { display: none; }
.radar-side { padding: 6px 4px; }
.radar-side h3 { margin-bottom: 12px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; color: var(--ink-2); font-size: .95rem; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.sw { width: 30px; height: 10px; border-radius: 4px; flex: none; margin-top: 7px; }
.sw-l { background: linear-gradient(90deg, #7fd3f5, #57c26a); } .sw-m { background: linear-gradient(90deg, #f7e14b, #f59a2f); } .sw-h { background: linear-gradient(90deg, #e8372c, #a03ad6); }
.official { font-size: .9rem; color: var(--muted); }

/* ---------- region map ---------- */
.region-card { padding: clamp(12px, 2vw, 24px); }
.region { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.region-map { width: 100%; height: auto; }
.rm-sea { fill: url(#none); fill: color-mix(in srgb, var(--sea-2) 16%, var(--surface)); }
.rm-shore { fill: none; stroke: color-mix(in srgb, var(--sea) 45%, transparent); stroke-width: 1.6; stroke-linejoin: round; }
.rm-lake { fill: color-mix(in srgb, var(--sea-2) 22%, var(--surface)); stroke: color-mix(in srgb, var(--sea) 35%, transparent); }
.rm-label { font: 600 10px var(--text); fill: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.rm-label.sea { font-size: 12px; letter-spacing: .3em; fill: color-mix(in srgb, var(--sea) 60%, transparent); }
.pin { text-decoration: none; }
.pin circle { fill: var(--ink); stroke: var(--surface); stroke-width: 2; transition: r .2s; }
.pin.city circle { fill: var(--accent); }
.pin.here circle { fill: var(--accent); stroke: var(--accent); stroke-opacity: .3; stroke-width: 8; }
.pin-name { font: 600 11.5px var(--text); fill: var(--ink-2); }
.pin-t rect { fill: var(--surface); stroke: var(--line); filter: drop-shadow(0 2px 4px rgba(13,36,51,.12)); }
.pin-t text { font: 700 12.5px var(--display); fill: var(--ink); }
.pin:hover circle { r: 7; }
.pin:hover .pin-name { fill: var(--accent); }
.region-head { display: grid; grid-template-columns: 1fr 64px 76px; gap: 10px; margin: 0 0 6px; padding: 0 12px 0 54px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.region-head span:nth-child(2), .region-head span:nth-child(3) { text-align: right; }
.region-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.region-list a { display: grid; grid-template-columns: 34px minmax(130px, 170px) minmax(0, 1fr) 40px 56px; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s; }
.region-list a:hover, .region-list a[aria-current] { background: var(--foam); }
.region-list .wi { width: 32px; height: 32px; }
.rl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.rl-bar span { display: block; height: 100%; width: var(--p); border-radius: 99px; background: linear-gradient(90deg, #6cc3a0, #f6c24c, #ef6a3c); }
.rl-t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-align: right; }
.rl-rain { font-size: .88rem; color: var(--rain); font-weight: 700; text-align: right; }

/* ---------- ocean ---------- */
.ocean { background: linear-gradient(180deg, #0f4b63 0%, #0b3549 100%); color: #e6f3f8; }
.ocean .kicker { color: #ffb08f; }
.ocean .lead { color: #cfe6ef; }
.ocean .source { color: #9fc3d2; }
.ocean a { color: #9fe0f5; }
.ocean-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.tide-body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, 1fr); gap: 20px; align-items: center; }
.tide-body .tide-list { margin: 0; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .tide-body { grid-template-columns: 1fr; } }
.glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; color: inherit; }
.glass h3 { margin-bottom: 12px; }
.swell-chart, .tide-chart { width: 100%; height: auto; }
.swell-chart .grid { stroke: rgba(255,255,255,.12); }
.swell-chart .grid.h { stroke-dasharray: 3 5; }
.axis { font: 600 13px var(--text); fill: #9fc3d2; }
.sw-area { fill: rgba(94, 196, 232, .22); }
.sw-line { fill: none; stroke: #7fd6f2; stroke-width: 2.5; stroke-linejoin: round; }
.sw-swell { fill: none; stroke: #ffb08f; stroke-width: 2; stroke-dasharray: 5 5; }
.ocean .legend { color: #9fc3d2; }
.ocean .lg-wave { background: #7fd6f2; } .ocean .lg-swell { border-color: #ffb08f; }
.swell-days { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.swell-day { background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.sd-day { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9fc3d2; }
.sd-h { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.sd-h small { font-size: .7rem; opacity: .7; margin-left: 1px; }
.sd-p { font-size: .8rem; color: #cfe6ef; }
.sd-dir { display: inline-flex; align-items: center; gap: 2px; font-size: .74rem; color: #cfe6ef; }
.tide-area { fill: rgba(94, 196, 232, .16); }
.tide-line { fill: none; stroke: #7fd6f2; stroke-width: 3; }
.tide-chart .midnight { stroke: rgba(255,255,255,.2); stroke-dasharray: 3 5; }
.tide-mark circle { fill: #0b3549; stroke: #7fd6f2; stroke-width: 2.5; }
.tide-mark.low circle { stroke: #ffb08f; }
.tide-mark text { font: 700 15px var(--display); fill: #fff; text-anchor: middle; }
.tide-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; }
.tide-list li { background: rgba(255,255,255,.06); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; font-size: .8rem; color: #9fc3d2; line-height: 1.3; border-left: 3px solid #7fd6f2; }
.tide-list li.low { border-color: #ffb08f; }
.tide-list strong { color: #fff; font-size: .95rem; }
.tide-list span:last-child { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; }

/* ---------- climate ---------- */
.seasons { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.season { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.season::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--c); }
.s-summer { --c: linear-gradient(90deg, #f6b73c, #ef6a3c); } .s-autumn { --c: linear-gradient(90deg, #c9803b, #8a5a2b); } .s-winter { --c: linear-gradient(90deg, #4aa3d8, #2f6fa8); } .s-spring { --c: linear-gradient(90deg, #6cc3a0, #b6d45c); }
.season-top { display: flex; justify-content: space-between; align-items: baseline; }
.season-top strong { font-family: var(--display); font-size: 1.3rem; }
.season-top span { font-size: .8rem; color: var(--muted); }
.season-temps { display: flex; gap: 12px; margin: 10px 0 8px; font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.03em; }
.season-temps .hi { color: var(--accent); }
.season-temps .lo { color: var(--cool); }
.season p { font-size: .93rem; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* ---------- suburb local ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.about-grid h2 { margin-bottom: 18px; }
.prose p { color: var(--ink-2); font-size: 1.06rem; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose ul { padding-left: 1.2em; color: var(--ink-2); }
.watch-card h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; font-family: var(--text); }
.watch-card h3:first-child { margin-top: 0; }
.watch { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.watch li { padding: 10px 12px 10px 38px; border-radius: 12px; background: var(--foam); position: relative; font-weight: 600; font-size: .95rem; }
.watch li::before { content: ''; position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 3px solid var(--sea); }
.spots { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.spots li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: .86rem; color: var(--ink-2); }
.near { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.near a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600; font-size: .88rem; }
.near a:hover { background: var(--accent); color: #fff; }

/* ---------- blog list (editorial, not a card grid) ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background .2s; }
.posts a:hover { background: var(--surface); }
.post-n { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.post-body strong { display: block; font-family: var(--display); font-size: 1.3rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 4px; }
.post-body span { color: var(--ink-2); }

/* ---------- safety tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tiles a { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tiles a:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--sea) 40%, transparent); color: var(--ink); }
.tile-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--foam); color: var(--sea); display: grid; place-items: center; flex: none; }
.tile-ic svg { width: 24px; height: 24px; }
.tiles strong { display: block; font-size: 1rem; }
.tiles span span { color: var(--muted); font-size: .88rem; }
.tile-000 a { background: #b3261e; border-color: #b3261e; color: #fff; }
.tile-000 a:hover { color: #fff; }
.tile-000 .tile-ic { background: rgba(255,255,255,.18); color: #fff; }
.tile-000 span span { color: rgba(255,255,255,.88); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; font-size: 1.04rem; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .ico { position: absolute; right: 18px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: var(--foam); }
.faq-item .ico::before, .faq-item .ico::after { content: ''; position: absolute; left: 7px; right: 7px; top: 11px; height: 2px; background: var(--sea); border-radius: 2px; transition: transform .3s; }
.faq-item .ico::after { transform: rotate(90deg); }
.faq-item[open] .ico::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 20px 18px; margin: 0; color: var(--ink-2); }

/* ---------- breadcrumbs, legal ---------- */
.crumbs { position: relative; z-index: 3; margin-top: 10px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs + .hero { margin-top: calc((var(--nav-h) + 32px) * -1); padding-top: calc(var(--nav-h) + 60px + clamp(20px, 4vw, 40px)); }
.crumbs { color: #fff; }
.crumbs a, .crumbs li { color: rgba(255,255,255,.9); }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 8px; }
.legal .prose { margin-top: 26px; }

/* ---------- footer ---------- */
.footer { background: #0a2230; color: #b9ccd8; padding: 64px 0 30px; font-size: .95rem; }
.footer a { color: #e6f1f6; text-decoration: none; }
.footer p a { text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: #ffb08f; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand-txt b { color: #7fd6f2; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h3 { font-family: var(--text); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #7f9aab; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-brand p { max-width: 52ch; }
.footer-safety { font-size: .88rem; color: #8fa9b8; }
.footer-legal { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #7f9aab; }
.footer-legal a { color: #7fd6f2; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .now { grid-template-columns: 1fr; }
  .now-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .day { grid-template-columns: 104px 40px 0 80px 34px minmax(60px, 1fr) 34px 80px 0; gap: 10px; }
  .d-cond, .d-uv { overflow: hidden; visibility: hidden; }
  .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-links { position: fixed; left: 0; right: 0; top: var(--nav-h); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 16px 22px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .22s ease-in, visibility 0s .34s; }
  body.menu-open .nav-links { transform: none; opacity: 1; visibility: visible; transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .3s, visibility 0s; }
  .nav-links > a, .places summary { padding: 12px 10px; border-radius: 12px; font-size: 1.02rem; }
  .places-panel { position: static; width: auto; padding-top: 0; }
  .places-panel::before { display: none; }
  .places-panel ul { padding: 0 0 8px; }
  .radar-grid, .ocean-grid, .about-grid, .region { grid-template-columns: 1fr; }
  .region-map { max-width: 360px; margin: 0 auto; }
  .radar-frame { min-height: 440px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-bottom: 120px; }
  .now-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { min-height: 96px; padding: 12px; }
  .stat .v { font-size: 1.55rem; }
  .band { margin-top: -34px; }
  .day { grid-template-columns: 86px 36px 70px 30px minmax(40px, 1fr) 30px; gap: 8px; padding: 12px 4px; }
  .d-cond, .d-wind, .d-uv { display: none; }
  .d-icon { width: 34px; height: 34px; }
  .d-lo, .d-hi { font-size: 1rem; }
  .d-rain { font-size: .85rem; }
  .swell-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seasons { grid-template-columns: 1fr; }
  .region-head { display: none; }
  .region-list a { grid-template-columns: 30px minmax(0, 1fr) 56px 36px 42px; gap: 8px; padding: 7px 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .places-panel ul { grid-template-columns: 1fr 1fr; }
  .posts a { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .sec-head { margin-bottom: 16px; }
}
