/* =============================================================
   Bluff Beach, Yorke Peninsula, South Australia
   Palette: kelp (deep green) on foam, sandstone cliff, gulf sea-glass,
   buoy yellow reserved for live readings.
   ============================================================= */

:root {
  --kelp: #17332F;
  --kelp-2: #24504A;
  --seaglass: #9CCFC2;
  --seaglass-deep: #2F7666;
  --foam: #EEF4F1;
  --white: #FFFFFF;
  --sandstone: #CFA46A;
  --sand: #E9D3AE;
  --sand-pale: #F6EEDF;
  --buoy: #F4C431;
  --ink: #17332F;
  --muted: #4A625D;
  --line: #C6D8D1;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type scale (perfect fourth from 17px) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.4rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-hero: clamp(3.4rem, 10vw, 7.5rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
}

img,
svg,
iframe { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--seaglass-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--kelp); }

:focus-visible {
  outline: 3px solid var(--kelp);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--kelp);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--foam);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--kelp);
  text-decoration: none;
}

.wordmark__mark { width: 2.25rem; height: 2.25rem; }

.wordmark__words { display: flex; flex-direction: column; line-height: 1; }

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
}

.wordmark__region {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--kelp);
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--seaglass); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--sandstone); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font: 600 1.1rem var(--font-display);
  color: var(--kelp);
  background: transparent;
  border: 2px solid var(--kelp);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 70rem) {
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--foam);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .js .site-header.is-open .site-nav { display: block; }

  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: 0.7rem 0; font-size: 1.35rem; }
}

@media (max-width: 26rem) {
  .wordmark__mark { width: 1.9rem; height: 1.9rem; }
  .wordmark__text { font-size: 1.35rem; }
  .wordmark__region { font-size: 0.7rem; }
  .nav-toggle { padding: 0.5rem 0.6rem; font-size: 1rem; }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.1;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
}

.button--primary { background: var(--kelp); color: var(--white); }
.button--primary:hover { background: var(--kelp-2); color: var(--white); }

.button--quiet { color: var(--kelp); border-color: var(--kelp); }
.button--quiet:hover { background: var(--white); color: var(--kelp); }

.button--light { background: var(--foam); color: var(--kelp); }
.button--light:hover { background: var(--white); color: var(--kelp); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(180deg, #DCEBE5 0%, var(--foam) 70%);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(7rem, 16vw, 12rem);
}

.hero__title {
  font-size: var(--step-hero);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.015em;
  color: var(--kelp);
  max-width: 7ch;
  margin-bottom: 1.5rem;
}

.hero__region {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--seaglass-deep);
}

.hero__intro {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 30ch;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.shoreline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(7rem, 17vw, 13rem);
}

.shoreline svg { width: 100%; height: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .shoreline__swell { animation: swell 9s ease-in-out infinite alternate; }
}

@keyframes swell {
  from { transform: translateX(0); }
  to { transform: translateX(-28px); }
}

@media (max-width: 54rem) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__title { max-width: none; }
}

/* ---------- Conditions board (the one loud thing on the site) ---------- */

.board {
  background: var(--kelp);
  color: var(--foam);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 40px -24px rgba(23, 51, 47, 0.7);
}

.board :focus-visible { outline-color: var(--buoy); }
.board a { color: var(--seaglass); }
.board a:hover { color: var(--white); }

.board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid rgba(156, 207, 194, 0.3);
}

.board__title {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--white);
}

.board__sky {
  margin: 0;
  color: var(--seaglass);
  font-size: var(--step--1);
}

.board__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem 1.25rem;
  margin: 0;
}

.reading dt {
  font-size: var(--step--1);
  color: var(--seaglass);
  margin-bottom: 0.1rem;
}

.reading dd { margin: 0; }

.reading__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--buoy);
  font-variant-numeric: tabular-nums;
}

.reading__unit {
  font-size: 0.42em;
  font-weight: 600;
  margin-left: 0.2em;
  color: var(--sand);
}

.reading__detail {
  display: block;
  min-height: 1.4em;
  margin-top: 0.3rem;
  font-size: var(--step--1);
  color: var(--foam);
}

.wind-arrow {
  display: inline-block;
  color: var(--buoy);
  font-weight: 700;
  transition: transform 0.6s ease;
}

.board__source {
  margin: 1.25rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(156, 207, 194, 0.3);
  font-size: var(--step--1);
  color: var(--seaglass);
}

