/* Base reset and page defaults (moved from the retired legacy stylesheet so
   this file is self-sufficient). */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --family-anchor-offset: 88px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--family-anchor-offset);
}

body {
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.family-home {
  --family-ink: #172033;
  --family-cream: #fbf3da;
  --family-paper: #fffdf8;
  --family-yellow: #f7cf55;
  --family-sea: #8ed3d0;
  --family-coral: #ff9d7a;
  --family-green: #b9db84;
  --family-line: #172033;
  --family-photo-card-scrim: linear-gradient(180deg, rgba(17, 24, 32, 0.78), rgba(17, 24, 32, 0.84));
  --event-category-all: var(--family-yellow);
  --event-category-live-music: var(--family-coral);
  --event-category-events: var(--family-sea);
  --event-category-kids-family: var(--family-yellow);
  --event-category-sport-outdoors: var(--family-green);
  --event-category-seasonal-opening: #d6eeb2;
  --event-category-offers-deals: #ffbea8;
  --event-category-community: #f8df80;
  background: var(--family-cream);
  color: var(--family-ink);
  font-family: 'Nunito', sans-serif;
}

.family-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: #111820;
  color: #fff;
}

.family-header > * {
  min-width: 0;
}

.family-header a {
  color: inherit;
  text-decoration: none;
}

.family-home a:focus-visible,
.family-home button:focus-visible {
  outline: 3px solid var(--family-yellow);
  outline-offset: 4px;
}

.family-header__brand,
.family-header__nav a,
.family-nav-group__trigger {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-header__nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  justify-content: center;
  /* overflow must stay visible: an overflow:auto/hidden container clips the
     absolutely-positioned dropdowns (overflow-x:auto forces overflow-y:auto per
     spec). Items wrap to a second row instead of horizontal-scrolling. */
  overflow: visible;
  padding: 8px 0;
  white-space: nowrap;
}

.family-header__nav a,
.family-nav-group__trigger {
  color: rgba(255, 255, 255, 0.7);
}

.family-header__nav > a {
  line-height: 1;
}

.family-header__nav a:hover,
.family-nav-group__trigger:hover {
  color: rgba(255, 255, 255, 0.95);
}

.family-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.family-nav-group__trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.family-nav-group__trigger::after {
  content: '▾';
  font-size: 0.6em;
  line-height: 1;
}

.family-nav-group__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 180px;
  padding: 8px 0;
  list-style: none;
  background: var(--family-ink);
  border-radius: 6px;
  margin: 0;
}

.family-nav-group__dropdown[hidden] {
  display: none;
}

.family-nav-group__dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
}

.family-nav-group__dropdown a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
}

.family-header__hamburger {
  display: none;
}

.family-mobile-drawer {
  display: none;
}

.family-nav-group {
  position: relative;
}

.family-nav-group__trigger {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-nav-group__trigger:hover {
  color: #fff;
}

.family-nav-group__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 200;
  min-width: 170px;
  padding: 4px 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: #111820;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  list-style: none;
}

.family-nav-group__dropdown[hidden] {
  display: none;
}

.family-nav-group__dropdown li a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  color: rgba(255, 248, 223, 0.82) !important;
  font-size: 0.74rem !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.family-nav-group__dropdown li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 223, 1) !important;
}

.family-home h1,
.family-home h2,
.family-home h3,
.family-home p {
  overflow-wrap: break-word;
}

.family-breadcrumb {
  padding: 12px clamp(18px, 5vw, 58px) 0;
}

.family-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-breadcrumb__item {
  color: rgba(255, 255, 255, 0.5);
}

.family-breadcrumb__item + .family-breadcrumb__item::before {
  content: '›';
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.3);
}

.family-breadcrumb__item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.family-breadcrumb__item a:hover {
  color: rgba(255, 255, 255, 0.95);
}

.family-hero {
  padding-top: clamp(10px, 1.2vw, 16px);
  padding-bottom: clamp(8px, 0.8vw, 12px);
  padding-inline: clamp(18px, 5vw, 58px);
  background:
    linear-gradient(105deg, rgba(251, 243, 218, 0.98) 0 50%, rgba(251, 243, 218, 0.3) 82%),
    url('../img/hero.jpg') center 38% / cover no-repeat;
}

.family-home:not(.family-subpage) .family-hero {
  padding-bottom: 64px;
}

.family-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
}

.family-shell > * {
  min-width: 0;
}

.family-badge {
  display: inline-flex;
  max-width: max-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  border: 2px solid var(--family-line);
  border-radius: 999px;
  background: var(--family-paper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(23, 32, 51, 0.18);
}

.family-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.8rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.family-copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: #42505a;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.family-live-note {
  display: inline-block;
  margin: 18px 0 0;
  padding: 9px 12px;
  border: 2px solid var(--family-line);
  border-radius: 999px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.family-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid currentColor;
  background: var(--family-paper);
  color: var(--family-ink);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.family-button--dark {
  background: var(--family-ink);
  color: #fff;
}

.family-button--light {
  background: var(--family-paper);
  color: var(--family-ink);
}

.family-button:active,
.family-header a:active,
.family-strip a:active,
.family-feature .family-button:active,
.family-services a:active,
.family-events-grid a:active {
  transform: translateY(1px);
}

.family-planner {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 14px;
  align-self: center;
}

.family-planner .family-card {
  min-height: 190px;
}

.family-planner .family-card--activity {
  background: var(--family-yellow);
}

.family-planner .family-card--activity-sea {
  background: var(--family-sea);
}

.family-planner .family-card--activity-green {
  background: #eef7d8;
}

.family-card {
  display: grid;
  grid-template-columns: clamp(92px, 10vw, 132px) minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  align-items: start;
  min-height: 152px;
  padding: 20px;
  border: 3px solid var(--family-line);
  border-radius: 26px;
  background: var(--family-paper);
  box-shadow: 8px 8px 0 var(--family-ink);
}

.family-card--sponsor {
  background: var(--family-yellow);
}

.family-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: max-content;
  min-height: 34px;
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-weight: 700;
  font-variant-numeric: normal;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-card h2 {
  margin: 0;
  font-size: clamp(1.28rem, 1.7vw, 1.58rem);
  line-height: 1;
  text-transform: uppercase;
}

.family-card p {
  margin: 9px 0 0;
}

.family-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.family-strip a {
  min-height: 140px;
  padding: 18px;
  border-radius: 28px;
  background: var(--family-yellow);
  color: inherit;
  text-decoration: none;
}

.family-strip a:nth-child(2) {
  background: var(--family-sea);
}

.family-strip a:nth-child(3) {
  background: var(--family-coral);
}

.family-strip a:nth-child(4) {
  background: var(--family-green);
}

.family-strip strong,
.family-safety-grid strong,
.family-events-grid strong,
.family-tide-grid strong {
  display: block;
  font-size: 1.7rem;
  line-height: 0.94;
  text-transform: uppercase;
}

.family-live,
.family-forecast,
.family-day,
.family-discovery,
.family-tides,
.family-safety,
.family-events {
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 58px);
}

.family-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 1.2vw, 14px);
  align-items: start;
  max-width: min(1120px, 100%);
  margin-bottom: 16px;
}

.family-section-head > * {
  min-width: 0;
}

.family-section-head p,
.family-live-grid span,
.family-feature span,
.family-status {
  margin: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-section-head h2 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 6.6rem);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.06em;
  max-width: 100%;
  text-wrap: balance;
  text-transform: uppercase;
}

.family-section-intro {
  max-width: 760px;
  margin: 0 0 24px;
  color: inherit;
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  font-weight: 700;
  line-height: 1.35;
  opacity: 0.74;
}

.family-live {
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-live .family-section-head {
  grid-template-columns: 1fr;
  justify-items: start;
  max-width: min(1120px, 100%);
  margin-inline: 0;
  margin-bottom: 18px;
  text-align: left;
}

.family-live .family-section-head h2 {
  max-width: 1180px;
}

.family-live .family-section-intro {
  margin: 0 0 28px;
  text-align: left;
}

.family-live-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 0.75fr));
  gap: 16px;
}

.family-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.family-condition-details {
  margin-top: 18px;
}

.family-condition-details__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-top: 18px;
  border-top: 2px solid rgba(255, 248, 223, 0.18);
}

