:root {
  --bg-deep: #000000;
  --bg-base: #000000;
  --bg-card: #111111;
  --bg-card-hover: #1a1a1a;
  --bg-card-border: #2a2a2a;
  --bg-inset: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --accent: #facc15;
  --accent-glow: rgba(250, 204, 21, 0.15);
  --accent-dim: rgba(250, 204, 21, 0.06);
  --storm-blue: #2a2a2a;
  --storm-blue-bright: #3a3a3a;
  --signal-red: #ef4444;
  --signal-amber: #f97316;
  --signal-green: #4ade80;
  --font-display: 'Big Shoulders Display', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../img/hero.jpg') center 40% / cover no-repeat;
  filter: brightness(0.3) saturate(0.6);
  opacity: 1;
  z-index: -1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: none;
  pointer-events: none;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 3px solid var(--accent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
}

.site-header__brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.beacon-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.beacon-dot::before,
.beacon-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  transform: translate(-50%, -50%);
  animation: beaconPulse 2.4s ease-out infinite;
}

.beacon-dot::before {
  width: 24px;
  height: 24px;
  animation-delay: 0s;
}

.beacon-dot::after {
  width: 36px;
  height: 36px;
  animation-delay: 0.4s;
}

@keyframes beaconPulse {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}

.site-header__brand-name {
  line-height: 1;
}

.site-header__brand-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.site-header__brand-accent {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-primary);
  text-decoration: none;
  opacity: 0.6;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav__link:hover {
  opacity: 0.85;
}

.site-nav__link--active {
  opacity: 1;
  color: var(--accent);
}

.site-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.alert-bar {
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1260px;
  margin: 0 auto;
}

.alert-bar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 3px;
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: 12px;
  background: rgba(39, 174, 96, 0.08);
  flex-shrink: 0;
  line-height: 1;
}

.alert-bar__dot {
  width: 5px;
  height: 5px;
  background: #27ae60;
  border-radius: 50%;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.alert-bar__badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.65rem;
  color: #27ae60;
  letter-spacing: 0.1em;
  line-height: 1;
}

.alert-bar__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.alert-bar__sep {
  color: #2a2a2a;
}

.alert-bar__date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.hero {
  padding: 44px 0 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__verdict-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

.hero__verdict {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.95;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero__verdict--poor {
  color: var(--signal-red);
}
.hero__verdict--poor .hero__verdict-word {
  color: var(--text-primary);
}
.hero__verdict--marginal {
  color: var(--signal-amber);
}
.hero__verdict--fair {
  color: var(--accent);
}
.hero__verdict--good {
  color: var(--text-primary);
}
.hero__verdict--good .hero__verdict-highlight {
  color: var(--accent);
}
.hero__verdict--epic {
  color: var(--accent);
}

.hero__summary {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 8px;
}

.hero-stat {
  text-align: center;
  padding: 0 24px;
}

.hero-stat__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  display: block;
  line-height: 1.1;
}

.hero-stat__value--accent {
  color: var(--text-primary);
}

.hero-stat__unit {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
}

.hero-stat__label {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
}

.hero-stat__divider {
  width: 1px;
  height: 32px;
  background: rgba(250, 204, 21, 0.25);
  flex-shrink: 0;
}

.meter-bar {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 0;
}

.meter-bar__segments {
  display: flex;
  gap: 3px;
  margin-bottom: 6px;
}

.meter-bar__seg {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #2a2a2a;
  border: 1px solid #2a2a2a;
}

.meter-bar__seg--filled {
  background: var(--accent);
  border-color: var(--accent);
}

.meter-bar__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.meter-bar__label {
  font-family: var(--font-body);
  font-size: 0.55rem;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meter-bar__label--active {
  font-weight: 700;
}

.meter-bar__desc {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.meter-bar__rating {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--accent);
}

.meter-bar__text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #a0a0a0;
}

.hero__glow-tag {
  display: inline-block;
  padding: 11px 28px 9px;
  border-radius: 6px;
  border: 1px solid rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.08);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.1);
  text-align: center;
}

.hero__glow-tag--poor {
  color: #f07a6e;
  border-color: rgba(231, 76, 60, 0.4);
  background: rgba(231, 76, 60, 0.15);
  box-shadow: 0 0 14px rgba(231, 76, 60, 0.12);
}

