/* OZEKA house style: the pool as design language.
   Lane lines, lane numbers and scoreboard digits carry information, not decoration. */

:root {
  --deep: #04162e;
  --cream: #efe9dd;
  --member-card: linear-gradient(160deg, #0b1830 0%, #0f2c5c 55%, #1660d0 100%);
  --deep-2: #0a2448;
  --deep-3: #12335f;
  --blue: #1d5fd1;
  --chlorine: #5ce1e6;
  --yellow: #ffd23f;
  --tile: #eef5f9;
  --grout: #d3e3ee;
  --white: #ffffff;
  --text: #04162e;
  --text-muted: #43597a;
  --on-dark: #dbe8f5;
  --on-dark-muted: #9fb6d2;

  /* level groups: the real club colours of the swim school */
  --purple: #8a5cf0;
  --orange: #ff8a1f;
  --green: #2fbf63;
  --pink: #ff6fae;
  --blue-group: #2f8cff;
  --futures: #5ce1e6;
  --core: #6f9bff;
  --academy: #ffd23f;

  --display: "Montserrat", "Arial", sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius-s: 6px;
  --radius-m: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--tile);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--deep); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- typography ---------- */
h1, h2, h3 {
  overflow-wrap: break-word; hyphens: auto;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
}
h2 { font-size: clamp(25.1px, 3.7vw, 50.2px); }
h3 { font-size: clamp(20.8px, 2.4vw, 28.8px); line-height: 1; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--text-muted); }
.on-dark .lead, .on-dark p { color: var(--on-dark); }
.head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); }
.head p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--deep); }
.btn-yellow:hover { background: #ffe07a; }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: #2a6fe6; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- lane rope ---------- */
.rope {
  --r1: var(--blue); --r2: var(--white);
  height: 12px; border-radius: 6px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.55), transparent 60%) 0 0 / 22px 100%,
    repeating-linear-gradient(90deg, var(--r1) 0 18px, rgba(0,0,0,.25) 18px 22px, var(--r1) 22px 40px, rgba(0,0,0,.25) 40px 44px,
      var(--r2) 44px 62px, rgba(0,0,0,.18) 62px 66px, var(--r2) 66px 84px, rgba(0,0,0,.18) 84px 88px);
  box-shadow: 0 3px 0 rgba(0,0,0,.18);
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  transition: background-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.site-header.is-solid { background: rgba(4, 22, 46, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { height: 52px; width: auto; }
/* main menu */
.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer;
  text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 10px 14px; border-radius: 999px; color: inherit;
  transition: background-color .2s;
}
.nav-top svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-top:hover, .nav-item.is-open .nav-top { background: rgba(255,255,255,.12); }
.nav-item.is-open .nav-top svg { transform: rotate(180deg); }
.nav-top[data-active="true"] { background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 2px var(--focus); border-radius: 999px; }
.nav-cta { margin-left: 10px; padding: 11px 20px; gap: 8px; font: inherit; font-weight: 700; border: 0; cursor: pointer; }
.nav-cta svg { width: 18px; height: 18px; flex: none; }
body.panel-open .site-header { background: var(--deep); }

.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; margin: 6px 0; transition: transform .25s var(--ease), opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .menu-btn { display: block; }
  body.menu-open { overflow: hidden; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; height: calc(100dvh - 76px);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); padding: 8px var(--gutter) 40px;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; overflow-y: auto;
  }
  .menu-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-top { width: 100%; justify-content: space-between; font-family: var(--display); font-size: 30.4px; font-weight: 800; padding: 14px 0; border-radius: 0; }
  .nav-top:hover, .nav-item.is-open .nav-top { background: none; }
  .nav-top svg { width: 22px; height: 22px; }
  .nav-top[data-active="true"] { box-shadow: none; background: none; color: var(--focus); }
  .nav-cta { margin: 24px 0 0; justify-content: center; font-size: 17px; padding: 16px; }
}

/* ---------- entrance animation ---------- */
@keyframes rise-in { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
/* the first section below a page head: the head already gives enough room */
.page-head + .section { padding-top: clamp(32px, 4vw, 56px); }
.on-dark { background: var(--deep); color: var(--white); }
.on-dark .text-muted { color: var(--on-dark-muted); }

/* ---------- meet list: upcoming meets ---------- */
.meet-list { border-top: 3px solid var(--deep); }
.meet-row {
  display: grid; grid-template-columns: 64px 190px minmax(0, 1.5fr) minmax(0, .8fr) 230px;
  gap: 20px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--grout);
  text-decoration: none; position: relative;
}
.meet-row-lane {
  font-family: var(--display); font-weight: 800; font-size: 24px; width: 48px; height: 48px;
  display: grid; place-items: center; background: var(--deep); color: var(--white); border-radius: var(--radius-s);
}
.meet-row-date { font-family: var(--display); font-weight: 800; font-size: 20.8px; line-height: 1; overflow-wrap: anywhere; }
.meet-row-date small { display: block; font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.meet-row-name { display: block; font-weight: 700; font-size: 19px; line-height: 1.3; }
.meet-row-location { display: block; color: var(--text-muted); font-size: 15px; line-height: 1.4; }
.meet-row-groups { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--grout); white-space: nowrap; }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--c, var(--blue)); }
a.meet-row:hover .meet-row-name { text-decoration: underline; text-underline-offset: 3px; }
.meet-row.is-next { background: var(--white); margin: 0 calc(var(--gutter) * -1 + 8px); padding-left: calc(var(--gutter) - 8px); padding-right: calc(var(--gutter) - 8px); border-radius: var(--radius-m); border: 0; box-shadow: 0 0 0 2px var(--deep); }
.meet-row.is-next .meet-row-lane { background: var(--yellow); color: var(--deep); }
.next-tag { font-size: 13px; font-weight: 700; color: var(--blue); display: block; margin-bottom: 2px; }
.meet-list-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 1100px) and (min-width: 861px) {
  .meet-row { grid-template-columns: 56px 160px minmax(0, 1fr) 190px; }
  .meet-row-coaches { grid-column: 3; grid-row: 2; margin-top: -12px; }
  .meet-row-groups { grid-column: 4; grid-row: 1; }
}
@media (max-width: 860px) {
  .meet-row { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 16px; }
  .meet-row-lane { grid-row: span 4; width: 40px; height: 40px; font-size: 19.2px; align-self: start; }
  .meet-row-groups { justify-content: flex-start; }
}