.family-condition-details__title strong {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.family-detail-controls {
  display: none;
}

.family-detail-controls__count {
  color: rgba(255, 248, 223, 0.78);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-detail-controls__button {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 248, 223, 0.56);
  border-radius: 999px;
  background: rgba(255, 248, 223, 0.1);
  color: var(--family-paper);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
}

.family-detail-controls__button:disabled {
  cursor: default;
  opacity: 0.36;
}

.family-condition-details__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.family-condition-details__grid article {
  min-height: 170px;
  padding: 16px;
  border: 2px solid rgba(255, 248, 223, 0.24);
  border-radius: 22px;
  background: rgba(255, 248, 223, 0.08);
  scroll-snap-align: start;
}

.family-condition-details__grid span {
  display: block;
  color: rgba(255, 248, 223, 0.68);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-condition-details__grid strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.family-condition-details__grid p {
  margin: 10px 0 0;
  color: rgba(255, 248, 223, 0.74);
}

.family-tags article {
  padding: 16px;
  border: 2px solid rgba(255, 248, 223, 0.24);
  border-radius: 24px;
  background: rgba(255, 248, 223, 0.08);
}

.family-tags strong,
.family-tags span {
  display: block;
}

.family-tags strong {
  color: #fff;
  font-size: 1.12rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.family-tags span {
  margin-top: 7px;
  color: rgba(255, 248, 223, 0.74);
}

.family-live-grid article {
  min-height: 240px;
  padding: 22px;
  border-radius: 30px;
  background: var(--family-paper);
  color: var(--family-ink);
}

.family-live-grid article:nth-child(3) {
  background: var(--family-sea);
}

.family-live-grid article:nth-child(4) {
  background: var(--family-green);
}

.family-live-main {
  background:
    var(--family-photo-card-scrim),
    url('../img/hero.jpg') center / cover no-repeat !important;
  color: var(--family-paper) !important;
}

.family-live-grid strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.family-live-grid p,
.family-forecast-grid p,
.family-feature p,
.family-safety p,
.family-tide-grid p,
.family-events-grid p {
  color: inherit;
  opacity: 0.78;
}

.family-events-grid p {
  margin-top: auto;
  padding-top: 16px;
}

.family-day {
  background: var(--family-paper);
}

.family-forecast {
  background: #dff1ee;
}

.family-forecast-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  border: 3px solid var(--family-line);
  border-radius: 999px;
  background: var(--family-paper);
  box-shadow: 6px 6px 0 rgba(23, 32, 51, 0.16);
}

.family-forecast-controls:empty {
  display: none;
}

.family-forecast-tab {
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--family-ink);
  cursor: pointer;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-forecast-tab--active {
  background: var(--family-ink);
  color: var(--family-paper);
}

.family-forecast-grid {
  display: block;
}

.family-forecast-card-controls {
  margin-bottom: 12px;
}

.family-forecast-card-controls .family-detail-controls__count {
  color: rgba(23, 32, 51, 0.78);
}

.family-forecast-card-controls .family-detail-controls__button {
  border-color: rgba(23, 32, 51, 0.46);
  background: rgba(23, 32, 51, 0.06);
  color: var(--family-ink);
}

.family-forecast-card-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.family-forecast-grid article {
  position: relative;
  display: grid;
  grid-template-rows: 62px minmax(72px, auto) auto minmax(48px, auto) minmax(58px, auto);
  min-height: 260px;
  padding: 18px;
  border: 3px solid var(--family-line);
  border-radius: 26px;
  background: var(--family-paper);
  scroll-snap-align: start;
}

.family-forecast__best-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-yellow);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-forecast-grid article:nth-child(2n) {
  background: var(--family-yellow);
}

/* Badge on yellow card: override to paper so it contrasts */
.family-forecast-grid article:nth-child(2n) .family-forecast__best-badge {
  background: var(--family-paper);
}

.family-forecast-grid article:nth-child(3n) {
  background: var(--family-coral);
}

.family-forecast-grid time {
  display: block;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 0.8;
}

.family-forecast-grid strong {
  display: block;
  align-self: start;
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.family-forecast__metrics {
  display: grid;
  align-self: end;
  gap: 7px;
}

.family-forecast__metrics span {
  display: block;
  padding: 7px 9px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.family-forecast__rain-wrap {
  align-self: end;
}

.family-forecast__rain-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-forecast__rain-label strong {
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0;
}

.family-forecast__rain {
  height: 10px;
  border: 2px solid var(--family-line);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.12);
  overflow: hidden;
}

.family-forecast__rain i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--family-ink);
}

.family-forecast-grid article > p {
  align-self: start;
  min-height: 44px;
  margin: 12px 0 0;
}

.family-forecast-empty {
  display: block;
}

.family-day-board {
  display: grid;
  gap: 18px;
}

.family-day-board article {
  display: grid;
  align-content: start;
  min-height: 220px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 3px solid var(--family-line);
  border-radius: 26px;
  background: var(--family-paper);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.12);
}

.family-day-summary {
  grid-template-columns: minmax(120px, 0.18fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
  min-height: 250px;
  background: #dff1ee;
}

.family-day-summary__kicker,
.family-day-question {
  margin: 0 0 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-day-summary h3 {
  max-width: 920px;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}

.family-day-summary p:last-child {
  max-width: 920px;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.family-day-support {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.family-day-support article:nth-child(1) {
  background: var(--family-cream);
}

.family-day-support article:nth-child(2) {
  background: #ffe2ca;
}

.family-day-support article:nth-child(3) {
  background: #eef7d8;
}

.family-day-status-row,
.family-day-activity-grid {
  display: grid;
  gap: 16px;
}

.family-day-status-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-day-status-row article {
  min-height: 0;
  background: var(--family-cream);
}

.family-day-status-row article:nth-child(2) {
  background: #ffe2ca;
}

.family-day-status-row span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.family-day-status-row strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.family-day-activity-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-day-activity-card {
  min-height: 270px;
  background: var(--family-yellow);
}

.family-day-activity-card--sea {
  background: var(--family-sea);
}

.family-day-activity-card--green {
  background: #eef7d8;
}

.family-day-activity-card--coral {
  background: var(--family-coral);
}

.family-day-board time,
.family-day-board__label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding: 7px 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-day-board h3,
.family-feature h3 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.family-day-board h3 {
  min-height: 2em;
}

.family-day-board p {
  margin: 0;
  align-self: start;
}

.family-discovery {
  background: var(--family-cream);
}

.family-discovery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.family-feature {
  display: flex;
  min-height: 280px;
  padding: 24px;
  border: 3px solid var(--family-line);
  border-radius: 32px;
  background: var(--family-paper);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.18);
  scroll-margin-top: var(--family-anchor-offset);
}

#discover-stay {
  background: var(--family-yellow);
}

#discover-eat {
  background: var(--family-sea);
}

#discover-do {
  background: var(--family-coral);
}

.family-feature__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.family-feature__link > span[aria-hidden="true"] {
  display: none;
}

.family-feature__link:focus-visible {
  border-radius: 24px;
  outline: 4px solid var(--family-ink);
  outline-offset: 6px;
}