.hero__glow-tag--marginal {
  color: #e08a4a;
  border-color: rgba(212, 114, 42, 0.4);
  background: rgba(212, 114, 42, 0.15);
  box-shadow: 0 0 14px rgba(212, 114, 42, 0.12);
}

.hero__glow-tag--fair {
  color: var(--accent);
  border-color: rgba(250, 204, 21, 0.5);
  background: rgba(250, 204, 21, 0.08);
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.1);
}

.hero__glow-tag--good {
  color: #4cc98a;
  border-color: rgba(39, 174, 96, 0.4);
  background: rgba(39, 174, 96, 0.15);
  box-shadow: 0 0 14px rgba(39, 174, 96, 0.12);
}

.hero__glow-tag--epic {
  color: #6ad8ff;
  border-color: rgba(62, 207, 255, 0.4);
  background: rgba(62, 207, 255, 0.15);
  box-shadow: 0 0 14px rgba(62, 207, 255, 0.15);
}

.grid-divider {
  height: 1px;
  background: rgba(250, 204, 21, 0.1);
  margin: 0 -24px;
}

.dashboard__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  padding-top: 2px;
  background: var(--accent-dim);
}

.card {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--bg-card-border);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
  animation: cardReveal 0.5s var(--ease-out-expo) both;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.15s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.card:nth-child(4) { animation-delay: 0.25s; }

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--storm-blue-bright);
}

.card--full-width {
  grid-column: 1 / -1;
}

.card__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__label::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

.card--merged {
  grid-column: 1 / -1;
}

.card--merged .card__label::before { background: var(--accent); }
.card--tides .card__label::before { background: var(--accent); }

.merged-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin-bottom: 12px;
}

.merged-panel {
  padding: 16px 12px;
  text-align: center;
  background: rgba(250, 204, 21, 0.03);
  border: 1px solid #222222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.merged-panel--wave {
  background: rgba(250, 204, 21, 0.04);
  border-color: rgba(250, 204, 21, 0.15);
}

.merged-panel--weather .weather-hero__icon {
  margin-bottom: 4px;
}

.merged-swell-pill-wrap {
  text-align: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
}

.merged-swell-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 7px 18px 5px;
  border-radius: 20px;
  line-height: 1;
  color: var(--text-secondary);
  background: rgba(250, 204, 21, 0.04);
  border: 1px solid #2a2a2a;
}

.merged-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-card-border);
  align-items: center;
}

.merged-left {
  padding-right: 20px;
  border-right: 1px solid var(--bg-card-border);
}

.merged-right {
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.merged-metric__dir-text {
  display: none;
}

.merged-metric__icon--mobile {
  display: none;
}

.merged-metrics {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.merged-metric {
  background: rgba(250, 204, 21, 0.03);
  border: 1px solid #2a2a2a;
  padding: 14px 12px;
  flex: 1;
  min-width: 100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.merged-metric--compass {
  gap: 4px;
  padding: 8px 12px;
}

.merged-metric__icon {
  color: var(--accent);
  opacity: 0.5;
  line-height: 0;
  margin-bottom: 6px;
}

.merged-metric__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}

.merged-metric__unit {
  font-size: 1.1rem;
  color: var(--accent);
}

.merged-metric__label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
}

.merged-wind-status {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  display: inline-block;
  padding: 7px 18px 5px;
  border-radius: 20px;
  line-height: 1;
  width: auto;
}

.merged-wind-status-wrap {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bg-card-border);
}