/* ---------- the pool: from paars to academy ---------- */
.pool-section { background: #063a5a; color: var(--white); overflow: hidden; }
.pool-section .head { color: var(--white); }
.pool-section .lead, .pool-section .head p { color: #d3ecf6; }
.pool-section .lead a { color: var(--white); }
.pool {
  position: relative; border-radius: var(--radius-m); overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(180deg, #0d7fa5, #0a5f86);
  box-shadow: inset 0 0 0 10px #e9f3f8, inset 0 0 0 12px #bcd3e0;
  padding: 12px;
}
.lane { position: relative; }
.lane + .lane::before { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 10px; z-index: 2; background: url(../img/brand/lane-line.svg) center / 100% 100% no-repeat; }
.lane-toggle {
  width: 100%; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  background: none; border: 0; text-align: left; cursor: pointer; padding: 22px 24px 22px 18px; color: var(--white);
  position: relative;
}
.lane-toggle::after {
  /* black floor line with a T end */
  content: ""; position: absolute; left: 110px; right: 64px; top: 50%; height: 8px; margin-top: -4px;
  background: linear-gradient(90deg, rgba(4,22,46,.45) 0 calc(100% - 8px), transparent 0) , none;
  border-radius: 2px; z-index: -1;
}
.lane-no {
  font-family: var(--display); font-weight: 900; font-size: 30.4px; width: 56px; height: 56px; display: grid; place-items: center;
  background: var(--white); color: var(--deep); border-radius: var(--radius-s); box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.lane-title { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.lane-title strong { font-family: var(--display); font-weight: 900; font-size: clamp(25.1px, 3.6vw, 43.6px); line-height: 1.05; color: var(--color); text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.lane-title span { font-size: 15px; font-weight: 600; color: #d8f2fb; background: rgba(4,22,46,.45); padding: 4px 10px; border-radius: 999px; }
.lane-plus { width: 40px; height: 40px; border-radius: 50%; background: rgba(4,22,46,.5); display: grid; place-items: center; transition: transform .3s var(--ease), background-color .2s; }
.lane-plus svg { width: 18px; height: 18px; }
.lane-toggle:hover .lane-plus { background: rgba(4,22,46,.8); }
.lane-toggle[aria-expanded="true"] .lane-plus { transform: rotate(45deg); background: var(--yellow); color: var(--deep); }
.lane-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.lane-detail > div { overflow: hidden; }
.lane.is-open .lane-detail { grid-template-rows: 1fr; }
.lane-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px;
  margin: 0 12px 22px; background: var(--white); color: var(--text); border-radius: var(--radius-m); padding: 22px; overflow: hidden;
}
.lane-panel img { width: 100%; height: 100%; min-height: 220px; max-height: 360px; object-fit: cover; border-radius: 10px; }
.lane-panel h3 { margin-bottom: 10px; }
.lane-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 14px 0; font-size: 15px; }
.lane-panel dt { font-weight: 700; }
.lane-panel dd { margin: 0; color: var(--text-muted); }
.hours { list-style: none; padding: 0; margin: 10px 0 14px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--grout); }
.hours li b { font-weight: 700; }
.coaches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.coach { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--tile); border-radius: 999px; padding: 3px 12px 3px 3px; }
.coach img, .coach .initials { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; min-height: 0; }
.coach .initials { display: grid; place-items: center; background: var(--deep); color: var(--white); font-size: 12px; }
@media (max-width: 760px) {
  .lane-toggle { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 16px 12px; }
  .lane-toggle::after { display: none; }
  .lane-no { width: 42px; height: 42px; font-size: 22.4px; }
  .lane-panel { grid-template-columns: 1fr; margin: 0 4px 16px; padding: 16px; }
  .pool { padding: 6px; box-shadow: inset 0 0 0 6px #e9f3f8; }
}

/* filmstrip from the photo book */
.filmstrip { overflow: hidden; margin-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.filmstrip-rail { display: flex; gap: 12px; width: max-content; animation: rail 80s linear infinite; }
.filmstrip:hover .filmstrip-rail, .filmstrip:focus-within .filmstrip-rail { animation-play-state: paused; }
.filmstrip a { flex: none; width: 220px; height: 150px; border-radius: 10px; overflow: hidden; display: block; }
.filmstrip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.filmstrip a:hover img { transform: scale(1.06); }
@keyframes rail { to { transform: translateX(-50%); } }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.post { text-decoration: none; display: grid; gap: 10px; align-content: start; }
.post-image { aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--grout); }
.post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .post-image img { transform: scale(1.04); }
.post-category { font-size: 13px; font-weight: 700; color: var(--blue); }
.post h3 { font-family: var(--body); font-size: 18px; font-weight: 700; line-height: 1.3; }
.post time { font-size: 14px; color: var(--text-muted); }
@media (max-width: 960px) { .news { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .news { grid-template-columns: 1fr; } }

/* ---------- come and try ---------- */
.try-out { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.try-out-image { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; }
.try-out-image img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 28px 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); font-family: var(--display); font-weight: 900; font-size: 19.2px;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-s); background: var(--yellow); color: var(--deep);
}
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--on-dark-muted); font-size: 15px; }
@media (max-width: 860px) {
  .try-out { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.site-footer { background: #020d1c linear-gradient(170deg, #020d1c 0%, #071a38 60%, #0d3678 100%); color: var(--on-dark); padding: 72px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr) auto; gap: 40px; }
.footer-label { display: flex; justify-content: flex-end; align-items: flex-start; }
.footer-label .label-img { width: 120px; height: auto; border-radius: 12px; }
.site-footer h2 { font-family: var(--body); font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--on-dark); }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { width: 210px; height: auto; margin-bottom: 22px; }
.footer-credits { opacity: .75; }
@media (min-width: 761px) { .footer-credits { flex-basis: 100%; text-align: right; } }
/* room for the floating back-to-top button bottom right, so it does not cover the last line */
.footer-bottom { padding-right: 72px; padding-bottom: 8px; }
.footer-credits a { font-weight: 700; color: inherit; text-decoration: none; }
.footer-credits a:hover, .footer-credits a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.footer-credits span { margin: 0 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: var(--on-dark-muted); font-size: 14px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--blue); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
.label-img { width: 90px; border-radius: 8px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-label { justify-content: flex-start; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- sub page head ---------- */
.page-head { background: var(--deep); color: var(--white); padding: 118px 0 64px; position: relative; overflow: hidden; isolation: isolate; }
.page-head h1 { font-size: clamp(30.4px, 4.9vw, 73.9px); font-weight: 900; line-height: 1.05; max-width: 16ch; hyphens: manual; overflow-wrap: break-word; text-wrap: balance; }
.page-head h1.head-long { font-size: clamp(26.4px, 3.7vw, 55.4px); max-width: 20ch; }
.page-head h1.head-xlong { font-size: clamp(22.4px, 2.9vw, 42.2px); max-width: 24ch; line-height: 1.05; }
.page-head p { color: var(--on-dark); margin-top: 20px; }
.page-head .backdrop { position: absolute; inset: 0; z-index: -1; opacity: .35; }
.page-head .backdrop img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--deep) 20%, rgba(4,22,46,.4)); }
.breadcrumb { font-size: 14px; color: var(--on-dark-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--on-dark); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.breadcrumb-bar { display: none; border-top: 1px solid rgba(255,255,255,.08); }
.breadcrumb-bar .breadcrumb { margin: 0; padding: 9px 0 10px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-header.show-breadcrumb .breadcrumb-bar { display: block; }

/* ---------- team ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  border: 2px solid var(--deep); background: transparent; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.tab[aria-selected="true"] { background: var(--deep); color: var(--white); }
.tab small { font-weight: 600; opacity: .7; }
.swimmers { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.swimmer { position: relative; border-radius: var(--radius-m); overflow: hidden; background: var(--deep); color: var(--white); aspect-ratio: 3 / 4; text-decoration: none; display: block; }
.swimmer img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.swimmer:hover img { transform: scale(1.05); }
.swimmer-name {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px;
  background: linear-gradient(0deg, rgba(4,22,46,.95), transparent);
  font-family: var(--display); font-weight: 800; font-size: 19.2px; line-height: 1.05;
}
.swimmer-name small { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--chlorine); margin-top: 6px; }
.swimmer.no-photo { display: grid; place-items: center; background: linear-gradient(160deg, var(--deep-3), var(--deep)); }
.swimmer.no-photo img { width: 46%; height: auto; opacity: .18; object-fit: contain; }
.coaches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; }
.coach-card { text-align: left; }
.coach-card img, .coach-card .initials { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); background: var(--grout); }
.coach-card .initials { display: grid; place-items: center; font-family: var(--display); font-size: 31.7px; font-weight: 800; color: var(--deep); }
.coach-card b { display: block; margin-top: 10px; font-size: 16px; line-height: 1.3; }
.coach-card span { font-size: 13px; color: var(--text-muted); }

/* ---------- photo book ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.album { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; display: grid; gap: 10px; }
.album-image { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden; background: var(--grout); }
.album-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.album:hover .album-image img { transform: scale(1.05); }
.album-count { position: absolute; right: 10px; bottom: 10px; background: rgba(4,22,46,.8); color: var(--white); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.album b { font-size: 17px; line-height: 1.3; }
.album span { font-size: 14px; color: var(--text-muted); }

.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(2, 10, 22, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(2, 10, 22, .9); }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; padding: 16px var(--gutter); gap: 12px; }
.lb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.lb-head b { font-family: var(--display); font-size: clamp(19.2px, 2.4vw, 27.2px); font-weight: 800; line-height: 1; }
.lb-image { display: grid; place-items: center; min-height: 0; position: relative; }
.lb-image img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); cursor: pointer; display: grid; place-items: center; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); cursor: pointer; display: grid; place-items: center; flex: none; }
.lb-close svg { width: 20px; height: 20px; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.lb-foot a { color: var(--white); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .filmstrip-rail { animation: none; }
}

/* ---------- additional building blocks ---------- */
.head-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
@media (max-width: 860px) { .head-row { grid-template-columns: 1fr; } }
.text-link { font-weight: 700; color: var(--blue); text-underline-offset: 3px; }
.on-dark .text-link, .pool-section .text-link { color: var(--chlorine); }
.lane-panel .text-link { color: var(--blue); }
.text-small { font-size: 15px; }
.text-muted { color: var(--text-muted); }
.on-dark a { color: inherit; }
.narrow { max-width: 860px; }
.section-tile { background: var(--white); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.two-col h2 { font-size: clamp(26.4px, 3.3vw, 42.2px); margin-bottom: 20px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.meet-row-deadline { display: block; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 4px; }
.meet-row-coaches { font-size: 14px; }
.meet-row.is-past { display: none; }

/* summary */
/* the meet facts belong with what follows (start list, entry form): no full section gap in between */
.section-summary { padding-bottom: clamp(16px, 3vw, 40px); }
.section-summary + .section:not(.section-tile) { padding-top: clamp(32px, 5vw, 64px); }
/* extra info of a meet: in the same columns as In het kort, without a full section of white around a short text */
.section-info { padding: clamp(40px, 6vw, 80px) 0; }
.section-info .article-text > :first-child { margin-top: 0; }
.summary-grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: start; }
.summary-grid h2 { font-size: clamp(26.4px, 3.3vw, 42.2px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.facts > div { padding: 16px 0; border-top: 2px solid var(--deep); }
.facts dt { font-family: var(--display); font-weight: 800; font-size: 19.2px; line-height: 1.1; margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--text-muted); font-size: 16px; overflow-wrap: anywhere; }
.facts-dark { grid-template-columns: 1fr; margin: 20px 0 28px; }
.facts-dark > div { border-color: rgba(255,255,255,.2); }
.facts-dark dd { color: var(--on-dark); }
@media (max-width: 860px) { .summary-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* group blocks on swim school and competition */
.groups { display: grid; gap: 24px; }
.group {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 0;
  background: var(--white); color: var(--text); border-radius: var(--radius-m); overflow: hidden;
  border-top: 10px solid var(--color); scroll-margin-top: 100px;
}
.group-image img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.group-text { padding: clamp(20px, 3vw, 36px); }
.group-text h3 { display: flex; align-items: center; gap: 14px; font-size: clamp(26.4px, 3.3vw, 39.6px); margin-bottom: 14px; }
.group-text h4 { font-size: 15px; margin: 16px 0 4px; }
.group-text p { font-size: 16px; }
.group-dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--color); flex: none; margin-right: 10px; vertical-align: -1px; }
.group-text h3 .group-dot { width: 26px; height: 26px; margin: 0; }
.group-price { margin: 14px 0; font-size: 16px; }
@media (max-width: 760px) { .group { grid-template-columns: 1fr; } .group-image img { min-height: 200px; max-height: 260px; } }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.table th, .table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--grout); vertical-align: top; }
.table th { font-weight: 700; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.table-large { font-size: 16px; }
.table-large thead th { font-size: 14px; color: var(--on-dark-muted); }
.on-dark .table th, .on-dark .table td { border-color: rgba(255,255,255,.14); }
.on-dark .table td { color: var(--on-dark); }
@media (max-width: 600px) { .table th { white-space: normal; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--tile); border-radius: var(--radius-m); padding: 0 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 18px 32px 18px 0; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--blue); transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item div p { padding-bottom: 18px; margin: 0; color: var(--text-muted); }

/* link grid */
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.link-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.link-grid a { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius-m); background: var(--white); text-decoration: none; border: 1px solid var(--grout); transition: border-color .2s; }
.link-grid a:hover { border-color: var(--deep); }
.link-grid b { font-size: 18px; }
.link-grid span { font-size: 15px; color: var(--text-muted); }
.on-dark .link-grid a { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.16); color: var(--white); }
.on-dark .link-grid span { color: var(--on-dark-muted); }
@media (max-width: 860px) { .link-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .link-grid, .link-grid-2 { grid-template-columns: 1fr; } }

.limits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.limits > div { border-top: 3px solid var(--yellow); padding-top: 16px; }
.limits h3 { font-size: 22.4px; margin-bottom: 8px; }
.limits p { font-size: 15px; color: var(--on-dark); }
@media (max-width: 960px) { .limits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .limits { grid-template-columns: 1fr; } }

.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.contact-cards a { display: grid; gap: 8px; padding: 24px; border-radius: var(--radius-m); background: var(--white); text-decoration: none; border: 1px solid var(--grout); }
.contact-cards a:hover { border-color: var(--deep); }
.contact-cards span { font-size: 14px; color: var(--text-muted); }
.contact-cards b { font-size: 18px; color: var(--blue); word-break: break-word; }
@media (max-width: 960px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .contact-cards { grid-template-columns: 1fr; } }

.steps-light li::before { background: var(--deep); color: var(--white); }
.steps-light span { color: var(--text-muted); }
.steps-light b { color: var(--text); }
.label-large img { width: min(100%, 340px); margin: 0 auto; border-radius: 20px; }
.page-head .lead { max-width: 60ch; }

/* ---------- sponsor band on every page ---------- */
.sponsor-band { background: var(--white); padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--grout); }
.sponsor-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 40px; margin-bottom: 36px; }
.sponsor-band h2 { font-size: clamp(23.8px, 3vw, 39.6px); }
.sponsor-band-head p { margin: 0; color: var(--text-muted); max-width: 42ch; }
/* as many columns as fit (at least 140px each): the logos fill the row, whatever the number of sponsors */
.sponsor-band-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.sponsor-band-list a {
  display: grid; place-items: center; height: 120px; padding: 18px; border-radius: var(--radius-m);
  background: var(--white); border: 1px solid var(--grout); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.sponsor-band-list a:hover { border-color: var(--deep); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(4,22,46,.5); }
.sponsor-band-list img { max-height: 84px; max-width: 100%; width: auto; object-fit: contain; }
.sponsor-band-foot { margin: 24px 0 0; font-size: 15px; color: var(--text-muted); }
.sponsor-band-foot a { font-weight: 700; color: var(--blue); }
@media (max-width: 520px) { .sponsor-band-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sponsor-band-list a { height: 96px; } }

.sponsor-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sponsor { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; background: var(--white); border-radius: var(--radius-m); padding: 24px; border: 1px solid var(--grout); }
.sponsor-logo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; background: var(--tile); padding: 16px; }
.sponsor-logo img { max-height: 110px; object-fit: contain; }
.sponsor h3 { margin-bottom: 8px; }
.sponsor p { font-size: 15px; color: var(--text-muted); }
@media (max-width: 960px) { .sponsor-list { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sponsor { grid-template-columns: 1fr; } .sponsor-logo { aspect-ratio: auto; height: 120px; } }

/* room below headings in two-column blocks */
h2 + .lead, h2 + p, h2 + ol, h2 + table { margin-top: 20px; }
.head h2 + p { margin-top: 0; }

/* ---------- register ---------- */
.btn-large { padding: 17px 28px; font-size: 17px; }
.btn-outline-dark { border-color: var(--deep); color: var(--deep); background: transparent; }
.btn-outline-dark:hover { background: var(--deep); color: var(--white); }
.path-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.choice {
  position: relative; display: grid; align-content: start; gap: 6px; text-align: left; cursor: pointer;
  background: var(--white); border: 2px solid var(--grout); border-radius: var(--radius-m); padding: 20px 20px 22px;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.choice:hover { border-color: var(--deep); }
.choice b { font-family: var(--display); font-weight: 800; font-size: 22.4px; line-height: 1; }
.choice > span:last-child { font-size: 15px; color: var(--text-muted); }
.path-picker .choice > span:not(.choice-no) { display: block; min-height: 0; padding: 0; border: 0; border-radius: 0; font-weight: 500; }
.choice-no {
  width: 38px; height: 38px; border-radius: var(--radius-s); display: grid; place-items: center; margin-bottom: 8px;
  font-family: var(--display); font-weight: 900; font-size: 22px; background: var(--tile); color: var(--deep);
}
.choice[aria-checked="true"] { border-color: var(--deep); box-shadow: 0 0 0 2px var(--deep), 0 18px 30px -20px rgba(4,22,46,.6); transform: translateY(-2px); }
.choice[aria-checked="true"] .choice-no { background: var(--color); }
.paths { display: grid; gap: 20px; }
.path {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start;
  background: var(--white); border-radius: var(--radius-m); padding: clamp(22px, 4vw, 44px); border: 1px solid var(--grout);
  scroll-margin-top: 96px;
}
.path h3 { font-size: clamp(23.8px, 2.9vw, 37px); margin-bottom: 18px; }
.path .lead { color: var(--text-muted); }
.path .steps { margin-top: 8px; }
.path-facts { grid-template-columns: 1fr; }
@media (max-width: 960px) { .path-picker { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .path { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) {
  .path-picker { gap: 10px; }
  .choice { padding: 14px; gap: 4px; }
  .choice b { font-size: 21px; }
  .choice > span:last-child { font-size: 13px; }
  .choice-no { width: 30px; height: 30px; font-size: 18px; margin-bottom: 4px; }
}

.signup-cta { padding: clamp(56px, 7vw, 96px) 0; background: linear-gradient(120deg, var(--deep) 40%, #0a3a66); }
.signup-cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.signup-cta h2 { font-size: clamp(26.4px, 3.7vw, 50.2px); }
.signup-cta .lead { margin: 12px 0 0; }

/* fixed signup bar on mobile */
.signup-bar { display: none; }
@media (max-width: 760px) {
  .signup-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    background: var(--deep); color: var(--white); border-radius: 18px; padding: 10px 10px 10px 16px;
    box-shadow: 0 16px 40px -10px rgba(4,22,46,.7); border: 1px solid rgba(255,255,255,.12);
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .signup-bar.is-visible { transform: none; }
  .signup-bar > span { font-size: 13px; line-height: 1.3; color: var(--on-dark-muted); }
  .signup-bar b { display: block; color: var(--white); font-size: 15px; }
  .signup-bar .btn { padding: 12px 18px; flex: none; }
}

/* ---------- mascots: orcas wearing the swim cap colour of the group ---------- */
.lane-toggle { grid-template-columns: 70px 64px minmax(0, 1fr) auto; }
.lane-mascot {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--color); box-shadow: 0 4px 0 rgba(0,0,0,.2); background: #2a7fd0;
  transition: transform .3s var(--ease);
}
.lane-toggle:hover .lane-mascot, .lane-toggle[aria-expanded="true"] .lane-mascot { transform: rotate(-8deg) scale(1.08); }
.lane-toggle::after { left: 180px; }
.image-with-mascot { position: relative; }
.mascot-badge {
  position: absolute; right: 14px; bottom: 14px; width: 92px !important; height: 92px !important; min-height: 0 !important;
  border-radius: 50% !important; object-fit: cover; border: 4px solid var(--white); box-shadow: 0 10px 24px -8px rgba(4,22,46,.6);
}
.mascots { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.mascots a { display: grid; gap: 10px; text-decoration: none; color: var(--white); }
.mascots img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-m); border-bottom: 8px solid var(--color); transition: transform .3s var(--ease); }
.mascots a:hover img { transform: translateY(-6px) rotate(-2deg); }
.mascots span { font-family: var(--display); font-weight: 800; font-size: 22.4px; line-height: 1; color: var(--color); }
.choice-mascot { position: absolute; right: 12px; top: 12px; width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--color); }
.choice b { padding-right: 8px; }
.swimmer.no-photo { display: block; }
.swimmer.no-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
@media (max-width: 760px) {
  .lane-toggle { grid-template-columns: 42px 46px minmax(0, 1fr) auto; }
  .lane-mascot { width: 46px; height: 46px; border-width: 2px; }
  .mascot-badge { width: 70px !important; height: 70px !important; }
  .mascots { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
  .mascots span { font-size: 16px; }
}
@media (max-width: 480px) {
  .choice-mascot { width: 44px; height: 44px; right: 10px; top: 10px; }
}

/* ---------- meet page: who swims when ---------- */
.meet-row-online { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--deep); background: var(--yellow); padding: 2px 9px; border-radius: 999px; }
.search { display: block; max-width: 460px; margin-bottom: 28px; }
.search input {
  width: 100%; font: inherit; font-size: 18px; padding: 16px 20px 16px 52px; border-radius: 999px;
  border: 2px solid var(--deep); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304162e' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 18px 50% / 22px;
}
.search input:focus { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.search-empty { font-weight: 700; }
.day { margin-top: 40px; }
.day > h3 { font-size: clamp(21.1px, 2.6vw, 31.7px); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--deep); }
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.race-card { background: var(--white); border-radius: var(--radius-m); border: 1px solid var(--grout); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.race-card > header { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--deep); color: var(--white); }
.race-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--chlorine); flex: none; background: #2a7fd0; }
.race-card h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 20.8px; line-height: 1; }
.race-card header span { font-size: 13px; color: var(--on-dark-muted); }
.races { list-style: none; margin: 0; padding: 6px 18px; }
.races li { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grout); }
.races li:last-child { border-bottom: 0; }
.races time { font-family: var(--display); font-weight: 800; font-size: 19.2px; color: var(--blue); font-variant-numeric: tabular-nums; }
.races b { display: block; font-size: 15px; line-height: 1.25; }
.races small { font-size: 13px; color: var(--text-muted); }
.race-time { font-family: var(--display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.race-card > footer { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 18px 16px; font-size: 14px; border-top: 1px solid var(--grout); }
.timeline { margin-top: 20px; background: var(--white); border-radius: var(--radius-m); border: 1px solid var(--grout); padding: 0 20px; }
.timeline summary { cursor: pointer; font-weight: 700; padding: 16px 0; }
.timeline .table { margin-bottom: 18px; }
.timeline .table thead th { color: var(--text-muted); }
.day.is-filtered .timeline, .day.is-filtered .downloads { display: none; }
.downloads { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 15px; }
.downloads ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.downloads a { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--grout); background: var(--white); text-decoration: none; font-weight: 600; }
.downloads a:hover { border-color: var(--deep); }
.meet-downloads { margin-bottom: 28px; }  /* public downloads above the search of the protected block */
@media (max-width: 520px) { .race-grid { grid-template-columns: 1fr; } }

/* ---------- news article ---------- */
.news-all { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
@media (max-width: 960px) { .news-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .news-all { grid-template-columns: 1fr; } }
.page-head-article { padding-bottom: 48px; }
.page-head-article h1 { font-size: clamp(26.4px, 3.6vw, 50.2px); max-width: 20ch; }
.page-head-article h1.head-xlong { font-size: clamp(21.1px, 2.6vw, 38.3px); max-width: 26ch; }
.page-head-article .post-category { color: var(--chlorine); margin-bottom: 12px; }
.article { padding-top: 48px; }
.article-image { margin: 0 0 32px; border-radius: var(--radius-m); overflow: hidden; }
.article-image img { width: 100%; max-height: 560px; object-fit: cover; }
.article-text { font-size: 18px; line-height: 1.7; }
.article-text p, .article-text ul { max-width: 66ch; }
.article-text h2 { font-size: 26.4px; margin: 32px 0 12px; }
.article-text a { color: var(--blue); font-weight: 600; }
.article-text li { margin-bottom: 6px; }

/* ---------- calmer menu ---------- */
.nav-top svg { transition: transform .35s var(--ease); }

/* ---------- calendar button in the header ---------- */
.nav-calendar {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; border: 1.5px solid rgba(255,255,255,.35); transition: background-color .2s, border-color .2s;
}
.nav-calendar:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }
.nav-calendar svg { width: 18px; height: 18px; }
.nav-calendar small { font-size: 12px; font-weight: 700; background: var(--chlorine); color: var(--deep); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 920px) {
  .nav-calendar { margin: 24px 0 0; justify-content: center; font-size: 17px; padding: 14px; }
}

.nav-account { margin-left: 8px; }
.nav-account, .nav-calendar, .nav-cta { white-space: nowrap; flex: none; }
@media (min-width: 921px) and (max-width: 1280px) {
  .nav-account { padding: 9px; }
  .nav-account span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 921px) and (max-width: 1140px) {
  .nav-calendar:not(.nav-account) { padding: 9px; }
  .nav-calendar:not(.nav-account) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- calendar ---------- */
.cal-filter { margin-bottom: 36px; }
.cal-question { font-family: var(--display); font-weight: 800; font-size: 24px; margin: 0 0 14px; }
.group-btn i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cal-remembered { font-size: 14px; color: var(--text-muted); margin: -12px 0 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.cal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.cal-month + .cal-month { margin-top: 32px; }
.cal-month h3 { font-size: 27.2px; padding-bottom: 10px; border-bottom: 3px solid var(--deep); margin-bottom: 4px; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-list a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--grout); text-decoration: none; }
.cal-list a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.cal-day { display: grid; justify-items: center; background: var(--deep); color: var(--white); border-radius: var(--radius-s); padding: 8px 4px; }
.cal-day b { font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.cal-day small { font-size: 12px; color: var(--on-dark-muted); }
.cal-what b { display: block; font-size: 17px; line-height: 1.3; }
.cal-what small { font-size: 14px; color: var(--text-muted); }
.cal-empty { font-weight: 700; margin-top: 16px; }
.cal-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.cal-training { background: var(--white); border: 1px solid var(--grout); border-radius: var(--radius-m); padding: 20px; }
.cal-training h3 { font-size: 20.8px; margin-bottom: 8px; }
.cal-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.cal-links a { color: var(--blue); font-weight: 600; }
@media (max-width: 900px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-side { position: static; order: -1; }
  .cal-fixed { display: none; }
  .cal-list a { grid-template-columns: 58px minmax(0, 1fr); }
  .cal-list .meet-row-groups { grid-column: 2; justify-content: flex-start; }
}

/* ---------- archive ---------- */
.archive-season + .archive-season { margin-top: 36px; }
.archive-season h3 { font-size: 25.6px; margin-bottom: 8px; }
.archive { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.archive li { break-inside: avoid; }
.archive a { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--grout); text-decoration: none; }
.archive time { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--blue); }
.archive b { display: block; font-size: 16px; line-height: 1.3; }
.archive a:hover b { text-decoration: underline; }
.archive small { font-size: 13px; color: var(--text-muted); }
.archive-labels { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.archive-label { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--tile); border: 1px solid var(--grout); }
@media (max-width: 760px) { .archive { columns: 1; } .archive a { grid-template-columns: 1fr; } .archive-labels { grid-column: 1; } }

.tab[aria-pressed="true"] { background: var(--deep); color: var(--white); }
.group-btn[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--white); }

/* ---------- 404: false start ---------- */
.false-start { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--deep) 0%, #063a5a 70%, #0b6f97 100%); color: var(--white); padding: 140px 0 0; isolation: isolate; }
.false-start-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-bottom: 210px; }
.false-start h1 { font-size: clamp(31.7px, 4.2vw, 63.4px); line-height: 1.05; }
.false-start .lead { color: var(--on-dark); margin: 20px 0 30px; }
.fs-water { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1; }
.fs-wave { position: absolute; left: 0; width: 200%; height: 120px; bottom: 0; }
.fs-wave path { fill: rgba(92,225,230,.18); }
.fs-wave-1 { animation: wave 14s linear infinite; bottom: 20px; }
.fs-wave-2 { animation: wave 9s linear infinite reverse; }
.fs-wave-2 path { fill: rgba(238,245,249,1); }
@keyframes wave { to { transform: translateX(-50%); } }
.fs-lanes b { display: flex; align-items: center; gap: 12px; }
.fs-no { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--deep); color: var(--white); font-family: var(--display); font-weight: 900; font-size: 18px; flex: none; }
.fs-lanes a:hover .fs-no { background: var(--yellow); color: var(--deep); }
@media (max-width: 860px) {
  .false-start { padding-top: 110px; }
  .false-start-inner { grid-template-columns: 1fr; padding-bottom: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-wave { animation: none; }
}
.article-text { overflow-wrap: anywhere; }

/* ---------- entering a meet ---------- */
.entry-section { background: var(--deep); color: var(--white); }
.entry-section .lead { color: var(--on-dark); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--grout); font-weight: 700; font-size: 15px; transition: background .15s, border-color .15s; }
.choice input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.entry-closed { text-align: center; }
.entry-closed .lead { margin: 16px auto 0; }