.board--empty .board__title { margin-bottom: 0.75rem; }
.board__note { color: var(--foam); }

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: linear-gradient(180deg, #DCEBE5 0%, var(--foam) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.75rem, 4vw, 2.5rem);
}

.page-head__title {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
  color: var(--kelp);
  margin-bottom: 0.75rem;
}

.page-head__intro {
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 40ch;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--sand { background: var(--sand-pale); }
.section--deep { background: var(--kelp); color: var(--foam); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.section__title {
  font-size: var(--step-3);
  color: var(--kelp);
}

.section--deep .section__title { color: var(--white); }

.section__more {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.subhead {
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--kelp);
  margin-bottom: 0.75rem;
}

.group + .group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.group__title {
  font-size: var(--step-2);
  color: var(--kelp);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--sandstone);
  display: inline-block;
}

.empty,
.fine-print {
  color: var(--muted);
  max-width: 60ch;
}

.fine-print { margin-top: 2rem; font-size: var(--step--1); }

.sample-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--kelp);
  background: var(--sand);
  border-radius: 999px;
}

/* ---------- Events ---------- */

.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.event {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.event:first-child { border-top: 1px solid var(--line); }

.event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.45rem 0.25rem 0.5rem;
  border: 2px solid var(--kelp);
  border-radius: var(--radius);
  background: var(--white);
  line-height: 1;
  align-self: start;
}

.event__weekday,
.event__month { font-size: 0.8rem; color: var(--muted); }

.event__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--kelp);
  margin-block: 0.15rem;
}

.event__title { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.25rem; }
.event__title a { color: var(--kelp); }
.event__meta { color: var(--muted); font-size: var(--step--1); margin-bottom: 0.5rem; }
.event__text { max-width: 62ch; }

/* ---------- Places ---------- */

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.place__name { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.3rem; }
.place__name a { color: var(--kelp); }
.place__text { max-width: 62ch; }

.place__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 40rem) {
  .place { grid-template-columns: 1fr; }
  .place__meta { flex-direction: row; gap: 1rem; align-items: baseline; text-align: left; }
}

/* ---------- Stays ---------- */

.stay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.stay {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--sandstone);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
}

.stay__type { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.3rem; }
.stay__name { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.6rem; }
.stay__text { margin-bottom: 0.9rem; }

.stay__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.stay__features li {
  font-size: 0.85rem;
  padding: 0.15rem 0.6rem;
  background: var(--foam);
  border-radius: 999px;
}

.stay__foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.stay__price { margin: 0; font-weight: 700; }
.stay__links { margin: 0; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* A featured stay spans the full row and leads the list */
.stay--featured {
  grid-column: 1 / -1;
  border-top-color: var(--kelp);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.stay--featured .stay__name { font-size: var(--step-2); }
.stay--featured .stay__text { font-size: 1.15rem; max-width: 56ch; }
.stay--featured .stay__features li { background: var(--sand-pale); }

@media (min-width: 54rem) {
  .stay--featured { flex-direction: row; align-items: flex-end; gap: 3rem; }
  .stay--featured .stay__body { flex: 1; }
  .stay--featured .stay__foot {
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

/* ---------- History ---------- */

.history-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.history-teaser__text { max-width: 44ch; margin-block: 1rem 1.5rem; color: var(--foam); }

.history-teaser__years {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--sandstone);
}

.history-teaser__years li { padding-block: 0.55rem; color: var(--foam); }

.history-teaser__year {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--sand);
}

@media (max-width: 54rem) {
  .history-teaser { grid-template-columns: 1fr; }
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 9.5rem;
  width: 3px;
  background: var(--sandstone);
}

.timeline__item {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 1.25rem;
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(9.5rem - 5px);
  top: 1.75rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--foam);
  border: 3px solid var(--kelp);
}

.timeline__year {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--kelp);
  text-align: right;
}

.timeline__title { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.4rem; }
.timeline__body p { max-width: 62ch; }

@media (max-width: 40rem) {
  .timeline::before { left: 0.4rem; }
  .timeline__item { grid-template-columns: 1fr; gap: 0.25rem; padding-left: 2rem; }
  .timeline__item::before { left: -0.05rem; top: 1.6rem; }
  .timeline__year { text-align: left; }
}

/* ---------- Live page ---------- */

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