.family-feature__cta {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (hover: hover) {
  .family-feature:has(.family-feature__link:hover) {
    transform: translateY(-2px);
    box-shadow: 9px 9px 0 rgba(23, 32, 51, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-feature:has(.family-feature__link:hover) {
    transform: none;
  }
}

.family-feature > div {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.family-feature--image {
  min-height: 360px;
  background:
    var(--family-photo-card-scrim),
    url('../img/hero.jpg') center / cover no-repeat;
  color: var(--family-paper);
}

.family-feature--ad {
  background: var(--family-yellow);
}

.family-feature__meta {
  margin-top: 14px;
  font-weight: 900;
  opacity: 1 !important;
  text-transform: uppercase;
}

.family-feature__reason {
  margin-top: 14px;
  padding: 10px 12px;
  border: 2px solid currentColor;
  border-radius: 18px;
  font-weight: 900;
  opacity: 1 !important;
}

.family-feature .family-button {
  align-self: flex-start;
  margin-top: auto;
}

.family-tides {
  background: var(--family-paper);
}

.family-tide-grid,
.family-safety-grid,
.family-events-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.family-tide-grid article,
.family-safety-grid article,
.family-safety-grid a,
.family-events-grid article,
.family-events-grid a {
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  background: var(--family-cream);
  color: inherit;
  text-decoration: none;
}

.family-events-grid article,
.family-safety-grid a,
.family-events-grid a {
  display: flex;
  flex-direction: column;
}

.family-safety-grid a:focus-visible {
  outline: 4px solid var(--family-ink);
  outline-offset: 4px;
}

@media (hover: hover) {
  .family-safety-grid a:hover {
    transform: translateY(-2px);
  }
}

.family-tide-grid article:nth-child(2),
.family-safety-grid article:nth-child(2),
.family-safety-grid a:nth-child(2),
.family-events-grid article:nth-child(2),
.family-events-grid a:nth-child(2) {
  background: var(--family-sea);
}

.family-tide-grid article:nth-child(3),
.family-safety-grid article:nth-child(3),
.family-safety-grid a:nth-child(3),
.family-events-grid article:nth-child(3),
.family-events-grid a:nth-child(3) {
  background: var(--family-coral);
}

.family-tide-grid article:nth-child(4),
.family-safety-grid article:nth-child(4),
.family-safety-grid a:nth-child(4),
.family-events-grid article:nth-child(4),
.family-events-grid a:nth-child(4) {
  background: var(--family-green);
}

.family-tide-timeline {
  margin-top: 16px;
  padding: 22px;
  border: 3px solid var(--family-line);
  border-radius: 30px;
  background: var(--family-ink);
  color: var(--family-paper);
}

.family-tide-timeline__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.family-tide-timeline__head strong {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.family-tide-timeline__head span {
  max-width: 440px;
  color: rgba(255, 248, 223, 0.72);
  text-align: right;
}

.family-tide-space {
  --family-tide-track-inset: clamp(54px, 5vw, 82px);
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: clamp(16px, 2vw, 24px);
  border: 2px solid rgba(255, 248, 223, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 248, 223, 0.08), rgba(255, 248, 223, 0.02)),
    rgba(255, 248, 223, 0.04);
  overflow: hidden;
}

.family-tide-space__axis,
.family-tide-space__legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 248, 223, 0.72);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.family-tide-space__axis {
  padding-inline: var(--family-tide-track-inset);
}

.family-tide-space__axis span:nth-child(2) {
  color: rgba(255, 248, 223, 0.48);
  text-align: center;
}

.family-tide-space__rail {
  position: relative;
  min-height: 194px;
  padding: 22px var(--family-tide-track-inset) 72px;
}

.family-tide-space__bands {
  position: relative;
  height: 82px;
  border: 2px solid rgba(255, 248, 223, 0.22);
  border-radius: 22px;
  background: rgba(255, 248, 223, 0.06);
  overflow: hidden;
}

.family-tide-space__band {
  position: absolute;
  inset-block: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 116px;
  padding: 14px 16px;
  color: var(--family-ink);
  overflow: hidden;
}

.family-tide-space__band--opening {
  background: linear-gradient(90deg, rgba(142, 211, 208, 0.62), rgba(142, 211, 208, 0.95));
}

.family-tide-space__band--tightening {
  background: linear-gradient(90deg, rgba(247, 211, 84, 0.95), rgba(255, 151, 116, 0.88));
}

.family-tide-space__band--steady {
  background: rgba(255, 248, 223, 0.76);
}

.family-tide-space__band strong {
  font-size: clamp(0.82rem, 1vw, 1rem);
  line-height: 1;
  text-transform: uppercase;
}

.family-tide-space__band em {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.82;
}

.family-tide-space__markers {
  position: absolute;
  right: var(--family-tide-track-inset);
  bottom: 0;
  left: var(--family-tide-track-inset);
  height: 92px;
}

.family-tide-space__markers span {
  position: absolute;
  top: 0;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 104px;
  color: var(--family-paper);
  text-align: center;
  transform: translateX(-50%);
}

.family-tide-space__marker--start {
  justify-items: start !important;
  text-align: left !important;
  transform: translateX(-9px) !important;
}

.family-tide-space__marker--end {
  justify-items: end !important;
  text-align: right !important;
  transform: translateX(calc(-100% + 9px)) !important;
}

.family-tide-space__markers span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 4px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-sea);
  box-shadow: 0 0 0 2px rgba(255, 248, 223, 0.44);
}

.family-tide-space__marker--high::before {
  background: var(--family-yellow) !important;
}

.family-tide-space__markers i {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.family-tide-space__markers strong {
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  line-height: 0.85;
}

.family-tide-space__legend {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.family-tide-space__legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.family-tide-space__key {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.family-tide-space__key--low {
  background: var(--family-sea);
}

.family-tide-space__key--high {
  background: var(--family-yellow);
}

.family-tide-journey {
  display: none;
}

.family-tide-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.family-tide-chips article {
  min-height: 138px;
  padding: 15px;
  border: 2px solid rgba(255, 248, 223, 0.24);
  border-radius: 22px;
  background: rgba(255, 248, 223, 0.08);
  scroll-snap-align: start;
}

.family-tide-chip--high {
  box-shadow: inset 0 5px 0 var(--family-yellow);
}

.family-tide-chip--low {
  box-shadow: inset 0 5px 0 var(--family-sea);
}

.family-tide-chips span {
  display: block;
  color: rgba(255, 248, 223, 0.7);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-tide-chips strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.82;
}

.family-tide-chips p {
  margin: 8px 0 0;
  color: rgba(255, 248, 223, 0.76);
}

.family-safety {
  background: #dff1ee;
}

.family-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: clamp(32px, 5vw, 64px) clamp(18px, 5vw, 58px);
  border-top: 3px solid var(--family-line);
  border-bottom: 3px solid var(--family-line);
  background: var(--family-line);
}

.family-services a {
  min-height: 190px;
  padding: 24px;
  background: var(--family-yellow);
  color: var(--family-ink);
  text-decoration: none;
}

.family-services a:nth-child(2) {
  background: var(--family-sea);
}

.family-services a:nth-child(3) {
  background: var(--family-coral);
}

.family-services a:nth-child(4) {
  background: var(--family-green);
}

.family-services span {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-services strong {
  display: block;
  max-width: 480px;
  margin-top: 34px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.family-events {
  background:
    linear-gradient(105deg, rgba(251, 243, 218, 0.98) 0 50%, rgba(251, 243, 218, 0.62) 100%),
    url('../img/woolacombe-sunset-dunes.jpg') center 42% / cover no-repeat;
  background-attachment: scroll;
}

.family-events .family-events-grid article,
.family-events .family-events-grid a {
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.14);
}

.family-events .family-events-grid article:first-child,
.family-events .family-events-grid a:first-child {
  border: 2px solid rgba(23, 32, 51, 0.14);
  background: rgba(255, 253, 248, 0.94);
}

.family-footer {
  display: flex;
  flex-direction: column;
  background: #111820;
  color: rgba(255, 248, 223, 0.72);
}

.family-footer__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  padding: 40px clamp(18px, 5vw, 58px) 36px;
}

.family-footer__tile {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 20px 22px 24px;
  border: 1px solid rgba(255, 248, 223, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.family-footer p {
  max-width: 36rem;
  margin: 12px 0 0;
}

.family-footer__nav,
.family-footer__data {
  display: grid;
  gap: 9px;
  align-content: start;
}

.family-footer__nav span,
.family-footer__data span,
.family-footer__tile span {
  display: block;
  margin-bottom: 4px;
  color: var(--family-yellow);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-footer a {
  color: rgba(255, 248, 223, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.family-footer p a {
  display: inline;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.family-footer__data p {
  margin: 0;
}

.family-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 16px clamp(18px, 5vw, 58px) 24px;
  border-top: 1px solid rgba(255, 248, 223, 0.18);
  color: rgba(255, 248, 223, 0.58);
  font-size: 0.85rem;
}

.family-noscript {
  max-width: 760px;
  margin: 28px auto;
  padding: 22px;
  border: 3px solid var(--family-line);
  border-radius: 28px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'Nunito', sans-serif;
  text-align: center;
}

.family-noscript h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.family-noscript a {
  display: inline-block;
  margin: 6px;
  color: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.family-error {
  border: 3px solid var(--family-line);
  background: var(--family-coral) !important;
}

.family-subpage {
  background: var(--family-paper);
}

.family-subpage--about {
  --subpage-soft: #fbf3da;
  --subpage-mid: #dff1ee;
  --subpage-accent: var(--family-yellow);
}

.family-subpage--surf {
  --subpage-soft: #dff1ee;
  --subpage-mid: #c7e8f2;
  --subpage-accent: var(--family-sea);
}

.family-subpage--tides {
  --subpage-soft: #e6f3ef;
  --subpage-mid: #f7cf55;
  --subpage-accent: var(--family-yellow);
}

.family-subpage--events {
  --subpage-soft: #fbf3da;
  --subpage-mid: #ffdccd;
  --subpage-accent: var(--family-coral);
}

.family-subpage--privacy {
  --subpage-soft: #eef3e4;
  --subpage-mid: #dff1ee;
  --subpage-accent: var(--family-green);
}

.family-subhero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  min-height: 620px;
  padding: clamp(46px, 7vw, 88px) clamp(18px, 4vw, 64px) clamp(32px, 5vw, 58px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 243, 218, 0.98) 0%, rgba(251, 243, 218, 0.9) 42%, rgba(251, 243, 218, 0.35) 100%),
    url('../img/hero.jpg') center / cover no-repeat;
  border-bottom: 1px solid rgba(23, 32, 51, 0.12);
}

.family-subhero--dark {
  background:
    linear-gradient(90deg, rgba(23, 32, 51, 0.97) 0%, rgba(23, 32, 51, 0.92) 45%, rgba(23, 32, 51, 0.5) 100%),
    url('../img/hero.jpg') center / cover no-repeat;
  color: var(--family-cream);
}

.family-subhero--sea {
  background:
    linear-gradient(90deg, rgba(218, 240, 237, 0.98) 0%, rgba(218, 240, 237, 0.92) 48%, rgba(218, 240, 237, 0.38) 100%),
    url('../img/hero.jpg') center / cover no-repeat;
}

.family-support-hero {
  min-height: min(920px, calc(100dvh - 64px));
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(105deg, rgba(251, 243, 218, 0.98) 0 50%, rgba(251, 243, 218, 0.3) 82%),
    url('../img/hero.jpg') center 38% / cover no-repeat;
}

.family-support-hero .family-shell {
  align-items: center;
}

.family-support-hero .family-copy {
  max-width: 760px;
  text-transform: uppercase;
}

.family-support-hero .family-planner a {
  color: inherit;
  text-decoration: none;
}

.family-support-hero .family-card {
  min-height: 156px;
}

.family-support-hero--surf .family-card:nth-child(2),
.family-support-hero--surf .family-strip a:nth-child(2),
.family-support-hero--tides .family-card:nth-child(2),
.family-support-hero--tides .family-strip a:nth-child(2) {
  background: var(--family-sea);
}

.family-support-hero--events .family-card:nth-child(2),
.family-support-hero--events .family-strip a:nth-child(3) {
  background: var(--family-coral);
}

.family-support-hero--privacy .family-card:nth-child(2),
.family-support-hero--privacy .family-strip a:nth-child(4) {
  background: var(--family-green);
}

.family-support-hero--events .family-card {
  min-height: 126px;
}

.family-support-hero--events .family-card h2 {
  margin-bottom: 0;
}

.family-subhero > div {
  position: relative;
  z-index: 1;
}

.family-subhero h1 {
  max-width: 980px;
  margin: 12px 0 22px;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.83;
  letter-spacing: -0.055em;
}

.family-subhero p {
  max-width: 660px;
  margin: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.family-subhero__summary {
  display: grid;
  gap: 14px;
}

.family-subhero__summary article {
  min-height: 132px;
  padding: 22px;
  border: 3px solid currentColor;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 7px 7px 0 var(--family-ink);
  color: var(--family-ink);
}

.family-subhero__summary article:nth-child(2) {
  background: var(--family-sea);
}

.family-subhero__summary article:nth-child(3) {
  background: var(--family-yellow);
}

.family-subhero__summary span,
.family-content-kicker,
.family-content-card span,
.family-live-tide-panel span,
.events-group-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.family-subhero__summary h2,
.family-subhero__summary h3 {
  margin: 6px 0 8px;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.family-content-band {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 4vw, 64px);
  background: var(--family-paper);
  border-bottom: 1px solid rgba(23, 32, 51, 0.1);
}

/* Content links inherit the band's ink so they stay readable on light and dark
   bands alike; dark bands add a yellow accent further down. Never use inline
   color styles on links. */
.family-content-band a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.family-content-band--cream {
  background: var(--family-cream);
}

.family-content-band--sea {
  background: #dff1ee;
}

.family-content-band--dark {
  background: var(--family-ink);
  color: var(--family-cream);
}

/* Note: .family-content-inner is intentionally unconstrained. Support-page
   content must share the homepage section field on wide desktop — do NOT
   reintroduce a centred max-width cap here (see DECISIONS.md). */

.family-subpage main > .family-content-band {
  padding-block: clamp(56px, 8vw, 96px);
}

.family-subpage .family-content-band > .family-content-inner {
  display: block;
}

.family-subpage .family-section-head {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: clamp(22px, 4vw, 42px);
}

.family-subpage .family-section-head p {
  margin: 0;
}

.family-subpage .family-section-head h2 {
  max-width: 1000px;
}

.family-subpage .family-content-inner > p,
.family-subpage .family-content-inner > ul,
.family-subpage .family-content-inner > .family-content-grid,
.family-subpage .family-content-inner > .family-live-tide-panel {
  margin-left: clamp(0px, 30vw, 430px);
}

.family-subpage .family-content-inner > p:first-of-type {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 800;
}

.family-content-band h2 {
  max-width: 970px;
  margin: 10px 0 18px;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.family-subpage .family-content-band h2 {
  max-width: 520px;
  margin-top: 0;
  font-size: clamp(2.3rem, 5.5vw, 5.2rem);
}

.family-content-band h3 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.family-content-band p,
.family-content-band li {
  max-width: 780px;
  font-size: 1.04rem;
  line-height: 1.55;
}

.family-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  margin-bottom: 26px;
}

.family-content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-content-card {
  min-height: 230px;
  padding: clamp(20px, 3vw, 30px);
  border: 3px solid currentColor;
  border-radius: 28px;
  background: var(--family-paper);
  color: var(--family-ink);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.16);
}

.family-subpage .family-content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.family-subpage .family-content-card:nth-child(4n + 1) {
  background: var(--family-yellow);
}

.family-subpage .family-content-card:nth-child(4n + 2) {
  background: var(--family-sea);
}

.family-subpage .family-content-card:nth-child(4n + 3) {
  background: var(--family-coral);
}

.family-subpage .family-content-card:nth-child(4n + 4) {
  background: var(--family-green);
}

.family-subpage--surf .family-content-card:nth-child(odd),
.family-subpage--tides .family-content-card:nth-child(even) {
  background: var(--family-paper);
}

.family-subpage main > .family-content-band:nth-of-type(3n + 2) .family-content-card {
  border-color: rgba(255, 248, 223, 0.36);
  background: rgba(255, 248, 223, 0.08);
  color: var(--family-cream);
  box-shadow: none;
}

.family-content-card--yellow {
  background: var(--family-yellow);
}

.family-content-card--sea {
  background: var(--family-sea);
}

.family-content-card--coral {
  background: var(--family-coral);
}

.family-content-card--green {
  background: var(--family-green);
}

.family-content-band--dark .family-content-card {
  border-color: rgba(255, 248, 223, 0.32);
  background: rgba(255, 248, 223, 0.08);
  color: var(--family-cream);
  box-shadow: none;
}

.family-content-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 26px 0 26px;
  list-style: none;
}

.family-content-list li {
  max-width: none;
  padding: 18px 20px;
  border: 2px solid currentColor;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
}

.family-subpage .family-content-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.family-subpage .family-content-list li:nth-child(4n + 1) {
  background: rgba(247, 207, 85, 0.72);
}

.family-subpage .family-content-list li:nth-child(4n + 2) {
  background: rgba(142, 211, 208, 0.72);
}

.family-subpage .family-content-list li:nth-child(4n + 3) {
  background: rgba(255, 157, 122, 0.72);
}

.family-subpage .family-content-list li:nth-child(4n + 4) {
  background: rgba(185, 219, 132, 0.72);
}

.family-subpage main > .family-content-band:nth-of-type(3n + 2) .family-content-list li {
  border-color: rgba(255, 248, 223, 0.28);
  background: rgba(255, 248, 223, 0.1);
}

.family-content-note {
  margin-top: 26px;
  margin-bottom: 26px;
  padding: 22px;
  border: 3px solid currentColor;
  border-radius: 26px;
  background: var(--family-yellow);
  color: var(--family-ink);
  font-weight: 800;
}

.family-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

main > .family-content-actions {
  padding: clamp(28px, 4vw, 44px) clamp(18px, 4vw, 64px) clamp(42px, 7vw, 84px);
  margin-top: 0;
  background: var(--family-paper);
}

.seo-fallback {
  margin-top: 22px;
  padding: 22px;
  border: 3px solid var(--family-line);
  border-radius: 26px;
  background: var(--family-paper);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.16);
}

.family-live-tide-panel {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-live-tide-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.family-live-tide-panel article {
  min-height: 170px;
  padding: 18px;
  border: 2px solid rgba(255, 248, 223, 0.28);
  border-radius: 22px;
  background: rgba(255, 248, 223, 0.08);
}

.family-live-tide-panel strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 0.9;
}

.family-live-tide-panel p {
  margin: 0;
  color: rgba(255, 248, 223, 0.78);
}

.family-events-page .events-filter {
  margin-top: 24px;
}

.family-events-page .events-filter__scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.family-events-page .events-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.1s ease, box-shadow 0.1s ease, transform 0.1s ease;
}

.family-events-page .events-filter-pill--active {
  background: var(--event-category-all);
  color: var(--family-ink);
  box-shadow: inset 0 0 0 2px var(--family-ink);
  font-weight: 900;
}

.family-events-page .events-filter-pill--active::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.family-events-page .events-filter-pill:active {
  transform: translateY(1px);
}

.family-events-page .events-filter-pill[data-category="live-music"].events-filter-pill--active {
  background: var(--event-category-live-music);
}

.family-events-page .events-filter-pill[data-category="events"].events-filter-pill--active {
  background: var(--event-category-events);
}

.family-events-page .events-filter-pill[data-category="kids-family"].events-filter-pill--active {
  background: var(--event-category-kids-family);
}

.family-events-page .events-filter-pill[data-category="sport-outdoors"].events-filter-pill--active {
  background: var(--event-category-sport-outdoors);
}

.family-events-page .events-filter-pill[data-category="seasonal-opening"].events-filter-pill--active {
  background: var(--event-category-seasonal-opening);
}

.family-events-page .events-filter-pill[data-category="offers-deals"].events-filter-pill--active {
  background: var(--event-category-offers-deals);
}

.family-events-page .events-filter-pill[data-category="community"].events-filter-pill--active {
  background: var(--event-category-community);
}

.family-events-page .events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
  margin: 16px 0 34px;
}

.family-support-hero h1,
.family-subpage .family-section-head h2,
.family-subpage .family-content-card h3 {
  overflow-wrap: normal;
  word-break: normal;
  text-transform: uppercase;
}

.family-support-hero h1 {
  max-width: 640px;
  font-size: clamp(3.7rem, 7vw, 6.45rem);
}

.family-subpage .family-section-head {
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
}

.family-subpage .family-section-head h2,
.family-subpage .family-content-band h2 {
  max-width: 980px;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
}

.family-subpage .family-content-inner > p,
.family-subpage .family-content-inner > ul,
.family-subpage .family-content-inner > .family-content-grid,
.family-subpage .family-content-inner > .family-live-tide-panel {
  margin-left: clamp(0px, 24vw, 340px);
}

.family-subpage main > .family-content-band {
  color: var(--family-ink);
}

.family-subpage main > .family-content-band:nth-of-type(2),
.family-subpage main > .family-content-band:nth-of-type(5),
.family-subpage main > .family-content-band:nth-of-type(8) {
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-subpage main > .family-content-band:nth-of-type(3),
.family-subpage main > .family-content-band:nth-of-type(7) {
  background: var(--family-paper);
  color: var(--family-ink);
}

.family-subpage main > .family-content-band:nth-of-type(4),
.family-subpage main > .family-content-band:nth-of-type(9) {
  background: var(--family-cream);
  color: var(--family-ink);
}

.family-subpage main > .family-content-band:nth-of-type(6),
.family-subpage main > .family-content-band:nth-of-type(10) {
  background: #dff1ee;
  color: var(--family-ink);
}

/* Explicit band modifiers always beat the position-based striping above, so a
   page author can force a band's colour. (Dark-band card/list treatments are
   still keyed to positions 2/5/8 — prefer letting the striping decide unless
   a specific colour is needed.) */
.family-subpage main > .family-content-band.family-content-band--paper {
  background: var(--family-paper);
  color: var(--family-ink);
}

.family-subpage main > .family-content-band.family-content-band--cream {
  background: var(--family-cream);
  color: var(--family-ink);
}

.family-subpage main > .family-content-band.family-content-band--sea {
  background: #dff1ee;
  color: var(--family-ink);
}

.family-subpage main > .family-content-band.family-content-band--dark {
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-subpage main > .family-content-band.family-content-band--dark a {
  color: var(--family-yellow);
}

.family-subpage main > .family-content-band:nth-of-type(2) .family-content-card,
.family-subpage main > .family-content-band:nth-of-type(5) .family-content-card,
.family-subpage main > .family-content-band:nth-of-type(8) .family-content-card {
  border-color: rgba(255, 248, 223, 0.36);
  background: rgba(255, 248, 223, 0.08);
  color: var(--family-cream);
  box-shadow: none;
}

.family-subpage main > .family-content-band:nth-of-type(2) .family-content-list li,
.family-subpage main > .family-content-band:nth-of-type(5) .family-content-list li,
.family-subpage main > .family-content-band:nth-of-type(8) .family-content-list li {
  border-color: rgba(255, 248, 223, 0.28);
  background: rgba(255, 248, 223, 0.1);
  color: var(--family-cream);
}

.family-subpage main > .family-content-band:nth-of-type(2) a,
.family-subpage main > .family-content-band:nth-of-type(5) a,
.family-subpage main > .family-content-band:nth-of-type(8) a {
  color: var(--family-yellow) !important;
}

.family-subpage main > .family-content-band:nth-of-type(2) a.family-button,
.family-subpage main > .family-content-band:nth-of-type(5) a.family-button,
.family-subpage main > .family-content-band:nth-of-type(8) a.family-button {
  background: var(--family-paper);
  color: var(--family-ink) !important;
  border-color: var(--family-ink);
}

.family-subpage main > .family-content-band:nth-of-type(2) a.family-button--dark,
.family-subpage main > .family-content-band:nth-of-type(5) a.family-button--dark,
.family-subpage main > .family-content-band:nth-of-type(8) a.family-button--dark {
  background: var(--family-ink);
  color: var(--family-paper) !important;
  border-color: var(--family-ink);
}

.family-content-band a.family-button {
  color: var(--family-ink);
  text-decoration: none;
}

.family-content-band a.family-button--dark {
  background: var(--family-ink);
  color: var(--family-paper) !important;
  border-color: var(--family-ink);
}

.family-content-band a.family-button--light,
.family-content-band a.family-button--secondary {
  background: var(--family-paper);
  color: var(--family-ink);
  border-color: var(--family-ink);
}

.family-button--secondary {
  background: var(--family-paper);
  color: var(--family-ink);
}

.family-events-page .event-card {
  --event-card-accent: var(--event-category-events);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 285px;
  overflow: hidden;
  border: 3px solid var(--family-ink);
  border-radius: 28px;
  background: var(--family-paper);
  color: var(--family-ink);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.16);
  cursor: pointer;
}

.family-events-page .event-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 8px;
  background: var(--event-card-accent);
}

.family-events-page .event-card[data-category="live-music"] {
  --event-card-accent: var(--event-category-live-music);
}

.family-events-page .event-card[data-category="kids-family"] {
  --event-card-accent: var(--event-category-kids-family);
}

.family-events-page .event-card[data-category="sport-outdoors"] {
  --event-card-accent: var(--event-category-sport-outdoors);
}

.family-events-page .event-card[data-category="seasonal-opening"] {
  --event-card-accent: var(--event-category-seasonal-opening);
}

.family-events-page .event-card[data-category="offers-deals"] {
  --event-card-accent: var(--event-category-offers-deals);
}

.family-events-page .event-card[data-category="community"] {
  --event-card-accent: var(--event-category-community);
}

.family-events-page .event-card__image,
.family-events-page .event-card__category-panel {
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.family-events-page .event-card__category-panel {
  display: grid;
  place-items: center;
  padding: 18px;
  background: var(--event-card-accent);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  color: var(--family-ink);
}

.family-events-page .event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.family-events-page .event-card__town {
  font-size: 0.65rem;
  opacity: 0.65;
}

.family-events-page .event-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.family-events-page .event-card__category {
  padding: 5px 8px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: color-mix(in srgb, var(--event-card-accent) 76%, var(--family-paper));
  color: var(--family-ink);
}

.family-events-page .event-card__title {
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.family-events-page .event-card__datetime {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 800;
  color: rgba(23, 32, 51, 0.74);
}

.family-events-page .event-card__featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 7px 10px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-yellow);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
}

.family-events-page .events-empty,
.family-events-page .card__loading {
  padding: 22px;
  border: 2px solid currentColor;
  border-radius: 24px;
  background: var(--family-paper);
  font-weight: 800;
}

.family-events-page .events-empty h3 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.family-events-page .events-empty p {
  margin: 0;
}

.family-events-page .events-empty__action {
  min-height: 44px;
  margin-top: 16px;
  padding: 0 16px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-yellow);
  color: var(--family-ink);
  font-weight: 900;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .family-events-page .events-filter-pill {
    transition: none;
  }
}

.family-events-page .events-group-label {
  margin-top: 28px;
}

@media (max-width: 1020px) {
  html {
    --family-anchor-offset: 92px;
  }

  .family-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .family-header__brand {
    flex: 1 0 auto;
  }

  .family-header__back {
    flex: 0 0 auto;
  }

  .family-header__nav {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
  }

  .family-shell,
  .family-subhero,
  .family-section-head,
  .family-content-grid,
  .family-content-grid--three,
  .family-live-tide-panel__grid,
  .family-discovery-grid,
  .family-services {
    grid-template-columns: 1fr;
  }

  .family-footer__tiles {
    grid-template-columns: 1fr;
    padding-bottom: 24px;
  }

  .family-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .family-strip,
  .family-live-grid,
  .family-tags,
  .family-condition-details__grid,
  .family-events-page .events-grid,
  .family-day-board,
  .family-tide-grid,
  .family-safety-grid,
  .family-events-grid {
    grid-template-columns: 1fr 1fr;
  }

  .family-day-board {
    grid-template-columns: 1fr;
  }

  .family-condition-details__grid,
  .family-tide-chips {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 42vw);
    grid-template-columns: none;
  }

  .family-feature--image {
    min-height: 430px;
  }

  .family-subhero {
    min-height: auto;
  }

  .family-subpage .family-content-band > .family-content-inner {
    grid-template-columns: 1fr;
  }

  .family-subpage .family-content-inner > h2,
  .family-subpage .family-content-inner > :not(h2) {
    grid-column: 1;
  }

  .family-subpage .family-content-inner > h2 {
    position: static;
  }
}

@media (min-width: 681px) and (max-width: 1180px) {
  .family-live-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .family-live-main {
    grid-column: 1 / -1;
    min-height: 360px;
  }

  .family-condition-details__grid,
  .family-forecast-card-track,
  .family-tide-chips {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .family-condition-details__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .family-forecast-card-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .family-content-grid,
  .family-content-grid--three,
  .family-live-tide-panel__grid,
  .family-events-page .events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-tide-chips {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .family-forecast-grid article {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  html {
    --family-anchor-offset: 82px;
  }

  .family-home {
    padding-bottom: 0;
  }

  .family-header {
    padding: 10px 14px 8px;
  }

  .family-header__brand,
  .family-header__nav a,
  .family-nav-group__trigger {
    font-size: 0.72rem;
  }

  .family-header__nav {
    display: none;
  }

  .family-header__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .family-header__hamburger-bars {
    display: none;
  }

  .family-header__hamburger-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1;
  }

  .family-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: block;
    overflow-y: auto;
    padding: 24px 20px env(safe-area-inset-bottom);
    background: var(--family-ink);
  }

  .family-mobile-drawer[hidden] {
    display: none;
  }

  .family-mobile-drawer__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 480px;
    margin: 0 auto;
  }

  .family-mobile-drawer__close {
    align-self: flex-end;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
  }

  .family-mobile-drawer__group {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 2px;
  }

  .family-mobile-drawer__label {
    margin-bottom: 6px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
  }

  .family-mobile-drawer__group a {
    display: block;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--family-white);
    text-decoration: none;
  }

  .family-mobile-drawer__group a:active {
    opacity: 0.7;
  }

  .family-mobile-nav {
    position: fixed;
    z-index: 120;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 2px solid rgba(255, 248, 223, 0.16);
    background: #111820;
    box-shadow: 0 -12px 30px rgba(17, 24, 32, 0.26);
  }

  .family-mobile-nav a,
  .family-mobile-nav button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 8px 4px;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .family-header__hamburger-bars > span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: opacity 0.15s;
  }

  .family-header__hamburger[aria-expanded="true"] .family-header__hamburger-bars > span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .family-header__hamburger[aria-expanded="true"] .family-header__hamburger-bars > span:nth-child(2) {
    opacity: 0;
  }

  .family-header__hamburger[aria-expanded="true"] .family-header__hamburger-bars > span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .family-mobile-drawer {
    position: fixed;
    z-index: 200;
    inset: 0;
    overflow-y: auto;
    background: #111820;
    padding: 56px 20px 32px;
  }

  .family-mobile-drawer[hidden] {
    display: none;
  }

  .family-mobile-drawer__close {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: rgba(255, 248, 223, 0.7);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
  }

  .family-mobile-drawer__close:hover {
    color: rgba(255, 248, 223, 1);
  }

  .family-mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .family-mobile-drawer section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 248, 223, 0.08);
    margin-bottom: 6px;
  }

  .family-mobile-drawer__group-title {
    display: block;
    padding: 4px 0 6px;
    color: rgba(255, 248, 223, 0.4);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .family-mobile-drawer a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: rgba(255, 248, 223, 0.88);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .family-mobile-drawer a:hover,
  .family-mobile-drawer a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 248, 223, 1);
    outline: 0;
  }

  .family-hero {
    padding-block: 10px 8px;
    padding-inline: 18px;
  }

  .family-live,
  .family-forecast,
  .family-day,
  .family-discovery,
  .family-tides,
  .family-safety,
  .family-services,
  .family-events {
    padding: 18px;
  }

  .family-hero h1 {
    font-size: clamp(3rem, 17vw, 5.1rem);
  }

  .family-live-note {
    display: table;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .family-card,
  .family-strip,
  .family-live-grid,
  .family-tags,
  .family-day-board,
  .family-tide-grid,
  .family-safety-grid,
  .family-events-grid {
    grid-template-columns: 1fr;
  }

  .family-day-summary,
  .family-day-support,
  .family-day-status-row,
  .family-day-activity-grid {
    grid-template-columns: 1fr;
  }

  .family-condition-details__grid,
  .family-forecast-card-track,
  .family-tide-chips {
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 82vw);
    grid-template-columns: none;
  }

  .family-card {
    box-shadow: 6px 6px 0 var(--family-ink);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .family-card strong {
    font-size: 0.72rem;
  }

  .family-section-head h2 {
    font-size: clamp(2.25rem, 11.5vw, 3.8rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
  }

  .family-live .family-section-head h2 {
    font-size: clamp(2.1rem, 10.5vw, 3.35rem);
    letter-spacing: -0.035em;
  }

  .family-subhero,
  .family-content-band {
    padding-inline: 18px;
  }

  .family-subhero--simple {
    gap: 22px;
  }

  .family-subhero--simple::after {
    min-height: 240px;
    border-radius: 24px;
    box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.18);
  }

  .family-subhero h1,
  .family-content-band h2 {
    font-size: clamp(3rem, 13vw, 5.2rem);
    line-height: 0.86;
  }

  .family-subhero__summary,
  .family-content-grid,
  .family-content-grid--three,
  .family-subpage .family-content-grid,
  .family-subpage .family-content-list,
  .family-live-tide-panel__grid,
  .family-events-page .events-grid {
    grid-template-columns: 1fr;
  }

  .family-events-page .events-grid .event-card {
    transform: none !important;
  }

  .family-card,
  .family-live-grid article,
  .family-condition-details__grid article,
  .family-subhero__summary article,
  .family-content-card,
  .family-live-tide-panel article,
  .family-events-page .event-card,
  .family-forecast-grid article,
  .family-day-board article,
  .family-feature,
  .family-tide-grid article,
  .family-tide-chips article,
  .family-safety-grid article,
  .family-safety-grid a,
  .family-events-grid article,
  .family-events-grid a {
    min-height: auto;
  }

  .family-day-board time,
  .family-day-board__label {
    margin-bottom: 24px;
  }

  .family-day-board h3 {
    min-height: 0;
  }

  .family-day-summary {
    gap: 10px;
    min-height: auto;
  }

  .family-feature--image {
    min-height: 360px;
  }

  .family-strip a,
  .family-services a {
    min-height: 140px;
  }

  .family-tide-timeline {
    margin-inline: -4px;
    padding: 16px;
    border-radius: 24px;
  }

  .family-tide-space {
    display: none;
  }

  .family-tide-journey {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 14px;
  }

  .family-tide-journey::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 16px;
    width: 3px;
    border-radius: 999px;
    background: rgba(255, 248, 223, 0.22);
  }

  .family-tide-journey article,
  .family-tide-journey__change {
    position: relative;
    margin-left: 34px;
  }

  .family-tide-journey article {
    display: grid;
    gap: 7px;
    padding: 16px;
    border: 2px solid rgba(255, 248, 223, 0.24);
    border-radius: 20px;
    background: rgba(255, 248, 223, 0.08);
  }

  .family-tide-journey article::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -27px;
    width: 18px;
    height: 18px;
    border: 4px solid var(--family-ink);
    border-radius: 999px;
    background: var(--family-sea);
    box-shadow: 0 0 0 2px rgba(255, 248, 223, 0.42);
  }

  .family-tide-journey__item--high::before {
    background: var(--family-yellow) !important;
  }

  .family-tide-journey article span,
  .family-tide-journey__change span,
  .family-tide-journey__change em {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .family-tide-journey article span {
    color: rgba(255, 248, 223, 0.74);
  }

  .family-tide-journey article strong {
    font-size: clamp(2rem, 13vw, 3rem);
    line-height: 0.82;
  }

  .family-tide-journey article p {
    margin: 0;
    color: rgba(255, 248, 223, 0.78);
  }

  .family-tide-journey__change {
    display: grid;
    gap: 3px;
    padding: 3px 0 5px 16px;
    color: rgba(255, 248, 223, 0.7);
  }

  .family-tide-journey__change em {
    font-style: normal;
    opacity: 0.68;
  }

  .family-tide-chips {
    display: none;
  }

  .family-actions,
  .family-button {
    width: 100%;
  }

  .family-condition-details__title {
    align-items: start;
    flex-direction: column;
  }

  .family-condition-details__title > span {
    text-align: left;
  }

  .family-detail-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 2px;
  }

  .family-detail-controls > div {
    display: flex;
    gap: 8px;
  }

  .family-tide-timeline__head {
    align-items: start;
    flex-direction: column;
  }

  .family-tide-timeline__head span {
    text-align: left;
  }

  .family-forecast-controls {
    width: 100%;
    border-radius: 24px;
  }

  .family-forecast-tab {
    flex: 1 1 120px;
  }

  .family-support-hero h1 {
    max-width: 100%;
    font-size: clamp(2.85rem, 11vw, 4.35rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .family-support-hero .family-copy {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.35;
  }
}

.family-home.family-subpage .family-content-band {
  padding: clamp(38px, 5vw, 66px) clamp(18px, 5vw, 58px);
}

.family-home.family-subpage .family-content-band > .family-content-inner {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.family-home.family-subpage .family-section-head {
  display: block;
  max-width: min(1120px, 100%);
  margin: 0 0 16px;
  text-align: left;
}

.family-home.family-subpage .family-section-head > p {
  display: none;
}

.family-home.family-subpage .family-section-head h2,
.family-home.family-subpage .family-content-band h2 {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(2.45rem, 5.9vw, 5.65rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-align: left;
}

.family-home.family-subpage .family-section-head + p {
  max-width: 860px;
  margin: 0 0 clamp(18px, 2.6vw, 30px);
  font-size: clamp(1.03rem, 1.45vw, 1.22rem);
  font-weight: 800;
  line-height: 1.38;
  opacity: 0.78;
}

.family-home.family-subpage .family-content-inner > p,
.family-home.family-subpage .family-content-inner > ul,
.family-home.family-subpage .family-content-inner > .family-content-grid,
.family-home.family-subpage .family-content-inner > .family-content-list,
.family-home.family-subpage .family-content-inner > .family-live-tide-panel,
.family-home.family-subpage .family-content-inner .seo-fallback,
.family-home.family-subpage .family-content-inner .events-empty,
.family-home.family-subpage .family-content-inner .card__loading {
  margin-left: 0;
}

.family-home.family-subpage .family-content-inner > p:not(:first-of-type) {
  max-width: 940px;
  margin-bottom: 16px;
}

.family-home.family-subpage .family-content-band:not(:has(.family-content-grid)):not(:has(.family-content-list)):not(:has(.family-live-tide-panel)) .family-content-inner > p:nth-of-type(n + 2) {
  max-width: none;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 3px solid currentColor;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--family-ink);
  box-shadow: 7px 7px 0 rgba(23, 32, 51, 0.16);
}

.family-home.family-subpage main > section.family-content-band:nth-of-type(2):not(:has(.family-content-grid)):not(:has(.family-content-list)):not(:has(.family-live-tide-panel)) .family-content-inner > p:nth-of-type(n + 2),
.family-home.family-subpage main > section.family-content-band:nth-of-type(5):not(:has(.family-content-grid)):not(:has(.family-content-list)):not(:has(.family-live-tide-panel)) .family-content-inner > p:nth-of-type(n + 2),
.family-home.family-subpage main > section.family-content-band:nth-of-type(8):not(:has(.family-content-grid)):not(:has(.family-content-list)):not(:has(.family-live-tide-panel)) .family-content-inner > p:nth-of-type(n + 2) {
  border-color: rgba(255, 248, 223, 0.34);
  background: rgba(255, 248, 223, 0.08);
  color: var(--family-cream);
  box-shadow: none;
}

.family-home.family-subpage .family-content-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}

.family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.family-home.family-subpage .family-content-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.family-home.family-subpage .family-content-list {
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 14px;
}

.family-home.family-subpage .family-content-card,
.family-home.family-subpage .family-content-list li,
.family-home.family-subpage .family-live-tide-panel article,
.family-home.family-subpage .event-card {
  height: 100%;
}

.family-home.family-subpage .family-content-card p,
.family-home.family-subpage .family-content-list li,
.family-home.family-subpage .event-card p {
  max-width: none;
}

.family-home.family-subpage .seo-fallback,
.family-home.family-subpage .events-empty,
.family-home.family-subpage .card__loading {
  width: 100%;
  max-width: none;
}

.family-home.family-events-page main > section.family-content-band.family-content-band--sea:not(:has(.family-content-grid)):not(:has(.family-content-list)):not(:has(.family-live-tide-panel)) .family-content-inner > p:nth-of-type(n + 2) {
  border-color: rgba(23, 32, 51, 0.18);
  background: rgba(255, 253, 248, 0.54);
  color: var(--family-ink);
  box-shadow: none;
}

@media (max-width: 980px) {
  .family-home.family-subpage .family-content-grid,
  .family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(3):last-child),
  .family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(4):last-child),
  .family-home.family-subpage .family-content-grid--three,
  .family-home.family-subpage .family-content-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .family-home.family-subpage .family-content-band {
    padding-inline: 18px;
  }

  .family-home.family-subpage .family-section-head h2,
  .family-home.family-subpage .family-content-band h2 {
    font-size: clamp(2.25rem, 11vw, 3.8rem);
    line-height: 0.88;
    letter-spacing: -0.045em;
  }

  .family-home.family-subpage .family-section-head + p {
    font-size: 1rem;
  }

  .family-home.family-subpage .family-content-grid,
  .family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(3):last-child),
  .family-home.family-subpage .family-content-grid:has(.family-content-card:nth-child(4):last-child),
  .family-home.family-subpage .family-content-grid--three,
  .family-home.family-subpage .family-content-list {
    grid-template-columns: 1fr;
  }
}

