/* Shared styles for every page. Light and open: pale cool-gray page with white cards, near-black ink, a bright lagoon-cyan accent, rounded photo cards, generous space.
   Type: Montserrat for headings and labels, Kaushan Script only in the home page's name, Public Sans for reading text.
   Safety rule: no green anywhere, and surf numbers stay neutral. Status colors only mark closures and advisories. */
:root {
  --bg: #f2f5f6;   /* a very pale cool gray, so white cards stand off the page */
  --surface: #ffffff;
  --surface-2: #f2f7f8;
  --ink: #0e1d26;
  --ink-2: #44545d;
  --muted: #6a7980;
  --line: rgba(14, 29, 38, 0.09);
  --accent: #0a7a8c;   /* lagoon cyan, dark enough for text and white-on-cyan buttons: links and buttons only, never a status */
  --accent-bright: #19b2c4;  /* the same cyan at full brightness, for large marks and fills, never small text */
  --accent-soft: #e4f6f8;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(14, 29, 38, .04), 0 10px 30px rgba(14, 29, 38, .07);
  --hdr: 68px;
  --gutter: 40px;
  --max: 1120px;
  --display: 'Montserrat', system-ui, sans-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; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }  /* in-page links (like the hero's down arrow) glide instead of jumping */
[id] { scroll-margin-top: calc(var(--hdr) + 8px); }  /* so a jump target isn't hidden under the sticky header */
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.015em; 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(242, 245, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand-link { font: 800 19px var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { padding: 8px 16px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font: 600 14px var(--display); }
.site-nav a:hover { background: var(--accent-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 8px 18px; font: 600 14px var(--display); 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 { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 13px var(--display); }
h1.page-title { margin-top: 16px; 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: 12px 24px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 600 15px var(--display); text-decoration: none; cursor: pointer; }
.btn:hover { border-color: rgba(14, 29, 38, .25); }
.btn.primary:hover { background: #086877; }
.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: 600 14px var(--display); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: rgba(14, 29, 38, .25); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); 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; flex: none; }
.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 { color: var(--st-closed); } .status-advisory .ico { color: var(--st-advisory); }
.status-clear .ico { color: var(--st-clear); } .status-unknown .ico { color: 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; width: 17px; height: 17px; }
.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-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, var(--accent-soft) 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(242,245,246,0) 30%, var(--bg) 100%); }
.hero .wrap { position: relative; z-index: 1; width: 100%; }

/* ---- Footer ---- */
.site-footer { margin-top: 64px; padding: 300px 0 64px; font-size: 14px; color: rgba(255, 255, 255, .8);
  /* aerial beach (flipped): the pale sand meets the page, then the surf, and the words sit on deep water under a dark tint */
  background: linear-gradient(180deg, var(--bg) 0, rgba(242, 245, 246, 0) 90px), linear-gradient(180deg, rgba(6, 22, 30, 0) 150px, rgba(6, 22, 30, .6) 300px, rgba(6, 22, 30, .74) 100%),
    #2e4853 url("/assets/photos/footer-surf.jpg") center -15vw / cover no-repeat; }  /* -15vw skips most of the sand (the photo is 3:4 of the width tall) */
.site-footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
.site-footer strong { color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .92); }
.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; }
.credits-link { padding: 0; border: 0; background: none; font: inherit; color: #fff; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* "Credits" popup (the footer's link, and the 3D view's, open it) */
.credits { width: min(560px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(6, 22, 30, .3); }
.credits::backdrop { background: rgba(6, 22, 30, .5); backdrop-filter: blur(3px); }
.cr-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 24px 12px 28px; background: var(--surface); }
.cr-head h2 { font-size: 22px; }
.cr-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; }
.cr-close:hover { background: var(--accent-soft); }
.cr-close svg { width: 18px; height: 18px; margin: 0; }
.credits ul { margin: 0; padding: 8px 28px 28px; list-style: none; display: grid; gap: 18px; }
.credits li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; font-size: 14px; color: var(--ink-2); }
.credits li img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; }
.credits li b { display: block; color: var(--ink); font-weight: 600; }
.cr-sub { margin: 8px 28px 4px; font: 700 13px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.credits ul.cr-data { gap: 12px; }
.credits ul.cr-data li { grid-template-columns: 1fr; }
.src-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.site-footer .credits a { display: inline; min-height: 0; color: var(--accent); }  /* it sits inside the footer, so undo the footer's white links */
.foot-beaches { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); }
.foot-beaches .wrap { display: block; }
.foot-beaches b { display: block; color: #fff; font-weight: 600; margin-bottom: 6px; }
.foot-beaches a { display: inline-block; margin: 0 16px 6px 0; text-decoration: none; color: rgba(255, 255, 255, .92); }

@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; }
  .site-footer { padding-top: 220px; background-size: auto, auto, auto, 100% auto; background-position: 0 0, 0 0, 0 0, center top;  /* phones: the photo spans the width, then its own water color */
    background-image: linear-gradient(180deg, var(--bg) 0, rgba(242, 245, 246, 0) 60px), linear-gradient(180deg, rgba(6, 22, 30, 0) 90px, rgba(6, 22, 30, .7) 230px, rgba(6, 22, 30, .78) 100%),
      linear-gradient(180deg, rgba(46, 72, 83, 0) calc(75vw - 80px), #2e4853 75vw), url("/assets/photos/footer-surf-900.jpg"); }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { justify-content: flex-start; }
  .site-footer nav a, .foot-beaches a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }  /* only the link lists: links inside sentences stay inline */
  .credits-link { min-height: 44px; }
  .brand-link { display: inline-flex; align-items: center; min-height: 44px; }
  .card-head .seg button { min-height: 44px; }
  .maplibregl-ctrl-group button { width: 40px !important; height: 40px !important; }  /* the map library's zoom buttons, finger-sized */
  .beach-card .status-pill { font-size: 12.5px; gap: 6px; padding: 4px 10px 4px 6px; }  /* compact, so "No closures reported (Oct 27)" fits the narrow card */
  .beach-card .status-pill .ico { width: 16px; height: 16px; }
}