@media (max-width: 54rem) {
  .live-grid { grid-template-columns: 1fr; }
}

.camera__frame { margin: 0; }

.camera__frame img,
.camera__frame iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 0;
  border-radius: 10px;
  background: var(--kelp-2);
}

.camera__frame figcaption { margin-top: 0.5rem; font-size: var(--step--1); color: var(--muted); }

.camera__empty {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.5rem;
  text-align: center;
  border-radius: 10px;
  border: 2px dashed var(--seaglass);
  background: var(--white);
  color: var(--muted);
}

.camera__privacy { margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }

/* 7-day forecast: one row per day */
.forecast {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.forecast__loading { color: var(--muted); padding-block: 1rem; list-style: none; }

.day {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr) auto;
  gap: 0.15rem 1.25rem;
  align-items: baseline;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.day p { margin: 0; }
.day__name { grid-column: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; line-height: 1.1; }
.day__date { grid-column: 1; font-size: var(--step--1); color: var(--muted); }
.day__sky { grid-column: 2; grid-row: 1; font-weight: 700; }
.day__more { grid-column: 2; grid-row: 2; font-size: var(--step--1); color: var(--muted); }

.day__temps {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--kelp);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.day__low { color: var(--muted); font-weight: 600; font-size: 0.65em; margin-left: 0.3rem; }

.day--today .day__name { color: var(--seaglass-deep); }

@media (max-width: 40rem) {
  .day { grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 0.15rem 0.75rem; }
  .day__temps { font-size: 1.6rem; }
}

/* Hour-by-hour strip */
.hourly-scroll {
  overflow-x: auto;
  margin-top: 1.25rem;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.hourly {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.hour {
  flex: 0 0 6.25rem;
  padding: 0.85rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hour p { margin: 0; }
.hour--now { background: var(--kelp); border-color: var(--kelp); color: var(--foam); }
.hour--now .hour__temp { color: var(--buoy); }
.hour--now .hour__time,
.hour--now .hour__rain,
.hour--now .hour__gust { color: var(--seaglass); }

.hour__time { font-size: var(--step--1); color: var(--muted); }

.hour__temp {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  color: var(--kelp);
  font-variant-numeric: tabular-nums;
}

.hour__sky { font-size: 0.85rem; min-height: 2.5em; line-height: 1.25; margin-block: 0.15rem 0.35rem; }
.hour__rain, .hour__gust { font-size: 0.8rem; color: var(--muted); }
.hour__wind { font-size: 0.85rem; font-weight: 700; }
.hour .wind-arrow { color: var(--seaglass-deep); }
.hour--now .wind-arrow { color: var(--buoy); }

/* Forecast + side panels */
.weather-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 54rem) {
  .weather-grid { grid-template-columns: 1fr; }
}

.weather-side { display: grid; gap: 1.25rem; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.panel__title { font-size: var(--step-1); font-weight: 600; color: var(--kelp); margin-bottom: 0.75rem; }

.panel__list { margin: 0; }

.panel__list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.panel__list div:last-child { border-bottom: 0; }
.panel__list dt { color: var(--muted); }
.panel__list dd { margin: 0; font-weight: 700; text-align: right; }
.panel__note { margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }

/* BOM station readings */
.station {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.station div { padding: 0.8rem 0.9rem 0.8rem 0; border-bottom: 1px solid var(--line); }
.station dt { font-size: var(--step--1); color: var(--muted); }

.station dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--kelp);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
  .station { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding-block: 0.65rem; border-bottom: 1px solid var(--line); }
.link-list li:last-child { border-bottom: 0; }
.link-list a { font-weight: 700; display: block; }
.link-list span { font-size: var(--step--1); color: var(--muted); }

.embed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 2rem;
}

/* ---------- Prose (privacy) ---------- */

.prose { max-width: 66ch; }
.prose h2 { font-size: var(--step-2); color: var(--kelp); margin: 2.5rem 0 0.75rem; }
.prose h3 { font-size: var(--step-1); font-weight: 600; color: var(--kelp); margin: 1.75rem 0 0.4rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }

.summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--seaglass-deep);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.prose .summary h2 { margin-top: 0; }
.summary ul { margin: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--kelp);
  color: var(--foam);
  padding-block: 2.5rem;
  font-size: var(--step--1);
}

.site-footer a { color: var(--seaglass); }
.site-footer a:hover { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--buoy); }

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.35rem 2rem;
}