.family-home.family-subpage .family-breadcrumb {
  padding: 8px clamp(18px, 5vw, 58px);
  background: #111820;
  color: rgba(255, 255, 255, 0.72);
}

.family-home.family-subpage .family-breadcrumb a {
  color: rgba(255, 248, 223, 0.9);
}

.family-home.family-subpage .family-breadcrumb li + li::before {
  content: '›';
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.42);
}

.family-home.family-subpage .family-support-hero {
  min-height: auto;
  padding-top: clamp(16px, 2.5vw, 32px);
  padding-bottom: 64px;
}

/* ===== LISTINGS INDEX PAGE ===== */

.family-listings-page .listings-filter-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.family-listings-page .listings-filter-pill {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 2px solid var(--family-ink);
  border-radius: 999px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.family-listings-page .listings-filter-pill--active {
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-listings-page .listings-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-left: 4px;
}

.family-listings-page .listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 16px 0 34px;
}

.family-listings-page .listing-card {
  display: flex;
  flex-direction: column;
  border: 3px solid var(--family-ink);
  border-radius: 18px;
  background: var(--family-paper);
  color: var(--family-ink);
  text-decoration: none;
  box-shadow: 5px 5px 0 rgba(23, 32, 51, 0.16);
  transition: transform 0.12s, box-shadow 0.12s;
  overflow: hidden;
}

