/* Shared styles for every page. Light and calm: warm sand paper, deep-ocean ink, a deep teal accent, generous space.
   Type: DM Serif Display for headings, Kaushan Script only in the home page's name, Public Sans for everything else.
   Safety rule: no green anywhere, and surf numbers stay neutral. Status colors only mark closures and advisories. */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f0ede6;
  --ink: #12313f;
  --ink-2: #3a5563;
  --muted: #6b7f88;
  --line: rgba(18, 49, 63, 0.10);
  --accent: #1a6b73;   /* deep teal, for links and buttons only: never a status */
  --accent-soft: rgba(26, 107, 115, 0.08);
  --radius: 12px;
  --shadow: 0 1px 2px rgba(18, 49, 63, .04), 0 8px 24px rgba(18, 49, 63, .06);
  --hdr: 68px;
  --gutter: 40px;
  --max: 1120px;
  --serif: 'DM Serif Display', Georgia, serif;
  --script: 'Kaushan Script', cursive;
  --sans: 'Public Sans', system-ui, sans-serif;

  --st-closed: #b42318;   --st-closed-bg: #fdecea;
  --st-advisory: #8a4b00; --st-advisory-bg: #fff3dc;
  --st-clear: #45606e;    --st-clear-bg: #eaf0f3;   /* "No closures reported" is information, not a go-ahead: slate, never green */
  --st-unknown: #5f6b72;  --st-unknown-bg: #eeeeec;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: 0; margin: 0; }