.site-footer__credit {
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(156, 207, 194, 0.25);
  color: var(--seaglass);
}

@media (max-width: 40rem) {
  .site-footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Useful links band (council, fishing rules, tourism) ---------- */

.useful {
  background: var(--sand);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  border-bottom: 1px solid #DCC193;
}

.useful__title {
  font-size: var(--step-2);
  color: var(--kelp);
  margin-bottom: 1rem;
}

.useful__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.9rem;
}

.useful__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.2rem 1rem;
  background: var(--sand-pale);
  border: 2px solid var(--kelp);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.useful__link:hover { background: var(--white); color: var(--ink); }

.useful__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--kelp);
  margin-bottom: 0.4rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--sandstone);
}

.useful__link:hover .useful__name { text-decoration-color: var(--kelp); }
.useful__text { font-size: 0.95rem; line-height: 1.45; margin-bottom: 0.75rem; }
.useful__host { margin-top: auto; font-size: var(--step--1); color: var(--muted); }

/* ---------- Directory teaser on home ---------- */

.section__lede { color: var(--muted); max-width: 60ch; margin-top: 0.75rem; margin-bottom: 1.5rem; }
.section__head + .section__lede { margin-top: -0.75rem; }

.category-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
}

.category-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--seaglass-deep);
  border-radius: var(--radius);
  color: var(--kelp);
  text-decoration: none;
}

.category-tile:hover { border-color: var(--kelp); border-left-color: var(--kelp); color: var(--kelp); }
.category-tile__label { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.category-tile__count { font-size: var(--step--1); color: var(--muted); }

/* ---------- Directory page ---------- */

.dir-filters { display: none; }
.js .dir-filters {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.5rem;
}

.dir-filters__cats { border: 0; margin: 0 0 1.25rem; padding: 0; }
.dir-filters__legend { font-weight: 700; margin-bottom: 0.6rem; padding: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--kelp);
  background: var(--foam);
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.chip:hover { border-color: var(--kelp); }
.chip[aria-pressed="true"] { background: var(--kelp); border-color: var(--kelp); color: var(--white); }

.chip__count {
  font-weight: 400;
  font-size: 0.8rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(23, 51, 47, 0.08);
}

.chip[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, 0.18); }

.dir-filters__row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.25rem 2rem;
  align-items: end;
}

@media (max-width: 48rem) {
  .dir-filters__row { grid-template-columns: 1fr; }
}

.range__label,
.search__label { display: block; font-weight: 700; margin-bottom: 0.5rem; }

.range__label output {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--seaglass-deep);
}

.range__input {
  --fill: 100%;
  width: 100%;
  height: 1.75rem;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.range__input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--seaglass-deep) var(--fill), var(--line) var(--fill));
}

.range__input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
.range__input::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--seaglass-deep); }

.range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.55rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--kelp);
}

.range__input::-moz-range-thumb {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--kelp);
}

.range__scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }

.search__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--foam);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.search__input:focus-visible { border-color: var(--kelp); outline-offset: 1px; }

.dir-filters__status { margin: 1.1rem 0 0; font-size: var(--step--1); color: var(--muted); }

.dir-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.dir-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 2rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.dir-item[hidden] { display: none; }

.dir-item__name { font-size: var(--step-1); font-weight: 600; margin-bottom: 0.15rem; }
.dir-item__name a { color: var(--kelp); }
.dir-item__kinds { font-size: var(--step--1); color: var(--seaglass-deep); font-weight: 700; margin-bottom: 0.35rem; }
.dir-item__text { max-width: 62ch; margin-bottom: 0.35rem; }

.dir-item__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0;
}

.dir-item__where {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.dir-item__town { font-weight: 700; }
.dir-item__km { font-size: var(--step--1); color: var(--muted); }

@media (max-width: 40rem) {
  .dir-item { grid-template-columns: 1fr; }
  .dir-item__where { flex-direction: row; gap: 0.75rem; align-items: baseline; text-align: left; order: -1; }
}

.dir-empty { padding-block: 1.5rem; }
.dir-empty[hidden] { display: none; }

/* ---------- Footer: outside links ---------- */

.site-footer__external {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  font-weight: 700;
}

@media (max-width: 40rem) {
  .chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -0.5);
    padding: 0.15rem calc(var(--gutter) * 0.5) 0.5rem;
    scrollbar-width: none;
  }
  .chip { flex: 0 0 auto; }
}