/* ---------- following live on the meet page ---------- */
.live { background: var(--deep); color: var(--white); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); margin: 0 0 40px; scroll-margin-top: 120px; }
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.live-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20.8px; }
.live-note { color: var(--on-dark); margin: 0; flex: 1 1 320px; font-size: 15px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 0 rgba(255,77,77,.6); animation: live-pulse 1.8s infinite; flex: none; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); } }
.live-status { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.live-box { background: rgba(255,255,255,.07); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.live-next { background: var(--yellow); color: var(--deep); }
.live-label { font-size: 13px; font-weight: 700; opacity: .8; }
.live-box b { font-size: 20px; line-height: 1.25; }
.live-box small { font-size: 14px; opacity: .85; }
.live-times { grid-column: 1 / -1; }
.live-times ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.live-times li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; }
.live-times li b { font-size: 16px; }
.live-times li small { grid-column: 1 / -1; }
.live-res { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 18px; }
.live-res.is-pb { color: var(--yellow); }
.live-res.is-no-time { opacity: .75; font-size: 15px; }
.live-delay { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--chlorine); font-weight: 600; }
.live-schedule { margin-top: 18px; }
.live-schedule summary { cursor: pointer; font-weight: 700; color: var(--chlorine); }
.live-filter { display: inline-flex; gap: 8px; align-items: center; margin: 12px 0 6px; font-size: 14px; color: var(--on-dark); cursor: pointer; }
.live-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow-y: auto; position: relative; }
.live-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 8px; }
.live-list time { font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.live-list time small { display: block; font-family: var(--body); font-size: 11px; font-weight: 500; color: var(--on-dark-muted); }
.live-what b { display: block; font-size: 15px; }
.live-what small, .live-who { font-size: 13px; color: var(--on-dark); }
.live-list .is-past { opacity: .45; }
.live-list .is-now { background: rgba(92,225,230,.16); box-shadow: inset 3px 0 0 var(--chlorine); }
.live-list .is-next { background: rgba(255,210,63,.16); box-shadow: inset 3px 0 0 var(--yellow); }
.live-list .live-day { display: block; font-weight: 800; color: var(--chlorine); padding: 14px 10px 6px; border: 0; }
.live-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 28px; padding: 14px 20px; border-radius: var(--radius-m); background: rgba(4,22,46,.78); border: 1px solid rgba(255,255,255,.18); color: var(--white); text-decoration: none; max-width: 980px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.live-hero[hidden] { display: none; }
.live-hero-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: #ff7a7a; }
.live-hero-part { display: grid; flex: 1 1 220px; }
.live-hero-part small { font-size: 12px; color: var(--on-dark-muted); font-weight: 600; }
.live-hero-part b { font-size: 16px; }
.live-hero-more { font-weight: 700; border-bottom: 2px solid rgba(255,255,255,.4); }
.live-hero:hover .live-hero-more { border-color: var(--yellow); }
@media (max-width: 700px) {
  .live-status { grid-template-columns: 1fr; }
  .live-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .live-who { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- month calendars ---------- */
.month-calendar { margin: 0 0 32px; }
.mc-months { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mc-month { display: inline-flex; align-items: baseline; gap: 6px; border: 1.5px solid var(--grout); background: var(--white); color: var(--deep); border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.mc-month small { font-weight: 500; color: var(--text-muted); }
.mc-month[aria-pressed="true"] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.mc-month[aria-pressed="true"] small { color: var(--on-dark-muted); }
.mc-image { margin: 0; background: var(--white); border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 1px 2px rgba(4,22,46,.06), 0 18px 40px -24px rgba(4,22,46,.4); }
.mc-image figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--deep); color: var(--white); padding: 16px 22px; }
.mc-title { font-family: var(--display); font-weight: 800; font-size: clamp(18.5px, 2.6vw, 26.4px); line-height: 1; }
.mc-title b { color: var(--yellow); }
.mc-image figcaption .text-link { color: var(--chlorine); }
.mc-image img { width: 100%; height: auto; display: block; }

/* ---------- house style (styleguide.html, not linked) ---------- */
.sg-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sg-logo { margin: 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--grout); background: var(--white); display: grid; grid-template-rows: 200px auto; }
.sg-logo img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.sg-dark img { background: var(--deep); }
.sg-light img { background: var(--tile); }
.sg-logo figcaption { display: grid; gap: 2px; padding: 14px 16px; }
.sg-logo figcaption span { color: var(--text-muted); font-size: 14px; }
.sg-logo figcaption .text-link { justify-self: start; margin-top: 6px; }
.sg-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.sg-color { background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--grout); display: grid; }
.sg-color span { height: 90px; background: var(--k); border-bottom: 1px solid var(--grout); }
.sg-color b, .sg-color code, .sg-color small { padding: 0 14px; }
.sg-color b { padding-top: 12px; }
.sg-color code { font-size: 13px; color: var(--deep); background: none; }
.sg-color small { color: var(--text-muted); font-size: 13px; padding-bottom: 14px; }
.sg-sub { font-size: 22.4px; margin: 36px 0 8px; }
.sg-text { color: var(--text-muted); max-width: 70ch; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-chips code { font-size: 12px; color: var(--text-muted); background: none; margin-left: 4px; }
.sg-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.sg-font { background: var(--white); border: 1px solid var(--grout); border-radius: var(--radius-m); padding: 24px; }
.sg-sample { margin: 0 0 10px; font-size: clamp(22.4px, 2.6vw, 34.3px); line-height: 1; color: var(--deep); }
.sg-display { font-family: var(--display); font-weight: 800; }
.sg-body { font-family: var(--body); font-weight: 700; }
.sg-scale { border-top: 2px solid var(--deep); padding-top: 20px; display: grid; gap: 12px; }
.sg-scale p { margin: 0; }
.sg-h1 { font-family: var(--display); font-weight: 900; font-size: clamp(30.4px, 4.9vw, 73.9px); line-height: 1.05; }
.sg-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(25.1px, 3.7vw, 50.2px); line-height: 1; }
.sg-h3 { font-family: var(--display); font-weight: 800; font-size: 22.4px; line-height: 1.1; }
.sg-orcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sg-orcas figure { margin: 0; background: var(--white); border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--grout); }
.sg-orcas img { width: 100%; height: auto; display: block; }
.sg-orcas figcaption { display: grid; gap: 2px; padding: 10px 12px; font-weight: 700; font-size: 14px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 24px; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--grout); margin-bottom: 14px; }
.sg-on-dark { background: var(--deep); border-color: var(--deep); }
.sg-on-dark .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.sg-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.sg-rules > div { background: var(--white); border-radius: var(--radius-m); padding: 24px; border: 1px solid var(--grout); }
.sg-rules h3 { font-size: 20.8px; margin-bottom: 12px; }
.sg-rules ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 760px) { .sg-fonts, .sg-rules { grid-template-columns: 1fr; } }

