.program-page { --program-nav-height: 58px; }
.program-hero { padding: clamp(3rem, 6vw, 6rem) 0; background: var(--sky); }
.program-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.program-page .eyebrow { font-size: .8rem; font-weight: 850; text-transform: uppercase; letter-spacing: .13em; line-height: 1.5; }
.program-headline { font-family: var(--display); font-size: clamp(2.6rem, 4.7vw, 4.4rem); font-weight: 900; line-height: 1.06; letter-spacing: -.045em; margin: 1rem 0 1.5rem; }
.program-page h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.program-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.65; }
.program-page p { line-height: 1.65; }
.program-hero .button { gap: 1.5rem; margin-top: 1rem; }
.program-affiliate { font-size: .85rem; color: var(--ink-soft); margin-top: 1.6rem; }
.program-affiliate strong { display: block; color: var(--navy); }
.program-hero-photo { margin: 0; position: relative; border-radius: 120px 120px 32px 32px; overflow: hidden; box-shadow: var(--shadow); }
.program-hero-photo img { width: 100%; height: 520px; object-fit: cover; }
.program-hero-photo figcaption { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; background: rgb(255 255 255 / .94); padding: 1rem; border-radius: 18px; text-align: center; font-weight: 800; }
.program-intro { max-width: 750px; margin: 0 auto 2.5rem; text-align: center; }
.program-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.program-stage { display: flex; position: relative; flex-direction: column; gap: .5rem; border: 1px solid var(--border); padding: 1.6rem; border-radius: 22px; background: var(--sky); text-decoration: none; transition: transform 180ms, box-shadow 180ms; }
.program-stage:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.program-stage strong { font-size: 1.4rem; }
.program-stage.preschool { background: #eef9ef; border-color: #c8e8ce; }
.program-stage.advanced { background: var(--navy); color: white; }
.stage-index { font-size: .8rem; font-weight: 800; opacity: .75; }
.stage-arrow { position: absolute; bottom: 1.4rem; right: 1.5rem; font-size: 1.7rem; }
.path-caption { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; text-align: center; font-size: .8rem; color: var(--ink-soft); margin-top: 2rem; }
.program-page section[id], .program-page article[id] { scroll-margin-top: calc(var(--site-header-height, 83px) + 80px); }
.program-section.preschool { --level-color: #267744; --level-light: #e8f6e9; background: #f6fbf5; }
.program-section.swimmer { --level-color: var(--blue); --level-light: var(--sky); background: var(--sky); }
.program-section.advanced { --level-color: var(--sky); --level-light: rgb(255 255 255 / .08); background: var(--navy); color: white; }
.program-section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.program-section-heading h2 { margin: .5rem 0; }
.program-section-heading > p { max-width: 500px; }
.level-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.5rem; list-style: none; padding: 0; margin: 0; position: relative; }
.level-journey > li { position: relative; border-top: 3px solid var(--level-color); padding-top: 1.3rem; }
.level-journey > li::before { content: ''; position: absolute; top: -7px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--level-color); }
.level-journey > li:not(:last-child)::after { content: '→'; position: absolute; top: -15px; right: -18px; color: var(--level-color); }
.level-card { height: 100%; border-radius: 22px; padding: 1.5rem; background: white; border: 1px solid var(--border); }
.badge-placeholder { width: 104px; height: 114px; border: 3px solid var(--level-color); border-radius: 32px 32px 45px 45px; background: var(--level-light); color: var(--level-color); display: flex; flex-direction: column; justify-content: center; align-items: center; outline: 1px solid var(--level-color); outline-offset: -8px; }
.badge-placeholder span { font-size: .57rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; }
.badge-placeholder strong { font: 900 2.5rem/1.2 var(--display); }
.level-badge { width: 104px; height: 114px; object-fit: contain; }
.level-position { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--level-color); font-weight: 850; margin: 1.4rem 0 .35rem; }
.level-card h3 { margin: 0 0 1rem; font-size: 1.35rem; }
.level-card details { border-top: 1px solid var(--border); }
.level-card summary { cursor: pointer; padding: 1rem 0 .2rem; font-size: .9rem; font-weight: 750; min-height: 44px; }
.level-card details p, .level-card li { font-size: .9rem; line-height: 1.6; }
.skills-label { font-weight: 750; }
.advanced .level-card { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .16); }
.advanced .level-card details { border-color: rgb(255 255 255 / .16); }
.patrol-number { font-size: 4rem; font-family: var(--display); font-weight: 800; letter-spacing: -.06em; color: var(--sky); }
.program-transition { padding: 3rem 0; text-align: center; background: white; }
.program-transition .wrap { max-width: 700px; }
.program-transition span { color: var(--blue); font-size: 2rem; }
.program-transition h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: .7rem 0; }
.program-callout { max-width: 790px; text-align: center; }
.program-callout p { margin: 1.5rem auto 2rem; max-width: 640px; }
.program-benefits { background: var(--sky); }
.program-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-top: 3rem; }
.program-benefit-grid article { border-top: 1px solid var(--border-strong); padding-top: 1.5rem; }
.program-benefit-grid span { font-weight: 850; color: var(--blue); }
.program-private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.program-private-grid article { border-left: 3px solid var(--blue); padding: .25rem 1.5rem; }
.program-private-grid h3 { font-size: 1.1rem; }
.program-final { background: var(--sky); }
.program-actions { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.program-secondary { font-weight: 800; text-underline-offset: 5px; }
.program-page a:focus-visible, .program-page summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
@media (max-width: 1000px) { .program-section-heading { gap: 2rem; } .level-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } .advanced .level-journey { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
 .program-hero-grid, .program-section-heading, .program-stages, .program-benefit-grid, .program-private-grid { grid-template-columns: 1fr; gap: 1.5rem; }
 .program-hero-photo { border-radius: 26px; }
 .program-hero-photo img { height: 330px; object-position: center 42%; }
 .program-headline { font-size: clamp(2.5rem, 10vw, 3.5rem); }
 .program-stage { padding: 1.2rem 1.5rem 1.5rem; }
 .program-stage:not(:last-child)::after { content: '↓'; position: absolute; left: 50%; bottom: -25px; color: var(--blue); }
 .level-journey { grid-template-columns: 1fr; gap: 0; margin-left: .3rem; }
 .level-journey > li { border-top: 0; border-left: 2px solid var(--level-color); padding: 0 0 1.5rem 1.3rem; }
 .level-journey > li::before { top: 45px; left: -6px; }
 .level-journey > li:not(:last-child)::after { content: '↓'; left: -8px; right: auto; top: auto; bottom: 4px; background: #f6fbf5; }
 .swimmer .level-journey > li::after { background: var(--sky); }
 .advanced .level-journey > li::after { background: var(--navy); }
 .level-card { display: grid; grid-template-columns: 75px minmax(0, 1fr); gap: 1rem; padding: 1.2rem; }
 .badge-placeholder, .level-badge { width: 75px; height: 88px; }
 .badge-placeholder strong { font-size: 2rem; }
 .badge-placeholder span { font-size: .45rem; }
 .level-position { margin-top: .2rem; }
 .level-card h3 { font-size: 1.15rem; }
 .patrol-number { font-size: 3rem; }
 .program-section-heading { margin-bottom: 2rem; }
 .program-section-heading > p { margin-top: 0; }
 .path-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) { .program-stage { transition: none; } .program-stage:hover { transform: none; } }
.program-page .program-headline { line-height: 1.08; }
.program-page h1.eyebrow { max-width: none; margin: 0; }

/* Sourced curriculum and individual level pages share one visual system. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.level-badge { width: 124px; height: 124px; object-fit: contain; clip-path: circle(47.5%); }
.level-copy { min-width: 0; }
.level-copy > p:not(.level-position) { font-size: .95rem; }
.level-copy > ul { padding-left: 1.2rem; }
.level-copy > ul li { margin-bottom: .45rem; }
.curriculum-group h4 { margin: 1.25rem 0 .5rem; font-size: .9rem; }
.curriculum-group ul { padding-left: 1.2rem; }
.curriculum-group li { margin-bottom: .5rem; }
.level-card { height: auto; min-height: 100%; }
.level-journey { align-items: start; }
.level-page-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; margin-top: .75rem; font-size: .9rem; font-weight: 850; text-underline-offset: 4px; }
.level-hero { padding: 2rem 0 4rem; background: var(--sky); }
.level-page.preschool .level-hero { background: #eef8ed; }
.level-page.advanced .level-hero { background: var(--navy); color: white; }
.level-breadcrumb { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .85rem; margin-bottom: 3rem; line-height: 1.6; }
.level-breadcrumb a { text-underline-offset: 3px; }
.level-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 3rem; }
.level-hero h1 { max-width: none; font-size: clamp(3rem, 5.5vw, 5rem); margin: .75rem 0 1.25rem; }
.level-hero-badge { display: flex; justify-content: center; }
.level-hero-badge .level-badge { width: clamp(210px, 25vw, 310px); height: auto; aspect-ratio: 1; }
.level-hero-badge .patrol-number { font-size: clamp(7rem, 16vw, 14rem); line-height: 1; }
.level-affiliation { font-size: .9rem; opacity: .8; margin-bottom: 1.5rem; }
.level-learning-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 5rem; align-items: start; }
.level-key-skills { list-style: none; padding: 0; margin-top: 2rem; }
.level-key-skills li { position: relative; padding: 1rem 0 1rem 2rem; border-bottom: 1px solid var(--border); line-height: 1.6; }
.level-key-skills li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.level-placement { border-radius: 24px; padding: 2rem; background: var(--sky); }
.level-placement h2 { font-size: 1.65rem; line-height: 1.15; }
.level-curriculum { background: var(--sky); }
.level-curriculum-intro { max-width: 740px; }
.level-curriculum-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 4rem; margin-top: 3rem; }
.level-curriculum-grid .curriculum-group { border-top: 2px solid var(--border); padding-top: 1.5rem; }
.level-curriculum-grid h3 { font-size: 1.2rem; line-height: 1.2; }
.level-curriculum-grid li { line-height: 1.65; }
.level-siblings { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.level-siblings a { display: flex; align-items: center; padding: .75rem 1rem; min-height: 48px; border-radius: 12px; background: var(--sky); border: 1px solid var(--border); text-decoration: none; font-size: .9rem; font-weight: 750; }
.level-siblings a[aria-current="page"] { background: var(--navy); color: white; border-color: var(--navy); }
.level-adjacent { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; }
.level-adjacent a { display: flex; flex-direction: column; gap: .65rem; padding: 1.5rem; border-block: 1px solid var(--border); text-decoration: none; }
.level-adjacent a:last-child { text-align: right; }
.level-adjacent span, .level-pathway-note { font-size: .85rem; color: var(--ink-soft); }
.level-adjacent strong { font-size: 1.3rem; }
.level-adjacent a:hover, .level-siblings a:hover { box-shadow: var(--shadow); }
.level-pathway-note { margin-top: 1.5rem; }
@media (max-width: 700px) {
 .program-hero-grid > *, .level-hero-grid > * { min-width: 0; }
 .level-card { display: block; padding: 1.25rem; }
 .level-card .level-badge { width: 105px; height: 105px; margin-bottom: 1rem; }
 .level-card .patrol-number { display: block; margin-bottom: 1rem; }
 .level-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
 .level-hero-badge { grid-row: 1; }
 .level-hero-badge .level-badge { width: 180px; }
 .level-breadcrumb { font-size: .75rem; margin-bottom: 2rem; }
 .level-hero h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }
 .level-learning-grid, .level-curriculum-grid { grid-template-columns: 1fr; gap: 2rem; }
 .level-adjacent { gap: .75rem; }
 .level-adjacent a { padding: 1rem .25rem; }
 .level-adjacent strong { font-size: 1.1rem; }
}
.level-curriculum-grid > .curriculum-note { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.program-section.advanced .eyebrow,
.level-page.advanced .level-hero .eyebrow { color: var(--sky); }
.program-section.advanced a:focus-visible,
.program-section.advanced summary:focus-visible,
.level-page.advanced .level-hero a:focus-visible { outline-color: var(--sun); }

/* A shorter overview: one sentence and a direct link for each level. */
.program-hero-grid { display: block; max-width: 900px; text-align: center; }
.program-hero-grid .program-lead { max-width: 730px; margin-inline: auto; }
.program-affiliate { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.program-affiliate p { margin: 0; text-align: left; }
.program-affiliate img { width: 220px; height: auto; padding: .65rem; background: white; border-radius: 8px; }
.level-card { display: flex; align-items: flex-start; gap: 1.25rem; min-height: 100%; }
.level-card .level-badge { width: 80px; height: 80px; flex: 0 0 80px; }
.level-copy h3 { margin: .2rem 0 .5rem; }
.level-copy > p { margin: 0; }
.level-page-link { margin-top: .5rem; }
.level-journey { align-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.level-journey > li { border-top: 0; padding-top: 0; }
.level-journey > li::before, .level-journey > li::after { content: none !important; }
.level-navigation { padding: 2.5rem 0; }
.level-adjacent { margin-top: 0; }
.supplied-badge { clip-path: none; border-radius: 50%; }
.level-hero-badge .supplied-badge { max-width: 222px; }
@media (max-width: 700px) {
 .level-hero-badge .level-badge { width: 105px; }
 .level-hero-grid { gap: 1.2rem; }
 .level-hero-badge { justify-content: flex-start; }
 .program-affiliate { gap: 1rem; flex-wrap: wrap; }
 .program-affiliate img { width: 190px; }
 .level-journey { grid-template-columns: 1fr; margin-left: 0; gap: 1rem; }
 .level-journey > li { border-left: 0; padding: 0; }
 .level-card { padding: 1.1rem; gap: 1rem; }
 .level-card .level-badge { width: 65px; height: 65px; flex-basis: 65px; margin: 0; }
 .level-copy > p { font-size: .9rem; }
 .program-stage:not(:last-child)::after { content: none; }
 .stage-arrow { font-size: 1.25rem; }
}
.program-section-heading { display: block; max-width: 720px; }
.program-section-heading > p { max-width: none; margin: .85rem 0 0; }

/* Compact, colour-coded section navigation with a clear selected state. */
.program-section-nav { position: sticky; top: var(--site-header-height, 83px); z-index: 40; padding: .7rem 0; background: rgb(255 255 255 / .98); border-block: 1px solid var(--border); }
.program-section-nav .wrap { display: flex; justify-content: center; }
.program-tab-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 640px); gap: .35rem; padding: .35rem; border: 1px solid var(--border); border-radius: 18px; background: var(--sky); }
.program-tab { --tab-colour: var(--navy); display: flex; align-items: center; justify-content: center; gap: .65rem; min-width: 0; min-height: 50px; padding: .6rem 1rem; border: 1px solid transparent; border-radius: 12px; font-size: .95rem; font-weight: 850; color: var(--navy); text-decoration: none; transition: background-color 160ms, color 160ms, box-shadow 160ms; }
.preschool-tab { --tab-colour: #267744; }
.swimmer-tab { --tab-colour: var(--blue); }
.advanced-tab { --tab-colour: #07375e; }
.program-tab-dot { display: block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--tab-colour); }
.program-tab:hover { background: white; border-color: var(--border); }
.program-tab[aria-current="location"] { background: var(--tab-colour); color: white; border-color: var(--tab-colour); box-shadow: 0 3px 8px #07375e20; }
.program-tab[aria-current="location"] .program-tab-dot { background: white; }
.program-page .program-tab:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
@media (max-width: 700px) {
 .program-section-nav { padding: .55rem 0; }
 .program-tab-track { gap: .2rem; padding: .25rem; border-radius: 15px; }
 .program-tab { min-height: 46px; gap: .4rem; padding: .5rem .3rem; border-radius: 10px; font-size: .8rem; }
 .program-tab-dot { width: 5px; height: 5px; flex-basis: 5px; }
}
@media (prefers-reduced-motion: reduce) { .program-tab { transition: none; } }
