:root {
    color-scheme: light;
    --ink: #10253d; --quiet: #405773; --deep: #10233d; --deep-2: #153358;
    --accent: #164ea8; --accent-hover: #103c84; --paper: #fff;
    --line: #d3dfea; --tint: #eef5fc; --card-radius: 1.55rem .65rem 1.55rem .65rem;
    font: 100%/1.62 system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .13em; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #123e95; outline-offset: 4px; }
.footer :focus-visible, .closing :focus-visible, .admin-head :focus-visible { outline-color: #d6e9ff; }
[hidden] { display: none !important; }
h1,h2,h3,p,figure { margin: 0; }
p + p { margin-top: 1em; }
h1,h2,h3 { line-height: 1.08; text-wrap: balance; }
h1,h2 { letter-spacing: -.047em; }
h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); margin-bottom: .42em; }
h3 { font-size: 1.5rem; letter-spacing: -.025em; }
.wrap { width: min(1200px, calc(100% - 4rem)); margin-inline: auto; }
.section { padding-block: clamp(3rem, 5.7vw, 5.5rem); }
.skip { position: absolute; top: .7rem; left: 1rem; transform: translateY(-150%); z-index: 5; padding: .7rem 1rem; background: white; color: var(--deep); }
.skip:focus { transform: none; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; min-height: 5rem; align-items: center; gap: 1rem 2rem; padding-block: .7rem; }
.brand { display: block; margin-right: auto; flex: 0 1 142px; }
.header-inner nav, .header-actions { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.6rem); }
.header-inner a { color: var(--ink); font-size: .92rem; font-weight: 660; text-decoration: none; white-space: nowrap; }
.header-inner a:hover, .header-inner a[aria-current] { color: var(--accent); text-decoration: underline; }
.header-inner .language { color: var(--accent); }
.header-inner .portal, .menu-toggle { background: var(--tint); border: 1px solid var(--line); color: var(--accent); padding: .55rem .9rem; border-radius: 2rem; }
.hero { background: linear-gradient(115deg, #f2f7fc, #fcfdff); }
.hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.6rem, 5.3vw, 4.8rem); }
.hero h1 { font-size: clamp(2.9rem, 5vw, 4.75rem); max-width: 13ch; letter-spacing: -.06em; }
.hero-image { width: 100%; aspect-ratio: 1.32; object-fit: cover; object-position: 50% 55%; border-radius: var(--card-radius); background: #e0ecf7; }
.eyebrow { font-weight: 740; font-size: .84rem; letter-spacing: .095em; text-transform: uppercase; margin-bottom: .85rem; color: var(--accent); }
.lead { max-width: 49ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); margin-top: 1.15rem; line-height: 1.6; color: var(--quiet); }
.actions { display: flex; align-items: center; gap: .65rem .9rem; flex-wrap: wrap; margin-top: 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 2rem; background: var(--accent); color: white; font-weight: 700; min-height: 2.85rem; padding: .64rem 1.08rem; text-decoration: none; transition: background .2s, color .2s; }
.button:hover, .button.dark:hover { background: var(--accent-hover); color: white; }
.button.ghost { background: white; color: var(--accent); border-color: #a4bbd8; }
.button.ghost:hover { background: var(--tint); }
.button.dark { background: var(--deep-2); color: white; }
.text-link { font-weight: 730; display: inline-block; margin-top: .35rem; }
.factbar dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-bottom: 1px solid var(--line); }
.factbar dl > div { padding: 1.2rem clamp(.7rem,3vw,2rem); }
.factbar dl > div:first-child { padding-left: 0; }
.factbar dl > div + div { border-left: 1px solid var(--line); }
.factbar dt { font-weight: 750; }
.factbar dd { margin: 0; color: var(--quiet); font-size: .94rem; }
.tint { background: var(--tint); }
.pathways, .split, .fee-grid, .contact-grid, .faq-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem,4.5vw,4.5rem); align-items: start; }
.pathways { gap: 1.4rem; margin-top: 1.45rem; }
.pathways article { position: relative; min-width: 0; border-bottom: 1px solid var(--line); }
.pathways img { width: 100%; aspect-ratio: 2.15; object-fit: cover; border-radius: .8rem; background: var(--tint); }
.pathways article div { padding-block: .95rem 1.15rem; }
.pathways h3 a { text-decoration-thickness: .06em; }
.pathways h3 a:hover { text-decoration-thickness: .13em; }
.pathways p { margin-top: .5rem; color: var(--quiet); }
.club-feature { background: var(--tint); }
.club-feature .split { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); }
.club-feature .split > img { aspect-ratio: 1.55; border-radius: var(--card-radius); }
.split { align-items: center; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.photo-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: .4rem; }
.photo-grid figcaption { margin-top: .5rem; color: var(--quiet); font-size: .92rem; }
.split > img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: .45rem; }
.split .text-link, .prose > .button { margin-top: 1rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.15rem; }
.section-intro { color: var(--quiet); margin-bottom: 1.6rem; }
.event-card { background: #f7faff; border-radius: .8rem; overflow: hidden; border: 1px solid var(--line); }
.event-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.event-card > div { padding: 1.15rem; }
.event-card h3 { margin: .55rem 0; line-height: 1.17; }
.event-date { color: var(--accent); font-size: .87rem; font-weight: 750; }
.closing { padding-top: 0; }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem; padding: clamp(1.6rem,5vw,3.4rem); background: #16448d; color: white; border-radius: 1.45rem; }
.closing h2 { font-size: clamp(1.85rem,3.65vw,3.05rem); }
.closing .button { flex: 0 0 auto; background: white; color: var(--accent); }
.closing .button:hover { background: #deebff; }
.subhero { padding-block: clamp(2.7rem, 6vw, 5.4rem); background: linear-gradient(115deg, #edf5ff, #fbfdff); color: var(--ink); border-bottom: 1px solid var(--line); }
.subhero h1 { font-size: clamp(2.5rem,5.5vw,4.7rem); max-width: 20ch; }
.subhero .button { margin-top: 1.2rem; }
.faq-layout { grid-template-columns: minmax(14rem, .65fr) minmax(0, 1.35fr); }
.faq details { background: white; border: 1px solid var(--line); border-radius: .35rem; margin-bottom: .65rem; }
.faq summary { cursor: pointer; padding: .9rem 1.1rem; min-height: 2.75rem; font-weight: 720; }
.faq details[open] summary { background: #eef5fc; }
.faq p { margin: .9rem 1.1rem 1.1rem; }
.fee h2, .prose h2, .policy h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.fee table { width: 100%; border-collapse: collapse; background: white; }
.fee caption { text-align: left; padding-block: .25rem .65rem; font-weight: 650; }
.fee th, .fee td { border: 1px solid var(--line); text-align: left; padding: .65rem .8rem; }
.fee td { white-space: nowrap; }
.fee p { margin-top: .9rem; }
.prose p, .fee p, .event-card p { overflow-wrap: anywhere; }
.policy { max-width: 800px; }
.policy h2:not(:first-child) { margin-top: 1.5em; }
.contact-grid { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.contact-form, .panel { background: white; border: 1px solid var(--line); border-radius: .5rem; padding: clamp(1rem,3vw,2rem); }
label { display: block; font-weight: 660; }
input:not([type=checkbox]), textarea { display: block; width: 100%; min-width: 0; color: var(--ink); border-radius: .3rem; border: 1px solid #778ba4; background: #fbfdff; padding: .55rem .65rem; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; vertical-align: middle; accent-color: var(--accent); }
textarea { resize: vertical; }
label input, label textarea { margin-top: .3rem; }
.contact-form > * + *, .panel > * + * { margin-top: 1rem; }
.pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.notice { background: #ffefb5; color: #382c0f; padding-block: .65rem; overflow-wrap: anywhere; }
.footer { background: var(--deep); color: #e3edf9; padding-top: 3rem; }
.footer a { color: #e6f1ff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.5rem 3rem; }
.footer-grid > div:first-child p { margin-top: .9rem; max-width: 32ch; }
.footer h2 { font-size: 1rem; letter-spacing: 0; }
.footer ul { list-style: none; margin: .65rem 0 0; padding: 0; }
.footer li + li { margin-top: .24rem; }
.footer-end { margin-top: 2.5rem; padding-block: 1rem; border-top: 1px solid #456081; display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.admin-head { color: white; background: var(--deep); }
.admin-head .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; padding-block: .7rem; }
.admin-head a { color: white; }
.admin-title { font-size: clamp(2rem,5.6vw,4rem); margin-bottom: .5rem; }
.admin-main { padding-block: 2rem 4rem; }
.admin-tools { display: flex; gap: .55rem; flex-wrap: wrap; margin-block: 1.2rem; }
.admin-tools a { padding: .45rem .75rem; border: 1px solid var(--line); background: white; border-radius: .3rem; text-decoration: none; font-weight: 630; }
.admin-tools a[aria-current] { color: white; background: var(--deep-2); }
.admin-main h2 { font-size: 1.5rem; letter-spacing: -.02em; }
.admin-main .panel { margin-top: 1rem; }
.editor-row, .fee-editor { padding-block: .85rem; border-block-start: 1px solid var(--line); min-width: 0; margin-inline: 0; border-inline: 0; border-bottom: 0; }
.editor-row legend { font-weight: 750; padding: 0 .4rem 0 0; }
.editor-row label { font-size: .9rem; }
.login { max-width: 36rem; }
.flash { padding: .65rem .9rem; border: 1px solid #529782; background: #dff3eb; border-radius: .3rem; margin-block: 1rem; }
.flash.error { border-color: #ae514a; background: #fff0ee; color: #79251e; }
.button.subtle { border-color: #829cbc; background: white; color: var(--accent); }
.button.subtle:hover { background: var(--tint); }
.button.danger { border-color: #b97064; background: white; color: #8b3128; }
.admin-main button:disabled { opacity: .65; cursor: wait; }
.help { color: var(--quiet); }
@media (max-width: 1100px) {
    .header-inner { gap: .8rem 1.2rem; }
    .header-inner nav { order: 4; flex-basis: 100%; flex-wrap: wrap; }
    .header-actions { margin-left: auto; }
}
@media (max-width: 720px) {
    .wrap { width: calc(100% - 2rem); }
    .header-inner { min-height: 0; }
    .brand { flex-basis: 108px; }
    .header-actions { gap: .65rem; order: 5; }
    .header-inner nav { gap: .4rem .95rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 1.65rem; }
    .hero h1 { font-size: clamp(2.65rem,9vw,4rem); }
    .hero-image { aspect-ratio: 1.7; border-radius: var(--card-radius); }
    .factbar dl > div { padding: .85rem .55rem; }
    .factbar dt { font-size: .9rem; overflow-wrap: anywhere; }
    .factbar dd { font-size: .83rem; overflow-wrap: anywhere; }
    .pathways, .split, .fee-grid, .contact-grid, .faq-layout, .photo-grid, .club-feature .split { grid-template-columns: 1fr; }
    .closing-inner { flex-wrap: wrap; }
    .cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem .9rem; }
    .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (max-width: 440px) {
    .header-actions { flex-basis: 100%; margin: 0; }
    .pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Scyllias: ocean palette and the homepage discovery trail. */
:root {
    --ink: #102b43;
    --quiet: #36566a;
    --deep: #062d42;
    --deep-2: #064963;
    --accent: #07567b;
    --accent-hover: #053c59;
    --tint: #e2f7f6;
    --line: #bedbdc;
    --foam: #f4fffe;
    --sun: #ffdb73;
    --lagoon: #067688;
    
}
h1, h2, h3 { font-family: "Trebuchet MS", system-ui, sans-serif; letter-spacing: -.035em; }
.wrap { width: min(1190px, calc(100% - 4rem)); }
.masthead { border-bottom: 0; }
.header-inner { min-height: 5.1rem; }
.header-inner .portal { background: var(--sun); border-color: transparent; color: var(--ink); }
.header-inner .portal:hover { background: #ffe7a3; }
.hero { position: relative; isolation: isolate; background: linear-gradient(125deg,#06334c 4%,#075a72 57%,#087b87); color: white; }
.hero::after {
    content: ""; position: absolute; inset: auto 0 -1px; height: clamp(25px,5vw,66px); z-index: -1;
    background: var(--foam); clip-path: ellipse(74% 90% at 66% 100%);
}
.hero-inner { padding-block: clamp(3rem,6vw,5.4rem) clamp(4.2rem,9vw,7.4rem); gap: clamp(1.8rem,4.5vw,4rem); }
.hero .eyebrow { color: #a4fff0; text-transform: none; letter-spacing: .035em; font-size: 1rem; }
.hero h1 { font-size: clamp(3.25rem,6.2vw,5.4rem); max-width: 11ch; line-height: .99; text-wrap: balance; }
.hero .lead { color: #e2f8fe; }
.hero :focus-visible, .club-feature :focus-visible, .sea-log :focus-visible { outline-color: var(--sun); }
.hero .button.ghost { background: #073b53; color: white; border-color: #8fd2df; }
.hero .button.ghost:hover { background: #07526d; }
.button.sun { background: var(--sun); color: var(--ink); }
.button.sun:hover { background: #ffe6a3; color: var(--ink); }
.hero-water { position: relative; padding: .7rem 1rem 1.25rem .5rem; min-width: 0; }
.hero-image { position: relative; aspect-ratio: 1.37; border-radius: var(--card-radius); border: .45rem solid #baf4ea; box-shadow: .7rem .8rem 0 #0495a7; object-position: 50% 63%; }
.hero-dive { position: absolute; pointer-events: none; bottom: -.65rem; left: -.75rem; width: clamp(82px,12vw,155px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--card-radius); border: .36rem solid var(--sun); box-shadow: 0 .35rem 0 #073d54; }
.bubbles { pointer-events: none; position: absolute; inset: 0; }
.bubbles i {
    position: absolute; display: block; top: var(--top); left: var(--left); width: var(--size); aspect-ratio: 1;
    border: 2px solid #b5fff1; border-radius: 50%; background: #ccfff129;
    animation: bob 1.9s ease-in-out var(--delay) 2 alternate;
}
.bubbles i:nth-child(1) { --top: 3%; --left: 12%; --size: 20px; --delay: 0s; }
.bubbles i:nth-child(2) { --top: 12%; --left: 4%; --size: 11px; --delay: .4s; }
.bubbles i:nth-child(3) { --top: 1%; --left: 77%; --size: 26px; --delay: .15s; }
.bubbles i:nth-child(4) { --top: 5%; --left: 89%; --size: 14px; --delay: .2s; }
.bubbles i:nth-child(5) { --top: 82%; --left: 96%; --size: 23px; --delay: .6s; }
.bubbles i:nth-child(6) { --top: 92%; --left: 93%; --size: 12px; --delay: .1s; }
@keyframes bob { to { transform: translateY(-12px) scale(1.08); } }
.ocean-home { background: var(--foam); }
.factbar dl { border-bottom: 0; border-radius: 1.65rem; background: #dbf6f3; }
.factbar dl > div, .factbar dl > div:first-child { padding: 1rem clamp(.7rem,3vw,1.6rem); }
.factbar dl > div + div { border-color: #a4dcd6; }
.factbar dt { color: #075070; }
.pathways { gap: clamp(1rem,3vw,2rem); }
.pathways article { border: 0; border-radius: 2.5rem 1rem 2.4rem 1rem; overflow: hidden; background: var(--theme-surface); }
.pathways .theme-adults { border-radius: 1rem 2.5rem 1rem 2.4rem; }
.pathways img { aspect-ratio: 2.35; border-radius: 0; }
.pathways article div { padding: 1.25rem 1.4rem 1.5rem; }
.pathways h3 { font-size: clamp(1.55rem,3vw,2rem); }
.pathways p { margin-bottom: .55rem; }
.first-swim { padding-top: 0; }
.first-swim-inner { position: relative; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(1rem,3.5vw,3rem); background: var(--theme-surface); border-radius: 2.9rem 1.15rem 1.15rem 2.9rem; padding: clamp(1.5rem,4vw,3.25rem); }
.first-swim h2 { font-size: clamp(2rem,4.2vw,3.1rem); }
.parent-note { padding: 1.2rem 1.35rem; background: var(--theme-inset); border-radius: 1.15rem; }
.parent-note p { margin: .55rem 0 .4rem; }
.club-feature { background: #07536b; color: #f1fffc; border-radius: 14% 14% 12% 12% / 7% 7% 7% 7%; }
.club-feature .eyebrow, .club-feature a { color: #a9ffed; }
.club-feature .split > img { aspect-ratio: 1.55; border-radius: var(--card-radius); border: .35rem solid #a9ffed; }
.events-home { position: relative; }
.events-home .event-card { background: #eff5ff; border: 0; border-radius: var(--card-radius); }
.closing-inner { background: #097486; border-radius: 2rem .9rem; }
.closing .button { background: var(--sun); color: var(--ink); }
.closing .button:hover { background: #ffe6a3; }
.subhero { background: linear-gradient(117deg,#d6f7f2,#ecfbff); border-radius: 0 0 10% 10% / 0 0 12% 12%; }
.footer { background: #062d42; }
.sea-friend {
    position: absolute; z-index: 2; display: grid; place-items: center; width: 2.95rem; height: 2.95rem;
    background: #effffc; border: 2px solid #098097; box-shadow: 0 .15rem 0 #07506c;
    border-radius: 50%; font-size: 1.65rem; line-height: 1; transition: transform .2s, background .2s;
}
.sea-friend:hover { transform: rotate(-9deg) translateY(-2px); background: #fff1bd; }
.sea-friend[aria-pressed="true"] { border-style: dashed; background: var(--sun); }
.sea-friend--fish { right: .4rem; bottom: 13%; }
.sea-friend--octopus { top: -.85rem; left: 45%; }
.sea-friend--crab { top: 1.4rem; right: .4rem; }
.sea-log {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 4; max-width: min(22rem,calc(100% - 2rem)); display: flex;
    gap: .75rem; align-items: center; padding: .75rem .85rem .75rem 1.05rem; background: #053b54; color: white;
    border: 2px solid #9bf5e7; border-radius: 1rem; box-shadow: 0 .4rem 1.5rem #05243855;
}
.sea-log button { border: 0; background: transparent; color: white; border-radius: .4rem; font-size: 1.6rem; min-width: 2.75rem; height: 2.75rem; }
@media (max-width: 720px) {
    .wrap { width: calc(100% - 2rem); }
    .hero h1 { font-size: clamp(2.75rem,10vw,4.4rem); max-width: 13ch; }
    .hero-image { aspect-ratio: 1.6; }
    .hero-water { margin: 0 .3rem .6rem; }
    .first-swim-inner { grid-template-columns: 1fr; }
    .factbar dl > div, .factbar dl > div:first-child { padding: .9rem .45rem; }
}

/* Audience colours identify the same group on pages, cards, and events. */
.theme-youth {
    --theme-surface: #d8f7eb; --theme-inset: #f1fdf8; --theme-chip: #b4ead7; --theme-ink: #075647;
}
.theme-adults {
    --theme-surface: #ffe4ee; --theme-inset: #fff4f8; --theme-chip: #f7c8da; --theme-ink: #7b264b;
}
.theme-club {
    --theme-surface: #fff1c7; --theme-inset: #fffaec; --theme-chip: #fce2a0; --theme-ink: #654709;
}
body.theme-youth .subhero, body.theme-adults .subhero {
    background: linear-gradient(118deg, var(--theme-surface), var(--theme-inset));
    color: var(--theme-ink);
}
body.theme-youth .subhero .eyebrow, body.theme-adults .subhero .eyebrow,
body.theme-youth .faq-layout a, body.theme-adults .faq-layout a,
.pathways .text-link, .first-swim .text-link { color: var(--theme-ink); }
body.theme-youth .tint, body.theme-adults .tint { background: var(--theme-inset); }
.event-card, .events-home .event-card { background: var(--theme-surface); }
.event-meta { display: flex; align-items: center; gap: .45rem .65rem; flex-wrap: wrap; margin-bottom: .7rem; }
.event-meta p { margin: 0; }
.event-date { color: var(--theme-ink); }
.audience-label {
    padding: .16rem .59rem; border-radius: 2rem; background: var(--theme-chip); color: var(--theme-ink);
    font-size: .8rem; font-weight: 730;
}
.event-audience-select {
    display: block; margin-top: .3rem; width: min(100%, 25rem); min-height: 2.75rem;
    padding: .5rem .6rem; font: inherit; background: #fbfdff; color: var(--ink);
    border: 1px solid #778ba4; border-radius: .3rem;
}
.hero-image { object-position: 50% 48%; }

.header-inner {
    display: grid; grid-template-columns: auto 1fr auto auto; column-gap: clamp(.9rem,2.2vw,2rem);
}
.header-inner .brand { grid-column: 1; grid-row: 1; margin-right: 0; }
.header-inner #main-nav {
    grid-column: 2; grid-row: 1; order: 0; justify-content: end; gap: clamp(.75rem,1.45vw,1.45rem);
}
.header-inner .language {
    grid-column: 3; grid-row: 1; display: grid; place-items: center;
    width: 2.75rem; min-height: 2.75rem; border-radius: 50%;
}
.language span {
    width: 1.72rem; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px #7a91a7;
}
.language:hover span { box-shadow: 0 0 0 2px var(--accent); }
.language--nl span {
    background: linear-gradient(to bottom, #ae1c28 0 33.333%, #fff 33.333% 66.666%, #21468b 66.666%);
}
.language--en span {
    background:
        linear-gradient(90deg, transparent 41%, #c8102e 41% 59%, transparent 59%),
        linear-gradient(transparent 41%, #c8102e 41% 59%, transparent 59%),
        linear-gradient(90deg, transparent 35%, white 35% 65%, transparent 65%),
        linear-gradient(transparent 35%, white 35% 65%, transparent 65%),
        linear-gradient(38deg, transparent 44%, #c8102e 44% 49%, transparent 49% 51%, #c8102e 51% 56%, transparent 56%),
        linear-gradient(-38deg, transparent 44%, #c8102e 44% 49%, transparent 49% 51%, #c8102e 51% 56%, transparent 56%),
        linear-gradient(38deg, transparent 39%, white 39% 61%, transparent 61%),
        linear-gradient(-38deg, transparent 39%, white 39% 61%, transparent 61%), #012169;
}
.header-inner .portal-desktop { grid-column: 4; grid-row: 1; text-align: center; }
.header-inner .portal-mobile { display: none; }
.menu-symbol { display: grid; align-content: center; gap: 5px; width: 1.1rem; height: 1rem; }
.menu-symbol i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
.menu-toggle[aria-expanded="true"] .menu-symbol i:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-symbol i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-symbol i:last-child { transform: translateY(-7px) rotate(-45deg); }

.reef-footer {
    position: relative; isolation: isolate; padding-top: clamp(2.6rem,5vw,4rem);
    background: linear-gradient(#083e58,#06263b);
}
.reef-footer .footer-grid { position: relative; gap: 1.85rem clamp(1.1rem,5vw,4rem); }
.reef-footer h2 { color: #a8f3eb; font-size: 1.12rem; margin-bottom: .75rem; }
.reef-footer .footer-club > a:first-child { display: inline-block; }
.reef-footer .footer-club img { margin-left: -1.4rem; }
.reef-footer .footer-club p { margin-top: .18rem; }
.footer-contact {
    display: inline-block; margin-top: .8rem; color: #ffdf8d;
    text-decoration-color: #e5bb6a; overflow-wrap: anywhere;
}
.reef-footer .footer-end { border-color: #4a788e; }
.reef-art {
    height: clamp(116px, 16.5vw, 224px); margin-top: -.2rem; pointer-events: none;
    background: url('/assets/media/scyllias-koraalrif.webp') center bottom / max(100%, 1060px) auto no-repeat;
}
@media (max-width: 960px) {
    .header-inner { grid-template-columns: minmax(0,1fr) auto auto; min-height: 0; gap: .25rem .45rem; padding-block: .65rem; }
    .header-inner .brand { align-self: center; }
    .header-inner .brand img { width: min(100%, 130px); height: auto; }
    .header-inner .language { grid-column: 2; }
    .header-inner .menu-toggle {
        grid-column: 3; grid-row: 1; display: grid; place-items: center;
        width: 2.75rem; min-height: 2.75rem; padding: 0; background: #07567b; border: 1px solid #07567b;
        color: white; border-radius: var(--card-radius);
    }
    .header-inner .portal-desktop { display: none; }
    .header-inner #main-nav {
        grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0,1fr);
        gap: .3rem; padding: .55rem; margin-top: .65rem; border: 1px solid #c1dfe1;
        border-radius: 1.05rem; background: #effafa;
    }
    .header-inner #main-nav a {
        display: flex; align-items: center; min-height: 2.8rem; padding: .5rem .7rem; border-radius: .55rem;
        background: white; color: var(--ink); white-space: normal;
    }
    .header-inner #main-nav a.nav-jeugd { background: #d8f7eb; color: #075647; }
    .header-inner #main-nav a.nav-volwassenen { background: #ffe4ee; color: #7b264b; }
    .header-inner #main-nav a.portal-mobile { background: var(--sun); }
    .header-inner #main-nav a[aria-current] { box-shadow: inset 0 0 0 2px var(--accent); }
}
@media (max-width: 720px) {
    .reef-art { background-position: 8% bottom; }
}
@media (max-width: 360px) {
    .reef-footer .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .menu-symbol i { transition: none; }
}

.button, .header-inner .portal, .event-card, .split > img, .photo-grid img,
.pathways article, .pathways .theme-adults { border-radius: var(--card-radius); }

.reef-footer a { text-decoration: none; }
.reef-footer a:hover, .reef-footer a:focus-visible { text-decoration: underline; }

.policy-layout { display: grid; align-items: start; grid-template-columns: minmax(14rem, 1fr) minmax(0, 2.4fr); gap: clamp(1.5rem, 5vw, 5rem); }
.policy-index {
    position: sticky; top: 1.2rem; max-height: calc(100vh - 2.4rem); overflow: auto;
    padding: .9rem 1.1rem 1.1rem; background: #e6f8f6; border: 1px solid #bddfdf; border-radius: var(--card-radius);
    scroll-margin-top: 1rem;
}
.policy-index summary { cursor: pointer; color: var(--deep); padding: .25rem .1rem; font-size: 1.1rem; font-weight: 750; }
.policy-index ol { margin: .5rem 0 0; padding-left: 1.4rem; }
.policy-index li::marker { color: var(--accent); }
.policy-index a { display: block; padding: .27rem .1rem; font-size: .94rem; line-height: 1.4; }
.policy { min-width: 0; max-width: 76ch; }
.policy-entry { padding: 0 .85rem 1.6rem; scroll-margin-top: 1.4rem; border-bottom: 1px solid #d7e7e9; }
.policy-entry + .policy-entry { margin-top: 1.6rem; }
.policy-entry h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
.policy-entry ul { padding-left: 1.35rem; }
.policy-entry li + li { margin-top: .35rem; }
.policy-entry:target { background: #eefaf8; border-radius: var(--card-radius); }
.policy > .text-link { margin: 1.15rem .85rem 0; }

.contact-grid { gap: clamp(1.25rem,4vw,3rem); }
.contact-grid--email { grid-template-columns: minmax(0, 35rem); }
.contact-details {
    background: #e6f8f6; border: 1px solid #bddfdf; border-radius: var(--card-radius);
    padding: clamp(1.1rem,3vw,2rem);
}
.contact-details p a { font-weight: 700; }
.contact-details-links { display: grid; gap: .35rem; margin-top: 1.2rem; }
.contact-registration { color: var(--quiet); border-top: 1px solid #abd7d9; margin-top: 1.2rem; padding-top: 1.1rem; }
.contact-reef {
    padding: 0; overflow: hidden; border: 1px solid #bddfdf; border-radius: var(--card-radius); background: #f5fdfc;
}
.contact-form-head {
    padding: clamp(1.4rem,3vw,2.3rem);
    color: white; background: url('/assets/media/scyllias-koraalrif.webp') right bottom / max(100%, 680px) auto no-repeat,
        linear-gradient(115deg,#064462,#07566d);
}
.contact-form-head h2 {
    position: relative; width: fit-content; padding: .15rem .5rem .25rem 0; margin: 0;
    font-size: clamp(1.65rem,3vw,2.35rem); background: #064864; border-radius: .4rem;
}
.contact-reef .contact-form-fields { margin: 0; padding: clamp(1.15rem,3.1vw,2.1rem); }
.contact-form-fields > * + * { margin-top: .95rem; }
.contact-reef input:not([type=hidden]), .contact-reef textarea { background: white; border-color: #6f9ca7; }
.contact-privacy { color: var(--quiet); font-size: .92rem; }
@media (max-width: 820px) {
    .policy-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .policy-index { position: static; max-height: none; }
    .policy-index:not([open]) { padding-bottom: .9rem; }
    .policy-entry { padding-inline: .5rem; }
}

@media (max-width: 640px) {
    .factbar dl { grid-template-columns: minmax(0, 1fr); }
    .factbar dl > div, .factbar dl > div:first-child { padding: .65rem .95rem; }
    .factbar dl > div + div { border-left: 0; border-top: 1px solid #a4dcd6; }
    .factbar dt, .factbar dd { overflow-wrap: break-word; }
    .factbar dt { font-size: .95rem; }
    .factbar dd { font-size: .88rem; }
}