/* ---------- contact form ---------- */
.contact-dialog { border: 0; padding: 0; border-radius: 20px; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); color: var(--text); box-shadow: 0 40px 80px -20px rgba(4,22,46,.6); }
.contact-dialog::backdrop { background: rgba(4,22,46,.6); backdrop-filter: blur(3px); }
.contact-dialog form { padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; }
.contact-head { display: flex; justify-content: space-between; align-items: center; }
.contact-head h2 { font-size: clamp(22.4px, 3.3vw, 31.7px); margin: 0; }
.contact-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tile); font-size: 24px; line-height: 1; cursor: pointer; color: var(--deep); }
.contact-note { margin: -6px 0 0; color: var(--text-muted); }
.contact-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.contact-field > span, .contact-field legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.contact-field small { font-weight: 400; color: var(--text-muted); }
.contact-field input, .contact-field textarea { font: inherit; border: 1.5px solid var(--grout); border-radius: 10px; padding: 11px 14px; background: var(--white); color: var(--text); width: 100%; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.15); }
.contact-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-choices label { position: relative; cursor: pointer; }
.contact-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.contact-choices span { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 16px; border: 1.5px solid var(--grout); border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--white); }
.contact-choices input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.contact-choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.contact-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-member { margin: 0; padding: 12px 14px; background: #fff6d6; border-radius: 10px; font-size: 14px; }
.contact-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.contact-foot p { margin: 0; font-size: 14px; color: var(--text-muted); }
.contact-error { margin: 0; padding: 12px 14px; background: #fde8e8; color: #8a1c1c; border-radius: 10px; font-size: 14px; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-done { padding: clamp(20px, 4vw, 32px); display: grid; gap: 16px; justify-items: start; }
.contact-done .contact-head { width: 100%; }
.contact-done p { margin: 0; color: var(--text-muted); }
.contact-dialog [hidden] { display: none; }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } .contact-foot .btn { width: 100%; } }

/* ---------- sponsors on the home page: a scrolling band below the opening photo ---------- */
.hero-sponsors { overflow: hidden; padding: 6px 0; background: var(--white); border-top: 1px solid var(--grout); }
/* equal cells with a thin line on the left of each: the same space between every two lines, also where the rail repeats */
.hero-sponsors .sp-rail { gap: 0; padding-left: 0; animation-duration: 32s; }
.hero-sponsors .sp-item { position: relative; }
.hero-sponsors .sp-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 30px; transform: translateY(-50%); background: rgba(46, 156, 255, .35); }
.hero-sponsors .sp-item a { width: 190px; height: 56px; padding: 0 20px; border: 0; border-radius: 0; box-shadow: none; background: none; }
.hero-sponsors .sp-item a:hover { box-shadow: none; opacity: .75; }
.sp-band { display: flex; width: max-content; padding: 8px 0; }
.sp-rail { list-style: none; margin: 0; padding: 0 0 0 20px; display: flex; gap: 20px; animation: sp-scroll 40s linear infinite; }
.sp-band:hover .sp-rail, .sp-band:focus-within .sp-rail { animation-play-state: paused; }
.sp-item a { display: grid; place-items: center; width: clamp(200px, 22vw, 280px); height: clamp(120px, 12vw, 160px); padding: 24px 32px; background: var(--white); border: 1px solid var(--grout); border-radius: var(--radius-m); box-shadow: 0 1px 2px rgba(4,22,46,.05); transition: border-color .2s, box-shadow .2s; }
.sp-item a:hover { border-color: var(--deep); box-shadow: 0 14px 28px -18px rgba(4,22,46,.5); }
.sp-item img { display: block; max-width: 100%; max-height: 96px; width: auto; height: auto; object-fit: contain; }
.hero-sponsors .sp-item img { max-width: 100%; max-height: 50px; object-fit: contain; }
@media (max-width: 640px) { .hero-sponsors .sp-item a { width: 150px; padding: 0 14px; } }
@keyframes sp-scroll { to { transform: translateX(-100%); } }
.home .sponsor-band { display: none; }
@media (prefers-reduced-motion: reduce) {
  .sp-rail { animation: none; flex-wrap: wrap; justify-content: center; }
  .sp-band { width: auto; justify-content: center; }
  .sp-copy { display: none; }
}

.member-block { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; }
.member-block h2 { margin-bottom: 12px; }
.member-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .member-block { grid-template-columns: 1fr; } }

/* ---------- swimmer names only after login ---------- */
.protected-lock { display: flex; gap: 20px; align-items: center; padding: 24px; border-radius: var(--radius-m); background: var(--white); box-shadow: 0 0 0 1px var(--tile); }
.protected-lock img { width: 72px; height: 72px; flex: none; border-radius: 50%; }
.protected-lock h3 { margin: 0 0 6px; }
.protected-lock p { margin: 0; max-width: 60ch; }
.protected-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px !important; }
.protected-buttons .btn { margin: 0; }
@media (max-width: 640px) { .protected-lock { flex-direction: column; align-items: flex-start; } }
.entry-closed .protected-buttons { justify-content: center; }