.merged-wind-status--good {
  color: var(--accent);
  background: rgba(250, 204, 21, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.merged-wind-status--bad {
  color: var(--signal-red);
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.3);
}

@media (max-width: 768px) {
  .merged-panels {
    grid-template-columns: 1fr 1fr;
  }

  .merged-panel--wave {
    grid-column: span 2;
  }

  .merged-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .merged-left {
    padding-right: 0;
    border-right: none;
    border-bottom: 1px solid var(--bg-card-border);
    padding-bottom: 16px;
  }

  .merged-right {
    padding-left: 0;
  }

  .merged-metrics {
    flex-direction: column;
    gap: 2px;
  }

  .merged-metric {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 16px;
    text-align: left;
    min-width: unset;
  }

  .merged-metric__icon {
    margin-bottom: 0;
    margin-right: 8px;
    order: 1;
    display: flex;
    align-items: center;
  }

  .merged-metric__label {
    margin-top: 0;
    font-size: 0.7rem;
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .merged-metric__value {
    font-size: 1.6rem;
    order: 3;
    margin-left: auto;
  }

  .merged-metric--compass {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
  }

  .merged-metric--compass .merged-metric__icon--mobile {
    display: flex;
    order: 1;
    margin-right: 0;
  }

  .merged-metric--compass > svg {
    width: 36px;
    height: 36px;
    order: 3;
    margin-left: auto;
  }

  .merged-metric--compass .merged-metric__dir-text {
    display: block;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-primary);
    order: 4;
  }

  .merged-metric--compass .merged-metric__label {
    order: 2;
    flex: 1;
  }
}

.card__error {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 40px 20px;
}

.card__loading {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  display: flex;
  flex-direction: column;
}

.metric__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
}

.metric__value--hero {
  font-size: 3.2rem;
  color: var(--text-primary);
}

.metric__unit {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--accent);
}

.metric__label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.quality-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.quality-bar__segment {
  flex: 1;
  height: 6px;
  border-radius: 2px;
  background: #2a2a2a;
  border: 1px solid var(--storm-blue);
}

.quality-bar__segment--filled {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}

.quality-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.quality-info__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quality-info__reason {
  color: var(--text-muted);
  font-weight: 500;
}

.weather-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bg-card-border);
}

.weather-hero__icon {
  flex-shrink: 0;
  line-height: 0;
}

.weather-hero__icon svg {
  filter: drop-shadow(0 0 6px rgba(244, 208, 63, 0.25));
}

.weather-hero__info {
  flex: 1;
}

.weather-hero__temp {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1;
}

.weather-hero__unit {
  font-size: 1.2rem;
  color: var(--accent);
}

.weather-hero__desc {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.weather-hero__feels {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.weather-metric {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(250, 204, 21, 0.03);
  border: 1px solid #2a2a2a;
  transition: background 0.2s;
}

.weather-metric:hover {
  background: rgba(250, 204, 21, 0.04);
}

.weather-metric__icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.6;
  line-height: 0;
}

.weather-metric__data {
  flex: 1;
}

.weather-metric__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}

.weather-metric__unit {
  font-size: 1.1rem;
  color: var(--accent);
}

.weather-metric__label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 3px;
}

.weather-metric__sun-times {
  display: flex;
  gap: 14px;
}

@media (max-width: 480px) {
  .weather-metrics {
    grid-template-columns: 1fr;
  }

  .weather-hero__temp {
    font-size: 2.2rem;
  }
}

.tide-curve {
  width: 100%;
  height: 120px;
  margin-bottom: 16px;
  position: relative;
  cursor: crosshair;
}

.tide-curve svg {
  width: 100%;
  height: 100%;
}

.tide-hover-tooltip {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  z-index: 10;
}

.tide-hover-tooltip__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #555;
}

.tide-hover-tooltip__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-base);
  box-shadow: 0 0 8px rgba(240, 240, 240, 0.3);
  transform: translate(-50%, -50%);
}

.tide-hover-tooltip__label {
  position: absolute;
  transform: translate(-50%, -100%);
  background: var(--text-primary);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-top: -4px;
}


.tide-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  align-items: stretch;
}

.tide-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tide-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.tide-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  align-self: stretch;
}