/* ---------- Boating ---------- */

.page-head--sea { background: linear-gradient(180deg, #CFE6DF 0%, var(--foam) 100%); }

.cam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: 1rem;
}

.cam-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--kelp);
  color: var(--foam);
  border-radius: 10px;
  text-decoration: none;
  overflow: hidden;
}

.cam-card:hover { background: var(--kelp-2); color: var(--foam); }
.cam-card:focus-visible { outline-color: var(--buoy); }

/* A small "recording light" so the cards read as cameras at a glance */
.cam-card__lens {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid var(--seaglass);
  background: radial-gradient(circle at 50% 50%, var(--buoy) 0 28%, transparent 30%);
}

.cam-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.cam-card__area { font-size: 0.95rem; }
.cam-card__km { font-size: var(--step--1); color: var(--seaglass); margin-top: 0.15rem; }

.cam-card__action {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--buoy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ramp-list { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.ramp { padding-block: 1rem; border-bottom: 1px solid var(--line); }

.ramp__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-bottom: 0.3rem;
}

.ramp__name { font-size: var(--step-1); font-weight: 600; color: var(--kelp); }
.ramp__km { margin: 0; font-size: var(--step--1); color: var(--muted); }
.ramp__notes { max-width: 62ch; margin: 0; }

.checklist { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.checklist__list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.checklist__list li {
  counter-increment: step;
  position: relative;
  padding: 0.6rem 0 0.6rem 2.75rem;
  border-bottom: 1px solid var(--line);
}

.checklist__list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
  background: var(--seaglass-deep);
  border-radius: 50%;
}

.checklist__emergency {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border-left: 6px solid #C2412D;
  border-radius: var(--radius);
}

/* Launching at Bluff Beach + ramp ratings */
.launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--seaglass-deep);
  border-radius: 10px;
}

@media (max-width: 54rem) {
  .launch { grid-template-columns: 1fr; }
}

.launch .section__title { margin-bottom: 0.75rem; }
.launch__text { font-size: 1.15rem; max-width: 52ch; }
.launch__tip { color: var(--muted); max-width: 52ch; }

.ratings { margin: 0; }
.ramp .ratings { margin-top: 0.75rem; }

.rating {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.rating:last-child { border-bottom: 0; }
.rating__label { font-size: var(--step--1); color: var(--muted); }

.rating__value {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.rating__dots { display: inline-flex; gap: 0.25rem; flex: 0 0 auto; }

.rating__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  border: 2px solid var(--seaglass-deep);
  background: transparent;
}

.rating__dot--on { background: var(--seaglass-deep); }
.rating__text { font-size: 0.95rem; }

.ramp__where {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--step--1);
  color: var(--muted);
  margin-top: 0.15rem;
}

@media (max-width: 40rem) {
  .rating { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* Property for sale */
.buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: var(--sand-pale);
  border: 1px solid #DCC193;
  border-left: 6px solid var(--sandstone);
  border-radius: var(--radius);
}

.buy__title { font-size: var(--step-2); color: var(--kelp); margin-bottom: 0.35rem; }
.buy__text { max-width: 52ch; margin: 0; }

.buy-line { margin-top: 1.25rem; font-weight: 700; }

/* Boating: Bluff Beach camera beside the ramp cameras */
.cams-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.cams-grid .cam-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 54rem) {
  .cams-grid { grid-template-columns: 1fr; }
}

@media (max-width: 30rem) {
  .cams-grid .cam-list { grid-template-columns: 1fr; }
}

/* Disclaimers */
.site-footer__disclaimer {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(156, 207, 194, 0.25);
  color: var(--foam);
}

.site-footer__disclaimer + .site-footer__credit { border-top: 0; padding-top: 0; }

@media (min-width: 54rem) {
  .site-footer__disclaimer { padding-right: 40%; }
}

.disclaimer-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  font-size: var(--step--1);
  background: var(--sand-pale);
  border: 1px solid #DCC193;
  border-radius: var(--radius);
}

/* "More boat ramps" button under the ramp list */
.more-ramps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--seaglass-deep);
  border-radius: var(--radius);
}

.more-ramps__text { margin: 0; max-width: 40ch; }