.family-listings-page .listing-card--stay {
  background: var(--family-sea);
}

.family-listings-page .listing-card--eat {
  background: var(--family-coral);
}

.family-listings-page .listing-card--do {
  background: var(--family-green);
}

.family-listings-page .listing-card:hover {
  transform: translateY(-2px) translateX(-1px);
  box-shadow: 8px 8px 0 rgba(23, 32, 51, 0.22);
}

.family-listings-page .listing-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.family-listings-page .listing-card__badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid var(--family-ink);
  background: var(--family-ink);
  color: var(--family-cream);
}

.family-listings-page .listing-card__price {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--family-ink);
}

.family-listings-page .listing-card__body {
  flex: 1;
  padding: 4px 16px 12px;
}

.family-listings-page .listing-card__name {
  font-family: 'Nunito', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--family-ink);
}

.family-listings-page .listing-card__tagline {
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--family-ink);
}

.family-listings-page .listing-card__footer {
  padding: 8px 16px 14px;
}

.family-listings-page .listing-card__proximity {
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--family-ink);
}

.family-listings-page .listings-empty,
.family-listings-page .listings-loading {
  padding: 2rem 0;
  opacity: 0.65;
  font-style: italic;
}

.family-listings-page .seo-fallback {
  display: none;
}

/* ===== LISTING DETAIL PAGE ===== */