.tide-event {
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  background: rgba(250, 204, 21, 0.04);
  border-top: 1px solid var(--bg-card-border);
  border-right: 1px solid var(--bg-card-border);
  border-bottom: 1px solid var(--bg-card-border);
  transition: background 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tide-event:hover {
  background: rgba(250, 204, 21, 0.06);
}

.tide-event--passed {
  opacity: 0.4;
  border-left-color: var(--storm-blue);
}

.tide-event--status {
  border-left-color: var(--accent);
  background: rgba(250, 204, 21, 0.04);
}

.tide-event--range {
  border-left-color: var(--storm-blue-bright);
  background: rgba(74, 109, 168, 0.06);
}

.tide-event__sub {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.tide-event__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tide-event__type {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tide-event--passed .tide-event__type {
  color: var(--text-muted);
}

.tide-event__countdown {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.tide-event__data {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.tide-event__time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1;
}

.tide-event__height {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-secondary);
}

.tide-event__height--high {
  color: var(--accent);
}

.tide-event__height--low {
  color: var(--text-muted);
}

.tide-caption {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

.webcam-placeholder {
  background: var(--bg-inset);
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px dashed var(--storm-blue);
  transition: border-color 0.3s;
}

.webcam-placeholder:hover {
  border-color: var(--storm-blue-bright);
}

.webcam-placeholder__icon {
  font-size: 1.8rem;
  opacity: 0.25;
}

.webcam-placeholder__location {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.webcam-placeholder__link {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.webcam-placeholder__link:hover {
  opacity: 0.8;
}

.forecast-strip {
  margin-top: 2px;
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--bg-card-border);
  padding: 24px 24px 16px;
  animation: cardReveal 0.5s var(--ease-out-expo) 0.3s both;
}

.forecast-strip .card__label::before {
  background: var(--accent);
}

.fc-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--bg-card-border);
}

.fc-legend__label {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-right: 4px;
}

.fc-legend__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.forecast-sparkline-wrap {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -8px 4px;
  padding: 0 8px;
  border-bottom: 1px solid var(--bg-card-border);
}

.forecast-sparkline-wrap::-webkit-scrollbar {
  display: none;
}

.forecast-sparkline {
  display: block;
  min-width: max-content;
}

.forecast-cards-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 204, 21, 0.15) transparent;
  margin: 0 -8px;
  padding: 0 8px;
}

.forecast-cards-scroll::-webkit-scrollbar {
  height: 3px;
}

.forecast-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(250, 204, 21, 0.15);
  border-radius: 2px;
}

.fc-card {
  min-width: 100px;
  width: 100px;
  text-align: center;
  padding: 12px 8px 10px;
  border-right: 1px solid #1e1e1e;
  flex-shrink: 0;
  transition: background 0.2s;
}

.fc-card:last-child {
  border-right: none;
}

.fc-card:hover {
  background: rgba(250, 204, 21, 0.04);
}

.fc-card__time {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.fc-card__icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.fc-card__temp {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.fc-card__wave {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}

.fc-card__wave span {
  font-size: 1.1rem;
  color: var(--accent);
}

.fc-card__swell {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--storm-blue-bright);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fc-card__wind {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 5px;
}

.fc-card__rain-row {
  display: flex;
  align-items: center;
  gap: 3px;
  justify-content: center;
}

.fc-card__rain-bar {
  width: 28px;
  height: 3px;
  background: #2a2a2a;
  border-radius: 2px;
  overflow: hidden;
}

.fc-card__rain-fill {
  height: 100%;
  background: var(--storm-blue-bright);
  border-radius: 2px;
}

.fc-card__rain-val {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fc-divider {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border-left: 2px solid var(--accent);
  margin: 0 2px;
  padding: 0;
}

.fc-divider span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.55rem;
  letter-spacing: 1.5px;
  color: var(--bg-base);
  background: var(--accent);
  padding: 6px 4px;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  transform: rotate(180deg);
}

.affiliate-strip {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  animation: cardReveal 0.5s var(--ease-out-expo) 0.4s both;
}

.affiliate-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
}

.affiliate-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--storm-blue-bright);
  color: var(--accent);
}

.affiliate-btn__icon {
  display: block;
  line-height: 0;
}

.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 32px;
  margin-top: 40px;
  border-top: 1px solid var(--bg-card-border);
}

.site-footer__inner {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.site-footer__tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  gap: 20px;
  margin: 8px 0;
}