h2 { font-size: 26px; }
[hidden] { display: none !important; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: flex; align-items: center; gap: 24px;
  padding: 0 var(--gutter); background: rgba(247, 245, 240, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand-link { font: 400 21px var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .16em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px;
  padding: 8px 16px; font: 500 12.5px var(--sans); text-transform: uppercase; letter-spacing: .16em; cursor: pointer; }

/* ---- Layout ---- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.page-head { padding: 64px 0 40px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1.page-title { margin-top: 10px; font-size: clamp(38px, 5vw, 56px); }
.lede { margin: 16px 0 0; max-width: 36em; font-size: 18px; color: var(--ink-2); }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.card + .card { margin-top: 24px; }
.card h2 { margin-bottom: 16px; }
.section { margin-top: 56px; }
.src { margin-top: 14px; font-size: 13px; color: var(--muted); }
.src a { color: var(--ink-2); }
.muted { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.preview-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px var(--gutter); background: var(--surface-2); color: var(--ink-2); font-size: 13px; text-align: center; border-bottom: 1px solid var(--line); }

/* ---- Buttons and chips ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: rgba(18, 49, 63, .25); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: 500 14px var(--sans); cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- Status pill ---- */
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.status-pill .ico { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
.status-closed   { color: var(--st-closed);   background: var(--st-closed-bg); }
.status-advisory { color: var(--st-advisory); background: var(--st-advisory-bg); }
.status-clear    { color: var(--st-clear);    background: var(--st-clear-bg); }
.status-unknown  { color: var(--st-unknown);  background: var(--st-unknown-bg); }
.status-closed .ico { background: var(--st-closed); } .status-advisory .ico { background: var(--st-advisory); }
.status-clear .ico { background: var(--st-clear); } .status-unknown .ico { background: var(--st-unknown); }

/* ---- Guard icon ---- */
.guard { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.guard svg { flex: none; }
.guard.none { color: var(--muted); }

/* ---- Island alert banner ---- */
.alert-banner { background: var(--st-advisory-bg); color: #5c3200; border-bottom: 1px solid rgba(138, 75, 0, .15); }
.alert-banner .wrap { padding-top: 14px; padding-bottom: 14px; display: grid; gap: 6px; font-size: 15px; }
.alert-banner b { font-weight: 700; }
.alert-banner a { color: #5c3200; }

/* ---- Beach board ---- */
.board-group + .board-group { margin-top: 40px; }
.board-group h2 { font-size: 22px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.board-group h2 .surf { font: 500 15px var(--sans); color: var(--ink-2); }
.board { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.beach-row { position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) 250px minmax(0, 1.5fr); gap: 24px; align-items: center;
  padding: 20px 28px; border-top: 1px solid var(--line); }
.beach-row:first-child { border-top: 0; }
.beach-row:hover { background: #fbfaf7; }
.br-name a { font: 400 19px var(--serif); color: var(--ink); text-decoration: none; }
.br-name a::after { content: ""; position: absolute; inset: 0; }
.br-name small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.br-meta { display: grid; gap: 8px; justify-items: start; }
.br-note { font-size: 14px; color: var(--ink-2); }
.board-empty { padding: 40px; text-align: center; color: var(--muted); }
.data-time { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---- Hero ---- */
.hero { position: relative; padding: 88px 0 72px; background: linear-gradient(180deg, #eaf0f3 0%, var(--bg) 100%); }
.hero.photo { background: #dfe6e9 center / cover no-repeat; min-height: 420px; display: flex; align-items: flex-end; }
.hero.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,245,240,0) 30%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }

/* ---- Footer ---- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 40px 0 64px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.site-footer strong { color: var(--ink); }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: start; }
.site-footer nav a { text-decoration: none; }
.foot-beaches { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-beaches .wrap { display: block; }
.foot-beaches b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.foot-beaches a { display: inline-block; margin: 0 16px 6px 0; text-decoration: none; color: var(--ink-2); }

@media (max-width: 860px) {
  :root { --gutter: 16px; --hdr: 58px; }
  .site-nav { display: none; position: absolute; top: var(--hdr); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 12px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 17px; }
  .menu-btn { display: inline-flex; min-height: 44px; align-items: center; }
  .btn, .chip { min-height: 44px; }
  .page-head { padding: 40px 0 28px; }
  .lede { font-size: 16px; }
  .card { padding: 24px 20px; }
  .hero { padding: 48px 0 40px; }
  .beach-row { grid-template-columns: 1fr; gap: 10px; padding: 20px 18px; }
  .br-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- Beach page ---- */
.crumbs { padding-top: 40px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.open-q { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.guard-line { margin: 0 0 36px; font-size: 15px; }
.guard-line .guard { font-size: 15px; }
.oq-label { font-weight: 600; color: var(--ink-2); }
.open-q .status-pill { font-size: 15px; padding: 7px 14px 7px 9px; }
.card h3 { font: 400 20px var(--serif); margin-bottom: 14px; }
h2.section { margin-bottom: 20px; }
.items { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.hazard { border-left: 4px solid var(--st-closed); }
blockquote { margin: 0 0 16px; padding: 0; font: 400 18px/1.5 var(--serif); color: var(--ink); }
blockquote cite { display: block; margin-top: 6px; font: 400 13px var(--sans); color: var(--muted); }
.big-num { font: 400 44px/1 var(--serif); margin-bottom: 10px; color: var(--ink); }
.wx-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wx-name { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.wx-temp { font: 400 28px var(--serif); margin: 4px 0; }
.wx-short { color: var(--ink-2); }
.tide-svg { width: 100%; height: auto; overflow: visible; }
.sun { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.facts { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 24px; }
.faq details + details { margin-top: 12px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 12px 0 0; color: var(--ink-2); }
.honu { margin-top: 32px; background: var(--surface-2); box-shadow: none; }
.honu p { margin-top: 0; }
.sources { padding-left: 20px; color: var(--ink-2); }
.todo { background: #fff3dc; padding: 2px 6px; border-radius: 4px; }
.report { margin-top: 48px; }

/* ---- Forms ---- */
form label { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 500; font-size: 15px; }
input, select, textarea { font: 400 16px var(--sans); padding: 11px 12px; border: 1px solid rgba(18, 49, 63, .2); border-radius: 8px; background: #fff; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Tables (status, surf) ---- */
.st-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.st-table th { text-align: left; padding: 14px 20px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.st-table td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: top; color: var(--ink-2); font-size: 15px; }
.st-table tr:first-child td { border-top: 0; }
.st-table td.name a { font: 400 18px var(--serif); color: var(--ink); text-decoration: none; }
.st-table td.name small { display: block; font-size: 13px; color: var(--muted); }
.tide-list { display: grid; gap: 14px; }
.surf-grid { width: 100%; border-collapse: collapse; }
.surf-grid th { text-align: left; padding: 10px 12px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); vertical-align: bottom; }
.surf-grid td { padding: 14px 12px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; white-space: nowrap; }
.surf-grid td.name { font: 400 17px var(--serif); }

/* ---- Home tools and maps ---- */
.home-tools { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 8px 0 32px; }
.map-box { position: relative; height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.map-box.small { height: 320px; margin-top: 20px; }
.map-box.tall { height: 72vh; min-height: 480px; }
.map-switch { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 8px; }
.map-pin { display: block; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: pointer; }
.map-pin.status-closed { background: var(--st-closed); } .map-pin.status-advisory { background: #c27a12; }
.map-pin.status-clear { background: var(--st-clear); } .map-pin.status-unknown { background: var(--st-unknown); }
.maplibregl-popup-content { font-family: var(--sans); border-radius: 10px; padding: 12px 14px; }

@media (max-width: 860px) {
  .crumbs { padding-top: 24px; }
  .guard-line { margin-bottom: 28px; }
  .wx-periods { grid-template-columns: 1fr; gap: 16px; }
  .big-num { font-size: 36px; }
  .map-box { height: 440px; }
  /* Phones: each table row becomes a stacked card. */
  .st-table, .st-table tbody, .st-table tr, .st-table td { display: block; }
  .st-table thead { display: none; }
  .st-table tr { padding: 16px 18px; border-top: 1px solid var(--line); }
  .st-table tr:first-child { border-top: 0; }
  .st-table td { padding: 0; border: 0; }
  .st-table td + td { margin-top: 8px; }
  #surf-table { overflow-x: auto; }
  .surf-grid th, .surf-grid td { padding: 12px 5px; font-size: 14px; }
  .surf-grid td.name { font-size: 15px; }
  /* Phones: the filter buttons sit in one row that scrolls sideways, so the beach list starts higher. */
  .home-tools { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 24px; padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .home-tools .chips { flex-wrap: nowrap; }
  .home-tools .chip { white-space: nowrap; }
}

/* ---- Home: full-screen photo with the name over it ---- */
.site-header.over { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.site-header.over .brand-link, .site-header.over .site-nav a { color: #fff; }
.site-header.over .site-nav a:hover { background: rgba(255, 255, 255, .12); }
.site-header.over .menu-btn { color: #fff; background: rgba(0, 0, 0, .18); border-color: rgba(255, 255, 255, .45); }
.photo-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  color: #fff; overflow: hidden; background: #2a5a63; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 30, 38, .45) 0%, rgba(8, 30, 38, .18) 30%, rgba(8, 30, 38, .22) 60%, rgba(8, 30, 38, .55) 100%); }
.hero-inner { position: relative; z-index: 1; }
.hero-foot, .hero-credit, .alert-banner.over { z-index: 1; }
.hero-inner { text-align: center; padding: 96px var(--gutter) 40px; }
.photo-hero h1 { display: grid; justify-items: center; gap: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.lockup { display: inline-flex; align-items: baseline; gap: .08em; line-height: .9; }
.lk-serif { font: 400 clamp(64px, 11vw, 150px) var(--serif); letter-spacing: -.01em; }
.lk-script { font: 400 clamp(60px, 10.5vw, 142px) var(--script); transform: rotate(-6deg) translateY(.06em); margin-left: -.06em; }
.hero-q { font: 500 13px var(--sans); text-transform: uppercase; letter-spacing: .22em; }
.hero-summary { margin: 22px auto 0; max-width: 34em; font-size: 16px; color: rgba(255, 255, 255, .92); min-height: 1.6em; }
.hero-summary a { color: #fff; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 36px; display: grid; justify-items: center; gap: 14px; }
.hero-tag { margin: 0; font: 500 12px var(--sans); text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .9); }
.hero-arrow { display: grid; place-items: center; width: 52px; height: 52px; background: var(--accent); color: #fff; border-radius: 4px; }
.hero-arrow:hover { background: #155a61; }
.hero-credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 11px; color: rgba(255, 255, 255, .75); }
.hero-credit a { color: inherit; }
.alert-banner.over { position: absolute; top: calc(var(--hdr) + 4px); left: 0; right: 0; background: rgba(255, 243, 220, .94); }
.home-lede { margin: 64px 0 40px; }
@media (max-width: 860px) {
  .photo-hero { min-height: 88svh; }
  .hero-inner { padding-top: 120px; }
  .lockup { flex-direction: column; align-items: center; gap: 0; }
  .lk-script { margin: -.1em 0 0; }
  .hero-foot { bottom: 34px; padding: 0 var(--gutter); }
  .hero-tag { font-size: 11px; letter-spacing: .14em; text-align: center; line-height: 1.7; }
  .hero-credit { right: 0; left: 0; bottom: 8px; text-align: center; font-size: 10.5px; }
  .home-lede { margin: 40px 0 28px; }
}

.nowrap { white-space: nowrap; }