.family-listing-detail-page .listing-description {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 680px;
}

.family-listing-detail-page .listing-visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 24px 0;
}

.family-listing-detail-page .listing-visit-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.family-listing-detail-page .listing-visit-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}

.family-listing-detail-page .listing-visit-value {
  font-size: 0.95rem;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.family-listing-detail-page .listing-visit-value a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.family-listing-detail-page .listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.family-listing-detail-page .listing-feature-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  opacity: 0.7;
}

.family-listing-detail-page .listing-detail-breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.75rem;
  opacity: 0.75;
  margin-top: 12px;
}

.family-listing-detail-page .listing-detail-breadcrumb a {
  color: inherit;
}

.family-listing-detail-page .listings-loading,
.family-listing-detail-page .listings-empty {
  padding: 2rem 0;
  opacity: 0.65;
  font-style: italic;
}

.family-scroll-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 2px solid var(--family-line);
  background: var(--family-paper);
}

.family-reference-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.family-reference-table th,
.family-reference-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(46, 41, 32, 0.18);
  text-align: left;
  vertical-align: top;
}

.family-reference-table thead th {
  background: rgba(46, 41, 32, 0.06);
  font-family: var(--family-mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.family-reference-table tbody th {
  font-weight: 900;
  color: var(--family-ink);
}

.family-reference-table tbody tr:last-child th,
.family-reference-table tbody tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 720px) {
  .family-listings-page .listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-listing-detail-page .listing-visit-grid {
    grid-template-columns: 1fr;
  }
}

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

/* ===== LAYOUT 1: LISTING SPLIT HERO ===== */

.family-listing-detail-page .listing-l1-hero {
  position: relative;
  overflow: hidden;
  background: var(--family-cream) url('../img/hero.jpg') center 44% / cover no-repeat;
  color: var(--family-ink);
}

.family-listing-detail-page .listing-l1-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 223, 0.98) 0%, rgba(255, 248, 223, 0.91) 30%, rgba(255, 248, 223, 0.2) 60%, rgba(255, 248, 223, 0) 76%);
}

