:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: rgba(125, 216, 247, 0.14);
  --panel: rgba(255, 255, 255, 0.9);
  --line: rgba(10, 10, 10, 0.1);
  --text: #0a0a0a;
  --text-inverse: #ffffff;
  --muted: rgba(10, 10, 10, 0.6);
  --primary: #13baee;
  --accent: #ee13ba;
  --secondary: #7dd8f7;
  --coral: #ee13ba;
  --teal: #ee13ba;
  --dark-cyan: #0d7a8c;
  --navy: #0a2540;
  --glass: rgba(255, 255, 255, 0.82);
  --blur: blur(18px);
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: var(--text);
}

.shell {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 18px 24px;
}

.preview-banner {
  margin: 0;
  padding: 8px 18px;
  border: 0;
  border-bottom: 1px solid rgba(19, 186, 238, 0.28);
  border-radius: 0;
  background: rgba(125, 216, 247, 0.16);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.preview-banner a {
  color: var(--dark-cyan);
  font-weight: 900;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.site-chrome-bar {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 44px;
  width: auto;
  padding: 0;
  background: transparent;
}

.site-wordmark {
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-nav .site-nav-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  vertical-align: middle;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--dark-cyan);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home-shell {
  min-height: 100vh;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 12px;
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.home-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.home-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.home-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.home-nav a:hover,
.home-nav a:focus-visible,
.home-nav a[aria-current="page"] {
  color: #020617;
  outline: none;
}

.home-nav a:hover::after,
.home-nav a:focus-visible::after,
.home-nav a[aria-current="page"]::after {
  opacity: 1;
  transform: translateY(0);
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(440px, 1.15fr);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid rgba(13, 122, 140, 0.12);
  border-radius: 14px;
  padding: clamp(34px, 5vw, 58px);
  min-height: 360px;
  background:
    radial-gradient(circle at 92% 88%, rgba(19, 186, 238, 0.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(238, 19, 186, 0.16), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #eff8ff 100%);
  box-shadow: 0 14px 44px rgba(19, 186, 238, 0.08);
}

.home-hero::before,
.home-hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(19, 186, 238, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::before {
  right: -6%;
  bottom: -44%;
  width: 58%;
  aspect-ratio: 1;
}

.home-hero::after {
  right: -12%;
  bottom: -62%;
  width: 74%;
  aspect-ratio: 1;
  background: rgba(125, 216, 247, 0.12);
}

.home-hero-copy,
.home-hero-preview {
  position: relative;
  z-index: 1;
}

.home-hero-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.45rem, 5.7vw, 4.9rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.home-hero-copy h1 span {
  display: block;
}

.hero-accent-line {
  width: 96px;
  height: 7px;
  margin: 28px 0 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.home-hero-copy p {
  max-width: 360px;
  margin: 0;
  color: rgba(10, 37, 64, 0.76);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.55;
}

.home-hero-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.hero-preview-card {
  min-width: 0;
}

.hero-live-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(125, 216, 247, 0.55);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 58px rgba(10, 37, 64, 0.14);
  backdrop-filter: blur(16px);
  color: inherit;
  text-decoration: none;
}

.hero-live-media {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: #071b2c;
}

.hero-live-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-live-media span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.72);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
}

.hero-live-body {
  padding: 15px 18px 16px;
}

.hero-live-topline,
.hero-live-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-live-topline span,
.hero-live-topline em {
  color: var(--primary);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-live-topline em {
  color: rgba(10, 37, 64, 0.42);
}

.hero-live-main {
  margin-top: 8px;
}

.hero-live-main h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.02;
}

.hero-live-main p {
  margin: 5px 0 0;
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-live-grade {
  flex: 0 0 auto;
  text-align: right;
}

.hero-live-grade b {
  display: block;
  color: var(--grade-color, var(--primary));
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 0.9;
}

.hero-live-grade span {
  display: block;
  margin-top: 5px;
  color: rgba(10, 10, 10, 0.62);
  font-size: 1rem;
  font-weight: 950;
}

.hero-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.hero-live-metrics div {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  padding-top: 8px;
}

.hero-live-metrics span {
  display: block;
  color: rgba(10, 10, 10, 0.56);
  font-size: 0.58rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-live-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.72rem;
  line-height: 1.15;
}

.hero-forecast-preview {
  margin-top: 15px;
}

.hero-forecast-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-forecast-kicker strong {
  color: var(--primary);
  font-size: 0.56rem;
}

.hero-forecast-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.hero-forecast-day {
  min-width: 0;
  border: 1px solid rgba(125, 216, 247, 0.55);
  border-radius: 7px;
  padding: 8px 7px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--grade-color, var(--primary)) 10%, white), #fff 78%);
}

.hero-forecast-day span,
.hero-forecast-day em {
  display: block;
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-forecast-day strong {
  display: block;
  color: var(--grade-color, var(--primary));
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 0.95;
  margin: 4px 0 3px;
}

.hero-forecast-day em {
  color: var(--navy);
  font-size: 0.56rem;
}

.hero-mobile-forecast-card,
.hero-mobile-outlook {
  display: none;
}

.hero-live-body .spot-gradient {
  margin: 15px 0 0;
}

.hero-nav {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(19, 186, 238, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(10, 37, 64, 0.1);
}

.hero-nav:hover {
  border-color: rgba(238, 19, 186, 0.42);
  color: var(--accent);
}

.home-map-card {
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  transform: none;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
}

.map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
}

.map-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1;
}

.map-header span {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-frame {
  position: relative;
}

.conditions-map {
  width: 100%;
  height: min(68vh, 680px);
  min-height: 560px;
  background:
    linear-gradient(135deg, rgba(19, 186, 238, 0.16), rgba(238, 19, 186, 0.08)),
    #f4fbff;
}

.wind-gradient-canvas,
.visibility-gradient-canvas,
.wind-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.wind-gradient-canvas {
  z-index: 10;
}

.visibility-gradient-canvas {
  z-index: 10;
}

.wind-particle-canvas {
  z-index: 20;
}

.wind-gradient-canvas.is-hidden,
.visibility-gradient-canvas.is-hidden,
.wind-particle-canvas.is-hidden {
  display: none;
}

.map-frame.is-map-moving .wind-gradient-canvas,
.map-frame.is-map-moving .visibility-gradient-canvas,
.map-frame.is-map-moving .wind-particle-canvas,
.spot-map-graphic.is-map-moving .wind-gradient-canvas,
.spot-map-graphic.is-map-moving .visibility-gradient-canvas,
.spot-map-graphic.is-map-moving .wind-particle-canvas {
  opacity: 0;
}

.map-frame.is-depth-mode .wind-gradient-canvas,
.map-frame.is-depth-mode .wind-particle-canvas,
.map-frame.is-depth-mode .spot-wind-legend,
.map-frame.is-depth-mode .spot-wind-timeline,
.map-frame.is-depth-mode .spot-wind-date-bubble,
.map-frame.is-depth-mode .map-wind-probe-pin {
  display: none;
}

.conditions-map.is-unavailable {
  display: grid;
  place-items: center;
}

.conditions-map.is-unavailable::before {
  content: "Map ready";
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 900;
}

.map-layer-control {
  position: absolute;
  z-index: 40;
  top: 12px;
  right: 64px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(125, 216, 247, 0.36);
  border-radius: 999px;
  padding: 8px 10px 8px 12px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-layer-control span {
  color: rgba(216, 245, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-layer-control select {
  appearance: none;
  min-width: 96px;
  border: 0;
  border-radius: 999px;
  padding: 7px 30px 7px 12px;
  background:
    linear-gradient(45deg, transparent 50%, #7dd8f7 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #7dd8f7 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(238, 19, 186, 0.22), rgba(19, 186, 238, 0.2));
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-layer-control select option {
  background: #ffffff;
  color: var(--navy);
  font-weight: 850;
}

.wind-legend {
  position: absolute;
  z-index: 40;
  left: 12px;
  bottom: 12px;
  width: min(190px, calc(100% - 24px));
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 12px;
  padding: 10px 12px 9px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.wind-legend.is-hidden {
  display: none;
}

.wind-legend span {
  display: block;
  margin: 0 0 7px;
  color: rgba(216, 245, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wind-legend-gradient {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0075df 0%, #13baee 25%, #a64bd8 50%, #ee13ba 100%);
}

.wind-legend-labels {
  position: relative;
  margin-top: 6px;
  height: 0.82rem;
  color: rgba(216, 245, 255, 0.76);
  font-size: 0.68rem;
}

.wind-legend-labels b {
  position: absolute;
  transform: translateX(-50%);
}

.wind-legend-labels b:nth-child(1) {
  left: 0;
  transform: none;
}

.wind-legend-labels b:nth-child(2) {
  left: 25%;
}

.wind-legend-labels b:nth-child(3) {
  left: 50%;
}

.wind-legend-labels b:nth-child(4) {
  left: 100%;
  transform: translateX(-100%);
}

.map-layer-toggle {
  position: absolute;
  z-index: 48;
  top: 12px;
  right: 68px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 999px;
  padding: 4px;
  background: rgba(5, 22, 37, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.map-layer-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: rgba(216, 245, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.map-layer-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, #13baee, #ee13ba);
  color: #fff;
}

.depth-legend {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  display: none;
  width: min(230px, calc(100% - 24px));
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 12px;
  padding: 10px 12px 9px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-frame.is-depth-mode .depth-legend {
  display: block;
}

.depth-legend span {
  display: block;
  margin: 0 0 7px;
  color: rgba(216, 245, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.depth-legend-gradient {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9f7ff 0%, #38bdf8 28%, #2563eb 58%, #161b54 100%);
}

.depth-legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: rgba(216, 245, 255, 0.76);
  font-size: 0.68rem;
}

.visibility-legend {
  width: min(220px, calc(100% - 24px));
}

.visibility-legend-gradient {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7b5d36 0%, #49a96d 33%, #18b9c5 66%, #1677ff 100%);
}

.visibility-legend-labels {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: rgba(216, 245, 255, 0.76);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.visibility-legend small {
  display: block;
  margin-top: 7px;
  color: rgba(216, 245, 255, 0.62);
  font-size: 0.58rem;
  font-weight: 800;
}

.wind-timeline {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  left: min(300px, 34%);
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.wind-timeline.is-hidden {
  display: none;
}

.wind-timeline button[hidden] {
  display: none;
}

.wind-timeline button.is-unavailable {
  visibility: hidden;
  pointer-events: none;
}

.wind-time-copy {
  display: none !important;
}

.wind-day-label {
  display: none;
  min-width: 82px;
  color: rgba(216, 245, 255, 0.88);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-wind-timeline {
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
}

.home-wind-timeline .wind-day-label {
  display: block;
}

.wind-timeline button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 216, 247, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(238, 19, 186, 0.22), rgba(19, 186, 238, 0.28));
  color: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.wind-next-day,
.spot-wind-next-day {
  font-size: 1.35rem;
}

.wind-timeline input[type="range"] {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.home-wind-timeline input[type="range"] {
  grid-column: 3;
}

.wind-time-ticks {
  grid-column: 2;
  position: relative;
  display: block;
  margin-top: -5px;
  height: 0.82rem;
  color: rgba(216, 245, 255, 0.66);
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.home-wind-timeline .wind-time-ticks {
  grid-column: 3;
}

.wind-time-ticks span {
  position: absolute;
  display: none;
  transform: translateX(-50%);
  white-space: nowrap;
}

.wind-time-ticks span.is-visible {
  display: block;
}

.map-status {
  margin: 0;
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.map-spot-pin {
  position: relative;
  display: block;
  width: 10px;
  height: 13px;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.map-spot-pin::after {
  display: none;
}

.map-frame .maplibregl-marker,
.spot-region-map .maplibregl-marker {
  overflow: visible;
  z-index: 35;
}

.map-frame .maplibregl-popup,
.spot-region-map .maplibregl-popup {
  z-index: 45;
}

.map-spot-pin-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  display: block;
  max-width: 92px;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(238, 19, 186, 0.96), rgba(19, 186, 238, 0.96));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.map-spot-pin-needle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  pointer-events: none;
}

.map-spot-pin-needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, #ee13ba, #13baee);
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
}

.map-spot-pin-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #13baee;
  transform: translateX(-50%);
}

.map-wind-probe-pin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(5, 22, 37, 0.9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  will-change: transform;
}

.map-wind-probe-pin::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  background: #13baee;
  transform: rotate(45deg);
}

.map-wind-probe-pin span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.maplibregl-popup-content {
  border: 1px solid rgba(19, 186, 238, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: 0 14px 30px rgba(6, 20, 46, 0.18);
}

.maplibregl-popup-content strong,
.maplibregl-popup-content span {
  display: block;
}

.maplibregl-popup-content strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.maplibregl-popup-content span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.wind-probe-popup .maplibregl-popup-content {
  border-color: rgba(125, 216, 247, 0.38);
  background: rgba(5, 22, 37, 0.94);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
}

.wind-probe-popup .maplibregl-popup-tip {
  border-top-color: rgba(5, 22, 37, 0.94);
  border-bottom-color: rgba(5, 22, 37, 0.94);
}

.wind-probe-card {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.wind-probe-card span {
  margin: 0;
  color: #7dd8f7;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wind-probe-card strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
}

.wind-probe-card strong em {
  color: rgba(216, 245, 255, 0.74);
  font-size: 0.8rem;
  font-style: normal;
}

.wind-probe-card small {
  color: rgba(216, 245, 255, 0.68);
  font-size: 0.66rem;
  font-weight: 800;
}

.spot-map-card {
  overflow: hidden;
}

.spot-map-card .map-header {
  padding: 0 0 14px;
  border-bottom: 0;
}

.spot-region-map {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(19, 186, 238, 0.16), rgba(238, 19, 186, 0.08)),
    #f4fbff;
}

.spot-map-frame {
  overflow: hidden;
  border-radius: 8px;
}

.spot-map-frame .wind-legend {
  bottom: 12px;
  width: min(230px, calc(100% - 24px));
}

.spot-map-frame .wind-timeline {
  left: min(270px, 34%);
}

.spot-region-map.is-unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.spot-list {
  display: grid;
  gap: 24px;
}

.spot-region-section {
  display: grid;
  gap: 12px;
}

.spot-region-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.spot-region-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 950;
}

.spot-region-heading span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spot-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.spot-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
}

.spot-card:hover {
  border-color: rgba(19, 186, 238, 0.42);
  box-shadow: 0 16px 42px rgba(19, 186, 238, 0.13);
  transform: translateY(-1px);
}

.spot-preview {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.spot-preview iframe,
.spot-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.spot-preview iframe {
  z-index: 2;
  background: transparent;
}

.spot-preview img {
  z-index: 1;
  object-fit: cover;
}

.spot-preview span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(10, 37, 64, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 850;
}

.sport-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(4, 20, 36, 0.1);
}

.sport-dive {
  color: #a64bd8;
}

.preview-art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(135deg, rgba(19, 186, 238, 0.22), rgba(238, 19, 186, 0.12));
}

.spot-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px 10px;
}

.spot-title {
  min-width: 0;
}

.spot-info span {
  display: block;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.spot-info h1 {
  margin: 4px 0 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.05;
}

.spot-info strong,
.spot-info .spot-link {
  flex: 0 0 auto;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.spot-card:not(.is-live) .spot-info strong {
  background: var(--navy);
  color: #fff;
}

.spot-grade {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 3px;
}

.spot-grade b {
  color: var(--grade-color, var(--primary));
  font-size: 2.5rem;
  line-height: 0.86;
}

.spot-grade em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.spot-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 12px;
}

.spot-metrics div {
  min-width: 0;
  border-top: 1px solid rgba(10, 10, 10, 0.08);
  padding-top: 8px;
}

.spot-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.spot-metrics strong {
  display: block;
  margin-top: 2px;
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.15;
}

.spot-gradient {
  height: 8px;
  margin: 0 18px 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(125, 216, 247, 0.22);
}

.spot-gradient::before {
  content: "";
  display: block;
  width: var(--fill, 60%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #a64bd8 44%, var(--primary));
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.hero-camera {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.hero-camera .camera-frame {
  position: relative;
  min-height: 0;
}

.hero-camera.is-camera-free {
  overflow: visible;
  background: transparent;
}

.hero-camera.is-camera-free .camera-frame {
  display: none;
}

.hero-camera.is-camera-free .hero-content {
  padding: 0 0 8px;
}

.spot-live-cam-link {
  margin: 10px 0 0;
  font-size: 0.88rem;
  font-weight: 750;
}

.spot-live-cam-link a {
  color: var(--dark-cyan);
  text-decoration: none;
}

.spot-live-cam-link a:hover,
.spot-live-cam-link a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: start;
  justify-content: flex-start;
  gap: 16px;
  padding: 18px 22px;
}

.location-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px solid rgba(19, 186, 238, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 10px 22px rgba(6, 20, 46, 0.08);
}

.location-beta-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  box-shadow: 0 0 0 4px rgba(19, 186, 238, 0.13);
}

.brand-logo {
  display: block;
  width: clamp(118px, 13vw, 162px);
  height: auto;
  object-fit: contain;
}

h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0;
}

h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--primary);
  vertical-align: 1px;
}

.date-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(19, 186, 238, 0.34);
  background: var(--glass);
  backdrop-filter: var(--blur);
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 700;
}

.forecast-panel,
.split article,
.model-card,
.ten-day-card,
.daily-report-card,
.chart-grid article {
  border: 1px solid rgba(13, 122, 140, 0.18);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
  position: relative;
  overflow: hidden;
}

.forecast-panel::before,
.split article::before,
.model-card::before,
.ten-day-card::before,
.daily-report-card::before,
.chart-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--primary);
}

.forecast-panel::before,
.daily-report-card::before {
  background: var(--primary);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(320px, 0.78fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
}

.hero-report-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.hero-report-column .daily-report-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

@media (min-width: 721px) {
  .hero-content {
    grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .forecast-panel {
    grid-template-rows: repeat(5, auto);
    align-content: start;
  }

  .forecast-panel .primary-stat strong {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
  }

  .report-copy #dailyReport {
    font-size: 0.96rem;
    line-height: 1.48;
  }

}

.forecast-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border-color: var(--primary);
  backdrop-filter: var(--blur);
  color: var(--text);
  box-shadow: none;
}

.forecast-updated {
  margin: 2px 0 12px;
  color: rgba(10, 37, 64, 0.62);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.spot-live-conditions-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spot-live-conditions-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.spot-live-conditions-summary span {
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.68rem;
  font-weight: 750;
}

.spot-live-conditions-summary strong {
  color: #0a2540;
  font-size: 0.92rem;
  font-weight: 850;
  white-space: nowrap;
}

.forecast-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.spot-heading {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.spot-heading-kicker,
.forecast-meta .spot-heading-region,
.spot-heading-region {
  display: none;
}

.forecast-meta .spot-heading-name,
.spot-heading-name {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
}

.forecast-panel.is-unavailable {
  border-color: rgba(10, 37, 64, 0.18);
}

.forecast-main > strong.is-unavailable {
  min-height: 88px;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1;
  color: rgba(10, 37, 64, 0.55);
  background: rgba(10, 37, 64, 0.04);
  border-color: rgba(10, 37, 64, 0.16);
}

.forecast-unavailable-copy {
  margin: 0;
  padding: 16px 4px 4px;
  color: rgba(10, 37, 64, 0.74);
  font-size: 0.95rem;
  line-height: 1.45;
}

.forecast-meta span,
.forecast-meta strong {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.forecast-meta strong {
  color: var(--primary);
}

.grade-a-plus { --grade-color: #0075df; --grade-soft: rgba(0, 117, 223, 0.13); }
.grade-a { --grade-color: #13baee; --grade-soft: rgba(19, 186, 238, 0.14); }
.grade-b { --grade-color: #5e8ee8; --grade-soft: rgba(94, 142, 232, 0.13); }
.grade-c { --grade-color: #a64bd8; --grade-soft: rgba(166, 75, 216, 0.12); }
.grade-d { --grade-color: #d82fca; --grade-soft: rgba(216, 47, 202, 0.12); }
.grade-f { --grade-color: #ee13ba; --grade-soft: rgba(238, 19, 186, 0.12); }

.forecast-main {
  display: grid;
  grid-template-columns: minmax(82px, 116px) 1fr;
  gap: 16px;
  align-items: center;
}

.forecast-main > strong {
  display: block;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(19, 186, 238, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--grade-soft, rgba(19, 186, 238, 0.18)), rgba(125, 216, 247, 0.08));
  color: var(--grade-color, var(--primary));
  font-size: clamp(4.2rem, 12vw, 6.8rem);
  line-height: 0.86;
  text-align: center;
}

.primary-stat {
  align-self: center;
}

.primary-stat span,
.best-window span,
.wave-weight span,
.feature-rows span {
  color: rgba(10, 10, 10, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.forecast-panel .primary-stat span,
.forecast-panel .best-window span,
.forecast-panel .wave-weight span {
  color: var(--muted);
}

.primary-stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  line-height: 0.9;
}

.score-row {
  display: block;
}

.score-track {
  height: 12px;
  overflow: hidden;
  background: rgba(125, 216, 247, 0.2);
  border-radius: 999px;
}

#scoreFill,
.score-track > div {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #a64bd8 44%, var(--primary));
}

.split article,
.model-card,
.ten-day-card,
.daily-report-card,
.chart-grid article {
  padding: 18px;
}

.best-window strong,
.wave-weight strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.25;
}

.wave-weight {
  padding-top: 10px;
  border-top: 1px solid rgba(13, 122, 140, 0.12);
}

.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.split article {
  position: relative;
  overflow: hidden;
}

.ten-day-card {
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}

.chart-grid {
  margin-top: 14px;
}

.hero-content .daily-report-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  backdrop-filter: var(--blur);
  border-color: rgba(19, 186, 238, 0.28);
}

.report-copy #dailyReport,
.report-copy .daily-report-body {
  white-space: pre-line;
}

.report-copy #dailyReport,
.report-copy [data-daily-report-para],
.report-copy .daily-report-body p {
  margin: 0 0 1em;
}

.report-copy #dailyReport:last-child,
.report-copy [data-daily-report-para]:last-child,
.report-copy .daily-report-body p:last-child {
  margin-bottom: 0;
}

.forecast-strip-empty {
  margin: 0;
  padding: 12px 4px;
  color: var(--muted, #5b6b73);
}

.monterey-compare {
  margin-top: 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid rgba(19, 186, 238, 0.22);
  border-radius: 16px;
}

.hero-report-column > .monterey-compare,
.daily-report-card > .monterey-compare {
  margin-top: 0;
  flex: 0 0 auto;
}

.monterey-compare h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.monterey-compare-note {
  margin: 0 0 12px;
  color: var(--muted, #4a6670);
  font-size: 0.82rem;
  line-height: 1.4;
}

.monterey-compare-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.monterey-compare-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
}

.monterey-compare-chip.is-current {
  border-color: rgba(19, 186, 238, 0.55);
  box-shadow: 0 0 0 2px rgba(19, 186, 238, 0.18);
}

.monterey-compare-grade {
  font-weight: 800;
  color: var(--dark-cyan, #0d7a8c);
}

.camera-frame {
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 0;
}

.camera-frame[hidden] {
  display: block;
}

.camera-frame img,
.camera-frame iframe {
  display: block;
  width: 100%;
  height: min(58vh, 585px);
  object-fit: cover;
  object-position: center;
  background: var(--surface);
}

.camera-frame iframe {
  position: relative;
  z-index: 1;
  border: 0;
  background: #000;
}

.camera-frame img[hidden] {
  display: none;
}

.camera-frame.is-camera-unavailable {
  min-height: clamp(260px, 45vw, 520px);
  background: #09233d;
}

.camera-unavailable-message {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(80%, 420px);
  margin: 0;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 800;
  text-align: center;
}

.camera-unavailable-message[hidden] {
  display: none;
}

.camera-live-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(8, 30, 53, 0.88);
  box-shadow: 0 8px 20px rgba(1, 20, 40, 0.22);
  color: var(--text-inverse);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: var(--blur);
}

.camera-live-link:hover,
.camera-live-link:focus-visible {
  border-color: rgba(19, 186, 238, 0.9);
  background: rgba(8, 43, 75, 0.95);
}

.camera-observed-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(8, 30, 53, 0.88);
  box-shadow: 0 8px 20px rgba(1, 20, 40, 0.22);
  color: var(--text-inverse);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: var(--blur);
}

.camera-observed-badge[hidden] {
  display: none;
}

.camera-observed-badge.is-reference {
  border-color: rgba(255, 214, 130, 0.55);
  background: rgba(53, 40, 10, 0.88);
  color: #ffe4ad;
  font-weight: 700;
}

.report-copy p {
  margin: 0 0 1em;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-line;
}

.report-copy p:last-child {
  margin-bottom: 0;
}

.comments-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 420px;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(13, 122, 140, 0.2);
  border-radius: 8px;
  background: rgba(125, 216, 247, 0.14);
}

.comments-strip span,
.comments-strip strong {
  display: block;
}

.comments-strip span {
  color: var(--dark-cyan);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comments-strip strong {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.comments-strip button {
  flex: 0 0 auto;
  border: 1px solid rgba(19, 186, 238, 0.42);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 7px 9px;
}

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

.chart-grid.chart-grid-single {
  grid-template-columns: 1fr;
}

section.chart-grid article,
.chart-grid.chart-grid-single article,
.chart-grid article {
  padding: 12px 12px 10px;
  overflow: visible !important;
}

.chart-grid article > h2,
.chart-grid article > .section-heading {
  padding: 0;
}

.chart-grid article > .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chart {
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  overflow: visible;
  color: var(--muted);
}

.chart svg {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 800 / 110;
  overflow: visible;
}

.chart-plot-fill {
  fill: transparent;
}

.chart-axis,
.axis {
  fill: none;
  stroke: transparent;
}

.chart-gridline,
.chart-x-grid {
  stroke: rgba(15, 46, 62, 0.08);
  stroke-width: 1;
}

.chart-gridline.is-zero {
  stroke: rgba(15, 46, 62, 0.16);
}

.chart-x-grid.is-soft {
  stroke: rgba(15, 46, 62, 0.04);
}

.chart-y-label,
.chart-x-label,
.chart-axis-title {
  fill: rgba(15, 46, 62, 0.55);
  font-size: 11px;
  font-weight: 600;
}

.chart-axis-title {
  fill: var(--text);
  font-size: 11px;
  letter-spacing: 0;
}

.chart-y-label {
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
}

.tide-fill {
  fill: rgba(22, 115, 132, 0.14);
  stroke: none;
}

.tide-night {
  fill: rgba(47, 61, 80, 0.09);
  pointer-events: none;
}

.tide-sun-label {
  fill: rgba(15, 46, 62, 0.58);
  font-size: 10px;
  font-weight: 650;
  paint-order: stroke fill;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.tide-line {
  fill: none;
  stroke: #167384;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.tide-point {
  display: none;
}

.bars {
  display: block;
}

.wind-bar {
  background: transparent;
}

.wind-bar.wind-grade-a-plus {
  fill: #0075df;
}

.wind-bar.wind-grade-a {
  fill: #13baee;
}

.wind-bar.wind-grade-b {
  fill: #5e8ee8;
}

.wind-bar.wind-grade-c {
  fill: #a64bd8;
}

.wind-bar.wind-grade-d {
  fill: #d82fca;
}

.wind-bar.wind-grade-f {
  fill: #ee13ba;
}

.wave-card {
  border-color: rgba(19, 186, 238, 0.3);
}

.wave-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 0;
}

.wave-surf-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "components";
  align-items: center;
  gap: 0;
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(19, 186, 238, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 216, 247, 0.16), rgba(238, 19, 186, 0.07)),
    var(--surface);
}

.swell-card {
  padding: 12px 12px 10px;
}

.swell-card .section-heading {
  flex-direction: row;
  align-items: baseline;
  margin-bottom: 8px;
}

.swell-stage,
.swell-visualization {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0a2540;
}

.swell-map-panel {
  position: relative;
  grid-area: 1 / 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  overflow: hidden;
  container-type: size;
  aspect-ratio: 1.15 / 1;
  min-height: 250px;
  max-height: 320px;
  background-color: #123044;
  background-image: url("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/export?bbox=-117.345,32.702,-117.205,32.908&bboxSR=4326&imageSR=3857&size=900,720&format=jpg&f=image");
  background-position: center;
  background-size: cover;
}

.swell-map,
.swell-map.maplibregl-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.swell-map .maplibregl-canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.swell-map.is-ready {
  opacity: 1;
}

.swell-map canvas {
  pointer-events: none;
}

.swell-map-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 37, 64, 0.28), rgba(10, 37, 64, 0.08) 46%, rgba(10, 37, 64, 0.2));
}

.swell-card .wave-components {
  position: absolute;
  grid-area: 1 / 1;
  z-index: 3;
  top: 10px;
  left: 10px;
  right: 10px;
  width: auto;
  overflow: visible;
  pointer-events: none;
}

.swell-overlay-list {
  display: grid;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(10, 37, 64, 0.58);
  color: #fff;
  backdrop-filter: blur(10px);
}

.swell-overlay-row {
  display: grid;
  grid-template-columns: 68px 54px 38px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.swell-overlay-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swell-overlay-row strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1;
}

.swell-overlay-row em {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 750;
}

.swell-overlay-row .swell-dir {
  justify-self: end;
  color: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.swell-panel {
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.7fr);
  grid-template-areas: "components rose";
  gap: 16px;
}

.swell-compass-overlay,
.swell-stage > .swell-rose-wrap {
  position: absolute;
  inset: auto;
  left: 50%;
  top: 50%;
  width: clamp(145px, 12.5vw + 96px, 235px);
  height: clamp(145px, 12.5vw + 96px, 235px);
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 6;
  display: block;
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: stretch;
  align-self: stretch;
  transform: translate(-50%, -50%);
}

.swell-rose {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: none;
  transform: none;
}

.swell-rose svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.swell-rose text {
  fill: #f8fbff;
  font-size: clamp(18px, 1.4vw, 20px);
  font-weight: 600;
}

.swell-rose-ring {
  fill: rgba(10, 37, 64, 0.16);
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 2;
}

.swell-dir {
  font-weight: 900;
}

.swell-map-panel .maplibregl-ctrl-attrib {
  background: rgba(10, 37, 64, 0.58);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
}

.swell-map-panel .maplibregl-ctrl-attrib a {
  color: #d7f6ff;
}

.swell-map-panel .maplibregl-ctrl-bottom-right {
  z-index: 4;
  pointer-events: auto;
}

@media (max-width: 899px) {
  .swell-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .swell-map-panel,
  .swell-card .wave-components {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .swell-map-panel {
    width: 100%;
  }
}

@media (min-width: 900px) {
  .swell-card,
  .chart-grid article {
    padding: 14px;
  }

  .swell-stage {
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    min-height: 300px;
    height: 320px;
  }

  .swell-map-panel {
    grid-area: 1 / 2;
    aspect-ratio: auto;
    min-height: 0;
    max-height: none;
    width: 100%;
    height: 100%;
  }

  .swell-card .wave-components {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 18px 16px 18px 18px;
  }

  .swell-overlay-list {
    width: 100%;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    gap: 16px;
  }

  .swell-overlay-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .swell-overlay-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .swell-overlay-row span {
    font-size: 0.68rem;
  }

  .swell-overlay-row strong {
    font-size: 1.35rem;
  }

  .swell-overlay-row em,
  .swell-overlay-row .swell-dir {
    justify-self: start;
    font-size: 0.9rem;
  }

  .swell-compass-overlay,
  .swell-stage > .swell-rose-wrap {
    width: clamp(190px, 12.5vw + 96px, 235px);
    height: clamp(190px, 12.5vw + 96px, 235px);
  }
}

.wave-summary span,
.wave-component-grid span {
  color: rgba(10, 10, 10, 0.58);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wave-summary strong {
  display: block;
  margin-top: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 0.9;
  white-space: nowrap;
}

.wave-summary em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 650;
}

.wave-components {
  grid-area: components;
  display: grid;
  align-content: center;
}

.wave-component-cards {
  display: none;
}

.wave-component-grid {
  display: grid;
  grid-template-columns: minmax(92px, 1.05fr) minmax(68px, 0.75fr) minmax(62px, 0.68fr) minmax(78px, 0.82fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(19, 186, 238, 0.2);
  border-radius: 8px;
  background: rgba(13, 122, 140, 0.1);
}

.wave-component-grid > * {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 10px 8px;
  background: var(--surface);
  text-align: center;
}

.wave-component-grid strong {
  justify-items: start;
  place-items: center start;
  text-align: left;
  color: var(--dark-cyan);
  font-size: 0.88rem;
}

.wave-component-grid em {
  margin: 0;
  color: var(--text);
  font-style: normal;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}

.wave-component-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(19, 186, 238, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(125, 216, 247, 0.12), rgba(238, 19, 186, 0.05)),
    var(--surface);
}

.wave-component-card span {
  color: var(--dark-cyan);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wave-component-card strong {
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.wave-component-card em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.wave-area {
  fill: rgba(19, 186, 238, 0.16);
}

.wave-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-point {
  fill: var(--primary);
  stroke: var(--surface);
  stroke-width: 2;
}

.wave-point.is-active {
  fill: var(--accent);
  stroke-width: 3;
}

.wave-active-line {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}

.wave-current-label {
  fill: var(--dark-cyan);
  font-size: 18px;
  font-weight: 900;
}

.region-map-card {
  border-color: rgba(19, 186, 238, 0.26);
}

.map-frame {
  position: relative;
  overflow: hidden;
  height: clamp(440px, 48vw, 620px);
  border: 1px solid rgba(19, 186, 238, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(125, 216, 247, 0.14), rgba(238, 19, 186, 0.06)),
    #eefbff;
}

.region-map-card .map-frame {
  height: clamp(520px, 54vw, 700px);
}

.spot-region-map {
  position: absolute;
  inset: 0;
}

.wind-gradient-canvas,
.wind-particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

.wind-gradient-canvas {
  z-index: 10;
}

.wind-particle-canvas {
  z-index: 20;
}

.map-frame.is-map-moving .wind-gradient-canvas,
.map-frame.is-map-moving .wind-particle-canvas,
.spot-map-graphic.is-map-moving .wind-gradient-canvas,
.spot-map-graphic.is-map-moving .wind-particle-canvas {
  opacity: 0;
}

.map-frame.is-depth-mode .wind-gradient-canvas,
.map-frame.is-depth-mode .wind-particle-canvas,
.map-frame.is-depth-mode .spot-wind-legend,
.map-frame.is-depth-mode .spot-wind-timeline,
.map-frame.is-depth-mode .spot-wind-date-bubble,
.map-frame.is-depth-mode .map-wind-probe-pin {
  display: none;
}

.spot-region-map.is-unavailable {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.map-spot-pin {
  position: relative;
  display: block;
  width: 10px;
  height: 13px;
  overflow: visible;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.map-spot-pin::after {
  display: none;
}

.map-spot-pin-label {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 1;
  display: block;
  max-width: 92px;
  padding: 3px 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(238, 19, 186, 0.96), rgba(19, 186, 238, 0.96));
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.map-spot-pin-needle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 13px;
  pointer-events: none;
}

.map-spot-pin-needle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(135deg, #ee13ba, #13baee);
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
}

.map-spot-pin-needle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #13baee;
  transform: translateX(-50%);
}

.map-frame .maplibregl-marker,
.spot-region-map .maplibregl-marker {
  overflow: visible;
  z-index: 35;
}

.map-frame .maplibregl-popup,
.spot-region-map .maplibregl-popup {
  z-index: 45;
}

.wind-legend {
  position: absolute;
  z-index: 40;
  left: 12px;
  bottom: 12px;
  width: min(230px, calc(100% - 24px));
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 12px;
  padding: 10px 12px 9px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.wind-legend.is-hidden {
  display: none;
}

.wind-legend span {
  display: block;
  margin: 0 0 7px;
  color: rgba(216, 245, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wind-legend-gradient {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0075df 0%, #13baee 25%, #a64bd8 50%, #ee13ba 100%);
}

.wind-legend-labels {
  position: relative;
  margin-top: 6px;
  height: 0.82rem;
  color: rgba(216, 245, 255, 0.76);
  font-size: 0.68rem;
}

.wind-legend-labels b {
  position: absolute;
  transform: translateX(-50%);
}

.wind-legend-labels b:nth-child(1) {
  left: 0;
  transform: none;
}

.wind-legend-labels b:nth-child(2) {
  left: 25%;
}

.wind-legend-labels b:nth-child(3) {
  left: 50%;
}

.wind-legend-labels b:nth-child(4) {
  left: 100%;
  transform: translateX(-100%);
}

.map-layer-toggle {
  position: absolute;
  z-index: 48;
  top: 12px;
  right: 68px;
  display: inline-flex;
  gap: 4px;
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 999px;
  padding: 4px;
  background: rgba(5, 22, 37, 0.78);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.map-layer-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: transparent;
  color: rgba(216, 245, 255, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.map-layer-toggle button[aria-pressed="true"] {
  background: linear-gradient(135deg, #13baee, #ee13ba);
  color: #fff;
}

.depth-legend {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  display: none;
  width: min(230px, calc(100% - 24px));
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 12px;
  padding: 10px 12px 9px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.map-frame.is-depth-mode .depth-legend {
  display: block;
}

.depth-legend span {
  display: block;
  margin: 0 0 7px;
  color: rgba(216, 245, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.depth-legend-gradient {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9f7ff 0%, #38bdf8 28%, #2563eb 58%, #161b54 100%);
}

.depth-legend-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: rgba(216, 245, 255, 0.76);
  font-size: 0.68rem;
}

.wind-date-bubble {
  position: absolute;
  right: 24px;
  bottom: 110px;
  z-index: 43;
  border: 1px solid rgba(125, 216, 247, 0.34);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(5, 22, 37, 0.8);
  color: #d8f5ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.wind-date-bubble[hidden] {
  display: none;
}

.wind-timeline {
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: 12px;
  left: min(270px, 34%);
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(125, 216, 247, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(5, 22, 37, 0.78);
  color: #d8f5ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.wind-timeline.is-hidden {
  display: none;
}

.wind-timeline button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 216, 247, 0.32);
  border-radius: 999px;
  padding: 0;
  background: linear-gradient(135deg, rgba(238, 19, 186, 0.22), rgba(19, 186, 238, 0.28));
  color: #fff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
}

.wind-timeline button[hidden] {
  display: none;
}

.spot-wind-prev-day {
  grid-column: 1;
  grid-row: 1;
}

.spot-wind-play-stack {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.spot-wind-slider-wrap {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  align-self: center;
  min-width: 0;
}

.spot-wind-slider {
  width: 100%;
}

.spot-wind-next-day {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  font-size: 1.35rem;
}

.spot-wind-prev-day {
  align-self: center;
  font-size: 1.35rem;
}

.spot-wind-play-stack {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  min-width: 40px;
}

.spot-wind-current-time {
  display: none;
}

.spot-wind-thumb-time {
  position: absolute;
  z-index: 3;
  top: -31px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 25px;
  padding: 0 9px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: #13baee;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.spot-wind-thumb-time::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid rgba(255, 255, 255, 0.94);
  background: #13baee;
  transform: translateX(-50%) rotate(45deg);
}

.wind-timeline input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  align-self: center;
  width: 100%;
  min-width: 0;
  height: 20px;
  border: 0;
  background: transparent;
  accent-color: var(--primary);
  cursor: pointer;
}

.wind-timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid rgba(216, 245, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.wind-timeline input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid #13baee;
  border-radius: 999px;
  background: #13baee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.wind-timeline input[type="range"]::-moz-range-track {
  height: 6px;
  border: 1px solid rgba(216, 245, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.wind-timeline input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 2px solid #13baee;
  border-radius: 999px;
  background: #13baee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
}

.wind-time-ticks {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  display: block;
  margin-top: -3px;
  height: 0.82rem;
  color: rgba(216, 245, 255, 0.66);
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wind-time-ticks span {
  position: absolute;
  top: 0;
  display: none;
  min-width: max-content;
  transform: translateX(-50%);
  white-space: nowrap;
}

.wind-time-ticks span.is-visible {
  display: block;
}

.wind-time-ticks span.is-start {
  transform: none;
}

.wind-time-ticks span.is-end {
  transform: translateX(-100%);
}

.map-wind-probe-pin {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  gap: 6px;
  padding: 0 10px 0 12px;
  background: rgba(5, 22, 37, 0.9);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  will-change: transform;
}

.map-wind-probe-pin::after {
  content: "";
  position: absolute;
  bottom: -7px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid rgba(255, 255, 255, 0.92);
  background: #13baee;
  transform: rotate(45deg);
}

.map-wind-probe-pin span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-wind-probe-arrow {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transform: rotate(var(--wind-flow-rotation, 90deg));
}

.map-wind-probe-arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.map-wind-probe-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}

.maplibregl-popup-content {
  border: 1px solid rgba(19, 186, 238, 0.18);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(10, 37, 64, 0.16);
  color: var(--navy);
  font-family: inherit;
  padding: 10px 12px;
}

.maplibregl-popup-content strong,
.maplibregl-popup-content span {
  display: block;
}

.maplibregl-popup-content span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.chart-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.report-copy h2,
.chart-grid h2,
.model-card h2,
.split h2,
.section-heading h2 {
  color: var(--text);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.forecast-strip {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.forecast-day {
  flex: 1 0 92px;
  min-width: 92px;
  max-width: 140px;
  min-height: 132px;
  border: 1px solid rgba(19, 186, 238, 0.22);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.forecast-day:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.forecast-day span,
.forecast-day small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.forecast-day strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--grade-color, var(--primary));
  font-size: 2.2rem;
  line-height: 1;
}

.forecast-day em {
  display: block;
  min-height: 20px;
  color: var(--text);
  font-style: normal;
  font-weight: 800;
}

.forecast-day small {
  margin-top: 8px;
  color: var(--dark-cyan);
}

.forecast-day.is-active {
  border-color: var(--grade-color, var(--primary));
  background:
    linear-gradient(180deg, var(--grade-soft, rgba(125, 216, 247, 0.14)), #ffffff);
  box-shadow: inset 0 0 0 1px var(--grade-color, var(--primary)), 0 10px 28px rgba(19, 186, 238, 0.12);
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.model-card {
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}

#swellSource,
#windSource {
  display: none !important;
}

.feature-rows {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(19, 186, 238, 0.22);
  border-radius: 8px;
  background: var(--line);
}

.grade-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(19, 186, 238, 0.22);
  border-radius: 8px;
  background: var(--line);
}

.grade-guide div {
  min-height: 92px;
  padding: 12px;
  background: var(--surface);
}

.grade-guide strong {
  display: block;
  color: var(--grade-color, var(--primary));
  font-size: 1.6rem;
  line-height: 1;
}

.grade-guide span,
.grade-guide em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.grade-guide em {
  color: var(--dark-cyan);
  font-size: 0.68rem;
}

.feature-rows div {
  min-height: 76px;
  padding: 12px;
  background: var(--surface);
}

.feature-rows strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.wave-card {
  margin-top: 14px;
}

.wave-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-bottom: 16px;
}

.surf-tile {
  display: grid;
  align-content: center;
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(238, 19, 186, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(19, 186, 238, 0.08), rgba(238, 19, 186, 0.08));
}

.surf-tile span,
.swell-table span,
.weather-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.surf-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 4.9rem);
  line-height: 0.92;
}

.swell-table {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 0.85fr);
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
}

.swell-table > * {
  display: grid;
  align-items: center;
  min-height: 52px;
  padding: 12px;
  border-left: 1px solid rgba(13, 122, 140, 0.12);
  border-top: 1px solid rgba(13, 122, 140, 0.12);
}

.swell-table > *:nth-child(-n + 4) {
  border-top: 0;
  text-align: center;
}

.swell-table > *:nth-child(4n + 1) {
  border-left: 0;
}

.swell-table strong {
  color: var(--dark-cyan);
}

.swell-table b {
  color: var(--text);
  font-size: 0.95rem;
}

.swell-chart {
  min-height: 255px;
}

.swell-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swell-area {
  fill: rgba(19, 186, 238, 0.12);
}

.swell-point {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 3;
}

.swell-now {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 7 8;
}

.weather-card {
  margin-top: 14px;
}

.weather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
}

.weather-grid div {
  min-height: 78px;
  padding: 16px;
  border-left: 1px solid rgba(13, 122, 140, 0.12);
}

.weather-grid div:first-child {
  border-left: 0;
}

.weather-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.model-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.history-card {
  margin-top: 14px;
}

.forecast-history {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(13, 122, 140, 0.16);
  border-radius: 8px;
  background: var(--surface);
}

.history-item.is-hidden {
  display: none;
}

.history-item span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.history-item strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 0.96rem;
}

.history-item p,
.history-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.history-toggle {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--navy);
  color: white;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  cursor: pointer;
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.fish-site-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(238, 19, 186, 0.28);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(238, 19, 186, 0.08), rgba(19, 186, 238, 0.08));
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
}

.fish-row {
  min-height: 96px;
  border: 1px solid rgba(13, 122, 140, 0.2);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.fish-row.is-prime {
  border-color: rgba(238, 19, 186, 0.36);
  box-shadow: inset 0 0 0 1px rgba(238, 19, 186, 0.12);
}

.fish-row summary {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: center;
  min-height: 96px;
  padding: 9px;
  cursor: pointer;
  list-style: none;
}

.fish-row summary::-webkit-details-marker {
  display: none;
}

.fish-title strong {
  display: block;
  color: var(--navy);
  font-size: 0.96rem;
}

.fish-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
}

.fish-rank {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(19, 186, 238, 0.16);
  color: var(--navy);
  font-weight: 900;
}

.fish-row.is-prime .fish-rank {
  background: rgba(238, 19, 186, 0.12);
}

.expand-label {
  grid-column: 3;
  grid-row: 1;
  color: var(--dark-cyan);
  font-size: 0.68rem;
  font-weight: 800;
}

.fish-row[open] .expand-label::before {
  content: "Close";
  font-size: 0;
}

.fish-row[open] .expand-label {
  font-size: 0;
}

.fish-row[open] .expand-label::after {
  content: "Close";
  font-size: 0.68rem;
}

.fish-details {
  padding: 0 12px 12px;
  border-top: 1px solid rgba(13, 122, 140, 0.12);
}

.fish-row:not([open]) .fish-details {
  display: none;
}

.fish-summary-scores {
  grid-column: 2 / 4;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fish-summary-scores span {
  display: block;
  padding: 5px 7px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 999px;
  color: var(--dark-cyan);
  font-size: 0.7rem;
}

.fish-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 7;
  margin-top: 12px;
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(19, 186, 238, 0.08), rgba(238, 19, 186, 0.08));
  overflow: hidden;
}

.fish-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.fish-photo img[hidden] {
  display: none;
}

.fish-photo span {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.fish-meters {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.fish-meter {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 8px;
}

.fish-meter span {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  color: var(--dark-cyan);
  font-size: 0.66rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fish-meter i {
  grid-column: 2;
  grid-row: 1;
  display: block;
  width: 0;
  height: 100%;
  min-height: 7px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(13, 122, 140, 0.08);
  z-index: 1;
}

.fish-meter::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(125, 216, 247, 0.22);
  z-index: 0;
}

.fish-meter.abundance i {
  background: var(--teal);
}

.fish-rule {
  margin-top: 12px;
  padding: 10px;
  border-radius: 7px;
  background: rgba(125, 216, 247, 0.14);
}

.fish-rule span {
  display: block;
  color: var(--dark-cyan);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.fish-rule strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 0.86rem;
}

.fish-rule p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.35;
}

.fish-rule a {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.content-shell {
  padding-bottom: 48px;
}

.content-header {
  margin-bottom: 12px;
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(13, 122, 140, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 12%, rgba(19, 186, 238, 0.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(238, 19, 186, 0.13), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
  box-shadow: 0 18px 54px rgba(19, 186, 238, 0.08);
}

.content-kicker,
.post-category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--dark-cyan);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-kicker::before,
.post-category::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 10px;
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.post-meta time,
.post-meta span {
  display: inline-flex;
  align-items: center;
}

.post-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 12px;
  border-radius: 999px;
  background: rgba(13, 122, 140, 0.42);
}

.content-hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  color: var(--navy);
  font-size: clamp(2.25rem, 5vw, 4.85rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.98;
}

.content-hero p {
  max-width: 610px;
  margin: 0;
  color: rgba(10, 37, 64, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.6;
}

.content-command-card,
.about-principles {
  align-self: stretch;
  border: 1px solid rgba(125, 216, 247, 0.5);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 22px 48px rgba(10, 37, 64, 0.11);
  backdrop-filter: blur(18px);
}

.content-command-card {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 260px;
  padding: 22px;
}

.content-command-card span {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.content-command-card strong {
  display: block;
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  line-height: 1.08;
}

.content-command-card p {
  font-size: 0.95rem;
}

.blog-filter {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.blog-filter::-webkit-scrollbar {
  display: none;
}

.blog-filter a,
.featured-post a,
.content-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(19, 186, 238, 0.28);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.blog-filter a:first-child,
.featured-post a,
.content-cta a {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.featured-post,
.blog-card,
.about-grid article,
.about-system,
.content-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
}

.featured-post::before,
.blog-card::before,
.about-grid article::before,
.about-system::before,
.content-cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.62fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 248, 255, 0.92)),
    radial-gradient(circle at 95% 8%, rgba(238, 19, 186, 0.14), transparent 25%);
}

.featured-post h2,
.blog-card h2,
.about-grid h2,
.about-system h2 {
  margin: 12px 0 10px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.6vw, 2.25rem);
  line-height: 1.06;
}

.featured-post p,
.blog-card p,
.about-grid p,
.about-system p,
.content-cta span {
  margin: 0;
  color: rgba(10, 37, 64, 0.7);
  line-height: 1.55;
}

.featured-post a {
  margin-top: 22px;
}

.featured-post-metrics {
  display: grid;
  gap: 10px;
}

.featured-post-metrics div,
.about-principles div,
.about-system dl div {
  border: 1px solid rgba(125, 216, 247, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 16px;
}

.featured-post-metrics span,
.about-principles span,
.about-system dt,
.blog-card footer span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.featured-post-metrics strong,
.about-principles strong,
.about-system dd,
.blog-card footer strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 950;
}

.blog-grid,
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.blog-card,
.about-grid article {
  min-height: 250px;
  padding: 22px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: rgba(238, 19, 186, 0.34);
  box-shadow: 0 18px 46px rgba(19, 186, 238, 0.14);
  transform: translateY(-2px);
  outline: none;
}

.blog-card p {
  flex: 1;
}

.blog-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 122, 140, 0.12);
}

.about-principles {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.about-principles p {
  margin: 6px 0 0;
  color: rgba(10, 37, 64, 0.64);
  font-size: 0.92rem;
  line-height: 1.45;
}

.about-system {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.about-system dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.about-system dd {
  margin-left: 0;
  line-height: 1.35;
}

.content-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.content-cta span {
  color: var(--navy);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 950;
}

.publication {
  background: var(--bg);
}

.publication .shell.article-shell {
  width: 100%;
  max-width: none;
  padding-top: 18px;
  padding-bottom: 48px;
}

.blog-masthead {
  margin: 4px 0 18px;
  padding: 4px 2px 8px;
}

.blog-masthead .blog-index-heading {
  margin: 0 0 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 850;
  line-height: 1.05;
}

.blog-masthead .post-dek {
  margin: 0;
  max-width: 34rem;
}

.featured-story {
  margin: 8px 0 28px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
}

.post-read-link {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: var(--dark-cyan);
  font-size: 0.88rem;
  font-weight: 850;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.post-read-link:hover,
.post-read-link:focus-visible {
  color: var(--accent);
  outline: none;
}

.featured-story h1,
.featured-story h2,
.post-article h1,
.blog-index-heading,
.blog-index-item h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.featured-story h1,
.featured-story h2,
.post-article h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: clamp(1.7rem, 4.2vw, 2.35rem);
  line-height: 1.18;
}

.featured-story h2 {
  margin-bottom: 8px;
}

.featured-story h1::before,
.featured-story h2::before,
.post-article h1::before,
.blog-index-heading::before,
.blog-index-item h2::before {
  content: none;
}

.featured-story h1 a,
.featured-story h2 a,
.blog-index-item h2 a {
  color: inherit;
  text-decoration: none;
}

.featured-story h1 a:hover,
.featured-story h1 a:focus-visible,
.featured-story h2 a:hover,
.featured-story h2 a:focus-visible,
.blog-index-item h2 a:hover,
.blog-index-item h2 a:focus-visible {
  color: var(--dark-cyan);
  outline: none;
}

.article-shell {
  width: min(720px, 100%);
}

.post-page {
  padding: 0;
}

.post-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  color: var(--dark-cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
}

.post-header {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.14);
}

.post-header h1 {
  margin: 0 0 8px;
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  color: var(--dark-cyan);
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
}

.post-back-link:hover,
.post-back-link:focus-visible {
  color: var(--accent);
  outline: none;
}

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

.blog-index-heading {
  margin: 8px 0 22px;
  font-size: 1.15rem;
  font-weight: 950;
}

.blog-index-item {
  margin: 0;
  padding: 0 0 8px;
}

.blog-index-item h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  line-height: 1.15;
}

.blog-index-item .post-dek {
  margin: 0 0 10px;
}

.featured-story .post-dek,
.post-header .post-dek {
  margin: 0 0 10px;
}

.featured-story .post-byline,
.post-header .post-byline,
.blog-index-item .post-byline,
.post-byline {
  margin: 0;
  color: rgba(10, 37, 64, 0.58);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.post-page a {
  color: var(--dark-cyan);
}

.post-page a:hover,
.post-page a:focus-visible {
  color: var(--accent);
}

.post-page h1 {
  max-width: 680px;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.7rem, 4.2vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.post-dek {
  max-width: 680px;
  margin: 0 0 10px;
  color: rgba(10, 37, 64, 0.72);
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  font-weight: 600;
  line-height: 1.4;
}

.post-article p,
.post-page p:not(.post-dek):not(.post-byline) {
  max-width: 680px;
  margin: 0 0 1.05em;
  color: rgba(10, 37, 64, 0.84);
  font-size: 1.02rem;
  line-height: 1.65;
}

.post-sources {
  margin-top: 1.4em;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 37, 64, 0.1);
  color: rgba(10, 37, 64, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.post-sources a {
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .shell {
    padding: 10px;
  }

  .home-header {
    padding: 12px 16px;
    gap: 10px;
  }

  .home-nav {
    gap: 14px;
  }

  .home-nav a {
    min-height: 30px;
    padding: 0;
    font-size: 0.74rem;
  }

  .site-chrome-bar {
    padding: 7px 12px;
  }

  .site-logo img {
    height: 38px;
  }

  .site-nav {
    gap: 14px;
  }

  .site-nav a,
  .site-nav .site-nav-link {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 14px;
    border-radius: 10px;
    padding: 32px 22px 38px;
    background:
      radial-gradient(circle at 100% 34%, rgba(19, 186, 238, 0.1), transparent 32%),
      radial-gradient(circle at -10% 72%, rgba(238, 19, 186, 0.12), transparent 34%),
      linear-gradient(145deg, #fff 0%, #f5fbff 100%);
  }

  .home-hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.45rem);
    line-height: 1.02;
  }

  .hero-accent-line {
    width: 84px;
    height: 6px;
    margin: 20px 0 16px;
  }

  .home-hero-copy p {
    max-width: 345px;
    font-size: 1.05rem;
    line-height: 1.52;
  }

  .home-hero-preview {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 5px;
    margin-inline: -2px;
  }

  .hero-nav {
    width: 30px;
    height: 30px;
    border-color: rgba(19, 186, 238, 0.32);
    background: rgba(255, 255, 255, 0.92);
    font-size: 1.25rem;
    box-shadow: 0 10px 26px rgba(10, 37, 64, 0.09);
  }

  .hero-live-card {
    border-color: rgba(174, 74, 229, 0.52);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 46px rgba(10, 37, 64, 0.12);
  }

  .hero-live-body {
    padding: 18px 18px 20px;
  }

  .hero-live-topline {
    margin-bottom: 8px;
  }

  .hero-live-topline span {
    color: rgba(10, 37, 64, 0.72);
    font-size: 0.83rem;
    letter-spacing: 0;
    text-transform: none;
  }

  .hero-live-card.has-mobile-forecast .hero-forecast-kicker,
  .hero-live-card.has-mobile-forecast .hero-forecast-preview > .hero-forecast-days {
    display: none;
  }

  .hero-live-card.has-mobile-forecast .hero-mobile-outlook {
    display: block;
  }

  .hero-forecast-preview {
    margin-top: 0;
  }

  .hero-mobile-location {
    margin-bottom: 16px;
    color: rgba(10, 37, 64, 0.74);
    font-size: 0.98rem;
    font-weight: 900;
  }

  .hero-mobile-primary {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
  }

  .hero-mobile-grade {
    display: grid;
    place-items: center;
    min-height: 82px;
    border: 1px solid rgba(125, 216, 247, 0.66);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), color-mix(in srgb, var(--grade-color, var(--accent)) 10%, #fff));
    color: var(--grade-color, var(--accent));
    font-size: 3.7rem;
    font-weight: 950;
    line-height: 1;
  }

  .hero-mobile-primary span,
  .hero-mobile-details span,
  .hero-mobile-outlook > span {
    display: block;
    color: rgba(10, 37, 64, 0.7);
    font-size: 0.68rem;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .hero-mobile-primary strong {
    display: block;
    margin-top: 5px;
    color: #000;
    font-size: clamp(2.1rem, 9vw, 3rem);
    font-weight: 950;
    letter-spacing: 0;
    line-height: 0.95;
  }

  .hero-mobile-forecast-card .spot-gradient {
    margin: 18px 0 20px;
    height: 8px;
  }

  .hero-mobile-camera {
    position: relative;
    margin: 18px 0 0;
    overflow: hidden;
    border: 1px solid rgba(125, 216, 247, 0.54);
    border-radius: 13px;
    aspect-ratio: 16 / 9;
    background: #071b2c;
  }

  .hero-mobile-camera img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-mobile-camera figcaption {
    position: absolute;
    left: 12px;
    bottom: 11px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(10, 37, 64, 0.74);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
  }

  .hero-mobile-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    border-top: 1px solid rgba(10, 37, 64, 0.08);
    padding-top: 16px;
  }

  .hero-mobile-details div + div {
    border-left: 1px solid rgba(10, 37, 64, 0.1);
    padding-left: 18px;
  }

  .hero-mobile-details strong {
    display: block;
    margin-top: 6px;
    color: #000;
    font-size: 0.92rem;
    line-height: 1.25;
  }

  .hero-mobile-outlook {
    margin-top: 16px;
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 32px rgba(10, 37, 64, 0.08);
  }

  .hero-mobile-outlook > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  .hero-mobile-outlook b,
  .hero-mobile-outlook em {
    display: block;
    color: rgba(10, 37, 64, 0.72);
    font-size: 0.62rem;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
  }

  .hero-mobile-outlook strong {
    display: block;
    margin: 5px 0 2px;
    color: var(--grade-color, var(--accent));
    font-size: 2rem;
    font-weight: 950;
    line-height: 1;
  }

  .hero-mobile-outlook em {
    color: #000;
    font-size: 0.68rem;
  }

  .map-header {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .home-map-card {
    width: 100%;
    margin: 0 0 18px;
    transform: none;
  }

  .conditions-map {
    height: 520px;
    min-height: 520px;
  }

  .spot-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .spot-title.is-duplicate-location span {
    display: none;
  }

  .spot-info h1 {
    margin-top: 0;
    font-size: 1.42rem;
    line-height: 1.04;
  }

  .spot-info span {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .spot-grade {
    align-self: center;
    grid-column: 2;
    justify-self: end;
    margin-left: auto;
    min-width: 74px;
    text-align: right;
  }

  .spot-grade b {
    font-size: 2.35rem;
  }

  .home-header {
    padding: 14px 4px 12px;
  }

  .map-layer-control {
    top: 10px;
    right: 62px;
    left: auto;
    padding: 7px;
  }

  .map-layer-control span {
    display: none;
  }

  .wind-legend {
    z-index: 45;
    right: 10px;
    bottom: 86px;
    left: auto;
    width: min(168px, calc(100% - 20px));
    padding: 8px 10px 8px;
  }

  .spot-map-frame .wind-legend {
    right: 10px;
    bottom: 86px;
    left: auto;
    bottom: 126px;
    width: 146px;
    padding: 7px 9px 6px;
    border-radius: 10px;
  }

  .wind-legend span {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .wind-legend-gradient {
    height: 7px;
  }

  .wind-legend-labels {
    margin-top: 4px;
    font-size: 0.58rem;
  }

  .map-layer-toggle {
    top: 10px;
    right: 62px;
    padding: 3px;
  }

  .map-layer-toggle button {
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  .depth-legend {
    right: 10px;
    bottom: 86px;
    left: auto;
    width: 146px;
    padding: 7px 9px 6px;
    border-radius: 10px;
  }

  .depth-legend span {
    margin-bottom: 5px;
    font-size: 0.58rem;
  }

  .depth-legend-gradient {
    height: 7px;
  }

  .depth-legend-labels {
    margin-top: 4px;
    font-size: 0.58rem;
  }

  .visibility-legend {
    width: min(174px, calc(100% - 20px));
  }

  .visibility-legend-gradient {
    height: 7px;
  }

  .visibility-legend-labels {
    margin-top: 4px;
    font-size: 0.52rem;
  }

  .visibility-legend small {
    margin-top: 5px;
    font-size: 0.5rem;
  }

  .wind-date-bubble {
    right: 10px;
    bottom: 202px;
    padding: 5px 8px;
    font-size: 0.56rem;
  }

  .wind-timeline {
    right: 10px;
    bottom: 10px;
    left: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 34px;
    grid-template-rows: 34px 18px;
    column-gap: 10px;
    row-gap: 6px;
    padding: 9px 10px 10px;
  }

  .wind-timeline:has(.spot-wind-prev-day:not([hidden])) {
    grid-template-columns: 34px 44px minmax(0, 1fr) 34px;
  }

  .home-wind-timeline {
    grid-template-columns: auto auto minmax(104px, 1fr) auto;
  }

  .spot-map-frame .wind-timeline {
    left: 10px;
  }

  .wind-timeline button {
    width: 30px;
    height: 30px;
  }

  .spot-wind-prev-day {
    grid-column: 1;
    grid-row: 1;
  }

  .spot-wind-play-stack {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: center;
    min-width: 34px;
    gap: 2px;
  }

  .spot-wind-prev-day:not([hidden]) + .spot-wind-play-stack {
    grid-column: 2;
  }

  .spot-wind-slider-wrap {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    width: 100%;
  }

  .wind-timeline:has(.spot-wind-prev-day:not([hidden])) .spot-wind-slider-wrap {
    grid-column: 3;
  }

  .spot-wind-thumb-time {
    top: -28px;
    min-width: 38px;
    height: 22px;
    padding: 0 7px;
    font-size: 0.58rem;
  }

  .spot-wind-next-day {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .wind-timeline:has(.spot-wind-prev-day:not([hidden])) .spot-wind-next-day {
    grid-column: 4;
  }

  .spot-wind-current-time {
    top: calc(100% + 7px);
    font-size: 0.52rem;
  }

  .wind-day-label {
    min-width: 48px;
    max-width: 62px;
    overflow: hidden;
    font-size: 0.52rem;
    text-overflow: ellipsis;
  }

  .wind-time-ticks {
    grid-column: 2 / -1;
    grid-row: 2;
    height: 0.78rem;
    margin-top: 0;
    padding: 0 2px;
    font-size: 0.5rem;
  }

  .wind-timeline:has(.spot-wind-prev-day:not([hidden])) .wind-time-ticks {
    grid-column: 3 / -1;
  }

  .wind-time-ticks span {
    display: none;
  }

  .wind-time-ticks span.is-visible {
    display: block;
  }

  .spot-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 0 14px 12px;
  }

  .spot-metrics strong {
    font-size: 0.74rem;
  }

  .spot-region-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 12px 16px;
  }

  .brand-logo {
    width: 112px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .forecast-panel,
  .split,
  .chart-grid,
  .history-item,
  .fish-grid {
    grid-template-columns: 1fr;
  }

  .grade-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wave-summary,
  .weather-grid {
    grid-template-columns: 1fr;
  }

  .wave-component-grid {
    display: none;
  }

  .wave-component-cards {
    display: none;
  }

  .wave-component-card {
    align-content: center;
    min-height: 124px;
    padding: 14px;
    border-color: rgba(19, 186, 238, 0.24);
    background:
      linear-gradient(135deg, rgba(19, 186, 238, 0.12), rgba(238, 19, 186, 0.06)),
      rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px rgba(10, 37, 64, 0.08);
  }

  .wave-component-card span {
    color: var(--dark-cyan);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }

  .wave-component-card strong {
    margin-top: 6px;
    color: var(--text);
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 0.95;
  }

  .wave-component-card em {
    margin-top: 8px;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .feature-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-shell {
    padding-bottom: 26px;
  }

  .content-header {
    margin-bottom: 8px;
  }

  .content-hero,
  .featured-post,
  .about-system {
    grid-template-columns: 1fr;
  }

  .content-hero {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .content-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.1rem);
  }

  .content-command-card {
    min-height: 190px;
  }

  .blog-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .blog-card,
  .about-grid article,
  .featured-post,
  .about-system,
  .content-cta {
    padding: 20px;
  }

  .blog-card {
    min-height: 218px;
  }

  .about-system dl {
    grid-template-columns: 1fr;
  }

  .content-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .publication .shell.article-shell {
    padding-top: 12px;
    padding-bottom: 36px;
  }

  .featured-story {
    margin-top: 4px;
    padding: 16px 16px 14px;
  }

  .post-article {
    padding: 16px 16px 24px;
  }

  .post-page {
    padding: 0;
  }

  .post-page h1,
  .featured-story h1,
  .featured-story h2,
  .post-article h1 {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }

  .post-dek {
    font-size: 1.02rem;
  }

  .content-cta a {
    width: 100%;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .forecast-main {
    grid-template-columns: 86px 1fr;
    gap: 12px;
  }

  .forecast-main > strong {
    min-height: 92px;
    padding: 10px;
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .primary-stat strong {
    font-size: clamp(2.2rem, 14vw, 3.4rem);
  }

  .forecast-meta {
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }

  .forecast-panel {
    overflow: hidden;
    padding: 16px;
  }

  .spot-heading {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .camera-frame img {
    height: auto;
    max-height: none;
    object-fit: cover;
  }

  .camera-live-link {
    right: 10px;
    bottom: 10px;
  }

  .camera-observed-badge {
    left: 10px;
    bottom: 10px;
  }

  .comments-strip {
    max-width: none;
  }

  .chart-grid article {
    padding: 12px 10px 10px;
  }

  .chart {
    padding: 2px 0 0;
  }

  .chart svg {
    max-width: none;
    aspect-ratio: 800 / 110;
  }

  .fish-row summary {
    grid-template-columns: 30px 1fr auto;
    gap: 6px 9px;
  }
}

/* Final cascade overrides: keep the multi-location detail map aligned with the current DivePro map UI. */
.spot-map-frame {
  position: relative;
}

.spot-map-frame .wind-legend {
  right: 16px;
  bottom: 92px;
  left: auto;
  z-index: 43;
  width: min(230px, calc(100% - 32px));
}

.wind-date-bubble {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 102px;
  transform: translateX(-50%);
  z-index: 43;
  border: 1px solid rgba(125, 216, 247, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(5, 22, 37, 0.8);
  color: #d8f5ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.wind-date-bubble[hidden],
.wind-timeline button[hidden] {
  display: none;
}

.wind-timeline {
  right: 12px;
  bottom: 12px;
  left: min(270px, 34%);
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
}

.spot-wind-prev-day {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 1.35rem;
}

.wind-prev-day {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  font-size: 1.35rem;
}

.spot-wind-play-stack {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 40px;
  align-self: center;
}

.wind-play-stack {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 40px;
  align-self: center;
}

.spot-wind-slider-wrap {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  min-width: 0;
  align-self: center;
}

.wind-slider-wrap {
  grid-column: 3;
  grid-row: 1;
  position: relative;
  min-width: 0;
  align-self: center;
}

.spot-wind-slider {
  width: 100%;
}

.wind-slider-wrap input[type="range"] {
  grid-column: auto;
  width: 100%;
}

.spot-wind-next-day {
  grid-column: 4;
  grid-row: 1;
  align-self: center;
  font-size: 1.35rem;
}

.spot-wind-current-time {
  display: none;
}

.wind-current-time {
  display: none;
}

.spot-wind-thumb-time {
  position: absolute;
  z-index: 3;
  top: -31px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0 9px;
  background: #13baee;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.wind-thumb-time {
  position: absolute;
  z-index: 3;
  top: -31px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 0 9px;
  background: #13baee;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.spot-wind-thumb-time::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid rgba(255, 255, 255, 0.94);
  background: #13baee;
  transform: translateX(-50%) rotate(45deg);
}

.wind-thumb-time::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 11px;
  height: 11px;
  border-right: 2px solid rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid rgba(255, 255, 255, 0.94);
  background: #13baee;
  transform: translateX(-50%) rotate(45deg);
}

.wind-time-ticks {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  display: block;
  height: 0.82rem;
  margin-top: -3px;
  color: rgba(216, 245, 255, 0.66);
  font-size: 0.52rem;
  font-weight: 850;
  text-transform: uppercase;
}

.wind-time-ticks span {
  position: absolute;
  top: 0;
  display: none;
  min-width: max-content;
  transform: translateX(-50%);
  white-space: nowrap;
}

.wind-time-ticks span.is-visible {
  display: block;
}

.wind-time-ticks span.is-start {
  transform: none;
}

.wind-time-ticks span.is-end {
  transform: translateX(-100%);
}

.map-wind-probe-pin {
  gap: 6px;
}

.map-wind-probe-arrow {
  position: relative;
  z-index: 1;
  display: block;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transform: rotate(var(--wind-flow-rotation, 90deg));
}

.map-wind-probe-arrow::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.map-wind-probe-arrow::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 3px;
  width: 7px;
  height: 7px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .spot-map-frame .wind-legend {
    right: 16px;
    bottom: 102px;
    left: auto;
    width: min(176px, calc(100% - 32px));
    padding: 9px 11px;
  }

  .wind-date-bubble {
    left: 50%;
    right: auto;
    bottom: 102px;
    transform: translateX(-50%);
    font-size: 0.56rem;
  }

  .wind-timeline {
    right: 16px;
    bottom: 14px;
    left: 16px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-rows: 36px 14px;
    gap: 8px 10px;
    min-height: 74px;
    padding: 10px 12px 12px;
  }

  .home-wind-timeline {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .spot-wind-prev-day {
    grid-column: 1;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    height: 36px;
  }

  .wind-prev-day {
    grid-column: 1;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    height: 36px;
  }

  .spot-wind-play-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .wind-play-stack {
    grid-column: 2;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
  }

  .spot-wind-slider-wrap {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .wind-slider-wrap {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .spot-wind-next-day {
    grid-column: 4;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    height: 36px;
  }

  .wind-next-day {
    grid-column: 4;
    grid-row: 1 / span 2;
    place-self: center;
    width: 36px;
    height: 36px;
  }

  .spot-wind-thumb-time {
    top: -33px;
    min-width: 40px;
    height: 23px;
    padding: 0 7px;
    font-size: 0.6rem;
  }

  .wind-thumb-time {
    top: -33px;
    min-width: 40px;
    height: 23px;
    padding: 0 7px;
    font-size: 0.6rem;
  }

  .wind-time-ticks {
    grid-column: 3;
    grid-row: 2;
    height: 0.76rem;
    margin-top: 0;
    font-size: 0.5rem;
  }
}

/* Map UI polish: final, intentional geometry for the homepage and spot wind controls. */
.map-frame .wind-timeline,
.spot-map-frame .wind-timeline {
  box-sizing: border-box;
  align-items: center;
}

.spot-map-frame .wind-timeline {
  right: 16px;
  left: 16px;
}

.home-wind-timeline {
  grid-template-columns: 38px 38px minmax(0, 1fr) 38px;
  grid-template-rows: 38px 14px;
  gap: 6px 12px;
}

.home-wind-timeline .wind-prev-day,
.home-wind-timeline .wind-next-day,
.home-wind-timeline .wind-play-stack {
  align-self: center;
  justify-self: center;
}

.home-wind-timeline .wind-play-stack {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
}

.home-wind-timeline .wind-play-stack .wind-current-time {
  display: none;
}

.home-wind-timeline .wind-slider-wrap {
  align-self: center;
  grid-column: 3;
  grid-row: 1;
  position: relative;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
}

.home-wind-timeline .wind-slider-wrap input[type="range"] {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}

.home-wind-timeline .wind-slider-wrap input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border: 1px solid rgba(216, 245, 255, 0.42);
  border-radius: 999px;
  background: rgba(216, 245, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(5, 22, 37, 0.18);
}

.home-wind-timeline .wind-slider-wrap input[type="range"]::-moz-range-track {
  height: 5px;
  border: 1px solid rgba(216, 245, 255, 0.42);
  border-radius: 999px;
  background: rgba(216, 245, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(5, 22, 37, 0.18);
}

.home-wind-timeline .wind-slider-wrap input[type="range"]::-webkit-slider-thumb {
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  background: #13baee;
  box-shadow: 0 0 0 3px rgba(19, 186, 238, 0.18), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.home-wind-timeline .wind-slider-wrap input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #13baee;
  box-shadow: 0 0 0 3px rgba(19, 186, 238, 0.18), 0 8px 18px rgba(0, 0, 0, 0.26);
}

.home-wind-timeline .wind-time-ticks {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
  height: 14px;
  margin: -1px 0 0;
  overflow: visible;
  line-height: 1;
}

.home-wind-timeline .wind-time-ticks span {
  top: 0;
  color: rgba(216, 245, 255, 0.72);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0;
}

.home-wind-timeline .wind-thumb-time {
  top: -28px;
  height: 24px;
  min-width: 46px;
  background: #13baee;
}

.map-frame .maplibregl-ctrl-top-left {
  top: 10px;
  left: 10px;
}

.map-frame .maplibregl-ctrl-top-right {
  top: 10px;
  right: 10px;
}

.map-frame .maplibregl-ctrl-attrib {
  max-width: min(360px, calc(100vw - 120px));
  border-radius: 999px;
  overflow: hidden;
  background: rgba(216, 245, 255, 0.72);
  color: rgba(5, 22, 37, 0.68);
  backdrop-filter: blur(12px);
}

@media (max-width: 640px) {
  .map-frame {
    overflow: hidden;
    border-radius: 10px;
  }

  .home-map-card .map-header {
    padding: 13px 14px;
  }

  .home-map-card .conditions-map {
    height: min(64vh, 520px);
    min-height: 440px;
  }

  .home-map-card .wind-legend {
    right: 16px;
    bottom: 104px;
    left: auto;
    width: min(168px, calc(100% - 32px));
  }

  .home-map-card .wind-date-bubble {
    right: 18px;
    bottom: 184px;
  }

  .home-wind-timeline {
    right: 16px;
    bottom: 16px;
    left: 16px;
    grid-template-columns: 36px 36px minmax(0, 1fr) 36px;
    grid-template-rows: 36px 14px;
    gap: 5px 9px;
    min-height: 78px;
    padding: 10px 11px 12px;
  }

  .home-wind-timeline .wind-prev-day,
  .home-wind-timeline .wind-next-day,
  .home-wind-timeline .wind-play-stack,
  .home-wind-timeline .wind-timeline button {
    width: 36px;
    height: 36px;
  }

  .home-wind-timeline .wind-slider-wrap {
    height: 36px;
  }

  .home-wind-timeline .wind-slider-wrap input[type="range"] {
    height: 36px;
  }

  .home-wind-timeline .wind-slider-wrap input[type="range"]::-webkit-slider-thumb {
    width: 24px;
    height: 24px;
    margin-top: -10px;
  }

  .home-wind-timeline .wind-slider-wrap input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

  .home-wind-timeline .wind-thumb-time {
    top: -29px;
    min-width: 42px;
    height: 23px;
    font-size: 0.58rem;
  }

  .home-wind-timeline .wind-time-ticks {
    grid-column: 3;
    height: 14px;
    margin-top: 0;
  }

  .home-wind-timeline .wind-time-ticks span {
    font-size: 0.5rem;
  }

  .map-frame .maplibregl-ctrl-top-left {
    right: 72px;
    left: auto;
  }

  .map-frame .maplibregl-ctrl-top-left .maplibregl-ctrl {
    margin: 10px 0 0 0;
  }

  .map-frame .maplibregl-ctrl-attrib {
    max-width: 180px;
    font-size: 0.56rem;
  }
}

/* Spot map timeline: one responsive control for hourly frames and direct day selection. */
.spot-map-frame .spot-wind-legend {
  right: auto;
  left: 16px;
  bottom: 190px;
}

.spot-map-frame .spot-wind-timeline {
  right: 16px;
  bottom: 16px;
  left: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 14px;
  min-height: 158px;
  border: 1px solid rgba(125, 216, 247, 0.3);
  border-radius: 16px;
  padding: 14px 16px 16px;
  overflow: hidden;
  background: rgba(5, 22, 37, 0.86);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.spot-map-frame .spot-wind-timeline.is-hidden {
  display: none;
}

.spot-wind-control-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-rows: 26px auto;
  align-items: center;
  column-gap: 16px;
  row-gap: 2px;
  min-width: 0;
}

.spot-wind-timeline .spot-wind-play {
  grid-column: 1;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(125, 216, 247, 0.42);
  border-radius: 999px;
  padding: 0 0 0 3px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font-size: 1.05rem;
}

.spot-wind-readout {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 24px;
  border: 1px solid rgba(125, 216, 247, 0.52);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(19, 186, 238, 0.16);
  color: #d8f5ff;
  font-size: 0.65rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.spot-wind-timeline .spot-wind-play:hover,
.spot-wind-timeline .spot-wind-play:focus-visible {
  border-color: rgba(255, 255, 255, 0.84);
  background: rgba(19, 186, 238, 0.22);
}

.spot-wind-axis {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 30px 16px;
  width: 100%;
  min-width: 0;
}

.spot-wind-slider-wrap {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 30px;
}

.spot-wind-timeline .spot-wind-slider {
  display: block;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.spot-wind-timeline .spot-wind-slider::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid rgba(216, 245, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 186, 238, 0.55), rgba(216, 245, 255, 0.2));
}

.spot-wind-timeline .spot-wind-slider::-moz-range-track {
  height: 6px;
  border: 1px solid rgba(216, 245, 255, 0.55);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 186, 238, 0.55), rgba(216, 245, 255, 0.2));
}

.spot-wind-timeline .spot-wind-slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  border: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  background: #13baee;
  box-shadow: 0 0 0 4px rgba(19, 186, 238, 0.2), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.spot-wind-timeline .spot-wind-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: #13baee;
  box-shadow: 0 0 0 4px rgba(19, 186, 238, 0.2), 0 6px 16px rgba(0, 0, 0, 0.3);
}

.spot-wind-timeline .spot-wind-ticks {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  display: block;
  width: 100%;
  height: 16px;
  margin: 0;
  color: rgba(216, 245, 255, 0.74);
  font-size: 0.56rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.spot-wind-timeline .spot-wind-ticks span {
  position: absolute;
  top: 1px;
  display: block;
  min-width: max-content;
  transform: translateX(-50%);
  visibility: hidden;
  white-space: nowrap;
}

.spot-wind-timeline .spot-wind-ticks span.is-visible {
  visibility: visible;
}

.spot-wind-timeline .spot-wind-ticks span.is-start {
  transform: none;
}

.spot-wind-timeline .spot-wind-ticks span.is-end {
  transform: translateX(-100%);
}

.spot-wind-days {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72px, max-content);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(125, 216, 247, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

.spot-wind-days::-webkit-scrollbar {
  height: 5px;
  display: block;
}

.spot-wind-days::-webkit-scrollbar-thumb {
  background: rgba(13, 122, 140, 0.35);
  border-radius: 999px;
}

.spot-wind-timeline .spot-wind-days button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 86px;
  height: 44px;
  border: 0;
  border-right: 1px solid rgba(125, 216, 247, 0.22);
  border-radius: 0;
  gap: 4px;
  padding: 0 12px;
  background: transparent;
  color: rgba(216, 245, 255, 0.72);
  box-shadow: none;
  scroll-snap-align: center;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.spot-wind-timeline .spot-wind-days button:last-child {
  border-right: 0;
}

.spot-wind-timeline .spot-wind-days button b {
  font: inherit;
}

.spot-wind-timeline .spot-wind-days button.is-active {
  border-radius: 0;
  background: linear-gradient(135deg, #1768ff, #13baee);
  color: #fff;
  box-shadow: 0 10px 24px rgba(19, 186, 238, 0.24);
}

.spot-wind-timeline .spot-wind-days button:first-child.is-active {
  border-radius: 999px 0 0 999px;
}

.spot-wind-timeline .spot-wind-days button:last-child.is-active {
  border-radius: 0 999px 999px 0;
}

.spot-wind-timeline .spot-wind-days button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid #fff;
  outline-offset: -3px;
}

@media (max-width: 640px) {
  .spot-map-frame {
    height: 580px;
  }

  .spot-map-frame .spot-wind-legend {
    right: auto;
    left: 12px;
    bottom: 202px;
  }

  .spot-map-frame .spot-wind-timeline {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 12px;
    min-height: 174px;
    padding: 14px 12px 14px;
    border-radius: 16px;
  }

  .spot-wind-control-row {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 24px auto;
    column-gap: 12px;
    row-gap: 2px;
  }

  .spot-wind-timeline .spot-wind-play {
    width: 44px;
    height: 44px;
  }

  .spot-wind-readout {
    min-width: 58px;
    height: 22px;
    padding: 0 8px;
    font-size: 0.6rem;
  }

  .spot-wind-timeline .spot-wind-ticks {
    font-size: 0.52rem;
  }

  .spot-wind-days {
    grid-auto-columns: 88px;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-type: x proximity;
  }

  .spot-wind-timeline .spot-wind-days button {
    min-width: 100px;
    height: 40px;
    border: 1px solid rgba(125, 216, 247, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.72rem;
  }

  .spot-wind-timeline .spot-wind-days button.is-active,
  .spot-wind-timeline .spot-wind-days button:first-child.is-active,
  .spot-wind-timeline .spot-wind-days button:last-child.is-active {
    border-radius: 999px;
  }

  .spot-wind-timeline .spot-wind-days button:last-child {
    border-right: 1px solid rgba(125, 216, 247, 0.34);
  }
}

/* Homepage directory: search, map, location bubbles. */
.home-directory-shell {
  padding-top: 16px;
  padding-bottom: 36px;
}

.home-search {
  margin: 0 0 16px;
}

.home-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.home-search input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 12px;
  padding: 0 16px;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 28px rgba(19, 186, 238, 0.06);
  font-size: 1rem;
  font-weight: 650;
}

.home-search input::placeholder {
  color: rgba(10, 37, 64, 0.45);
}

.home-search input:focus {
  outline: 2px solid rgba(19, 186, 238, 0.45);
  outline-offset: 2px;
}

.home-spot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
}

.home-spot-layout > * {
  min-width: 0;
}

.home-map-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: auto;
  max-width: none;
  margin: 0;
  transform: none;
}

.home-map-card .map-frame,
.home-map-card .spot-map-graphic {
  max-width: 100%;
}

.home-map-card .spot-map-graphic {
  flex: 1 1 auto;
  min-height: 0;
  height: clamp(320px, 39vh, 440px);
}

.home-bubbles-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.home-bubbles-heading {
  visibility: hidden;
}

.home-bubbles {
  display: grid;
  gap: 8px;
}

.spot-bubble {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  color: inherit;
  box-shadow: 0 8px 22px rgba(19, 186, 238, 0.07);
  text-decoration: none;
}

.spot-bubble-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}

.spot-bubble:hover,
.spot-bubble:focus-within {
  border-color: rgba(19, 186, 238, 0.42);
  box-shadow: 0 16px 42px rgba(19, 186, 238, 0.13);
}

.spot-bubble-main:focus-visible {
  outline: 2px solid rgba(19, 186, 238, 0.45);
  outline-offset: -4px;
}

.spot-bubble-camera {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: #0a2540;
  aspect-ratio: auto;
}

.spot-bubble-camera img,
.spot-bubble-camera iframe,
.spot-bubble-camera-play,
.spot-bubble-camera-still {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.spot-bubble-camera img {
  object-fit: cover;
}

.spot-bubble-camera-play,
.spot-bubble-camera-still {
  position: relative;
  padding: 0;
  background: #0a2540;
  cursor: pointer;
}

.spot-bubble-camera-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, rgba(10, 37, 64, 0.05), rgba(10, 37, 64, 0.28));
}

.spot-bubble-camera-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.spot-bubble-camera-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 6px;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.spot-bubble-camera.is-camera-missing img,
.spot-bubble-camera.is-camera-missing .spot-bubble-camera-play,
.spot-bubble-camera.is-camera-missing .spot-bubble-camera-still {
  display: none;
}

.spot-bubble-camera.is-camera-missing {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  aspect-ratio: auto;
}

.spot-bubble-main {
  grid-column: 2;
  grid-row: 1;
}

.spot-bubble-copy {
  min-width: 0;
}

.spot-bubble-copy h2 {
  margin: 0 0 2px;
  color: var(--navy);
  font-size: 0.98rem;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.spot-bubble-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-bubble-grade {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: 1px;
  color: var(--grade-color, var(--navy));
}

.spot-bubble-grade b {
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1;
}

.spot-bubble-grade span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.home-search-empty {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

@media (min-width: 980px) {
  .home-spot-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 360px);
    align-items: start;
    gap: 14px;
  }

  .home-bubbles-card {
    height: auto;
  }

  .home-bubbles.is-hub-fill {
    flex: none;
    overflow: hidden;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    height: clamp(480px, 42vw, 640px);
    min-height: 0;
  }

  .spot-bubble {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 979px) {
  .home-bubbles-heading {
    display: none;
  }

  .home-directory .home-map-card .spot-map-graphic {
    min-height: 0;
    height: 300px;
  }

  /* Location Region Map only. Home hero stays 300/320; /map.html is not .region-map-card. */
  .region-map-card:not(.home-map-card) .spot-map-graphic {
    height: 340px;
  }

  .home-bubbles,
  .home-bubbles.is-hub-fill {
    height: auto;
    grid-template-rows: none;
  }

  .spot-bubble {
    grid-template-columns: 96px minmax(0, 1fr);
    height: 80px;
    min-height: 72px;
    max-height: 88px;
  }
}

/* Wind player sits under the map graphic instead of covering the coast. */
.region-map-card .map-frame.spot-map-frame,
.home-map-card .map-frame.spot-map-frame,
.map-frame.spot-map-frame {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.spot-map-graphic {
  position: relative;
  height: clamp(320px, 35vw, 440px);
  overflow: hidden;
  border: 1px solid rgba(19, 186, 238, 0.2);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(125, 216, 247, 0.14), rgba(238, 19, 186, 0.06)),
    #eefbff;
}

.region-map-card .spot-map-graphic {
  height: clamp(340px, 30vw, 530px);
}

@media (min-width: 980px) {
  .home-directory .home-map-card .spot-map-graphic {
    flex: 1 1 auto;
    min-height: 0;
    height: clamp(320px, 39vh, 440px);
  }
}

.spot-map-graphic .spot-region-map {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
}

.spot-map-frame .spot-wind-legend {
  bottom: 16px;
}

.spot-map-frame .spot-wind-timeline {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  min-height: 0;
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px 12px;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

@media (max-width: 640px) {
  .home-directory-shell {
    padding-top: 12px;
  }

  .home-search input {
    height: 46px;
  }

  .home-bubbles-heading {
    display: none;
  }

  .home-map-card .spot-map-graphic {
    min-height: 0;
    height: 300px;
  }

  .home-bubbles,
  .home-bubbles.is-hub-fill {
    height: auto;
    grid-template-rows: none;
  }

  .spot-bubble {
    grid-template-columns: 96px minmax(0, 1fr);
    height: 80px;
    min-height: 72px;
    max-height: 88px;
  }

  .spot-bubble-camera,
  .spot-bubble-camera.is-camera-missing {
    height: 100%;
    min-height: 0;
  }

  .spot-bubble-main {
    padding: 8px 10px;
  }

  .spot-bubble-copy h2 {
    font-size: 0.92rem;
  }

  .map-frame.spot-map-frame,
  .spot-map-frame {
    height: auto;
  }

  .spot-map-graphic {
    height: 280px;
  }

  .region-map-card:not(.home-map-card) .spot-map-graphic {
    height: 340px;
  }

  .home-map-card .spot-map-graphic {
    height: 300px;
  }

  .spot-map-frame .spot-wind-legend {
    bottom: 12px;
  }

  .spot-map-frame .spot-wind-timeline {
    right: auto;
    bottom: auto;
    left: auto;
    min-height: 0;
    margin-top: 10px;
    padding: 10px 12px 12px;
    border-radius: 12px;
  }
}

/* Light wind player: same white/teal cards as the rest of the site. */
.spot-map-frame .spot-wind-timeline {
  background: #fff;
  color: var(--navy);
  border: 1px solid rgba(13, 122, 140, 0.16);
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
  backdrop-filter: none;
}

.spot-wind-readout {
  background: rgba(19, 186, 238, 0.14);
  border-color: rgba(19, 186, 238, 0.4);
  color: var(--navy);
}

.spot-wind-timeline .spot-wind-play {
  background: #fff;
  border: 1px solid rgba(19, 186, 238, 0.32);
  color: var(--navy);
  box-shadow: none;
}

.spot-wind-timeline .spot-wind-play:hover,
.spot-wind-timeline .spot-wind-play:focus-visible {
  border-color: #13baee;
  background: rgba(19, 186, 238, 0.12);
  color: var(--navy);
}

.spot-wind-timeline .spot-wind-ticks {
  color: rgba(10, 37, 64, 0.48);
}

.spot-wind-timeline .spot-wind-slider::-webkit-slider-runnable-track,
.spot-wind-timeline .spot-wind-slider::-moz-range-track {
  background: rgba(19, 186, 238, 0.16);
  border-color: rgba(19, 186, 238, 0.28);
}

.spot-wind-days {
  background: rgba(125, 216, 247, 0.12);
  border-color: rgba(13, 122, 140, 0.14);
}

.spot-wind-timeline .spot-wind-days button {
  color: rgba(10, 37, 64, 0.55);
  border-right-color: rgba(13, 122, 140, 0.12);
  background: transparent;
}

.spot-wind-timeline .spot-wind-days button.is-active,
.spot-wind-timeline .spot-wind-days button:first-child.is-active,
.spot-wind-timeline .spot-wind-days button:last-child.is-active {
  background: linear-gradient(135deg, #13baee, #0075df);
  color: #fff;
  box-shadow: 0 8px 18px rgba(19, 186, 238, 0.2);
}

@media (max-width: 640px) {
  .spot-wind-timeline .spot-wind-days button {
    border-color: rgba(13, 122, 140, 0.16);
    background: #fff;
    color: rgba(10, 37, 64, 0.55);
  }

  .spot-wind-timeline .spot-wind-days button.is-active,
  .spot-wind-timeline .spot-wind-days button:first-child.is-active,
  .spot-wind-timeline .spot-wind-days button:last-child.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #13baee, #0075df);
    color: #fff;
  }
}

/* Player lives under the map canvas on home + every spot page. Never overlay. */
.map-frame.spot-map-frame,
.spot-map-frame {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
}

.spot-map-frame .wind-timeline.spot-wind-timeline {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  inset: auto;
  z-index: 1;
  width: 100%;
  min-height: 0;
  margin-top: 8px;
  padding: 8px 10px 9px;
  gap: 8px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 12px 38px rgba(19, 186, 238, 0.08);
  backdrop-filter: none;
}

.spot-map-frame .spot-wind-legend {
  bottom: 14px;
}

.spot-wind-control-row {
  column-gap: 12px;
  row-gap: 0;
}

.spot-map-frame .spot-wind-timeline .spot-wind-play {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(13, 122, 140, 0.18);
  background: var(--surface);
  color: var(--navy);
  box-shadow: none;
}

.spot-map-frame .spot-wind-timeline .spot-wind-play:hover,
.spot-map-frame .spot-wind-timeline .spot-wind-play:focus-visible {
  border-color: var(--primary);
  background: rgba(19, 186, 238, 0.12);
  color: var(--navy);
}

.spot-map-frame .spot-wind-timeline .spot-wind-readout {
  min-width: 52px;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(19, 186, 238, 0.4);
  background: rgba(19, 186, 238, 0.16);
  color: var(--navy);
}

.spot-map-frame .spot-wind-timeline .spot-wind-ticks {
  color: var(--muted);
}

.spot-map-frame .spot-wind-timeline .spot-wind-slider::-webkit-slider-runnable-track,
.spot-map-frame .spot-wind-timeline .spot-wind-slider::-moz-range-track {
  background: rgba(19, 186, 238, 0.14);
  border: 1px solid rgba(13, 122, 140, 0.16);
}

.spot-map-frame .spot-wind-timeline .spot-wind-slider::-webkit-slider-thumb,
.spot-map-frame .spot-wind-timeline .spot-wind-slider::-moz-range-thumb {
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(19, 186, 238, 0.18);
}

.spot-map-frame .spot-wind-timeline .spot-wind-days {
  background: var(--surface-soft);
  border: 1px solid rgba(13, 122, 140, 0.14);
  min-width: 0;
  max-width: 100%;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button {
  color: var(--muted);
  background: transparent;
  border-right-color: rgba(13, 122, 140, 0.12);
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button.is-active,
.spot-map-frame .spot-wind-timeline .spot-wind-days button:first-child.is-active,
.spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 640px) {
  .spot-map-frame .wind-timeline.spot-wind-timeline {
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 8px;
    min-height: 0;
    padding: 8px 10px 9px;
    border-radius: 8px;
  }

  .spot-map-frame .spot-wind-legend {
    bottom: 12px;
  }

  .spot-map-frame .spot-wind-timeline .spot-wind-days button {
    border-color: rgba(13, 122, 140, 0.16);
    background: var(--surface);
    color: var(--muted);
  }

  .spot-map-frame .spot-wind-timeline .spot-wind-days button.is-active,
  .spot-map-frame .spot-wind-timeline .spot-wind-days button:first-child.is-active,
  .spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child.is-active {
    border-color: transparent;
    background: var(--primary);
    color: #fff;
  }
}

/* Day strip: fill the row on desktop, no overlapping pills on mobile. */
.spot-map-frame .spot-wind-timeline .spot-wind-days {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  gap: 0;
  padding: 0;
  background: #fff;
  border: 1px solid rgba(13, 122, 140, 0.16);
  border-radius: 999px;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  height: 36px;
  padding: 0 6px;
  border: 0;
  border-right: 1px solid rgba(13, 122, 140, 0.12);
  border-radius: 0;
  background: transparent;
  font-size: 0.72rem;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child {
  border-right: 0;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button.is-active,
.spot-map-frame .spot-wind-timeline .spot-wind-days button:first-child.is-active,
.spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child.is-active {
  border-radius: 0;
  box-shadow: none;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button:first-child.is-active {
  border-radius: 999px 0 0 999px;
}

.spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child.is-active {
  border-radius: 0 999px 999px 0;
}

@media (max-width: 640px) {
  .spot-map-frame .spot-wind-timeline .spot-wind-days {
    gap: 8px;
    background: transparent;
    border: 0;
    border-radius: 0;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .spot-map-frame .spot-wind-timeline .spot-wind-days::-webkit-scrollbar {
    display: none;
  }

  .spot-map-frame .spot-wind-timeline .spot-wind-days button,
  .spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child {
    flex: 0 0 auto;
    min-width: 76px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(13, 122, 140, 0.18);
    border-radius: 999px;
    background: #fff;
    scroll-snap-align: start;
  }

  .spot-map-frame .spot-wind-timeline .spot-wind-days button.is-active,
  .spot-map-frame .spot-wind-timeline .spot-wind-days button:first-child.is-active,
  .spot-map-frame .spot-wind-timeline .spot-wind-days button:last-child.is-active {
    border-radius: 999px;
    border-color: transparent;
    background: var(--primary);
    color: #fff;
  }
}

.feedback-card {
  max-width: 640px;
  padding: 8px 2px 24px;
}

.feedback-card h1 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.feedback-lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(13, 122, 140, 0.22);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 550;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 160px;
}

.feedback-form button {
  justify-self: start;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
}

.feedback-form button:hover,
.feedback-form button:focus-visible {
  outline: 2px solid rgba(19, 186, 238, 0.45);
  outline-offset: 2px;
}

.feedback-status {
  margin: 0;
  color: var(--dark-cyan);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Append from demo-patches/home-directory/site-nav.css. Test site only.
   Blog and Feedback share one nav-link type. Last-loaded lock. */

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.site-nav a,
.site-nav .site-nav-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  vertical-align: middle;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .site-nav-link:hover,
.site-nav .site-nav-link:focus-visible {
  color: var(--dark-cyan);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"],
.site-nav .site-nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 720px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a,
  .site-nav .site-nav-link {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    padding: 0;
  }
}