.site-footer__link {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.site-footer__link:hover {
  color: var(--accent);
}

.site-footer__attribution {
  font-size: 0.62rem;
  color: var(--text-muted);
  line-height: 1.8;
  opacity: 0.7;
}

.site-footer__copyright {
  font-size: 0.62rem;
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .site-header__inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }

  .site-nav {
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    justify-content: center;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav__link {
    font-size: 0.68rem;
    white-space: nowrap;
  }

  .alert-bar {
    padding: 8px 16px;
    flex-direction: column;
    gap: 6px;
  }

  .alert-bar__sep {
    display: none;
  }

  .dashboard {
    padding: 0 16px 24px;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero__verdict {
    font-size: 2.5rem;
  }

  .hero__stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .hero-stat {
    padding: 0 14px;
  }

  .hero-stat__divider {
    display: none;
  }

  .dashboard__grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .metric-row {
    flex-wrap: wrap;
    gap: 16px;
  }

  .metric__value--hero {
    font-size: 2.5rem;
  }

  .affiliate-strip {
    flex-direction: column;
  }

  .weather-footer {
    flex-direction: column;
    gap: 4px;
  }

  .tide-layout {
    grid-template-columns: 1fr;
  }

  .tide-summary {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .tide-events {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .hero-stat__value {
    font-size: 1.6rem;
  }
}

.events-section {
  padding: 32px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.events-section__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.events-section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.events-section__subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.events-section__see-all {
  font-size: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.events-section__see-all:hover {
  opacity: 0.75;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.event-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--storm-blue-bright);
}

.event-card--featured {
  border-color: var(--accent);
}

.event-card--featured:hover {
  border-color: var(--accent);
}

.event-card__image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.event-card__emoji-bg {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: #1e1e1e;
}

.event-card__featured-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--accent);
  color: var(--bg-base);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-card__body {
  padding: 8px 10px 10px;
}

.event-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.event-card__category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.event-card__town {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.event-card__title {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.event-card__datetime {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.events-group-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  margin-top: 24px;
}

.events-group-label--weekend {
  color: var(--accent);
}

.events-group-label--coming-up {
  color: var(--text-muted);
}

.events-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.events-filter-pill {
  background: #1e1e1e;
  color: var(--text-secondary);
  border: 1px solid var(--bg-card-border);
  border-radius: 2px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.events-filter-pill:hover {
  background: #2a2a2a;
  color: var(--text-primary);
}

.events-filter-pill--active {
  background: var(--accent);
  color: var(--bg-base);
  border-color: var(--accent);
  font-weight: 700;
}

.events-filter-pill--active:hover {
  background: var(--accent);
  color: var(--bg-base);
  opacity: 0.85;
}

.events-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.events-teaser {
  border-top: 1px solid var(--bg-card-border);
  padding: 32px 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events-section {
    padding: 24px 16px;
  }

  .events-teaser {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px 4px;
  background: transparent;
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 16px;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}

.theme-toggle:hover {
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(244, 208, 63, 0.6);
}

.theme-toggle__dark { display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle__beach { display: none; align-items: center; gap: 6px; }
html.beach-mode .theme-toggle__dark { display: none; }
html.beach-mode .theme-toggle__beach { display: inline-flex; }

@media (max-width: 768px) {
  .theme-toggle { padding: 5px 10px 4px; margin-left: 8px; }
}

html.beach-mode {
  --bg-deep: #ffffff;
  --bg-base: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f5;
  --bg-card-border: #e5e5e5;
  --bg-inset: #f8f8f8;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;
  --accent: #facc15;
  --accent-glow: rgba(250, 204, 21, 0.12);
  --accent-dim: rgba(250, 204, 21, 0.06);
  --storm-blue: #e0e0e0;
  --storm-blue-bright: #ccc;
  --signal-red: #dc2626;
  --signal-amber: #ea580c;
  --signal-green: #16a34a;
}

html.beach-mode body::before {
  display: none;
}

html.beach-mode body::after {
  filter: brightness(1.1) saturate(1.2);
  opacity: 0.25;
}

html.beach-mode .card,
html.beach-mode .forecast-strip {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}

html.beach-mode .card:hover {
  background: var(--bg-card-hover);
}

html.beach-mode .hero > * {
  position: relative;
  z-index: 1;
}

html.beach-mode .hero__title {
  color: #000;
  text-shadow: none;
}

html.beach-mode .hero__glow-tag {
  border-color: #ddd;
  background: rgba(250, 204, 21, 0.1);
  color: #000;
}

html.beach-mode .hero__glow-tag--poor {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

html.beach-mode .hero__glow-tag--marginal {
  border-color: rgba(234, 88, 12, 0.3);
  background: rgba(234, 88, 12, 0.06);
  color: #9a3412;
}

html.beach-mode .hero__glow-tag--fair {
  border-color: #ddd;
  background: rgba(250, 204, 21, 0.1);
  color: #000;
}

html.beach-mode .hero__glow-tag--good {
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.06);
  color: #14532d;
}

html.beach-mode .hero__glow-tag--epic {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.06);
  color: #1e3a5f;
}

html.beach-mode .merged-panel {
  background: #f8f8f8;
  border-color: #e5e5e5;
}

html.beach-mode .merged-panel--wave {
  background: rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.2);
}

html.beach-mode .merged-swell-pill {
  background: #f8f8f8;
  border-color: #e5e5e5;
  color: var(--text-secondary);
}

html.beach-mode .merged-metric {
  background: #f8f8f8;
  border-color: #e5e5e5;
}

html.beach-mode .quality-bar__segment {
  background: #e0e0e0;
  border-color: #ddd;
}

html.beach-mode .meter-bar__seg {
  background: #e0e0e0;
  border-color: #ddd;
}

html.beach-mode .tide-event {
  background: #f8f8f8;
  border-color: #e5e5e5;
}

html.beach-mode .tide-event--status,
html.beach-mode .tide-event--range {
  background: rgba(250, 204, 21, 0.06);
  border-color: rgba(250, 204, 21, 0.2);
}

html.beach-mode .fc-card {
  border-right-color: var(--bg-card-border);
}

html.beach-mode .fc-card:hover {
  background: rgba(250, 204, 21, 0.06);
}

html.beach-mode .forecast-sparkline-wrap {
  border-bottom-color: var(--bg-card-border);
}

html.beach-mode .affiliate-btn {
  background: #f8f8f8;
  border-color: #e5e5e5;
  color: var(--text-primary);
}

html.beach-mode .affiliate-btn:hover {
  background: rgba(250, 204, 21, 0.08);
  border-color: rgba(250, 204, 21, 0.4);
}

html.beach-mode .merged-wind-status--good {
  color: #000;
  background: rgba(250, 204, 21, 0.1);
  border-color: rgba(250, 204, 21, 0.4);
}

html.beach-mode .merged-wind-status--bad {
  color: #991b1b;
  background: rgba(220, 38, 38, 0.06);
  border-color: rgba(220, 38, 38, 0.3);
}

html.beach-mode .site-header {
  background: #ffffff;
  border-bottom-color: var(--accent);
}

html.beach-mode .site-header__brand-text {
  color: #000;
}

html.beach-mode .site-header__brand-accent {
  color: #333;
}

html.beach-mode .site-nav__link {
  color: #555;
}

html.beach-mode .site-nav__link--active {
  color: #000;
}

html.beach-mode .theme-toggle {
  border-color: #ddd;
  color: #333;
}

html.beach-mode .theme-toggle:hover {
  border-color: #bbb;
  background: #f5f5f5;
}

html.beach-mode .alert-bar__pill {
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.06);
}

html.beach-mode .footer {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: var(--bg-card-border);
}

html.beach-mode .forecast-legend {
  color: var(--text-secondary);
}

html.beach-mode .forecast-cards-scroll {
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

html.beach-mode .forecast-cards-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}

html.beach-mode .card__label {
  color: var(--text-secondary);
}

html.beach-mode .card__label::before {
  background: var(--accent);
}

body, .card, .merged-metric, .tide-event, .forecast-card, .affiliate-btn, .alert-bar__pill, .hero__glow-tag, .merged-wind-status {
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.tide-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  overflow: hidden;
  margin-top: 16px;
}

.tide-dashboard__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tide-dashboard__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--bg-card-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tide-dashboard__error {
  padding: 32px 24px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tide-dashboard__caption {
  margin-top: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
}

.tide-chart__status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-card-border);
}

.tide-chart__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.tide-chart__curve {
  position: relative;
  padding: 16px 16px 8px;
  cursor: crosshair;
}

.tide-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.tide-chart__tooltip {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tide-chart__tooltip-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--text-primary);
  opacity: 0.3;
  transform: translateX(-50%);
}

.tide-chart__tooltip-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 2px solid var(--bg-card);
  transform: translate(-50%, -50%);
}

.tide-chart__tooltip-label {
  position: absolute;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.tide-chart__events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--bg-card-border);
  border-top: 1px solid var(--bg-card-border);
}

.tide-ev {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
}

.tide-ev--passed {
  opacity: 0.45;
}

.tide-ev__icon {
  font-size: 0.85rem;
  color: var(--accent);
  width: 20px;
  text-align: center;
}

.tide-ev--low .tide-ev__icon {
  color: var(--storm-blue-bright);
}

.tide-ev__info {
  flex: 1;
}

.tide-ev__type {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.tide-ev__time {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.tide-ev__right {
  text-align: right;
}

.tide-ev__height {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent);
}

.tide-ev--low .tide-ev__height {
  color: var(--storm-blue-bright);
}

.tide-ev__countdown {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tide-chart__meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 14px 24px;
  border-top: 1px solid var(--bg-card-border);
}

.tide-chart__meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.tide-chart__meta-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.tide-chart__meta-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

html.beach-mode .tide-dashboard {
  background: #fff;
  border-color: #e5e5e5;
}

html.beach-mode .tide-chart__status {
  border-color: #eee;
}

html.beach-mode .tide-chart__events {
  background: #eee;
  border-color: #eee;
}

html.beach-mode .tide-ev {
  background: #fff;
}

html.beach-mode .tide-ev__height {
  color: #333;
}

html.beach-mode .tide-ev--low .tide-ev__height {
  color: #666;
}

html.beach-mode .tide-chart__meta {
  border-color: #eee;
}

@media (max-width: 500px) {
  .tide-chart__events {
    grid-template-columns: 1fr;
  }
  .tide-chart__meta {
    gap: 20px;
    flex-wrap: wrap;
  }
}

.under-construction-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 12px;
  background: var(--signal-red);
  color: #fff;
  border-radius: 20px;
  margin-bottom: 10px;
}

.seo-fallback,
.hero__seo-fallback {
  text-align: center;
  padding: 48px 24px;
}

.hero__seo-fallback .hero__verdict {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

.hero__seo-fallback .hero__seo-text {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.content-page__article {
  position: relative;
}

.content-page__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-align: center;
}

.content-page__subtitle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 48px;
}

.content-page__section {
  margin-bottom: 48px;
}

.content-page__section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-card-border);
}