.family-listing-detail-page .listing-l1-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1440px;
  margin: 0 auto;
}

.family-listing-detail-page .listing-l1-identity {
  display: flex;
  flex-direction: column;
  width: min(620px, 52vw);
  padding: clamp(58px, 7vw, 96px) clamp(24px, 5vw, 72px) clamp(48px, 6vw, 78px);
  min-height: 480px;
}

.family-listing-detail-page .listing-l1-image {
  display: none;
}

.family-listing-detail-page .listing-l1-breadcrumb ol {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 248, 223, 0.44);
}

.family-listing-detail-page .listing-l1-breadcrumb li + li::before {
  content: '\203A';
  margin-right: 4px;
  color: rgba(255, 248, 223, 0.28);
}

.family-listing-detail-page .listing-l1-breadcrumb a {
  color: rgba(255, 248, 223, 0.65);
  text-decoration: none;
}

.family-listing-detail-page .listing-l1-breadcrumb a:hover {
  color: rgba(255, 248, 223, 0.92);
}

.family-listing-detail-page .listing-l1-category {
  display: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--family-yellow);
}

.family-listing-detail-page .listing-l1-name {
  margin: 0 0 22px;
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: none;
  color: var(--family-ink);
}

.family-listing-detail-page .listing-l1-tagline {
  max-width: 480px;
  margin: 0 0 24px;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.55;
  color: rgba(23, 32, 51, 0.82);
}

.family-listing-detail-page .listing-l1-meta {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 28px;
}

.family-listing-detail-page .listing-l1-meta:empty {
  margin-bottom: 0;
}

.family-listing-detail-page .listing-l1-meta-item {
  font-size: 0.82rem;
  color: rgba(255, 248, 223, 0.65);
  white-space: nowrap;
}

.family-listing-detail-page .listing-l1-meta-item + .listing-l1-meta-item::before {
  content: '\B7';
  margin: 0 8px;
  color: rgba(255, 248, 223, 0.3);
}

.family-listing-detail-page .listing-l1-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.family-listing-detail-page .listing-l1-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  min-width: 210px;
  padding: 15px 24px;
  border: 2px solid var(--family-ink);
  background: rgba(255, 248, 223, 0.72);
  color: var(--family-ink);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.family-listing-detail-page .listing-l1-btn--primary {
  background: var(--family-yellow);
  border-color: var(--family-yellow);
  color: var(--family-ink);
}

.family-listing-detail-page .listing-l1-btn:active {
  transform: translateY(1px);
}

/* ===== LAYOUT 1: PRACTICAL-FIT STRIP ===== */

.family-listing-detail-page .listing-practical-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  background: var(--family-paper);
  border-bottom: 2px solid rgba(23, 32, 51, 0.1);
}

.family-listing-detail-page .listing-practical-strip:empty {
  display: none;
}

.family-listing-detail-page .listing-practical-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: clamp(20px, 2.8vw, 28px) clamp(18px, 2.2vw, 26px);
  border-right: 1px solid rgba(23, 32, 51, 0.09);
}

.family-listing-detail-page .listing-practical-icon {
  display: inline-flex;
  flex: 0 0 34px;
  color: var(--family-teal);
}

.family-listing-detail-page .listing-practical-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.family-listing-detail-page .listing-practical-icon--open,
.family-listing-detail-page .listing-practical-icon--booking { color: #e9ad15; }
.family-listing-detail-page .listing-practical-icon--goodFor { color: #76bd38; }
.family-listing-detail-page .listing-practical-icon--parking,
.family-listing-detail-page .listing-practical-icon--phone { color: #28aeb8; }

.family-listing-detail-page .listing-practical-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.family-listing-detail-page .listing-practical-item:last-child {
  border-right: 0;
}

.family-listing-detail-page .listing-practical-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--family-teal);
}

.family-listing-detail-page .listing-l1-details {
  border-top: 1px solid var(--family-line);
  background: var(--family-paper);
}

.family-listing-detail-page .listing-l1-details-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1328px;
  margin: 0 auto;
  padding: clamp(46px, 5vw, 72px) clamp(24px, 5vw, 64px);
}

.family-listing-detail-page .listing-l1-about,
.family-listing-detail-page .listing-l1-visit {
  min-width: 0;
}

.family-listing-detail-page .listing-l1-about {
  padding-right: clamp(32px, 5vw, 72px);
}

.family-listing-detail-page .listing-l1-visit {
  padding-left: clamp(32px, 5vw, 72px);
  border-left: 1px solid var(--family-line);
}

.family-listing-detail-page .listing-l1-details .family-section-head {
  margin-bottom: 18px;
}

.family-listing-detail-page .listing-l1-details .family-section-head h2 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  text-transform: none;
}

.family-listing-detail-page .listing-l1-details .listing-description {
  max-width: 58ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.family-listing-detail-page .listing-l1-details .listing-visit-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.family-listing-detail-page .listing-l1-details .listing-visit-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 0;
}

.family-listing-detail-page .listing-l1-details .listing-features {
  margin-top: 24px;
}

.family-listing-detail-page .listing-practical-value {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--family-ink);
  overflow-wrap: anywhere;
}

.family-listing-detail-page .listing-practical-value a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.family-listing-detail-page .listing-practical-value a:hover {
  text-decoration: underline;
}