/* ---- Beach page ---- */
.crumbs { padding-top: 40px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink-2); }
.card h3 { font: 700 20px var(--display); margin-bottom: 14px; }
h2.section { margin-bottom: 20px; }
.items { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.hazard { background: #fdf2f0; box-shadow: none; }  /* a soft warning tint instead of an edge stripe */
blockquote { margin: 0 0 16px; padding: 0; font: 700 18px/1.5 var(--display); color: var(--ink); }
blockquote cite { display: block; margin-top: 6px; font: 400 13px var(--sans); color: var(--muted); }
.big-num { font: 700 44px/1 var(--display); margin-bottom: 10px; color: var(--ink); }
.wx-periods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wx-name { font: 700 13px var(--display); color: var(--muted); }
.wx-temp { font: 700 28px var(--display); margin: 4px 0; }
.wx-short { color: var(--ink-2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card .card-head h3 { margin: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.seg button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 13px var(--display); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 29, 38, .14); }
.tide-svg { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.sun { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }
.facts { font-size: 17px; color: var(--ink-2); max-width: 40em; }
.overview { max-width: 40em; }
.overview p { margin: 0 0 16px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.overview .src { margin: 0 0 28px; }
.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(--accent-soft); 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: 12px 14px; border: 1px solid rgba(14, 29, 38, .18); border-radius: 12px; background: #fff; color: var(--ink); }
select { appearance: none; padding-right: 40px; cursor: pointer;  /* our own chevron, set in from the edge (the browser's sits tight against it) */
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%230e1d26'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
.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: 16px 20px; font: 700 12px var(--display); letter-spacing: .06em; 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: 700 18px var(--display); 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: 700 12px var(--display); 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: 700 17px var(--display); }

/* ---- 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 { position: relative; 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; }
  .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 .site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .2); }
.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, .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); }
/* Stacked lockup: a small, quiet, widely spaced "KAUAʻI" over a big script "Beach Day", so the two read as different voices. */
.lockup { display: inline-flex; flex-direction: column; align-items: center; line-height: .9; }
.lk-serif { display: inline-flex; align-items: center; gap: .7em; font: 700 clamp(26px, 3.4vw, 44px) var(--sans); text-transform: uppercase;
  letter-spacing: .42em; margin-right: -.42em; }  /* the negative margin cancels the spacing after the last letter, so it centers */
.lk-serif::before, .lk-serif::after { content: ""; width: 1.6em; height: 2px; background: currentColor; opacity: .7; }
.lk-serif::after { margin-left: -.42em; }
.lk-script { font: 400 clamp(58px, 18vw, 180px) var(--script); white-space: nowrap; transform: rotate(-5deg); margin-top: .02em; }
.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: 56px; height: 56px; background: var(--accent); color: #fff; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.hero-arrow:hover { background: #086877; }
.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; }
  .hero-foot { bottom: 34px; padding: 0 var(--gutter); }
  .hero-tag { font-size: 12px; letter-spacing: .14em; text-align: center; line-height: 1.7; }
  .home-lede { margin: 40px 0 28px; }
}

.nowrap { white-space: nowrap; }

/* ---- Beach page: photo header, Today card, two-column sections ---- */
.beach-hero { position: relative; height: 52vh; min-height: 360px; max-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #2a5a63; }
.bh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beach-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 30, 38, .45) 0%, rgba(8, 30, 38, .05) 35%, rgba(8, 30, 38, .15) 60%, rgba(8, 30, 38, .65) 100%); }
.bh-text { position: relative; z-index: 1; width: 100%; padding-bottom: 88px; }
.beach-hero .crumbs { padding: 0 0 10px; color: rgba(255, 255, 255, .85); }
.beach-hero .crumbs a { color: #fff; }
.beach-hero h1 { font-size: clamp(40px, 6vw, 72px); text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.bh-sub { margin: 8px 0 0; font: 500 13px var(--sans); text-transform: uppercase; letter-spacing: .18em; color: rgba(255, 255, 255, .9); }
/* Share: phones only (shown in the 860px block below). A translucent white pill beside the breadcrumb, readable over any photo. */
.bh-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.share-btn { display: none; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 18px 0 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(8, 30, 38, .35); color: #fff; font: 600 15px var(--display); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.share-btn .hi { width: 18px; height: 18px; margin: 0; color: currentColor; }
.share-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.share-url { display: block; width: 100%; margin-top: 12px; padding: 10px 14px; border: 0; border-radius: 12px; font: 14px var(--sans); color: var(--ink); background: #fff; }
.share-url[hidden] { display: none; }
.share-msg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.beach-main { max-width: 1040px; }
.today { position: relative; z-index: 2; margin-top: -56px; padding: 28px 32px; }
/* "At a glance" tiles: one reading each. Four across; "Is it open?" takes the full first row, or half of it when a Weather Service alert takes the other half. */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { display: grid; align-content: start; gap: 6px; min-width: 0; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); }
.tile p { margin: 0; }
.tl { display: flex; align-items: center; gap: 8px; font: 600 13px var(--display); color: var(--muted); }
.ti { width: 18px; height: 18px; flex: none; color: var(--accent); }
.tv { font: 700 24px/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.tv-unit { margin-left: 3px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tv-sep { margin: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ts { font-size: 13px; line-height: 1.45; color: var(--muted); }
#t-weather .tv { font-size: 18px; line-height: 1.3; }  /* forecasts run long ("Partly Sunny then Isolated Showers") */
.t-open, .t-alert, .t-sun { grid-column: span 2; }
.tiles:has(#t-alert[hidden]) .t-open { grid-column: span 4; }
.t-open .status-pill { font-size: 16px; padding: 8px 16px 8px 10px; }
.t-alert { background: var(--st-advisory-bg); }
.t-alert .tl, .t-alert .ti { color: var(--st-advisory); }
.t-none .tv { color: var(--muted); }
.today > .src { margin-top: 18px; }
.beach-main > .hazard { margin-top: 24px; }
.beach-main .section { margin-top: 72px; }
.beach-main .section > h2 { margin-bottom: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.grid2 + .card { margin-top: 24px; }
.grid2 .card + .card { margin-top: 0; }
.grid2 .wx-periods { grid-template-columns: 1fr; gap: 14px; }
.grid2 .wx-periods > div { display: grid; grid-template-columns: 110px auto 1fr; gap: 2px 12px; align-items: baseline; }
.grid2 .wx-periods .wx-temp { font-size: 22px; margin: 0; }
.grid2 .wx-periods .note { grid-column: 1 / -1; }
.park .map-box { height: 100%; min-height: 360px; margin: 0; }
.park .card h3:not(:first-child) { margin-top: 22px; }
.end { align-items: start; }
.end > div:last-child h2 { margin-bottom: 14px; }
.end .report { margin-top: 0; }  /* side by side, the report card's title and "Sources" share one line */
@media (min-width: 861px) { .end > div:last-child { padding-top: 32px; } }
.beach-main .honu { margin-top: 72px; }

@media (max-width: 860px) {
  .beach-hero { height: 250px; min-height: 0; }
  .bh-text { padding-bottom: 52px; }
  .beach-hero h1 { font-size: 38px; }
  .bh-sub { font-size: 12px; letter-spacing: .14em; }
  .share-btn { display: inline-flex; }
  .beach-hero { height: auto; min-height: 250px; padding-top: calc(var(--hdr) + 16px); }  /* a two-line name grows the photo instead of pushing Share under the header */
  .beach-hero .bh-top .crumbs { padding: 0; }
  .bh-top { margin-bottom: 8px; }
  .today { margin-top: -32px; padding: 22px 20px; }
  .grid2 { grid-template-columns: 1fr; gap: 18px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tiles:has(#t-alert[hidden]) .t-open { grid-column: span 2; }
  .tile { padding: 14px 16px; }
  .tv { font-size: 21px; }
  .beach-main .section, .beach-main .honu { margin-top: 56px; }
  .park .map-box { min-height: 300px; }
}
.beach-hero .bh-text { max-width: 1040px; }
.beach-main .tide-svg { display: block; }

/* ---- Home: beach cards by shore ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.beach-card { position: relative; isolation: isolate; min-height: 340px; background: #2a5a63; color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; transition: transform .2s ease, box-shadow .2s ease; }
.beach-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(14, 29, 38, .06), 0 18px 40px rgba(14, 29, 38, .16); }
/* Desktop: the photo fills the card and the words sit on it, over a soft dark fade so they stay readable. */
.bc-img { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.bc-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 22, 30, 0) 25%, rgba(6, 22, 30, .45) 55%, rgba(6, 22, 30, .82) 100%); }
.bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.beach-card:hover .bc-img img { transform: scale(1.04); }
.bc-body { padding: 20px 22px 22px; display: grid; gap: 10px; align-content: start; }
.bc-body h3 { font: 700 22px var(--display); text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.bc-body h3 a { color: #fff; text-decoration: none; }
.bc-body h3 a::after { content: ""; position: absolute; inset: 0; }  /* the whole card opens the beach */
.bc-body h3 a:focus-visible { outline: none; } .beach-card:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.bc-kind { margin: -6px 0 0; font-size: 13px; color: rgba(255, 255, 255, .8); }
.bc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.beach-card .guard, .beach-card .guard.none { color: rgba(255, 255, 255, .92); }
.bc-note { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .88); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bc-note:empty { display: none; }
.board-group h2 { margin-bottom: 18px; }
.board-group + .board-group { margin-top: 56px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  /* Phones: compact rows, square photo on the left, so the whole list stays easy to scan. */
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .beach-card { flex-direction: row; align-items: stretch; justify-content: flex-start; min-height: 0; background: var(--surface); color: var(--ink); }
  .bc-img { position: relative; z-index: auto; width: 96px; flex: none; }
  .bc-img::after { display: none; }
  .bc-body h3 { text-shadow: none; }
  .bc-body h3 a { color: var(--ink); }
  .bc-kind { color: var(--muted); }
  .beach-card .guard { color: var(--ink-2); } .beach-card .guard.none { color: var(--muted); }
  .bc-note { color: var(--ink-2); }
  .bc-body { padding: 14px 12px 14px 14px; gap: 8px; }
  .bc-body h3 { font-size: 20px; }
  .beach-card:hover { transform: none; }
}

/* ---- Icons (Phosphor, inline SVG) ---- */
.hi { width: 1em; height: 1em; flex: none; vertical-align: -0.13em; margin-right: .42em; color: var(--accent); }
.hazard .hi { color: var(--st-closed); }
.ci, .bi { width: 17px; height: 17px; flex: none; }
.ii { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.sun .hi { vertical-align: -0.18em; }

/* ---- Home: island map ---- */
/* Map on the left, the picked beach on the right (pages.js). On phones the panel sits under the map. */
.island-map { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 28px; align-items: start; margin: 0 0 64px; }
.im-frame { position: relative; aspect-ratio: 1000 / 900; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  background: radial-gradient(ellipse at 52% 55%, #e4f0ee 0%, #d5e8e6 55%, #c6dfdd 100%); }
.im-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.im-ripple path { fill: none; stroke: #fff; stroke-linejoin: round; }
.im-ripple path:nth-child(1) { stroke-opacity: .18; } .im-ripple path:nth-child(2) { stroke-opacity: .26; } .im-ripple path:nth-child(3) { stroke-opacity: .4; }
.im-sand { fill: #f1e4c4; stroke: #f1e4c4; stroke-width: 12; stroke-linejoin: round; }
.im-compass circle { fill: rgba(255, 255, 255, .55); } .im-compass path { fill: var(--ink); } .im-compass text { font: 600 15px var(--sans); fill: var(--ink); }
.im-pin, .im-cluster { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); border: 2.5px solid #fff; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(14, 29, 38, .3); cursor: pointer; padding: 0; transition: transform .15s ease, box-shadow .15s ease; }
.im-pin { width: 15px; height: 15px; border-width: 2px; background: var(--st-unknown); }
/* Touch screens: each map dot answers taps in a finger-sized circle around it (the dot itself stays small). */
@media (pointer: coarse) { .im-pin::before, .map-pin::before { content: ""; position: absolute; inset: -12px; border-radius: 50%; } }
.im-pin.st-closed { background: var(--st-closed); } .im-pin.st-advisory { background: var(--st-advisory); } .im-pin.st-clear { background: var(--st-clear); }
.im-pin:hover, .im-pin:focus-visible { transform: translate(-50%, -50%) scale(1.25); z-index: 3; }
.im-pin.on { transform: translate(-50%, -50%) scale(1.35); box-shadow: 0 0 0 5px rgba(255, 255, 255, .55), 0 2px 10px rgba(14, 29, 38, .35); z-index: 2; }
.im-pin[hidden], .im-cluster[hidden] { display: none; }
.im-cluster { width: 42px; height: 42px; background: var(--accent); color: #fff; font: 700 15px var(--sans); }
.im-cluster:hover, .im-cluster:focus-visible { transform: translate(-50%, -50%) scale(1.1); }
.im-tip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%); padding: 5px 11px; border-radius: 999px; background: var(--ink);
  color: #fff; font: 600 12px/1.3 var(--sans); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.im-pin[data-edge="l"] .im-tip { left: -6px; transform: none; } .im-pin[data-edge="r"] .im-tip { left: auto; right: -6px; transform: none; }
.im-pin:hover .im-tip, .im-pin:focus-visible .im-tip, .im-cluster:hover .im-tip, .im-cluster:focus-visible .im-tip { opacity: 1; }
.im-back { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px;
  background: var(--surface); box-shadow: 0 2px 10px rgba(14, 29, 38, .14); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; }
.im-back svg { width: 16px; height: 16px; flex: none; position: static; }
.im-back[hidden] { display: none; }
/* Once the colored street map loads (pages.js), it covers the drawing and carries the same buttons as map markers. */
.im-frame .im-gl { position: absolute; inset: 0; visibility: hidden; }  /* beats the map library's own "position: relative" */
.im-frame.gl .im-gl { visibility: visible; } .im-frame.gl > svg { visibility: hidden; }
.im-frame.gl .im-back { z-index: 3; }
.im-mk[hidden] { display: none; }
.im-mk .im-pin, .im-mk .im-cluster { position: relative; left: auto; top: auto; display: block; transform: none; }
.im-mk .im-pin:hover, .im-mk .im-pin:focus-visible { transform: scale(1.25); }
.im-mk .im-pin.on { transform: scale(1.35); }
.im-mk .im-cluster:hover, .im-mk .im-cluster:focus-visible { transform: scale(1.1); }
.im-mk:hover, .im-mk:focus-within { z-index: 3; }
.im-frame .maplibregl-ctrl-group { border-radius: 10px; box-shadow: 0 2px 10px rgba(14, 29, 38, .14); }
.im-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; background: var(--st-unknown); }
.im-dot.st-closed { background: var(--st-closed); } .im-dot.st-advisory { background: var(--st-advisory); } .im-dot.st-clear { background: var(--st-clear); }
.im-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.im-key span { display: inline-flex; align-items: center; gap: 7px; }
.im-panel { display: flex; flex-direction: column; min-height: 420px; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.im-intro { padding: 36px 32px 24px; }
.im-intro h2 { font-size: 30px; margin: 8px 0 14px; }
.im-intro p:last-of-type { margin: 0; color: var(--ink-2); font-size: 15px; }
.im-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.im-list button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: 600 13px var(--display); color: var(--ink); cursor: pointer; }
.im-list button:hover { border-color: var(--accent); color: var(--accent); }
.im-eyebrow { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); font: 600 12px var(--display); color: var(--accent); }
.im-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.im-card-body { padding: 24px 28px 8px; }
.im-all { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px -4px; padding: 4px 8px 4px 4px; border: 0; border-radius: 999px;
  background: none; font: 600 13px var(--sans); color: var(--accent); cursor: pointer; }
.im-all:hover { background: var(--accent-soft); }
.im-all svg { width: 15px; height: 15px; margin: 0; }
.im-card h3 { font-size: 28px; margin: 6px 0 16px; }
.im-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.im-note:empty { display: none; }
.im-park { display: flex; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.im-park svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--muted); }
.im-more { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.im-more svg { width: 16px; height: 16px; }
.im-step { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--line); }
.im-step button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
  color: var(--ink); cursor: pointer; }
.im-step button svg { width: 18px; height: 18px; margin: 0; }  /* the shared icon style's right margin would push it off-center */
.im-count { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .island-map { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .im-panel { min-height: 0; }
  .im-intro { padding: 24px 22px 18px; }
  .im-card-body { padding: 20px 22px 6px; }
}

/* ---- Beach page: 3D view (beach3d.js) ---- */
.b3d { position: relative; height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(180deg, #dcecef 0%, #eef4f2 55%, #f4efe4 100%); }
.b3d canvas { display: block; }
.b3d-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 14px; color: var(--muted); }
.b3d-zoom { position: absolute; right: 16px; top: 16px; display: grid; gap: 6px; z-index: 2; }
.b3d-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--ink); font: 500 20px var(--sans); cursor: pointer; }
.b3d-tip { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center;
  background: rgba(6, 22, 30, .45); color: #fff; font: 600 17px var(--display); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.b3d-tip.on { opacity: 1; }
.b3d-section .src { margin-top: 12px; }
@media (max-width: 760px) { .b3d { height: 400px; } .b3d-zoom { display: none; } }
