:root { color-scheme: light; --ink: #153a47; --muted: #47616b; --line: #d4e1e3; --sea: #086b72; }
* { box-sizing: border-box; }
body { margin: 0; background: #f2f6f5; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; line-height: 1.6; }
header { padding: 1.2rem max(5vw, calc((100vw - 1200px) / 2)); background: #153a47; color: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { font-size: 1.7rem; font-weight: 800; letter-spacing: .05em; white-space: nowrap; }
.brand span { color: #98d8ce; font-weight: 400; }
.preview { display: inline-block; margin-left: .8rem; border: 1px solid #96b9bf; border-radius: 2rem; padding: .15rem .7rem; font-size: .8rem; }
main { max-width: 1264px; margin: auto; padding: 2.5rem 2rem 1rem; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.12; max-width: 850px; letter-spacing: -.035em; margin: .6rem 0 1rem; }
h2 { font-size: 1.55rem; line-height: 1.25; margin: .5rem 0 1rem; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--sea); font-weight: 700; margin: 0; }
.lead { font-size: 1.2rem; color: var(--muted); }
.notice { border-left: 4px solid #ac7b21; background: #fff5dd; padding: 1rem 1.25rem; margin-top: 1.8rem; }
.notice p { margin: .25rem 0 0; }
.time-note { color: var(--muted); font-size: .85rem; }
nav { display: flex; flex-wrap: wrap; gap: .6rem; padding: 1rem 0 2rem; }
nav a { color: var(--ink); border: 1px solid var(--line); background: white; border-radius: 2rem; padding: .45rem .9rem; text-decoration: none; font-size: .85rem; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid #a67416; outline-offset: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1.6rem; }
.badge { background: #edf2f2; color: var(--muted); display: inline-block; border-radius: 4px; padding: .25rem .6rem; margin: 0; font-size: .8rem; font-weight: 600; }
.metadata { font-size: .82rem; border-top: 1px solid var(--line); margin-bottom: 0; }
.metadata div { display: grid; grid-template-columns: 38% 1fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid #eef2f2; }
dt { font-weight: 600; } dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
footer { padding: 2.5rem 0 1rem; color: var(--muted); max-width: 900px; font-size: .9rem; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; color: var(--ink); padding: .7rem; }
.skip:focus { top: 1rem; }
.bay-card { border-top: 5px solid var(--sea); }
.browser-refresh { background: #f2f6f5; border-bottom: 1px solid var(--line); margin-bottom: .8rem; padding: .4rem .6rem; font-size: .78rem; line-height: 1.5; overflow-wrap: anywhere; }
.browser-refresh p { margin: .15rem 0; }
.browser-refresh[data-stale="true"] { border-left: 5px solid #C93636; background: #fff4f0; }
.card[data-alert-border], .overview-card[data-alert-border], a.overview-card[data-alert-border]:hover { border-top: 5px solid var(--alert-border, #087F83); }
[data-alert-border="warning"] { --alert-border: #C93636; }
[data-alert-border="attention"] { --alert-border: #E5A000; }
.bay-value { font-size: clamp(3rem, 8vw, 5rem); font-weight: 750; line-height: 1.1; margin: 1.2rem 0 .4rem; overflow-wrap: anywhere; }
.bay-unit { font-size: 1.8rem; font-weight: 500; }
.bay-datum { margin: 0 0 1.2rem; font-size: 1.15rem; }
.level-instrument { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.instrument-freshness { background: #eaf2f2; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.instrument-state { display: inline-block; font-size: 1rem; letter-spacing: .08em; border: 2px solid currentColor; border-radius: 4px; padding: .1rem .5rem; }
.observation-updated { font-size: 1.1rem; font-weight: 700; line-height: 1.5; margin: .6rem 0 0; }
.observation-age { white-space: normal; }
.instrument-reading { text-align: center; padding-top: .3rem; }
.instrument-reading .bay-value { padding: 0 .7rem; font-variant-numeric: tabular-nums; }
.instrument-reading .bay-datum { padding: 0 .7rem; margin-bottom: .8rem; }
.instrument-waterline { display: block; width: 100%; height: 3rem; color: var(--sea); }
.water-surface { fill: #eaf2f2; }
.water-edge { fill: none; stroke: currentColor; stroke-width: 2; }
.level-instrument figcaption { padding: .6rem 1rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); }
.level-instrument figcaption span { font-size: .78rem; }
.state-delayed .instrument-state { border-style: dashed; }
.state-stale .instrument-state { border-style: double; border-width: 4px; }
.state-delayed .water-edge, .state-stale .water-edge { stroke-dasharray: 6 5; }
.state-unavailable .instrument-waterline { visibility: hidden; }
.instrument-empty { font-size: 1.6rem; font-weight: 700; padding: 1rem; }
.bay-card a { color: #08636b; }
.bay-unavailable { font-size: 1.1rem; }
.reading-source { font-size: .9rem; }
.tide-card { border-top: 5px solid var(--sea); grid-column: 1 / -1; }
.tide-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: start; }
.tide-phase { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; margin: .5rem 0 1.5rem; }
.tide-next, .tide-countdown { font-size: 1.2rem; font-weight: 700; }
.tide-height { font-size: 2rem; font-variant-numeric: tabular-nums; }
.tide-clock { margin: 1rem 0; border: 1px solid var(--line); border-radius: 8px; background: #f6faf9; }
.cycle-dial { display: block; width: 100%; max-width: 560px; height: auto; margin: .5rem auto; }
.locator-land { fill: #9fac99; }
.locator-ocean { fill: #effaff; }
.locator-water { fill: #effaff; }
.cycle-dial .locator-label, .cycle-dial .locator-bay { font-size: 14px; font-weight: 700; paint-order: stroke; stroke: #f7fbf9; stroke-width: 3px; stroke-linejoin: round; }
.cycle-dial .locator-reference-label { font-size: 14px; text-anchor: end; }
.cycle-dial .locator-bay { font-size: 11px; text-anchor: start; }
.locator-reference { fill: #744518; stroke: white; stroke-width: 2; }
.reference-key { color: #744518; }
.cycle-reference-caption { text-align: center; padding: 0 .6rem .8rem; color: var(--ink); }
.cycle-reference-caption p { margin: 0; font-size: .85rem; font-weight: 600; }
.cycle-reference-caption small { display: block; font-size: .75rem; color: var(--muted); }
.locator-north { font-size: 12px; font-weight: 700; }
@media (max-width: 700px) {
  .tide-layout { grid-template-columns: 1fr; gap: 0; }
  .tide-clock { margin-left: -1rem; margin-right: -1rem; }
  .cycle-dial .locator-label { font-size: 18px; }
  .cycle-dial .locator-reference-label, .cycle-dial .locator-bay { font-size: 12px; }
  .cycle-dial .cycle-extremum { font-size: 24px; }
  .cycle-dial .cycle-side { font-size: 22px; }
}
@media (max-width: 430px) {
  .cycle-dial .locator-bay { display: none; }
}
@media (max-width: 360px) {
  .cycle-dial .locator-north, .cycle-dial .cycle-role { display: none; }
}
.cycle-track { fill: none; stroke: #cfdddf; stroke-width: 3; }
.cycle-dial text { text-anchor: middle; fill: var(--ink); font-family: inherit; }
.cycle-extremum { font-size: 18px; font-weight: 750; letter-spacing: 1px; }
.cycle-phase { font-size: 30px; font-weight: 800; letter-spacing: 1px; }
.cycle-role { font-size: 13px; }
.cycle-hour { font-size: 23px; font-weight: 700; paint-order: stroke; stroke: #f7fbf9; stroke-width: 3px; stroke-linejoin: round; }
.cycle-side { font-size: 18px; font-weight: 750; letter-spacing: .5px; }
.cycle-tick { stroke: var(--ink); stroke-width: 1; filter: drop-shadow(0 0 1px white); }
.cycle-tick.major { stroke-width: 2; }
.cycle-hand { stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.cycle-pivot { stroke: #fffaf1; stroke-width: 2.5; }
.cycle-percent { font-size: .82rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.cycle-destination { font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.cycle-marker { fill: white; stroke: var(--ink); stroke-width: 3; }
.cycle-marker-core { fill: var(--ink); stroke: none; }
.tide-clock figcaption { padding: .8rem 1rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.tide-clock figcaption p { margin: .35rem 0 0; }
.reading-details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .8rem; font-size: .85rem; color: var(--muted); }
.reading-details summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.reading-details summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; }
@media (max-width: 700px) { header { align-items: flex-start; flex-direction: column; gap: 0; padding: 1rem 1.2rem; } header p { margin: .3rem 0; } main { padding: 1.8rem 1rem 1rem; } .grid { grid-template-columns: 1fr; } .card { padding: 1.2rem; } .metadata div { grid-template-columns: 1fr; gap: .1rem; } }

/* Signature Offshore Concept 3: qualified geography and integrated measurements. */
.offshore-card { grid-column:1 / -1; border-top:5px solid var(--sea); }
.offshore-instrument { margin:0; border:1px solid var(--line); border-radius:0 0 10px 10px; overflow:hidden; }
.offshore-canvas { position:relative; background:#effaff; }
.offshore-map-stage { position:relative; }
.offshore-buoy-key { margin:0; text-align:center; font-family:inherit; font-size:9px; line-height:1.25; color:var(--ink); }
.offshore-buoy-key > span { white-space:nowrap; }
.offshore-map { width:100%; height:auto; display:block; }
.offshore-map text { fill:var(--ink); font-family:inherit; paint-order:stroke; stroke:#effaff; stroke-width:2px; stroke-linejoin:round; }
.offshore-place { font-size:19px; font-weight:800; }
.offshore-city-dot { fill:var(--ink); stroke:white; stroke-width:2; }
.offshore-town { fill:var(--ink); }
.offshore-town text { text-anchor:end; font-size:9px; font-weight:600; }
.offshore-town path { fill:none; stroke:var(--ink); stroke-width:.5; }
.offshore-orientation-label { fill:var(--ink); }
.offshore-orientation-label path { fill:none; stroke:var(--ink); stroke-width:.7; }
.offshore-orientation-label text { text-anchor:end; font-size:12px; font-weight:700; }
.offshore-distance-line { stroke:#47616b; stroke-width:1; stroke-dasharray:3 4; fill:none; }
.offshore-distance-overlay { position:absolute; top:0; left:0; width:100%; height:auto; z-index:1; pointer-events:none; }
.offshore-distance-label { font-family:inherit; font-size:14px; font-weight:700; fill:var(--ink); paint-order:stroke; stroke:#effaff; stroke-width:3px; stroke-linejoin:round; }
.offshore-compass-back { fill:#effaff; fill-opacity:.88; }
.offshore-compass-ring { fill:none; stroke:#47616b; stroke-width:1.2; }
.offshore-compass text { text-anchor:middle; font-size:14px; font-weight:700; }
.offshore-compass .offshore-compass-from { font-size:12px; font-weight:800; }
.offshore-compass .offshore-compass-degrees { font-size:12px; }
.offshore-compass .offshore-compass-travel { font-size:11px; }
.offshore-compass .offshore-compass-travel-degrees { font-size:9px; }
.offshore-compass .offshore-buoy-label { font-size:15px; }
.offshore-travel-shaft, .offshore-travel-tip { stroke:#356f92; stroke-width:2; fill:none; }
.offshore-travel-shaft { stroke-dasharray:3 2; }
.offshore-field-crest { stroke:#356f92; stroke-width:.9; fill:none; opacity:.62; }
.offshore-travel-arrow { stroke:#356f92; stroke-width:1.25; stroke-linecap:round; stroke-linejoin:round; fill:none; opacity:.85; }
.offshore-wave-station { position:absolute; width:53%; bottom:2%; right:2%; padding:.4rem; background:linear-gradient(110deg,#effaffed,#effaffb8); }
.offshore-wave-measurement { display:grid; grid-template-columns:9rem minmax(0,1fr); grid-template-areas:'. period' 'height wave'; align-items:center; }
.offshore-wave-station strong { display:block; line-height:1.15; color:var(--ink); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.offshore-wave-station small { font-size:.45em; font-weight:500; }
.offshore-wave-reading > span, .offshore-period-reading > span { font-size:.85rem; }
.offshore-wave-reading { grid-area:height; text-align:right; padding-right:.35rem; align-self:start; padding-top:calc(240px * 80 / 180 - 3rem); }
.offshore-wave-reading strong { font-size:3rem; letter-spacing:-.04em; white-space:nowrap; }
.offshore-period-reading { grid-area:period; justify-self:center; width:9rem; max-width:100%; text-align:center; padding-bottom:.3rem; }
.offshore-period-reading strong { font-size:2.6rem; }
.offshore-field-state { display:block; font-size:.67rem; letter-spacing:.08em; margin-top:.3rem; }
.offshore-wave-reading .offshore-field-state, .offshore-period-reading .offshore-field-state { font-size:.67rem; }
.offshore-wave { grid-area:wave; display:block; width:100%; height:320px; overflow:hidden; }
.offshore-height-bracket, .offshore-period-bracket { fill:none; stroke:#355b73; stroke-width:1.5; }
.offshore-period-guides { fill:none; stroke:#547580; stroke-width:.8; stroke-dasharray:2 3; }
.offshore-wave-partial { grid-template-areas:'height period' 'message message' 'temperature temperature'; gap:.7rem; }
.offshore-wave-partial .offshore-wave-reading { padding-top:0; }
.offshore-wave-partial .offshore-period-reading { width:auto; }
.offshore-motif-unavailable { grid-area:message; }
.offshore-wave-edge { fill:none; stroke:var(--sea); stroke-width:2.5; }
.offshore-wave-fill { fill:#84c7d0; fill-opacity:.35; stroke:none; }
.offshore-schematic, .offshore-motif-unavailable { font-size:.75rem; color:var(--muted); margin:.2rem 0 .7rem; }
.offshore-direction-reading { display:grid; grid-template-columns:1fr 1fr; gap:1rem; padding:1rem 1.4rem; background:#eaf5f9; border-top:1px solid #c3dbe3; }
.offshore-direction-reading strong { font-size:1.15rem; color:var(--ink); }
.offshore-travel-reading strong { font-size:1rem; }
.offshore-temperature-reading { text-align:center; color:var(--ink); }
.offshore-temperature-reading > span:first-child { display:block; font-size:.6875rem; line-height:12px; }
.offshore-temperature-reading strong { display:block; font-size:1.2rem; line-height:24px; letter-spacing:0; font-variant-numeric:tabular-nums; }
.offshore-temperature-reading .offshore-field-state { font-size:.625rem; line-height:12px; margin-top:2px; }
@media (min-width:701px) {
  .offshore-temperature-reading > span:first-child { font-size:1rem; line-height:20px; }
  .offshore-temperature-reading strong { font-size:2rem; line-height:36px; }
  .offshore-temperature-reading .offshore-field-state { font-size:.8rem; line-height:16px; }
}
/* Same curve scale: 320/240 = original 240/180. Extra fill holds text below y=140. */
.offshore-temperature-in-wave { grid-area:wave; align-self:end; margin:0 2px calc(240px * 20 / 180 + 4px) calc(100% * 24 / 304 + 2px); height:64px; z-index:1; }
@media (min-width:701px) {
  .offshore-temperature-in-wave { height:80px; }
}
/* Shorter desktop panel leaves the geographic buoy key in its original place. */
@media (min-width:1251px) {
  .offshore-wave-station { bottom:0; }
  .offshore-wave { height:270px; }
  .offshore-wave-reading { padding-top:calc(270px * 80 / 240 - 3rem); }
  .offshore-period-reading { width:13rem; }
  .offshore-period-reading > span { display:block; line-height:18px; }
  .offshore-period-reading .offshore-field-state { line-height:14px; }
  .offshore-temperature-in-wave { margin-bottom:calc(270px * 20 / 240 + 4px); }
  .offshore-schematic { margin-bottom:0; }
}
.offshore-temperature-fallback { grid-area:temperature; padding:.25rem; align-self:center; }
.offshore-instrument figcaption { padding:.6rem 1rem; font-size:.85rem; border-top:1px solid var(--line); }
.offshore-instrument figcaption p { margin:.4rem 0; }
@media (max-width:1250px) {
  .offshore-instrument { display:grid; grid-template-areas:'map' 'direction' 'wave' 'caption'; }
  .offshore-canvas { display:contents; }
  .offshore-map-stage { grid-area:map; }
  .offshore-direction-reading { grid-area:direction; }
  .offshore-wave-station { grid-area:wave; }
  .offshore-instrument figcaption { grid-area:caption; }
  .offshore-wave-station { position:relative; width:auto; bottom:auto; right:auto; margin:0; padding:1.2rem; background:transparent; }
  .offshore-instrument { background:#effaff; }
}
@media (max-width:700px) {
  .offshore-wave-station { padding:1rem; }
  .offshore-wave-measurement { grid-template-columns:6.4rem minmax(0,1fr); }
  .offshore-wave-reading { padding-top:calc(220px * 80 / 180 - 3rem); }
  .offshore-wave-reading strong { font-size:2.15rem; }
  .offshore-period-reading strong { font-size:2.15rem; }
  .offshore-period-reading { width:8rem; }
  .offshore-wave-reading > span, .offshore-period-reading > span { font-size:.75rem; }
  .offshore-wave { height:calc(220px * 240 / 180); }
  .offshore-direction-reading { grid-template-columns:1fr; gap:.9rem; padding:1rem; }
  .offshore-temperature-in-wave { margin-bottom:calc(220px * 20 / 180 + 4px); }
  .offshore-map .offshore-place { font-size:27px; }
  .offshore-map .offshore-compass text { font-size:23px; }
  .offshore-wide-from { display:none; }
  .offshore-map .offshore-compass .offshore-compass-from { font-size:20px; }
  .offshore-map .offshore-compass .offshore-compass-degrees { font-size:18px; }
  .offshore-map .offshore-compass .offshore-compass-travel { font-size:20px; }
  .offshore-map .offshore-compass .offshore-compass-travel-degrees { font-size:14px; }
  .offshore-map .offshore-compass .offshore-buoy-label { font-size:18px; }
  .offshore-map .offshore-compass > text { font-size:20px; }
  .offshore-distance-label { font-size:20px; }
  .offshore-distance-gap { x:-40px; y:-14px; width:80px; height:28px; }
  .offshore-orientation-label text { font-size:20px; }
  .offshore-buoy-key { font-size:20px; }
}
@media (max-width:430px) { .offshore-town { display:none; } }
@media (max-width:360px) {
  .offshore-card { padding:1rem .65rem; }
  .offshore-wave-station { padding:.8rem .35rem; }
  .offshore-wave-measurement { grid-template-columns:6rem minmax(0,1fr); }
  .offshore-wave-reading strong, .offshore-period-reading strong { font-size:2rem; }
}
.offshore-animated-wave { display:none; }
.has-wave-motion .offshore-animated-wave { display:block; }
.has-wave-motion .offshore-static-wave { display:none; }
.overview-offshore-state { position:relative; }
.overview-offshore-state:has(.overview-wave-motion) { padding-bottom:26px; }
.overview-wave-motion { position:absolute; left:6%; bottom:0; width:88%; height:24px; overflow:hidden; }
/* JS also cancels Web Animations when reduced motion or a hidden tab is selected. */
.offshore-wave-reading strong.offshore-empty, .offshore-period-reading strong.offshore-empty { font-size:1.1rem; letter-spacing:0; }
@media (prefers-reduced-motion:reduce) { .offshore-instrument * { animation-name:none; transition-property:none; } }

.overview-wave-motion .offshore-field-crest { stroke:#087F83; stroke-width:1.8; opacity:.85; }