@media (max-width: 680px) {
  .family-listing-detail-page .listing-l1-hero {
    background-position: 62% center;
  }

  .family-listing-detail-page .listing-l1-hero::before {
    background: linear-gradient(180deg, rgba(255, 248, 223, 0.96) 0%, rgba(255, 248, 223, 0.9) 59%, rgba(255, 248, 223, 0.3) 100%);
  }

  .family-listing-detail-page .listing-l1-identity {
    width: 100%;
    min-height: 520px;
    padding: 42px 20px 32px;
  }

  .family-listing-detail-page .listing-l1-name {
    max-width: 9ch;
    font-size: clamp(2.8rem, 14vw, 3.7rem);
  }

  .family-listing-detail-page .listing-l1-tagline {
    max-width: 31ch;
    font-size: 1rem;
  }

  .family-listing-detail-page .listing-l1-actions {
    margin-top: auto;
  }

  .family-listing-detail-page .listing-l1-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .family-listing-detail-page .listing-practical-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .family-listing-detail-page .listing-practical-item:nth-child(2n) {
    border-right: 0;
  }

  .family-listing-detail-page .listing-practical-item:nth-child(2n+1):not(:last-child) {
    border-right: 1px solid rgba(23, 32, 51, 0.09);
  }

  .family-listing-detail-page .listing-l1-details-inner {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .family-listing-detail-page .listing-l1-about,
  .family-listing-detail-page .listing-l1-visit {
    padding: 0;
  }

  .family-listing-detail-page .listing-l1-visit {
    margin-top: 38px;
    padding-top: 38px;
    border-top: 1px solid var(--family-line);
    border-left: 0;
  }

  .family-listing-detail-page .listing-l1-details .listing-visit-item {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

/* ─── Email subscribe form ───────────────────────────────────────────────── */

.family-subscribe-form {
  max-width: 560px;
  margin-top: clamp(20px, 3vw, 32px);
}

.family-subscribe-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 10px;
}

.family-subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid var(--family-line);
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  background: var(--family-paper);
  color: var(--family-ink);
  outline: none;
  appearance: none;
}

.family-subscribe-input:focus {
  border-color: var(--family-yellow);
  box-shadow: 0 0 0 2px var(--family-yellow);
}

.family-subscribe-btn {
  flex-shrink: 0;
  border: 2px solid var(--family-line);
  background: var(--family-ink);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  white-space: nowrap;
}

.family-subscribe-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.family-subscribe-status {
  font-size: 0.9rem;
  color: #b91c1c;
  margin: 4px 0 0;
}

.family-subscribe-notice {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.family-subscribe-notice a {
  color: inherit;
}

.family-subscribe-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.family-subscribe-consent input {
  margin-top: 3px;
}

.family-subscribe-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.family-subscribe-success {
  font-size: 1rem;
  font-weight: 700;
  color: #166534;
  padding: 14px 0;
}

@media (max-width: 460px) {
  .family-subscribe-row {
    flex-direction: column;
  }

  .family-subscribe-btn {
    width: 100%;
    min-height: 50px;
  }
}

/* ─── Plan Your Day staging previews ─────────────────────────────────────── */

.plan-day-preview .family-section-head {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.plan-day-preview__grid,
.plan-day-preview__split,
.plan-day-preview__steps,
.plan-day-preview__status-row {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.plan-day-preview__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.plan-day-preview__split,
.plan-day-preview__status-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plan-day-preview__steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-day-preview__card,
.plan-day-preview__hero-card,
.plan-day-preview__split article,
.plan-day-preview__steps article,
.plan-day-preview__status-row > div,
.plan-day-preview__answer {
  border: 3px solid var(--family-line);
  border-radius: 24px;
  background: var(--family-paper);
  box-shadow: 8px 8px 0 var(--family-line);
  padding: clamp(18px, 2.4vw, 28px);
}

.plan-day-preview__card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
}

.plan-day-preview__card--sea,
.plan-day-preview__status-row > div:first-child {
  background: var(--family-sea);
}

.plan-day-preview__card--green {
  background: var(--family-green);
}

.plan-day-preview__card--coral,
.plan-day-preview__status-row > div:last-child {
  background: var(--family-coral);
}

.plan-day-preview__card > span,
.plan-day-preview__steps span,
.plan-day-preview__label,
.plan-day-preview__status-row span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border: 2px solid var(--family-line);
  border-radius: 999px;
  background: var(--family-yellow);
  padding: 5px 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.plan-day-preview h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.plan-day-preview p {
  font-size: 1rem;
  line-height: 1.55;
}

.plan-day-preview__card .family-button {
  margin-top: auto;
}

.plan-day-preview__hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(18px, 3vw, 32px);
  margin-bottom: clamp(22px, 4vw, 42px);
  background: var(--family-yellow);
}

.plan-day-preview__hero-card h3,
.plan-day-preview__answer h3 {
  font-size: clamp(2.2rem, 5vw, 5rem);
  max-width: 920px;
}

.plan-day-preview__metrics {
  display: grid;
  gap: 12px;
}

.plan-day-preview__metrics div {
  border: 2px solid var(--family-line);
  background: var(--family-paper);
  padding: 14px;
}

.plan-day-preview__metrics dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-day-preview__metrics dd {
  margin: 2px 0 0;
  font-size: 2rem;
  font-weight: 900;
}

.plan-day-preview__timeline {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-day-preview__timeline li {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-day-preview__timeline li > span {
  display: grid;
  place-items: center;
  border: 3px solid var(--family-line);
  background: var(--family-sea);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.1rem;
  font-weight: 900;
}

.plan-day-preview__timeline div {
  border: 3px solid var(--family-line);
  background: var(--family-paper);
  padding: 18px;
}

.plan-day-preview__zone-map {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr 0.85fr 1fr;
  gap: 10px;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.plan-day-preview__zone-map div {
  min-height: 220px;
  border: 3px solid var(--family-line);
  background: var(--family-sea);
  padding: 18px;
}

.plan-day-preview__zone-map div:nth-child(2) {
  background: var(--family-yellow);
}

.plan-day-preview__zone-map div:nth-child(3) {
  background: var(--family-coral);
}

.plan-day-preview__zone-map div:nth-child(4) {
  background: var(--family-green);
}

.plan-day-preview__zone-map span,
.plan-day-preview__zone-map strong {
  display: block;
}

.plan-day-preview__zone-map span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-day-preview__zone-map strong {
  margin-top: 84px;
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.plan-day-preview__answer {
  margin-bottom: clamp(18px, 3vw, 30px);
  background: var(--family-yellow);
}

.plan-day-preview__steps article {
  background: var(--family-paper);
}

.plan-day-preview__steps article:nth-child(2) {
  background: var(--family-sea);
}

.plan-day-preview__steps article:nth-child(3) {
  background: var(--family-green);
}

.plan-day-preview__note {
  max-width: 880px;
  margin-top: clamp(20px, 3vw, 36px);
  border-left: 6px solid var(--family-line);
  padding-left: 18px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .plan-day-preview__grid,
  .plan-day-preview__steps,
  .plan-day-preview__zone-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-day-preview__hero-card,
  .plan-day-preview__split,
  .plan-day-preview__status-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .plan-day-preview__grid,
  .plan-day-preview__steps,
  .plan-day-preview__zone-map {
    grid-template-columns: 1fr;
  }

  .plan-day-preview__card {
    min-height: 0;
  }

  .plan-day-preview__timeline li {
    grid-template-columns: 1fr;
  }

  .plan-day-preview__timeline li > span {
    min-height: 54px;
  }

  .plan-day-preview__zone-map div {
    min-height: 150px;
  }

  .plan-day-preview__zone-map strong {
    margin-top: 40px;
  }
}

/* ===== GETTING HERE PAGE ===== */

.family-support-hero--getting-here .family-shell {
  grid-template-columns: 1fr;
}

.family-getting-here-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.family-getting-here-modes .family-card {
  grid-template-columns: 1fr;
  min-height: 128px;
  text-decoration: none;
  color: inherit;
}

.family-getting-here-modes .family-card h2 {
  margin-top: 10px;
}

.family-city-search {
  position: relative;
  margin-top: 20px;
}

.family-city-search__input {
  width: 100%;
  padding: 14px 16px;
  border: 3px solid var(--family-line);
  border-radius: 14px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 4px 4px 0 var(--family-ink);
  -webkit-appearance: none;
  appearance: none;
}

.family-city-search__input::placeholder {
  color: var(--family-ink);
  opacity: 0.42;
  font-weight: 500;
}

.family-city-search__input:focus {
  outline: 3px solid var(--family-yellow);
  outline-offset: 2px;
}

.family-city-search__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  list-style: none;
  background: var(--family-paper);
  border: 2px solid var(--family-line);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--family-ink);
  z-index: 10;
  overflow: hidden;
  padding: 4px;
}

.family-city-search__dropdown.is-open {
  display: block;
}

.family-city-search__option {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--family-ink);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
}

.family-city-search__option:hover,
.family-city-search__dropdown li[aria-selected="true"] .family-city-search__option {
  background: var(--family-sea);
}

.family-city-quickpicks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.family-city-quickpick {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid var(--family-line);
  border-radius: 100px;
  background: var(--family-paper);
  color: var(--family-ink);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--family-ink);
  transition: background 0.1s ease;
}

.family-city-quickpick:hover {
  background: var(--family-sea);
}

.family-city-quickpick:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 var(--family-ink);
}

.family-city-regions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.family-city-region {
  border: 2px solid var(--family-line);
  border-radius: 12px;
  background: var(--family-paper);
  overflow: hidden;
}

.family-city-region__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
  user-select: none;
  letter-spacing: -0.01em;
}

.family-city-region__summary::-webkit-details-marker {
  display: none;
}

.family-city-region__summary::after {
  content: '+';
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.family-city-region[open] .family-city-region__summary::after {
  content: '-';
}

.family-city-region__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 8px;
  border-top: 2px solid var(--family-line);
  background: var(--family-cream);
}

.family-city-region__grid a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: var(--family-ink);
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 8px;
  background: var(--family-paper);
}

.family-city-region__grid a:hover {
  background: var(--family-sea);
}

@media (max-width: 820px) {
  .family-getting-here-modes {
    grid-template-columns: 1fr;
  }

  .family-city-region__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .family-city-region__grid {
    grid-template-columns: 1fr;
  }
}

/* WOO-1067 Option A: hide visible breadcrumb strip on desktop; mobile keeps it.
   JSON-LD BreadcrumbList structured data is untouched (in <script> elements). */
@media (min-width: 681px) {
  .family-breadcrumb {
    display: none;
  }
}