.content-page__section h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  margin-top: 20px;
}

.content-page__section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.content-page__section p:last-child {
  margin-bottom: 0;
}

.content-page__section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.content-page__card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 24px;
  position: relative;
}

.content-page__card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin: 0 0 10px 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}

.content-page__card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.content-page__list {
  list-style: none;
  padding: 0;
  margin-top: 12px;
}

.content-page__list li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid #1e1e1e;
}

.content-page__list li:last-child {
  border-bottom: none;
}

.content-page__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.content-page__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--bg-card-border);
}

.content-page__cta-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg-base);
  transition: opacity 0.2s;
}

.content-page__cta-btn:hover {
  opacity: 0.85;
}

.content-page__cta-btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.content-page__cta-btn--secondary:hover {
  background: rgba(250, 204, 21, 0.06);
}

html.beach-mode .content-page__card {
  background: #fff;
  border-color: #e5e5e5;
}

html.beach-mode .content-page__section h2 {
  color: #000;
  border-color: #e5e5e5;
}

html.beach-mode .content-page__card h3 {
  color: #000;
  border-left-color: #facc15;
}

html.beach-mode .content-page__section p,
html.beach-mode .content-page__list li,
html.beach-mode .content-page__card p {
  color: #333;
}

html.beach-mode .content-page__section strong {
  color: #000;
}

html.beach-mode .content-page__cta-btn {
  background: #facc15;
  color: #000;
}

html.beach-mode .content-page__cta-btn--secondary {
  background: transparent;
  color: #000;
  border-color: #ddd;
}

html.beach-mode .content-page__cta-btn--secondary:hover {
  background: rgba(250, 204, 21, 0.08);
}

html.beach-mode .content-page__subtitle {
  color: #333;
}

html.beach-mode .content-page__list li {
  border-color: #e5e5e5;
}

html.beach-mode .content-page__list li::before {
  background: #facc15;
}

html.beach-mode .content-page__cta {
  border-color: #e5e5e5;
}

@media (max-width: 600px) {
  .content-page__grid {
    grid-template-columns: 1fr;
  }
  .content-page__cta {
    flex-direction: column;
    align-items: center;
  }
  .content-page__cta-btn {
    width: 100%;
    text-align: center;
  }
}

.seo-fallback h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.seo-fallback p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