/* ---------- start chooser: swim school or competition ---------- */
:root {
  --pill: "Fredoka", "Onest", system-ui, sans-serif;
  --pill-pink: #ff1f8e;
  --pill-blue: #2f9bff;
  --sponsor-band: 80px;
  /* brand book: Montserrat for text, navy, water and highlight */
  --brand: "Montserrat", "Onest", system-ui, sans-serif;
  --navy: #0e2031;
  --water: #31699b;
  --highlight: #0086c0;
}
body.chooser-start:not(.chooser-passed):not(.menu-open) .site-header { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.chooser {
  position: relative; height: 100svh; min-height: 560px; max-height: 1200px;
  background: #0a2a7a; color: var(--white); overflow: hidden; isolation: isolate;
}
/* the image ends above the sponsor band, so the orcas do not touch the bottom edge */
.chooser-image { position: absolute; inset: 0 0 calc(var(--sponsor-band) - 12px) 0; z-index: -2; }
.chooser-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.chooser::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 22, 70, .55), rgba(6, 22, 70, 0));
}
.chooser-head { position: absolute; inset: 0 0 auto 0; z-index: 3; display: grid; justify-items: center; padding-top: clamp(28px, 6.5vh, 72px); pointer-events: none; }
.chooser-logo { margin: 0; }
.chooser-logo img { width: clamp(220px, 21vw, 420px); height: auto; filter: drop-shadow(0 4px 18px rgba(0, 10, 40, .35)); }
.chooser-account {
  position: absolute; top: 18px; right: var(--gutter); z-index: 4;
  font-weight: 700; font-size: 16px; color: var(--white); text-decoration: none;
  padding: 10px 20px; border-radius: 999px; background: rgba(4, 22, 46, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.chooser-account { border: 2px solid rgba(255, 255, 255, .45); box-shadow: 0 4px 16px -6px rgba(0, 10, 40, .5); transition: background-color .2s, border-color .2s; }
.chooser-account:hover, .chooser-account:focus-visible { background: rgba(4, 22, 46, .6); border-color: var(--focus); }
/* glass panel: side margin and the gap between button and panel edge (equal at the top and the sides) */
.chooser { --glass-x: clamp(12px, 1.4vw, 24px); --glass-gap: clamp(20px, 2.4vw, 40px); }
.chooser-parts { position: absolute; inset: calc(clamp(28px, 6.5vh, 72px) + clamp(90px, 11vw, 180px)) 0 var(--sponsor-band, 64px) 0; display: grid; grid-template-columns: 1fr 1fr; }
.chooser-part {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--white);
  padding-top: var(--glass-gap);
  -webkit-tap-highlight-color: transparent;
}
.chooser-part.is-swim-school { align-items: flex-end; padding-right: calc(var(--glass-x) + var(--glass-gap)); }
.chooser-part.is-competition { align-items: flex-start; padding-left: calc(var(--glass-x) + var(--glass-gap)); }
/* the highlighted part gets a light glass panel: translucent white, rounded corners, a thin light border */
.chooser-part::before {
  content: ""; position: absolute; inset: 0 var(--glass-x) -48px; z-index: -1; pointer-events: none; /* runs on below the white wave */
  border-radius: clamp(24px, 2.4vw, 40px);
  background: linear-gradient(160deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .2) 55%, rgba(255, 255, 255, .26));
  border: 3px solid var(--pill-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 0 24px rgba(47, 155, 255, .35), 0 24px 60px -18px rgba(10, 42, 122, .75);
  -webkit-backdrop-filter: brightness(1.12) saturate(1.15); backdrop-filter: brightness(1.12) saturate(1.15);
  opacity: 0; transform: scale(.985); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.chooser[data-active="swim-school"] .is-swim-school::before,
.chooser[data-active="competition"] .is-competition::before { opacity: 1; transform: none; }
.chooser[data-chosen="swim-school"] .is-swim-school::before,
.chooser[data-chosen="competition"] .is-competition::before { opacity: 1; transform: none; background: rgba(255, 255, 255, .45); }
.chooser-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--pill); font-weight: 700; letter-spacing: -.005em; line-height: 1;
  font-size: clamp(26px, 2.4vw, 46px); padding: .42em 1.05em .48em; border-radius: 999px;
  color: var(--white); box-shadow: 0 10px 30px rgba(0, 10, 40, .3);
  transform-origin: var(--origin, center);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), box-shadow .45s var(--ease);
}
.is-swim-school .chooser-pill { background: var(--pill-pink); --origin: right top; }
.is-competition .chooser-pill { background: var(--pill-blue); --origin: left top; }
.chooser-sub {
  margin-top: 16px; font-family: var(--brand); font-weight: 600; font-size: clamp(14px, 1.05vw, 17px); color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 12px rgba(0, 10, 40, .7); opacity: 0; transform: translateY(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.chooser[data-active="swim-school"] .is-swim-school .chooser-pill,
.chooser[data-active="competition"] .is-competition .chooser-pill { transform: scale(1.16); box-shadow: 0 16px 44px rgba(0, 10, 40, .45), 0 0 0 6px rgba(255, 255, 255, .14); }
.chooser[data-active="swim-school"] .is-swim-school .chooser-sub,
.chooser[data-active="competition"] .is-competition .chooser-sub { opacity: 1; transform: none; }
.chooser-part:focus-visible { outline: none; }
.chooser-part:focus-visible .chooser-pill { outline: 4px solid var(--focus); outline-offset: 4px; }
/* entrance: the logo drops in, the pills pop up one after the other */
.chooser-logo { animation: chooser-in .7s var(--ease) both; }
.chooser-pill { animation: chooser-pop .6s cubic-bezier(.34, 1.56, .64, 1) backwards; }
.is-swim-school .chooser-pill { animation-delay: .2s; }
.is-competition .chooser-pill { animation-delay: .32s; }
@keyframes chooser-in { from { opacity: 0; transform: translateY(-14px); } }
@keyframes chooser-pop { from { opacity: 0; transform: scale(.7); } }
.chooser-sponsors { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; border-top: 0; }

/* small screens: two cards stacked, each with its own half of the pool */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .chooser { height: auto; min-height: 100svh; max-height: none; display: flex; flex-direction: column; padding: 0 0 0; }
  .chooser-head, .chooser-parts { margin: 0 16px; }
  .chooser-parts { margin-bottom: 14px; }
  .chooser-sponsors { position: relative; }
  .chooser-head { position: relative; padding: 50px 0 16px; }
  .chooser-logo img { width: min(64vw, 300px); }
  .chooser-account { top: 12px; right: 16px; font-size: 14px; padding: 8px 15px; }
  .chooser-image img { object-position: 50% 0; filter: blur(2px) brightness(.8); transform: scale(1.04); }
  .chooser-parts { position: relative; inset: auto; flex: 1; display: flex; flex-direction: column; gap: 14px; }
  .chooser-part {
    flex: 1 1 0; min-height: 180px; border-radius: 28px; overflow: hidden; isolation: isolate;
    padding: 22px !important; align-items: flex-start !important; justify-content: flex-start;
    background: url(../img/choice/pool-evening.webp) no-repeat; background-size: 185% auto;
    box-shadow: 0 14px 40px rgba(0, 8, 30, .45), inset 0 0 0 1px rgba(255, 255, 255, .14);
    transition: transform .35s var(--ease);
  }
  .chooser-part.is-swim-school { background-position: 0 66%; }
  .chooser-part.is-competition { background-position: 100% 70%; }
  .chooser-part::before { inset: 0; border-radius: inherit; transform: none; }
  .chooser-part::after { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(6, 18, 52, .72) 0%, rgba(6, 18, 52, .35) 38%, rgba(6, 18, 52, 0) 62%); }
  .chooser-pill { font-size: 26px; --origin: left center !important; }
  .chooser-sub { opacity: 1; transform: none; margin-top: 10px; font-size: 15px; }
  .chooser-part:active { transform: scale(.98); }
}
@media (max-width: 760px) and (min-aspect-ratio: 1/1) {
  .chooser-parts { flex-direction: row; }
}
@media (prefers-reduced-motion: reduce) {
  .chooser-logo, .chooser-pill { animation: none; }
  .chooser-pill, .chooser-part::before, .chooser-sub { transition: none; }
}

