:root{--ink:#102734;--ink-muted:#516673;--ink-faint:#748792;--teal:#087e75;--teal-bright:#169b8e;--teal-pale:#e9f5f2;--orange:#c97842;--background:#eef3f4;--panel:#fff;--line:#d6e0e3;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;--sans:Inter,'Avenir Next',Avenir,Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--background);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
button,select{font:inherit}
a{color:inherit}
.app-shell{max-width:1370px;margin:auto;padding:24px clamp(22px,4.2vw,65px) 38px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid #d5e0e2;padding:0 0 23px}
.brand{display:flex;gap:11px;align-items:center;text-decoration:none;min-width:0}
.brand-icon{display:block;width:51px;height:51px;flex-shrink:0}
.brand-icon svg{height:100%;width:100%}
.brand-copy{display:flex;flex-direction:column;gap:6px}
.brand-name{font-size:28px;font-weight:950;letter-spacing:.01em;line-height:1;white-space:nowrap}
.brand-name span,.footer-brand span{color:var(--orange)}
.brand-tagline{font:10px var(--mono);letter-spacing:.23em;color:#6c7b86;white-space:nowrap}
.header-tools{display:flex;align-items:center;gap:13px}
.station-label,.panel-label,.overline{font-family:var(--mono);font-size:11px;font-weight:600;letter-spacing:.145em;color:#526c79}
.select-wrap{position:relative}
.select-wrap:after{content:"";position:absolute;right:17px;top:19px;width:8px;height:8px;transform:rotate(45deg);border-bottom:2px solid #345360;border-right:2px solid #345360;pointer-events:none}
select{appearance:none;-webkit-appearance:none;border:1px solid #bfced4;background:#fff;color:var(--ink);border-radius:10px;min-width:260px;max-width:330px;height:50px;padding:0 37px 0 18px;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 2px 1px #17364705}
select:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #1b9a8e;outline-offset:3px}
.noaa-link,.refresh-button{border:1px solid #c5d4d7;background:var(--panel);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;height:50px;padding:0 16px;font-size:13px;font-weight:800;white-space:nowrap;transition:transform .15s,background .15s}
.noaa-link:hover,.refresh-button:hover{background:var(--teal-pale);transform:translateY(-1px)}
.noaa-link svg,.refresh-button svg{height:18px;width:18px;fill:none;stroke:var(--teal);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.8}
.hero{padding:26px 0 20px;display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
.eyebrow{font:10px var(--mono);font-weight:600;letter-spacing:.15em;color:var(--teal);margin-bottom:12px;display:flex;align-items:center;gap:9px}
.eyebrow-dot,.pulse-dot,.source-dot{height:7px;width:7px;background:var(--teal-bright);border-radius:50%;display:inline-block;flex-shrink:0}
h1{font-size:clamp(35px,4.25vw,62px);font-weight:850;letter-spacing:-.055em;line-height:1.06;margin:0 0 11px}
h1 span{color:var(--teal)}
.hero-copy>p{margin:0;color:var(--ink-muted);font-size:15px;line-height:1.55;max-width:600px}
.refresh-group{display:flex;align-items:center;gap:14px;padding-bottom:2px;flex-shrink:0}
.updated{display:flex;align-items:center;gap:8px;color:#70838e;white-space:nowrap;font:11px var(--mono)}
.pulse-dot{width:6px;height:6px;background:#9aaeb9}
.pulse-dot.ready{background:var(--teal-bright);box-shadow:0 0 0 3px #169b8e20}
.refresh-button{height:35px;color:var(--teal);font-family:var(--mono);font-weight:700;font-size:11px;letter-spacing:.03em;padding:0 13px;cursor:pointer}
.refresh-button svg{width:15px;height:15px}
.refresh-button:disabled{cursor:wait;opacity:.55;transform:none}
.error-banner{padding:13px 17px;margin-bottom:16px;background:#fff2e9;border:1px solid #e3ba9c;border-radius:10px;color:#7d401f;font-size:13px}
.error-banner[hidden]{display:none}
.data-grid{display:grid;grid-template-columns:1.58fr .94fr .94fr .94fr;grid-template-rows:190px 190px;gap:17px}
.panel{position:relative;min-width:0;border-radius:15px;border:1px solid var(--line);background:var(--panel);box-shadow:0 1px 0 rgba(33,64,75,.018);overflow:hidden}
.gauge-panel{grid-column:1;grid-row:1/3;padding:20px 22px 11px;display:flex;flex-direction:column}
.gauge-wrap{width:min(100%,355px);margin:7px auto -6px;position:relative;aspect-ratio:360/344;flex:1;min-height:0}
.tide-gauge{display:block;width:100%;height:100%}
.gauge-ring{fill:none;stroke:#d9e6e9;stroke-width:3}
.gauge-progress{fill:none;stroke:url(#gaugeSea);stroke-linecap:round;stroke-width:6;stroke-dasharray:0 905}
.gauge-tick{stroke:#7b929f;stroke-width:1.4}
.gauge-tick.major{stroke:#315669;stroke-width:2}
.gauge-tick-label{font:11px var(--mono);fill:#8a9da7}
.gauge-edge{font:700 14px var(--sans);letter-spacing:.17em;fill:#1e3440}
.gauge-center{position:absolute;inset:27% 15% 19%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none}
.gauge-number{font-size:clamp(52px,7vw,89px);font-weight:900;line-height:1;letter-spacing:-.075em;white-space:nowrap;font-variant-numeric:tabular-nums}
.gauge-number small{font-size:.23em;letter-spacing:0;font-weight:800;color:#536a75;margin-left:8px}
.gauge-direction{font:700 12px var(--mono);letter-spacing:.12em;color:var(--teal);margin-top:10px}
.gauge-direction.falling{color:var(--orange)}
.gauge-sub{font:11px var(--mono);color:#81939e;margin-top:10px;line-height:1.5}
.gauge-footer{border-top:1px solid #edf1f2;color:#8596a0;text-align:center;padding-top:10px;font:10px var(--mono);margin-top:auto}
.next-panel{grid-column:2/4;grid-row:1;padding:21px 24px}
.next-content{position:relative;z-index:1;padding-top:32px}
.next-time{display:flex;gap:19px;align-items:baseline;flex-wrap:wrap}
.next-time strong{font-size:clamp(39px,4.5vw,58px);font-weight:900;letter-spacing:-.06em;line-height:1}
.next-time span{font:800 15px var(--mono);color:var(--teal);white-space:nowrap}
.next-bottom{margin-top:20px;font:12px var(--mono);color:#627b86;line-height:1.5}
.subtle-wave{position:absolute;right:0;bottom:0;left:40%;height:50px;opacity:.45;pointer-events:none}
.subtle-wave svg{width:100%;height:100%}
.stat-panel{padding:21px 21px 20px;display:flex;flex-direction:column;justify-content:space-between}
.difference-panel{grid-column:4;grid-row:1}
.stat-number{font-size:clamp(34px,4.25vw,54px);font-weight:900;line-height:1.1;letter-spacing:-.055em;white-space:nowrap;font-variant-numeric:tabular-nums}
.stat-number .unit{font-size:.35em;letter-spacing:-.02em;font-weight:850;margin-left:4px;color:inherit}
.difference-panel .stat-number{color:var(--teal)}
.stat-note{font:11px/1.5 var(--mono);color:#69808a}
.stat-number.negative{color:var(--orange)}
.chart-panel{margin-top:18px;padding:21px 24px 15px}
.section-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.label-muted{color:#91a1aa;font-weight:500}
.chart-legend{display:flex;align-items:center;gap:18px;font:10px var(--mono);font-weight:700;letter-spacing:.06em;color:#758893}
.chart-legend span{display:flex;align-items:center;gap:7px;white-space:nowrap}
.legend-line{display:block;width:20px;border-top:2px solid var(--teal)}
.legend-line.observed{border-color:var(--orange)}
.legend-line.now{border-color:#7b8c97;border-top-style:dashed}
.chart-scroll{width:100%;overflow-x:auto;scrollbar-width:thin}
#tideChart{display:block;width:100%;height:auto;min-width:760px;margin-top:11px;overflow:visible}
.chart-loading{font:14px var(--mono);fill:#7a929d}
.grid-line{stroke:#e1e9eb;stroke-width:1}
.grid-line.vertical{stroke:#e8eef0;stroke-dasharray:2 4}
.axis-label{fill:#8497a1;font:11px var(--mono)}
.chart-area{fill:#b9e4dd;opacity:.35}
.chart-predicted{fill:none;stroke:#087e75;stroke-width:2.65;stroke-linecap:round;stroke-linejoin:round}
.chart-observed{fill:none;stroke:#c97842;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.now-line{stroke:#6d8590;stroke-width:1.3;stroke-dasharray:4 4}
.now-caption{font:700 10px var(--mono);fill:#657d89}
.extrema-label{font:10px var(--mono);fill:#435e6b}
.chart-caption{font:11px/1.5 var(--mono);color:#82949e;margin-top:2px}
.table-panel{margin-top:18px;padding:25px 24px 17px}
.table-title-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}
.overline{color:var(--teal);font-size:10px;margin-bottom:7px}
.table-title-row h2{font-size:26px;margin:0 0 6px;font-weight:850;letter-spacing:-.035em}
.table-title-row p{margin:0;color:#6a808a;font-size:13px}
.datum-badge{background:#ecf5f3;border:1px solid #d0e4e0;color:#4d7974;padding:9px 11px;border-radius:6px;font:10px var(--mono);letter-spacing:.05em;white-space:nowrap}
.tide-table{border-top:1px solid #e7edef}
.tide-row{display:grid;grid-template-columns:145px 1fr;gap:20px;align-items:center;min-height:65px;border-bottom:1px solid #e7edef;padding:10px 2px}
.tide-row:last-child{border-bottom:0}
.tide-row.today{background:linear-gradient(90deg,#ebf8f5 0%,#fff 48%);margin:0 -6px;padding:10px 8px;border-radius:7px}
.day-cell{display:flex;align-items:baseline;gap:11px}
.weekday{font-size:14px;font-weight:850;min-width:65px}
.weekday.today-name{color:var(--teal)}
.date-number{font:12px var(--mono);color:#84949d}
.events-cell{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tide-event{display:flex;align-items:center;gap:8px;min-width:0}
.event-type{font:700 11px var(--mono);width:24px;height:24px;border-radius:5px;display:grid;place-items:center;flex-shrink:0}
.event-type.high{color:#087e75;background:#def2ed}
.event-type.low{color:#a86b44;background:#f7e9de}
.event-time{font-size:12px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.event-level{color:#84959d;font:11px var(--mono);white-space:nowrap;margin-left:4px}
.table-loading{font:13px var(--mono);color:#8aa0aa;padding:25px}
.bottom-row{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:21px}
.data-note{display:flex;align-items:center;gap:13px;min-width:0}
.data-note-icon{display:grid;place-items:center;width:41px;height:41px;border:1px solid #d4e0e2;background:#fff;border-radius:50%;flex-shrink:0}
.data-note-icon svg{width:20px;height:20px;fill:none;stroke:var(--teal);stroke-width:1.7;stroke-linecap:round}
.data-note strong{font-size:13px}
.data-note p{font-size:12px;line-height:1.55;color:#6c818c;margin:5px 0 0;max-width:850px}
.source-pill{font:700 10px var(--mono);color:var(--teal);letter-spacing:.07em;white-space:nowrap;display:flex;align-items:center;gap:8px;padding:11px 13px;background:#e5f4f0;border-radius:999px}
.footer{margin-top:35px;padding-top:20px;border-top:1px solid #d5e0e2;display:flex;justify-content:space-between;align-items:flex-start;gap:25px;color:#788a94;font-size:11px;line-height:1.8}
.footer>p{margin:0}
.footer-brand{font-size:14px;font-weight:950;letter-spacing:-.02em;color:var(--ink)}
.footer div p{margin:3px 0 0}
.footer a{color:var(--teal);font-weight:700;white-space:nowrap;text-decoration:none}
.footer a:hover{text-decoration:underline}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1170px){.site-header{align-items:flex-start}.header-tools{gap:9px}.station-label{display:none}.brand-name{font-size:24px}.brand-tagline{font-size:9px}.data-grid{grid-template-columns:1.35fr 1fr 1fr;grid-template-rows:175px 175px 160px}.gauge-panel{grid-column:1;grid-row:1/3}.next-panel{grid-column:2/4;grid-row:1}.difference-panel{grid-column:2;grid-row:2}.data-grid>.stat-panel:nth-of-type(4){grid-column:3;grid-row:2}.data-grid>.stat-panel:nth-of-type(5){grid-column:1/3;grid-row:3}.data-grid>.stat-panel:nth-of-type(6){grid-column:3;grid-row:3}.gauge-number{font-size:clamp(51px,6.7vw,80px)}.events-cell{gap:6px}.tide-event{gap:5px}.event-level{margin-left:1px}.event-time{font-size:11px}}
@media(max-width:850px){.app-shell{padding:20px 20px 32px}.site-header{flex-direction:column;gap:17px}.header-tools{width:100%;gap:10px}.select-wrap{flex:1}.select-wrap select{width:100%;max-width:none;min-width:0}.hero{align-items:flex-start;flex-direction:column;gap:11px;padding-top:25px}.refresh-group{width:100%;justify-content:space-between}.data-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.gauge-panel{grid-column:1/3;grid-row:auto;min-height:390px}.gauge-wrap{max-height:305px;margin-top:0}.next-panel{grid-column:1/3;grid-row:auto;min-height:176px}.difference-panel,.data-grid>.stat-panel:nth-of-type(4),.data-grid>.stat-panel:nth-of-type(5),.data-grid>.stat-panel:nth-of-type(6){grid-column:auto;grid-row:auto;min-height:150px}.stat-number{font-size:46px}.events-cell{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px}.tide-row{grid-template-columns:110px 1fr;gap:10px}.bottom-row{align-items:flex-start}.source-pill{display:none}.footer{flex-wrap:wrap}.label-muted{display:none}}
@media(max-width:550px){.app-shell{padding:17px 13px 25px}.brand-name{font-size:23px}.brand-icon{width:46px;height:46px}.brand-tagline{font-size:8px;letter-spacing:.18em}.header-tools{flex-wrap:wrap}.noaa-link{height:42px;flex:0 0 auto;font-size:12px;padding:0 10px}.select-wrap{min-width:100%;order:0}.noaa-link{order:1}.header-tools:before{content:'CHOOSE LOCATION';order:-1;display:block;width:100%;font:10px var(--mono);letter-spacing:.12em;color:#697e88}.hero{padding-top:24px}.hero h1{font-size:41px}.hero-copy>p{font-size:14px}.updated{font-size:10px}.data-grid{gap:10px}.panel{border-radius:12px}.gauge-panel{min-height:360px;padding:16px 15px 10px}.gauge-wrap{max-height:290px}.gauge-number{font-size:69px}.gauge-center{inset:27% 13% 20%}.next-panel{padding:18px;min-height:169px}.next-content{padding-top:30px}.next-time strong{font-size:48px}.next-time span{font-size:13px}.next-bottom{font-size:11px;margin-top:15px}.stat-panel{padding:16px 14px;min-height:150px!important}.panel-label{font-size:10px;letter-spacing:.08em}.stat-number{font-size:39px}.stat-note{font-size:10px}.chart-panel{padding:17px 12px}.section-top{align-items:flex-start;flex-direction:column;gap:12px}.chart-legend{gap:13px;font-size:9px}.chart-scroll{margin-right:-5px}.chart-caption{font-size:10px}.table-panel{padding:19px 13px}.table-title-row{align-items:flex-start}.datum-badge{font-size:8px;padding:7px}.table-title-row h2{font-size:23px}.table-title-row p{font-size:12px}.tide-row{grid-template-columns:1fr;gap:9px;align-items:start;padding:14px 4px}.day-cell{gap:5px}.weekday{min-width:70px}.events-cell{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.event-time{font-size:12px}.event-level{font-size:11px}.footer{display:block}.footer>p{margin-top:14px}.footer a{display:inline-block;margin-top:12px}}