/* ---------- image hero: swim school and competition in the style of the start chooser ---------- */
.image-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: #0a2a7a;
  min-height: max(600px, 100svh); display: grid; align-items: center; padding: 120px 0 calc(64px + var(--sponsor-band, 64px));
}
/* the sponsor band closes the hero, against the bottom edge of the screen */
.image-hero-sponsors { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 0; }
.image-hero-media { position: absolute; inset: 0; z-index: -2; }
.image-hero-media img, .image-hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
/* the video starts on the same frame as the photo: no transition, and the photo disappears once the video plays */
.image-hero-media video { opacity: 0; }
.image-hero-media.video-playing video { opacity: 1; }
.image-hero-media.video-playing img { visibility: hidden; }
.image-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 22, 46, .55) 0, rgba(4, 22, 46, 0) 150px),
    linear-gradient(90deg, rgba(6, 22, 70, .92) 0%, rgba(6, 22, 70, .8) 30%, rgba(6, 22, 70, .4) 50%, rgba(6, 22, 70, 0) 66%);
}
.image-hero-content > * { animation: rise-in .6s var(--ease) both; }
.image-hero-content > :nth-child(2) { animation-delay: .08s; }
.image-hero-content > :nth-child(3) { animation-delay: .14s; }
.image-hero-content > :nth-child(4) { animation-delay: .2s; }
.image-hero-content > :nth-child(5) { animation-delay: .26s; }
.image-hero .breadcrumb { color: rgba(255, 255, 255, .75); }
.image-hero .breadcrumb a { color: var(--white); }
.image-hero h1 {
  font-family: var(--brand); font-weight: 900; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(40px, 5.2vw, 80px); max-width: 13ch; text-wrap: balance;
}
.image-hero .lead { font-family: var(--brand); font-weight: 500; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 14px rgba(6, 22, 70, .5); max-width: 46ch; margin: 20px 0 0; }
.image-hero .hero-buttons { margin-top: 30px; gap: 12px 14px; }
/* wide screens: the image moves right and fades into the water on the left, so the orcas stand next to the text */
@media (min-width: 1100px) {
  .image-hero-swim-school { background: linear-gradient(180deg, #082859 0%, #0a2a66 55%, #04327c 100%); }
  .image-hero-swim-school .image-hero-media img, .image-hero-swim-school .image-hero-media video {
    left: auto; right: 0; width: 76%; object-position: 100% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  }
}
/* competition: light sky, so dark text; a soft band stays at the top for the menu */
.image-hero-competition { color: var(--navy); background: #cfe8ff; }
.image-hero-competition::before {
  background:
    linear-gradient(180deg, rgba(4, 22, 46, .5) 0, rgba(4, 22, 46, 0) 130px),
    linear-gradient(90deg, rgba(240, 248, 255, .8) 0%, rgba(240, 248, 255, .45) 40%, rgba(240, 248, 255, 0) 62%);
}
/* "Competitiezwemmen" stays one word: set smaller so it fits, never hyphenated */
.image-hero-competition h1 { max-width: none; font-size: clamp(26px, 3.9vw, 64px); hyphens: manual; overflow-wrap: normal; }
.image-hero-competition .lead { color: var(--water); text-shadow: none; }
.image-hero-competition .breadcrumb { color: #3b5a85; }
.image-hero-competition .breadcrumb a { color: var(--deep); }
.image-hero-competition .image-hero-media img, .image-hero-competition .image-hero-media video { object-position: 70% 50%; }

@media (max-width: 760px) {
  .image-hero { min-height: 0; padding: 0; display: block; }
  .image-hero-sponsors { position: relative; }
  .image-hero-media { position: relative; inset: auto; height: 62svh; min-height: 340px; max-height: 520px; }
  .image-hero-media img, .image-hero-media video { object-position: 80% 50%; }
  .image-hero-competition .image-hero-media img, .image-hero-competition .image-hero-media video { object-position: 55% 50%; }
  .image-hero::before { background: linear-gradient(180deg, rgba(4, 22, 46, .55) 0, rgba(4, 22, 46, 0) 120px); bottom: auto; height: 62svh; }
  .image-hero-competition::before { background: linear-gradient(180deg, rgba(4, 22, 46, .5) 0, rgba(4, 22, 46, 0) 120px); }
  .image-hero-content { position: relative; margin-top: -48px; padding-top: 40px; padding-bottom: 40px; border-radius: 28px 28px 0 0; }
  .image-hero-swim-school .image-hero-content { background: #0a2a7a; }
  .image-hero-competition .image-hero-content { background: #e6f3ff; }
  .image-hero h1 { font-size: clamp(32px, 9.4vw, 46px); hyphens: manual; overflow-wrap: break-word; }
  .image-hero-competition h1 { font-size: clamp(24px, 7.2vw, 40px); overflow-wrap: normal; }
  .image-hero .hero-buttons .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .image-hero-content > * { animation: none; }
}

/* ---------- menu per world: swim school (pink) and competition (blue) ---------- */
.world-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; background: var(--focus); box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
[data-world="swim-school"] { --world: var(--pill-pink); }
[data-world="competition"] { --world: var(--pill-blue); }
/* shared pages carry every menu; only the one of the chosen world is visible */
.nav-list[data-menu] { display: none; }
html:not([data-world]) .nav-list[data-menu="general"],
html[data-world="swim-school"] .nav-list[data-menu="swim-school"],
html[data-world="competition"] .nav-list[data-menu="competition"] { display: flex; }
html[data-world] .nav-top[data-active="true"] { box-shadow: inset 0 0 0 2px var(--focus); }
/* breadcrumb on shared pages: the parent crumb of the visitor's world (build.py breadcrumb_html) */
.breadcrumb [data-crumb]:not([data-crumb="default"]),
html[data-world="swim-school"] .breadcrumb[data-worlds~="swim-school"] [data-crumb="default"],
html[data-world="competition"] .breadcrumb[data-worlds~="competition"] [data-crumb="default"] { display: none; }
html[data-world="swim-school"] .breadcrumb [data-crumb="swim-school"],
html[data-world="competition"] .breadcrumb [data-crumb="competition"] { display: inline; }
.nav-world { font-family: var(--pill); font-weight: 600; font-size: 17px; letter-spacing: .005em; }
@media (max-width: 920px) {
  html[data-world] .nav-top[data-active="true"] { box-shadow: none; color: var(--focus); }
}

/* ---------- wave above the sponsor band, like the wave in the brand book ---------- */
.wave-band:not(.chooser-sponsors):not(.image-hero-sponsors) { position: relative; }
.wave-band::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(18px, 2.4vw, 36px); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0 6C200 4 330 34 600 36C860 38 960 4 1180 4C1300 4 1380 22 1440 30V48H0Z'/%3E%3C/svg%3E") no-repeat 0 100% / 100% 100%;
}
.wave-band .hero-sponsors { border-top: 0; }

/* =====================================================================
   XD look (OZEKA2026.xd): navy #0e2031, blue #2e9cff, pink #f81888,
   water #31699b. Titles, menu and buttons in Lilita One (replaces
   Bernhard Gothic URW Extra Heavy), text in Montserrat.
   ===================================================================== */
:root {
  --xd-navy: #0e2031;
  --xd-blue: #2e9cff;
  --xd-pink: #f81888;
  --xd-water: #31699b;
  --focus: #f81888; /* selection and focus colour, across the whole site */
  --font-title: "Lilita One", "Montserrat", system-ui, sans-serif;
  --pill: var(--font-title);
  --pill-pink: var(--xd-pink);
  --pill-blue: var(--xd-blue);
  --deep: var(--xd-navy);
  --max: 1640px;
}

/* titles */
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; letter-spacing: .005em; line-height: 1.02; }
h1, h2 { text-transform: uppercase; }
h2 { font-size: clamp(30px, 3.2vw, 60px); }
h3 { font-size: clamp(22px, 2vw, 32px); }
.page-head h1 { font-size: clamp(38px, 5vw, 84px); font-weight: 400; line-height: 1; }
.page-head h1.head-long { font-size: clamp(34px, 4vw, 68px); }
.page-head h1.head-xlong { font-size: clamp(30px, 3.4vw, 56px); }

/* menu */
.nav-top { font-family: var(--font-title); font-weight: 400; font-size: 19px; letter-spacing: .01em; }
.nav-world { font-family: var(--font-title); font-weight: 400; font-size: 19px; }
.nav-calendar { font-family: var(--font-title); font-weight: 400; font-size: 18px; border: 3px solid var(--white) !important; padding: 8px 20px !important; }
.nav-calendar svg { display: none; }
.site-header .nav-cta { font-family: var(--font-title); font-weight: 400; font-size: 18px; background: var(--xd-pink); color: var(--white); border: 3px solid var(--xd-pink); padding: 8px 22px; }
.site-header .nav-cta:hover { background: #ff3d9c; border-color: #ff3d9c; filter: none; }
.nav-cta svg { display: none; }

/* buttons */
.btn { font-family: var(--font-title); font-weight: 400; font-size: 18px; letter-spacing: .01em; padding: 14px 28px; }
.btn-yellow { background: var(--xd-blue); color: var(--white); }
.btn-yellow:hover { background: #55aeff; }
.btn-blue, .btn-xd { background: var(--xd-blue); color: var(--white); }
.btn-blue:hover, .btn-xd:hover { background: #55aeff; }
.btn-xd-water { background: var(--xd-water); color: var(--white); }
.btn-xd-water:hover { background: #3b7cb5; }
.btn-xd-outline, .btn-outline-dark { background: transparent; color: var(--xd-navy); border: 2px solid var(--xd-navy); }
.btn-xd-outline:hover, .btn-outline-dark:hover { background: var(--xd-navy); color: var(--white); }

/* helper classes */
.xd-center { text-align: center; justify-content: center; margin-left: auto; margin-right: auto; }
.xd-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.xd-title { font-family: var(--font-title); text-transform: uppercase; color: var(--xd-navy); font-size: clamp(32px, 3.2vw, 60px); line-height: 1; text-align: center; margin: 0 0 22px; }
.xd-intro { font-size: clamp(16px, 1.05vw, 20px); color: var(--xd-navy); max-width: 80ch; margin-bottom: clamp(28px, 3vw, 48px); }
.xd-light { background: linear-gradient(180deg, #c4e2ff 0%, #e9f4ff 45%, #ffffff 100%); padding: clamp(64px, 7vw, 120px) 0; }
.xd-dark { background: var(--xd-navy); color: var(--white); padding: clamp(64px, 7vw, 120px) 0; }

/* hero: a large logo and a short tagline, as in the design */
/* the hero and the bar with the next meet fit together in the first screen */
.xd-page { --xd-bar: clamp(72px, 5.4vw, 104px); }
.xd-page .image-hero { min-height: max(520px, calc(100svh - var(--xd-bar))); max-height: none; }
.xd-hero-content { display: grid; justify-items: start; gap: clamp(18px, 1.6vw, 30px); }
.xd-hero-logo { width: clamp(240px, 31vw, 600px); height: auto; filter: drop-shadow(0 4px 24px rgba(6, 20, 50, .35)); }
.xd-hero-tagline { font-family: var(--brand); font-weight: 700; font-size: clamp(16px, 1.25vw, 24px); line-height: 1.45; color: var(--white); max-width: none; margin: 0; text-shadow: 0 2px 18px rgba(6, 20, 50, .55); }
.xd-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.xd-page .image-hero-competition { color: var(--white); }
.xd-page .image-hero-competition::before {
  background:
    linear-gradient(180deg, rgba(14, 32, 49, .5) 0, rgba(14, 32, 49, 0) 140px),
    linear-gradient(90deg, rgba(14, 32, 49, .55) 0%, rgba(14, 32, 49, .25) 40%, rgba(14, 32, 49, 0) 60%);
}

/* bar with the next meet or activity */
.xd-next { background: var(--xd-navy); color: var(--white); }
.xd-next-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 32px; min-height: var(--xd-bar, 96px); padding-top: 10px; padding-bottom: 10px; }
.xd-next p { margin: 0; max-width: none; }
.xd-next-what { font-family: var(--brand); font-weight: 700; font-size: clamp(15px, 1.05vw, 20px); }
.xd-next-what b { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; font-size: 1.12em; margin-right: 4px; }
.xd-next-what a { color: var(--xd-blue); margin-left: 18px; white-space: nowrap; text-underline-offset: 3px; }
.xd-clock { font-family: var(--brand); font-weight: 500; font-size: clamp(18px, 1.5vw, 29px); white-space: nowrap; }
.xd-clock b { font-weight: 800; margin-left: .35em; }
.xd-clock b:first-child { margin-left: 0; }

/* meets as cards: the next one in pink */
.meet-list { border-top: 0; display: grid; gap: clamp(12px, 1.1vw, 20px); }
.meet-row {
  background: var(--white); border: 1px solid #c9d4e0; border-radius: clamp(20px, 2vw, 40px);
  grid-template-columns: clamp(52px, 4.2vw, 80px) minmax(150px, 220px) minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 4px clamp(18px, 2vw, 36px); align-items: center; padding: clamp(20px, 2vw, 36px) clamp(20px, 2.4vw, 54px);
  border-bottom: 1px solid #c9d4e0; transition: box-shadow .2s, transform .2s;
}
a.meet-row:hover { box-shadow: 0 14px 36px -18px rgba(14, 32, 49, .35); transform: translateY(-1px); }
.meet-row-lane { width: clamp(52px, 4.2vw, 80px); height: clamp(52px, 4.2vw, 80px); border-radius: 14px; background: var(--xd-navy); color: var(--white);
  font-family: var(--brand); font-weight: 900; font-size: clamp(24px, 2vw, 40px); display: grid; place-items: center; }
.meet-row.is-next { margin: 0; padding: clamp(20px, 2vw, 36px) clamp(20px, 2.4vw, 54px); border: 3px solid var(--xd-pink); background: var(--white); box-shadow: none; }
.meet-row.is-next .meet-row-lane { background: var(--xd-pink); color: var(--white); }
.next-tag { color: var(--xd-pink); }
.meet-row-date { font-family: var(--brand); font-weight: 800; font-size: clamp(17px, 1.25vw, 24px); color: var(--xd-blue); line-height: 1.2; }
.meet-row-date small { font-family: var(--brand); font-weight: 400; font-size: clamp(14px, 1.05vw, 20px); color: var(--xd-navy); margin-top: 4px; }
.meet-row-name { font-family: var(--brand); font-weight: 600; font-size: clamp(17px, 1.25vw, 24px); color: var(--xd-navy); }
.meet-row-location, .meet-row-coaches { color: var(--xd-water); font-size: clamp(14px, 1.05vw, 20px); }
.meet-row-groups { justify-content: flex-end; }
.meet-row .chip { background: var(--white); border: 1px solid var(--xd-water); color: var(--xd-water); font-family: var(--brand); font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
@media (max-width: 1100px) {
  .meet-row { grid-template-columns: clamp(52px, 4.2vw, 80px) minmax(0, 1fr); gap: 6px 18px; }
  .meet-row-lane { grid-row: span 4; align-self: start; }
  .meet-row-coaches, .meet-row-groups { grid-column: 2; grid-row: auto; margin-top: 0; }
  .meet-row-groups { justify-content: flex-start; }
}

/* come swim: a glass panel over the pool */
.xd-join { position: relative; isolation: isolate; overflow: hidden; background: var(--xd-navy); padding: clamp(48px, 5vw, 92px) 0; }
.xd-join-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 60%; z-index: -1; }
.xd-join-inner { display: flex; justify-content: flex-end; }
.xd-join-panel {
  width: min(100%, 926px); color: var(--white); padding: clamp(32px, 5.5vw, 106px);
  background: rgba(14, 32, 49, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 4px solid var(--xd-blue); border-radius: clamp(36px, 5vw, 114px);
}
.xd-join-panel h2 { color: var(--white); font-size: clamp(30px, 3.2vw, 60px); margin-bottom: 18px; }
.xd-join-panel h2 span { color: var(--xd-blue); }
.xd-join-panel p { color: var(--white); }
.xd-join-lead { font-family: var(--brand); font-weight: 500; font-size: clamp(17px, 1.25vw, 24px); line-height: 1.45; margin-bottom: 26px; }
.xd-join-head { font-family: var(--brand); font-weight: 900; font-size: clamp(17px, 1.25vw, 24px); margin-bottom: 18px; }
.xd-steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 22px; }
.xd-steps li { counter-increment: step; font-size: clamp(14px, 1.05vw, 20px); line-height: 1.45; color: rgba(255, 255, 255, .88); }
.xd-steps b { display: block; font-family: var(--brand); font-weight: 700; color: var(--xd-blue); font-size: 1.05em; }
.xd-steps b::before { content: counter(step) ". "; }
.xd-join .xd-buttons { margin-top: clamp(28px, 3vw, 56px); }
.xd-where { display: flex; gap: 18px; align-items: flex-start; margin-top: 36px; }
.xd-where svg { width: 40px; height: 54px; flex: none; }
.xd-where p { margin: 0; font-size: clamp(14px, 1.05vw, 20px); line-height: 1.35; }
.xd-where b { display: block; font-family: var(--brand); font-weight: 900; font-size: 1.15em; margin-bottom: 6px; }
.xd-where a { display: block; color: var(--xd-pink); font-weight: 800; text-decoration: none; }
.xd-where a:hover { text-decoration: underline; }

/* from paars to academy: one lane per group, with the lane line below */
.xd-dark .xd-title { color: var(--white); text-align: left; }
.xd-dark .xd-title span { color: var(--xd-blue); }
.xd-dark .xd-intro { color: var(--xd-blue); font-family: var(--brand); font-weight: 700; font-size: clamp(16px, 1.25vw, 24px); line-height: 1.5; max-width: 60ch; }
.xd-groups { list-style: none; margin: clamp(24px, 3vw, 56px) 0 0; padding: 0; }
.xd-group {
  position: relative; display: grid; grid-template-columns: clamp(76px, 7vw, 133px) minmax(150px, 280px) minmax(0, 1fr) auto;
  align-items: center; gap: 0 clamp(18px, 2.4vw, 46px); padding: clamp(20px, 2.2vw, 40px) 0;
}
.xd-group::after {
  /* the lane line from the design (banen.svg), stretched over the full width */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(8px, .7vw, 13px);
  background: url(../img/brand/lane-line.svg) center / 100% 100% no-repeat;
}
.xd-oscar { width: clamp(76px, 7vw, 133px); height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--white); border: clamp(5px, .55vw, 11px) solid var(--ring); object-fit: cover; }
.xd-group-name { font-family: var(--font-title); text-transform: uppercase; font-size: clamp(24px, 2.1vw, 40px); color: var(--white); margin: 0; line-height: 1; }
.xd-group-name small { display: block; font-family: var(--brand); font-weight: 800; font-size: 12px; letter-spacing: .06em; color: var(--xd-water); margin-bottom: 8px; }
.xd-group-info { margin: 0; max-width: none; color: var(--white); font-family: var(--brand); font-weight: 500; font-size: clamp(15px, 1.25vw, 24px); line-height: 1.35; }
.xd-group-info b { display: block; font-weight: 500; color: var(--xd-blue); text-transform: uppercase; }
.xd-more { font-family: var(--brand); font-weight: 800; font-size: clamp(15px, 1.25vw, 24px); color: var(--xd-blue); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--xd-blue); border-radius: 999px; padding: clamp(12px, 1vw, 20px) clamp(26px, 2.8vw, 84px); transition: background-color .2s, color .2s; }
.xd-more:hover { background: var(--xd-blue); color: var(--white); }
@media (max-width: 760px) {
  .xd-group { grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; }
  .xd-oscar { grid-row: span 3; align-self: start; width: 72px; }
  .xd-more { justify-self: start; margin-top: 10px; padding: 9px 22px; }
}

/* how OZEKA swims: photo frames with a pink border */
.xd-photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(14px, 1.2vw, 22px); margin-top: clamp(24px, 3vw, 56px); }
.xd-photo { margin: 0; border: 2px solid var(--xd-pink); border-radius: clamp(24px, 2.4vw, 40px); overflow: hidden; aspect-ratio: 1.58; background: var(--white); }
.xd-photo:nth-child(even) { aspect-ratio: auto; }
.xd-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.xd-photo:hover img { transform: scale(1.04); }
.xd-how .xd-center { margin-top: 40px; }

/* phone */
@media (max-width: 760px) {
  .xd-page .image-hero { min-height: 0; }
  .xd-page .image-hero-content { background: var(--xd-navy) !important; }
  .xd-hero-logo { width: min(70vw, 300px); }
  .xd-next-inner { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: 18px; }
  .xd-next-what a { display: inline-block; margin: 6px 0 0; }
  .xd-join-panel { border-radius: 32px; }
  .xd-photos { grid-template-columns: 1fr; }
  .xd-photo, .xd-photo:nth-child(even) { aspect-ratio: 1.5; }
  .xd-buttons .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- heads of the inner pages: orca background like the heroes ---------- */
.page-head { background: var(--xd-navy); }
.page-head .backdrop { display: none; }
/* the orcas sit on the right and fade into the navy on the left, so the text stays clear */
.page-head::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 1100px); z-index: -2; pointer-events: none;
  background: url(../img/choice/head-swim-school.webp) 85% 38% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 45%); mask-image: linear-gradient(90deg, transparent 0, #000 45%);
  opacity: .5;
}
/* zoomed out: the square photo follows the height of the head and fades into the dark blue on the left */
html[data-world="competition"] .page-head::before {
  background-image: url(../img/choice/head-competition.webp); background-position: 80% 45%;
  width: auto; aspect-ratio: 1.6;
}
.page-head::after { background: linear-gradient(180deg, rgba(14, 32, 49, .55) 0, rgba(14, 32, 49, 0) 160px); }
/* narrow pages (text pages) move their text to the centre: the orcas stay all the way on the right */
@media (min-width: 761px) {
  .page-head .wrap.narrow { max-width: var(--max); }
  .page-head .wrap.narrow > * { max-width: min(860px, 52%); }
}
@media (max-width: 760px) {
  .page-head::before { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; background-position: 80% 40%; }
  html[data-world="competition"] .page-head::before { width: 100%; aspect-ratio: auto; background-position: 70% 45%; }
  .page-head::after { background: linear-gradient(90deg, rgba(14, 32, 49, .9) 0%, rgba(14, 32, 49, .6) 100%); }
}

/* desktop: the menu sits left next to the logo, Kalender, Mijn OZEKA and Contact stay on the right */
@media (min-width: 921px) {
  .site-header .nav { flex: 1; min-width: 0; }
  .site-header .nav-list { margin-right: auto; margin-left: clamp(8px, 1.6vw, 32px); }
}
/* medium screens: Kalender and Mijn OZEKA become a round icon, so Contact stays on the line */
@media (min-width: 921px) and (max-width: 1280px) {
  .site-header .nav-account { padding: 8px !important; margin-left: 4px; }
  .site-header .nav-account svg { display: block; width: 20px; height: 20px; }
}
@media (min-width: 921px) and (max-width: 1140px) {
  .site-header .nav-calendar:not(.nav-account) { padding: 8px !important; }
  .site-header .nav-calendar:not(.nav-account) svg { display: block; width: 20px; height: 20px; }
  .site-header .nav-top { padding: 10px 10px; }
}

/* ---------- topics: what used to be in the dropdown, as buttons on the page ---------- */
.topics { padding: clamp(32px, 4vw, 56px) 0; background: var(--bg, #eef4f7); }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.topics-title { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(20px, 1.6vw, 26px); color: var(--xd-navy); margin: 0 0 14px; }
.topics-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic, .topics-cta {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 18px; border-radius: 16px; text-decoration: none; border: 2px solid transparent;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.topic { background: #fff; color: var(--xd-navy); box-shadow: 0 6px 18px -12px rgba(14, 32, 49, .45); }
.topic b, .topics-cta b { font-size: 16px; font-weight: 800; grid-column: 1; }
.topic span, .topics-cta span { font-size: 14px; grid-column: 1; opacity: .75; }
.topic svg, .topics-cta svg { grid-column: 2; grid-row: 1 / 3; width: 20px; height: 20px; color: var(--focus); transition: transform .2s var(--ease); }
.topic:hover, .topic:focus-visible, .topics-cta:hover, .topics-cta:focus-visible { border-color: var(--focus); transform: translateY(-2px); }
.topic:hover svg, .topics-cta:hover svg { transform: translateX(3px); }
.topics-cta { background: var(--xd-navy); color: #fff; padding: 22px 22px; margin-top: calc(clamp(20px, 1.6vw, 26px) * 1.2 + 14px); }
.topics-cta b { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; font-size: 22px; }
.topics-cta span { opacity: .85; margin-top: 4px; }
@media (max-width: 760px) { .topics-cta { margin-top: 0; } }

/* ---------- back-to-top button: appears once you have scrolled down a little ---------- */
.back-to-top {
  position: fixed; right: clamp(14px, 1.6vw, 28px); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 45;
  display: grid; place-items: center; width: 50px; height: 50px; margin: 0; padding: 0;
  border: 3px solid var(--focus); border-radius: 50%; background: var(--xd-navy); color: #fff; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(14, 32, 49, .7);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .2s ease, bottom .35s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--focus); }
.back-to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.back-to-top svg { width: 22px; height: 22px; }
@media (max-width: 760px) { body:has(.signup-bar.is-visible) .back-to-top { bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; transform: none; } }

/* ---------- 404: Oscar points you to the right lane ---------- */
.false-start { background: linear-gradient(180deg, var(--xd-navy) 0%, #12385a 75%, #1b5d8c 100%); padding-top: clamp(120px, 12vw, 170px); }
.false-start-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); padding-bottom: clamp(150px, 14vw, 220px); }
.false-start h1 { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; font-size: clamp(38px, 5vw, 78px); line-height: 1; margin: 0; }
.false-start .lead { max-width: 34em; margin: 22px 0 32px; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.fs-btn, .fs-btn-outline { display: inline-flex; align-items: center; gap: 14px; border-radius: 999px; padding: 14px 26px; font-family: var(--font-title); font-weight: 400; font-size: 18px; text-decoration: none; }
.fs-btn { background: var(--xd-blue); color: #fff; border: 3px solid var(--xd-blue); }
.fs-btn svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.fs-btn:hover svg { transform: translateX(4px); }
.fs-btn-outline { color: #fff; border: 3px solid #fff; background: transparent; }
.fs-btn:hover, .fs-btn:focus-visible, .fs-btn-outline:hover, .fs-btn-outline:focus-visible { border-color: var(--focus); }
.fs-oscar { position: relative; justify-self: start; width: min(72%, 440px); aspect-ratio: 1; }
.fs-oscar img {
  position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--xd-blue); box-shadow: 0 0 0 14px rgba(46, 156, 255, .12), 0 30px 70px -20px rgba(4, 16, 30, .8);
  animation: fs-bob 5s ease-in-out infinite;
}
.fs-404 {
  position: absolute; z-index: 0; left: 64%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-title); font-size: clamp(150px, 15vw, 230px); line-height: 1; color: rgba(46, 156, 255, .2); pointer-events: none;
}
.fs-oscar img { z-index: 1; }
@keyframes fs-bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 900px) {
  .false-start-inner { grid-template-columns: 1fr; }
  .fs-oscar { width: min(70%, 320px); order: -1; justify-self: center; }
  .fs-404 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fs-oscar img { animation: none; } }

/* month calendar: swim school colours as an extra filter */
.mc-divider { width: 2px; align-self: stretch; margin: 4px 6px; background: rgba(14, 32, 49, .15); border-radius: 2px; }
.mc-page .group-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- start page: only the choice between swim school and competition ---------- */
body.chooser-start .site-footer, body.chooser-start .sponsor-band { display: none; }

/* ---------- on desktop everything at 80% (designer's note), like zooming the browser to 80% ---------- */
@media (min-width: 1100px) {
  html { zoom: .8; }
  /* screen heights shrink with the zoom: times 1.25 so what fills the screen keeps filling it */
  .chooser { height: calc(100svh * 1.25); max-height: none; }
  .xd-page .image-hero { min-height: max(520px, calc(100svh * 1.25 - var(--xd-bar))); }
  .lightbox { width: calc(100vw * 1.25); height: calc(100dvh * 1.25); }
  .lb-image img { max-height: calc(100dvh * 1.25 - 150px); }
  .contact-dialog { max-height: calc(100vh * 1.25 - 32px); }
}

/* ---------- waiting list form (the form itself is rendered by the portal into wachtlijst.html) ---------- */
.wl-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.wl-form { display: grid; gap: 20px; background: var(--white); border: 1.5px solid var(--grout); border-radius: 20px; padding: clamp(18px, 3.5vw, 32px); }
.wl-field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wl-field > span, .wl-field legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.wl-field small { font-weight: 400; color: var(--text-muted); }
.wl-field input:not([type="radio"]):not([type="checkbox"]), .wl-field select, .wl-field textarea { font: inherit; border: 1.5px solid var(--grout); border-radius: 10px; padding: 11px 14px; background: var(--white); color: var(--text); width: 100%; min-height: 46px; }
.wl-field input:focus, .wl-field select:focus, .wl-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,95,209,.15); }
.wl-field [aria-invalid="true"], .wl-field[aria-invalid="true"] .wl-choices span { border-color: #c0392b; }
.wl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-choices.wl-stack { flex-direction: column; align-items: stretch; }
.wl-choices label { position: relative; cursor: pointer; display: block; }
.wl-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl-choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 18px; border: 1.5px solid var(--grout); border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--white); }
.wl-choices.wl-stack span { display: flex; border-radius: 14px; }
.wl-choices input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.wl-choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.wl-error { color: #a32a1d; font-size: 14px; font-weight: 600; }
.wl-notice { margin: 0; padding: 12px 14px; background: #fde8e8; color: #8a1c1c; border-radius: 10px; font-size: 14px; font-weight: 600; }
.wl-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.wl-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--deep); }
.wl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.wl-form [data-wl-school] { display: grid; gap: 20px; }
.wl-form [hidden] { display: none; }
.wl-aside { background: var(--white); border: 1.5px solid var(--grout); border-radius: 20px; padding: clamp(20px, 3vw, 30px); position: sticky; top: 110px; }
.wl-aside h3 { margin-top: 0; }
.wl-aside > p:last-child { margin-bottom: 0; }
.wl-thanks { background: var(--white); border: 1.5px solid var(--grout); border-radius: 20px; padding: clamp(20px, 4vw, 36px); }
.wl-thanks h2 { margin-top: 0; }
.wl-fallback { padding: 16px; background: var(--tile); border-radius: 12px; }
@media (max-width: 860px) { .wl-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .wl-row { grid-template-columns: 1fr; } }

/* waiting list page with the MijnAssist form in a frame (own waiting list off) */
.wl-embed { background: var(--white); border: 1.5px solid var(--grout); border-radius: 20px; overflow: hidden; }
.wl-embed-head { padding: clamp(20px, 3vw, 30px); border-bottom: 1.5px solid var(--grout); display: grid; gap: 8px; }
.wl-kicker { margin: 0; font-family: var(--font-title); font-size: 22px; line-height: 1.15; color: var(--deep); }
.wl-embed-note { color: var(--text-muted); margin: 0; max-width: 60ch; }
.wl-embed-fallback { margin: 0; max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.wl-embed-fallback-top { margin-top: 8px; padding: 12px 14px; background: var(--tile); border-radius: 14px; font-size: 15px; font-weight: 600; color: var(--deep); }
.wl-embed-fallback-top .btn { font-size: 16px; padding: 10px 20px; }
.wl-embed-fallback-bottom { padding: 14px clamp(20px, 3vw, 30px); border-top: 1.5px solid var(--grout); font-size: 14px; color: var(--text-muted); gap: 4px 8px; }
.wl-embed-fallback-bottom a { font-weight: 700; color: var(--blue); }
.wl-frame { display: block; width: 100%; height: 1150px; border: 0; background: #fff; }
.wl-for { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.wl-for a { display: grid; gap: 2px; padding: 12px 44px 12px 16px; border-radius: 14px; background: var(--tile); color: var(--deep); text-decoration: none; position: relative; transition: background .15s, color .15s; }
.wl-for a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border: solid currentColor; border-width: 2.5px 2.5px 0 0; transform: translateY(-50%) rotate(45deg); }
.wl-for a:hover, .wl-for a:focus-visible { background: var(--deep); color: var(--white); }
.wl-for b { font-size: 16px; }
.wl-for span { font-size: 14px; opacity: .8; }
.wl-ask { border-top: 1.5px solid var(--grout); padding-top: 20px; display: grid; gap: 10px; justify-items: start; }
.wl-ask h3, .wl-ask p { margin: 0; }
.wl-ask .btn { font-size: 16px; padding: 11px 22px; }
.wl-more { font-size: 14px; color: var(--text-muted); }
@media (max-width: 860px) { .wl-aside { position: static; } }
@media (max-width: 860px) { .wl-frame { height: 1500px; } }

/* ---------- Oscar near the top of the swim school and competition pages ----------
   One big Oscar that bobs in the water, then the caps of the groups in order on a lane rope.
   Each cap links to its group further down the page. */
.oscar-intro { background: linear-gradient(180deg, #c4e2ff 0%, #e9f4ff 55%, var(--bg, #eef4f7) 100%); padding: clamp(48px, 6vw, 104px) 0 clamp(36px, 4vw, 64px); overflow: hidden; }
.oscar-intro-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.oscar-intro-figure { justify-self: center; width: min(100%, 460px); aspect-ratio: 1; animation: oscar-bob 5s ease-in-out infinite; }
.oscar-intro-figure img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: clamp(6px, .6vw, 10px) solid var(--white);
  box-shadow: 0 0 0 clamp(6px, .6vw, 10px) var(--xd-blue), 0 34px 60px -28px rgba(14, 32, 49, .55);
}
@keyframes oscar-bob { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
.oscar-intro h2 { color: var(--xd-navy); margin: 0 0 20px; }
.oscar-intro-lead { font-family: var(--brand); font-weight: 600; font-size: clamp(17px, 1.25vw, 22px); line-height: 1.5; color: var(--xd-navy); max-width: 46ch; margin-bottom: 14px; }
.oscar-intro-row, .oscar-intro-cheer { font-size: clamp(15px, 1.05vw, 18px); line-height: 1.5; color: var(--xd-water); max-width: 52ch; }
.oscar-intro-cheer { margin: clamp(18px, 2vw, 28px) 0 0; font-weight: 700; }

/* the caps in order on a lane rope */
.oscar-caps { --cap: clamp(56px, 7.5vw, 112px); --gap: clamp(6px, 1.2vw, 20px); list-style: none; margin: clamp(18px, 2vw, 30px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--count), minmax(0, 1fr)); gap: var(--gap); max-width: calc(var(--count) * 144px); }
.oscar-caps li { position: relative; }
/* the lane rope from this cap to the next one */
.oscar-caps li:not(:last-child)::before {
  content: ""; position: absolute; z-index: 0; left: 50%; width: calc(100% + var(--gap)); top: calc(var(--cap) / 2 - 3px);
  height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--xd-blue) 0 14px, var(--white) 14px 22px);
}
.oscar-caps a { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--xd-navy); border-radius: 18px; padding-bottom: 4px; }
.oscar-caps img {
  width: var(--cap); height: var(--cap); border-radius: 50%; background: var(--white);
  border: clamp(4px, .45vw, 7px) solid var(--color); margin-bottom: 6px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.oscar-caps b { font-family: var(--font-title); font-weight: 400; text-transform: uppercase; font-size: clamp(16px, 1.5vw, 24px); line-height: 1; }
.oscar-caps span { font-size: clamp(12px, .85vw, 14px); line-height: 1.3; color: var(--xd-water); }
.oscar-caps a:hover img, .oscar-caps a:focus-visible img { transform: translateY(-6px) rotate(-3deg); box-shadow: 0 14px 22px -12px rgba(14, 32, 49, .6); }
.oscar-caps a:hover b, .oscar-caps a:focus-visible b { text-decoration: underline; text-decoration-color: var(--color); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.oscar-caps a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

@media (max-width: 760px) {
  .oscar-intro-inner { grid-template-columns: 1fr; gap: 28px; }
  .oscar-intro-figure { width: min(68%, 280px); }
  .oscar-intro h2 { text-align: center; }
  .oscar-intro-lead, .oscar-intro-row, .oscar-intro-cheer { text-align: center; margin-left: auto; margin-right: auto; }
  .oscar-caps { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
  .oscar-intro-swim-school .oscar-caps span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .oscar-intro-figure { animation: none; }
  .oscar-caps img { transition: none; }
}

/* ---------- menu on tablet and phone: world link on the left, three buttons of the same width; no dot before the world ---------- */
.world-dot { display: none; }
@media (max-width: 920px) {
  .nav-world { justify-content: flex-start; }
  .nav .nav-calendar, .nav .nav-account, .site-header .nav .nav-cta {
    box-sizing: border-box; width: 100%; margin: 12px 0 0; padding: 14px 20px !important; justify-content: center; font-size: 18px;
  }
  .nav > .nav-calendar:first-of-type { margin-top: 24px; }
}

/* the end of the path (design): a double lane line between Academy and the end points Rood and Masters */
.xd-group-before-end { --lane-h: clamp(8px, .7vw, 13px); padding-bottom: calc(clamp(20px, 2.2vw, 40px) + var(--lane-h) * 2); }
.xd-group-before-end::after {
  height: calc(var(--lane-h) * 3);
  background: url(../img/brand/lane-line.svg) top / 100% var(--lane-h) no-repeat, url(../img/brand/lane-line.svg) bottom / 100% var(--lane-h) no-repeat;
}

/* ---------- hall of fame ---------- */
.hof-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.hof-stats li { background: #ffffff; box-shadow: 0 10px 30px -18px rgba(14,32,49,.35); border-radius: 18px; padding: 18px 20px; font-weight: 600; color: var(--xd-navy, #0e2031); }
.hof-stats b { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(36px, 3.4vw, 56px); line-height: 1; color: var(--xd-pink, #f81888); }
.hof-source { font-size: 14px; color: var(--text-muted, #5b6b7d); margin-top: 16px; }
.hof-legends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hof-legend { position: relative; display: grid; gap: 4px; padding: 22px 22px 20px 74px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: var(--white, #fff); }
.hof-legend b { font-family: var(--font-title); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
.hof-rank { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); font-size: 20px; background: var(--xd-blue, #2e9cff); }
.hof-legend:first-child .hof-rank { background: #f5c242; color: var(--xd-navy, #0e2031); }
.hof-count { color: var(--xd-blue, #2e9cff); font-weight: 800; }
.hof-legend small { color: rgba(255,255,255,.7); }
.hof-recent { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hof-recent li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--tile, #eef4fb); border-left: 5px solid var(--xd-pink, #f81888); }
.hof-recent .hof-time { font-family: var(--font-title); font-size: 26px; color: var(--xd-navy, #0e2031); }
.hof-recent small { color: var(--text-muted, #5b6b7d); }
.hof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 20px; margin-top: 20px; }
.hof-block { background: var(--white, #fff); border-radius: 20px; padding: 18px 18px 8px; box-shadow: 0 10px 30px -18px rgba(14,32,49,.35); }
.hof-block h3 { margin: 0 0 10px; }
.hof-scroll { overflow-x: auto; }
.hof-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.hof-table th, .hof-table td { text-align: left; padding: 9px 8px; border-top: 1px solid #e6edf5; vertical-align: top; }
.hof-table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #5b6b7d); }
.hof-table tbody th { font-weight: 700; white-space: nowrap; }
.hof-table .hof-time { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hof-when small { display: block; color: var(--text-muted, #5b6b7d); }
.hof-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; white-space: nowrap; }
.hof-active { background: #e2f6e8; color: #0f6b33; }
.hof-former { background: #eceff4; color: #4a5768; }
.hof-hidden { color: var(--text-muted, #5b6b7d); font-style: italic; }
.hof-age { border-top: 1px solid #e6edf5; padding: 10px 0; }
.hof-age summary { cursor: pointer; font-weight: 700; }
.hof-age summary small { font-weight: 400; color: var(--text-muted, #5b6b7d); margin-left: 6px; }
.hof-teaser-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hof-teaser .xd-title { text-align: left; }
.hof-teaser .hof-recent { grid-template-columns: 1fr; margin: 0; }
.hof-teaser .hof-recent li { background: rgba(255,255,255,.06); color: var(--white, #fff); }
.hof-teaser .hof-recent .hof-time { color: var(--white, #fff); }
.hof-teaser .hof-recent small { color: rgba(255,255,255,.7); }
@media (max-width: 760px) {
  .hof-teaser-inner { grid-template-columns: 1fr; }
  .hof-table th, .hof-table td { padding: 8px 6px; font-size: 14px; }
}
/* top 10 legends: five per row on a wide screen, gold, silver and bronze for the first three */
@media (min-width: 1100px) { .hof-legends { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.hof-legend:nth-child(2) .hof-rank { background: #c9d3de; color: var(--xd-navy, #0e2031); }
.hof-legend:nth-child(3) .hof-rank { background: #d9935a; color: var(--xd-navy, #0e2031); }
/* hall of fame: every record of an active swimmer, per swimmer */
.hof-swimmers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; align-items: start; }
.hof-swimmer { background: #ffffff; border-radius: 20px; padding: 18px 20px; border-top: 5px solid var(--xd-pink, #f81888); box-shadow: 0 10px 30px -18px rgba(14,32,49,.35); }
.hof-swimmer h3 { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hof-swimmer .hof-count { margin: 4px 0 10px; color: var(--xd-pink, #f81888); font-weight: 800; }
.hof-swimmer ul { list-style: none; margin: 0; padding: 0; }
.hof-swimmer li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 8px 0; border-top: 1px solid #e6edf5; }
.hof-swimmer li .hof-time { font-weight: 800; font-variant-numeric: tabular-nums; }
.hof-swimmer li small { grid-column: 1 / -1; color: var(--text-muted, #5b6b7d); }

/* hall of fame: switch between all times together and one age group */
.hof-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 4px; }
.hof-switch label { font-weight: 800; color: var(--xd-navy, #0e2031); }
.hof-switch select { font: inherit; font-weight: 700; padding: 10px 40px 10px 16px; border-radius: 999px; border: 2px solid var(--xd-navy, #0e2031); background: #fff; color: var(--xd-navy, #0e2031); cursor: pointer; }
.hof-view-title { margin: 28px 0 0; }
.hof-views.is-switching .hof-view { display: none; }
.hof-views.is-switching .hof-view.is-shown { display: block; }
.hof-views.is-switching .hof-view-title { display: none; }
.hof-agecol { white-space: nowrap; color: var(--text-muted, #5b6b7d); }

/* hall of fame: the switch for the whole page stays in reach while scrolling */
.hof-switch { position: sticky; top: 84px; z-index: 5; background: #ffffff; border-radius: 999px; padding: 8px 10px 8px 20px; width: fit-content; box-shadow: 0 10px 30px -14px rgba(14,32,49,.45); margin: 0 0 20px; }
.hof-empty { color: var(--text-muted, #5b6b7d); }
.xd-dark .hof-empty { color: rgba(255,255,255,.7); }

/* hall of fame: two buttons, all ages together or per age group */
.hof-switch { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; }
.hof-switch button { font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 10px 20px; background: transparent; color: var(--xd-navy, #0e2031); cursor: pointer; }
.hof-switch button[aria-pressed="true"] { background: var(--xd-navy, #0e2031); color: #ffffff; }
.hof-switch button:focus-visible { outline: 3px solid var(--xd-pink, #f81888); outline-offset: 2px; }

/* Corner ribbon while the new site is still being built; clicks go through it */
.beta-ribbon { position: fixed; top: 16px; right: -38px; z-index: 1000; width: 140px; padding: 4px 0; transform: rotate(45deg);
  background: #ffd23f; color: #0b1f44; font: 800 12px/1.2 system-ui, sans-serif; letter-spacing: .12em; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); pointer-events: none; }
@media print { .beta-ribbon { display: none; } }
