/* For candidates page (/candidates/). Owned by the candidates page agent.
 * Styles keep the old option classes (.cand-<section>--<id>). Shared pieces for this page use the .cand- prefix.
 * Round 4: every section is settled ("Support you get": u4 stacking panels; "Where it can take you": c4 route explorer). */

body.page-candidates { --footer-under: var(--bg); }
.page-candidates main { overflow-x: clip; }
.page-candidates :is(h1, h2, h3) { text-wrap: balance; }

.cand-anchor { display: block; height: 0; scroll-margin-top: calc(var(--header-h) + var(--header-top) + 8px); }

/* ------------------------------------------------------------------ shared: role chips */
.cand-roles { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cand-roles li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: #fff; color: var(--heading);
  font: 600 var(--fs-small)/1.25 var(--font-body);
  box-shadow: 0 0 0 1px var(--line);
}
.cand-roles li::before { content: ""; width: 7px; height: 7px; border-radius: 50% 0; background: var(--dot); flex: none; }

/* ------------------------------------------------------------------ shared: tinted tone helper */
.cand-topic--green { --tone-bg: var(--green-soft); --tone-fg: var(--green-deep); --tone-mist: var(--green-mist); }
.cand-topic--blue { --tone-bg: var(--blue-soft); --tone-fg: var(--blue-deep); --tone-mist: var(--blue-mist); }
.cand-topic--sun { --tone-bg: var(--sun-soft); --tone-fg: #8A6410; --tone-mist: #FFFAEB; }
.cand-topic--coral { --tone-bg: var(--coral-soft); --tone-fg: #A2412B; --tone-mist: #FFF4F1; }

/* ================================================================== HERO */
/* h1 · Split photo */
.cand-hero--h1 .page-hero__title { max-width: 9.24em; }
.cand-hero--h1 .page-hero__chips .pill .icon { color: var(--green-strong); }
.cand-hero1__media { max-width: 560px; margin-inline: auto; width: 100%; }
/* [r3 qa-b] taller hero: the photo follows the screen further than the shared default */
@media (min-width: 1024px) { .cand-hero--h1 { --hero-photo-h: clamp(500px, 72vh, 860px); } .cand-hero1__media { max-width: 580px; } }
.cand-hero1__sticker { position: absolute; z-index: 3; left: -3%; bottom: 3%; }
.cand-hero1__sticker .sticker__ring text { letter-spacing: 0.085em; } /* this ring wording is long: tighter tracking so it closes without overlapping its start */
.cand-hero1__chip { position: absolute; z-index: 3; top: 9%; right: -2%; }
.cand-hero1__chip .icon { color: var(--green-strong); }
@media (max-width: 599px) {
  .cand-hero1__media { max-width: 350px; }
  .cand-hero1__sticker { left: -1%; bottom: -3%; }
  .cand-hero1__sticker .sticker { width: 104px; height: 104px; }
  .cand-hero1__chip { right: 0; top: 2%; }
}

/* ================================================================== WHAT IS AN APPRENTICESHIP */
/* i1 · Photo and three pillars */
@media (min-width: 900px) { .cand-intro1__split { grid-template-columns: 0.85fr 1.15fr; } }
.cand-intro1__media { max-width: 480px; margin-inline: auto; width: 100%; }
.cand-intro1__chip .icon { color: var(--green-strong); }
.cand-intro--i1 h2 { max-width: 11.22em; }
.cand-intro1__features { --stack: var(--s-5); }
.cand-intro1__features .feature { transition: translate var(--t-3) var(--ease-out); }
@media (hover: hover) { .cand-intro1__features .feature:hover { translate: 4px 0; } }
@media (max-width: 599px) {
  .cand-intro1__media { max-width: 330px; }
}

/* ================================================================== WHAT YOU STUDY */
/* l1 · Photo and topic cards */
.cand-learn1__grid { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 1140px) { .cand-learn1__grid { grid-template-columns: 0.8fr 1.2fr; } }
.cand-learn1__photo { position: relative; max-width: 440px; width: 100%; margin-inline: auto; }
.cand-learn1__chip { position: absolute; top: 8%; right: -4%; box-shadow: var(--shadow-1); }
.cand-learn1__chip .icon { color: var(--green-strong); }
.cand-learn1__topics { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cand-topic {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg);
  background: #fff; box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 10px;
  transition: translate var(--t-3) var(--ease-out), box-shadow var(--t-3);
}
.cand-topic::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--tone-bg); }
.cand-topic:hover { translate: 0 -4px; box-shadow: var(--shadow-2); }
.cand-topic .icon-tile { background: var(--tone-bg); color: var(--tone-fg); }
.cand-topic__num { position: absolute; z-index: -1; top: 10px; right: 18px; font: 600 3.2rem/1 var(--font-accent); font-style: italic; color: var(--tone-bg); }
.cand-topic__title { overflow-wrap: normal; font: var(--display-weight) var(--fs-h4)/1.3 var(--font-display); color: var(--heading); }
.cand-topic__text { color: var(--muted); font-size: var(--fs-small); }
.cand-learn1__how {
  margin-top: var(--s-8); padding: clamp(26px, 3vw, 44px); border-radius: var(--r-xl);
  background: #fff; box-shadow: var(--shadow-2);
  display: grid; gap: var(--s-6);
}
@media (min-width: 1024px) { .cand-learn1__how { grid-template-columns: 0.7fr 2fr; align-items: center; } }
.cand-learn1__how-head h3 { margin-top: 10px; max-width: 9.24em; }
.cand-learn1__how-list { list-style: none; padding: 0; display: grid; gap: 20px 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cand-learn1__how-list li { display: flex; gap: 14px; align-items: flex-start; }
.cand-learn1__how-list strong { display: block; color: var(--heading); font-weight: 700; margin-bottom: 2px; }
.cand-learn1__how-list span { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
@media (max-width: 599px) {
  .cand-learn1__topics, .cand-learn1__how-list { grid-template-columns: 1fr; }
  .cand-topic { align-items: center; text-align: center; }
  .cand-learn1__photo { max-width: 320px; }
  .cand-learn1__chip { right: 0; }
  .cand-learn1__how { text-align: center; }
  .cand-learn1__how-head h3 { margin-inline: auto; }
  .cand-learn1__how-list li { flex-direction: column; align-items: center; }
}

/* ================================================================== VOICES */
/* v1 · Quote slider */
.cand-voices--v1 { overflow: clip; }
.cand-voices--v1 .quote-card__avatar { background: var(--blue-soft); color: var(--blue-deep); }
.cand-voices--v1 .slider__slide:nth-child(odd) .quote-card { background: var(--green-mist); box-shadow: none; }
@media (max-width: 599px) { .cand-voices--v1 .slider__controls { justify-content: center; } .cand-voices--v1 .quote-card { text-align: left; } }

/* ================================================================== FAQ */
/* q1 · Split with accordion */
@media (min-width: 900px) { .cand-faq1__aside { position: sticky; top: calc(var(--header-clear) + 8px); } }
@media (min-width: 900px) and (max-height: 700px) { .cand-faq1__aside { position: static; } }
.cand-faq1__aside h2 { max-width: 9.24em; }
.cand-faq1__aside .callout .btn-row { margin-top: 4px; }
@media (max-width: 599px) {
  .cand-faq1__aside h2 { margin-inline: auto; }
  .cand-faq1__aside .callout { justify-items: center; text-align: center; }
  .cand-faq1__aside .callout .btn-row { justify-content: center; }
}

/* accent phrase in small (h3 size) headings: deeper green for AA contrast */
.cand-learn1__how-head .accent { color: var(--green-deep); }

/* ctaBand on small phones: "childcare career?" is one unbreakable line that is wider than the padded card
   in some typefaces (Poppins at 360px), pushing the copy off centre. Slimmer side padding gives it room. */
@media (max-width: 399px) { .cand-cta--a1 .cta-band { padding-inline: 22px; } }

/* Phones: headings with a max-width measure sit centred in their column */
@media (max-width: 599px) {
  .page-candidates :is(.cand-intro--i1, .cand-faq1__aside) h2 { margin-inline: auto; }
}

/* ================================================================== HOW IT WORKS (round 2) */
.cand-steps__note { max-width: 860px; margin: var(--s-8) auto 0; }
@media (max-width: 599px) { .cand-steps__note { margin-top: var(--s-7); } }

/* s1 · Sticky scroll story (shared .sticky-story: the heading and photo stay, the steps move) */
.cand-steps--s1 .sticky-story__pin h2 { max-width: 9.6em; }
.cand-steps1__lead { margin-top: var(--s-4); max-width: 30em; }
.cand-steps--s1 .draw-line__title { font-size: var(--fs-h3); }
.cand-steps--s1 .draw-line__body > p:not(.draw-line__meta) { color: var(--muted); max-width: 31em; }
@media (min-width: 900px) {
  .cand-steps--s1 .sticky-story { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .cand-steps--s1 .sticky-story__steps { --ss-ip: clamp(32px, 8vh, 84px); }
  .cand-steps--s1 .sticky-story__media { max-height: min(44vh, 430px); margin-top: var(--s-5); }
}
@media (min-width: 900px) and (max-height: 840px) { .cand-steps1__lead { display: none; } }
@media (max-width: 899px) {
  .cand-steps--s1 .sticky-story__pin h2, .cand-steps1__lead { margin-inline: auto; }
}

/* ================================================================== YOUR IPAD (round 2) */
.cand-ipad__note { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.5; color: var(--muted); max-width: 34em; }
.cand-ipad__note .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }

/* p2 · Photo-led split */
.cand-ipad2__grid { display: grid; gap: var(--s-8); align-items: center; }
.cand-ipad2__media { position: relative; width: 100%; max-width: 480px; margin-inline: auto; padding: 0 9% 10% 0; }
.cand-ipad2__main { aspect-ratio: 4 / 5; border-radius: var(--r-xl); overflow: clip; box-shadow: var(--shadow-3); }
.cand-ipad2__inset { position: absolute; right: 0; bottom: 0; width: 54%; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: clip; box-shadow: 0 0 0 6px var(--band-blue), var(--shadow-3); }
.cand-ipad2__media :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.cand-ipad2__chip { position: absolute; left: 14px; top: 14px; }
.cand-ipad2__copy h2 { margin-top: var(--s-4); max-width: 9.6em; }
.cand-ipad2__copy .lead { margin-top: var(--s-4); max-width: 30em; }
.cand-ipad2__uses { list-style: none; padding: 0; margin-top: var(--s-6); }
.cand-ipad2__uses li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line-strong); font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.cand-ipad2__uses li:last-child { border-bottom: 1px solid var(--line-strong); }
.cand-ipad2__uses strong { display: block; color: var(--heading); font: 600 1.0625rem/1.3 var(--font-display); }
.cand-ipad2__copy .cand-ipad__note { margin-top: var(--s-5); }
.cand-ipad2__copy .btn-row { margin-top: var(--s-5); }
@media (min-width: 900px) {
  .cand-ipad2__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); }
  .cand-ipad2__chip { left: -14px; top: 28px; }
}
@media (max-width: 599px) {
  .cand-ipad2__media { max-width: 330px; }
  .cand-ipad2__copy { text-align: center; }
  .cand-ipad2__copy h2, .cand-ipad2__copy .lead { margin-inline: auto; }
  .cand-ipad2__uses li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 8px; }
  .cand-ipad2__copy .cand-ipad__note { text-align: left; }
  .cand-ipad2__copy .btn-row { justify-content: center; }
}

/* ================================================================== FUNDING (round 2) */
/* f2 · Two-sided panel: what you pay on navy, who can apply on white */
.cand-fund2 { display: grid; border-radius: var(--r-xl); overflow: clip; background: var(--surface); box-shadow: var(--shadow-3); }
.cand-fund2__cost { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4.6vw, 64px); background: radial-gradient(90% 80% at 0% 100%, rgba(42, 107, 160, 0.6), transparent 70%), var(--band-deep); color: var(--text); }
.cand-fund2__num { display: flex; align-items: flex-start; margin-top: var(--s-5); font: 600 clamp(7rem, 4.4rem + 9vw, 12.5rem)/0.86 var(--font-display); letter-spacing: -0.05em; color: #fff; transform-origin: 0 100%; }
.cand-fund2__pound { font-size: 0.44em; margin: 0.16em 0.04em 0 0; color: var(--lime); }
.cand-fund2__label { margin-top: 14px; font: 700 var(--fs-small)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cand-fund2__text { margin-top: var(--s-5); max-width: 26em; }
.cand-fund2__logos { margin-top: auto; padding-top: var(--s-6); }
.cand-fund2__logos .logo-strip { justify-content: flex-start; gap: 12px; }
.cand-fund2__motif { position: absolute; z-index: -1; right: -60px; top: -64px; width: 240px; opacity: 0.12; pointer-events: none; }
.cand-fund2__who { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(30px, 4.6vw, 64px); }
.cand-fund2__who h2 { max-width: 9em; }
.cand-fund2__who .lead { margin-top: var(--s-4); max-width: 27em; }
.cand-fund2__sub { margin-top: var(--s-6); font: 700 var(--fs-micro)/1.2 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cand-fund2__list { margin-top: var(--s-4); display: grid; gap: 12px; }
.cand-fund2__who .btn-row { margin-top: var(--s-6); align-items: center; gap: 12px 24px; }
@media (min-width: 900px) { .cand-fund2 { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .cand-fund2__num[data-scroll-progress] { scale: calc(0.78 + 0.22 * var(--p, 1)); }
}
@media (max-width: 599px) {
  .cand-fund2__cost, .cand-fund2__who { align-items: center; text-align: center; }
  .cand-fund2__num { transform-origin: 50% 100%; }
  .cand-fund2__logos .logo-strip { justify-content: center; }
  .cand-fund2__list { text-align: left; }
  .cand-fund2__who .btn-row { justify-content: center; }
}

/* ================================================================== SUPPORT (round 3) */
/* u4 · Stacking panels (shared .stack-cards: one panel per kind of support, partner colours and real pictures) */
.cand-support--u4 .section-head { margin-bottom: var(--s-7); }
.cand-stack { max-width: 1120px; margin-inline: auto; }
.cand-stack .stack-card--green .stack-card__logo { height: 58px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: var(--ring); }
.cand-stack .stack-card--blue .stack-card__logo { height: 30px; }
.cand-stack .stack-card--navy .stack-card__meta { color: var(--lime); }
.cand-stack .stack-card--navy .stack-card__text { color: rgba(255, 255, 255, 0.86); }
.cand-stack .stack-card--navy .stack-card__media { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.cand-stack .stack-card .link-arrow { font-weight: 700; min-height: 44px; padding-block: 4px; box-sizing: border-box; }
.cand-stack .showcase { margin: 0; }
@media (min-width: 900px) { .cand-stack .stack-card { --sc-min: 440px; align-items: center; } }

/* ================================================================== WHERE IT CAN TAKE YOU (round 3) */
/* c4 · Route explorer (four coloured routes side by side; the open one widens to show its roles and photo) */
.cand-routes { --tab: 92px; --rgap: 12px; display: grid; gap: var(--rgap); max-width: 1160px; margin-inline: auto; }
.cand-route { --rt-bg: #fff; --rt-fg: var(--heading); --rt-soft: var(--muted); --rt-accent: var(--green-strong); position: relative; overflow: clip; border-radius: var(--r-xl); background: var(--rt-bg); color: var(--rt-fg); box-shadow: var(--shadow-1); }
.cand-route--navy { --rt-bg: var(--navy); --rt-fg: #fff; --rt-soft: rgba(255, 255, 255, 0.84); --rt-accent: var(--lime); }
.cand-route--blue { --rt-bg: var(--blue-deep); --rt-fg: #fff; --rt-soft: rgba(255, 255, 255, 0.88); --rt-accent: #fff; }
.cand-route--green { --rt-bg: var(--green-deep); --rt-fg: #fff; --rt-soft: rgba(255, 255, 255, 0.9); --rt-accent: var(--lime); }
.cand-route--white { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-1); }
.cand-route__tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 22px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cand-route__tab:focus-visible { outline: 3px solid var(--rt-accent); outline-offset: -5px; border-radius: var(--r-xl); }
.cand-route__n { font: 500 1.05rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--rt-accent); }
.cand-route__label { flex: 1; font: 600 1.125rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.cand-route__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--rt-fg) 12%, transparent); }
.cand-route__icon .icon { width: 20px; height: 20px; }
.cand-route__inner { display: grid; gap: 20px; padding: 4px 22px 24px; }
.cand-route__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.cand-route__copy > * { margin: 0; }
.cand-route__copy h3 { font: var(--display-weight) calc(var(--fs-h3) * 1.2)/1.12 var(--font-display); letter-spacing: -0.02em; color: var(--rt-fg); }
.cand-route__copy p { color: var(--rt-soft); max-width: 26em; }
.cand-route__copy .cand-route__sub { margin-top: 6px; font: 700 var(--fs-micro)/1.3 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rt-accent); }
.cand-route__copy .cand-route__more { font-size: var(--fs-small); line-height: 1.55; }
.cand-route .cand-roles { margin-top: 0; }
.cand-route--white .cand-roles li { background: var(--band-mist); }
.cand-route:not(.cand-route--white) .cand-roles li { box-shadow: none; }
.cand-route__photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: clip; }
.cand-route__photo :is(picture, img) { display: block; width: 100%; height: 100%; object-fit: cover; }
.cand-routes__hint { display: none; }
html.js .cand-route:not(.is-open) .cand-route__panel { display: none; }
@media (min-width: 900px) {
  .cand-routes { display: flex; height: clamp(480px, 39vw, 540px); container-type: inline-size; }
  .cand-route { display: flex; flex: 0 0 var(--tab); min-width: 0; transition: flex-grow 700ms var(--ease-smooth), box-shadow var(--t-3) var(--ease-out); }
  .cand-route.is-open { flex-grow: 1; box-shadow: var(--shadow-3); }
  .cand-route--white.is-open { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-3); }
  .cand-route__tab { flex: 0 0 var(--tab); width: var(--tab); height: 100%; flex-direction: column; justify-content: space-between; padding: 26px 0 22px; }
  .cand-route__n { font-size: 1.25rem; }
  .cand-route__label { flex: none; writing-mode: vertical-rl; rotate: 180deg; white-space: nowrap; font-size: 1.25rem; transition: opacity var(--t-3) var(--ease-out); }
  .cand-route__icon { width: 46px; height: 46px; transition: background-color var(--t-3) var(--ease-out), scale var(--t-3) var(--ease-out); }
  .cand-route:not(.is-open) .cand-route__tab:hover .cand-route__icon { scale: 1.1; background: color-mix(in srgb, var(--rt-fg) 22%, transparent); }
  .cand-route.is-open .cand-route__tab { cursor: default; }
  .cand-route__panel { flex: 1 1 0; min-width: 0; overflow: clip; }
  html.js .cand-route:not(.is-open) .cand-route__panel { display: block; visibility: hidden; opacity: 0; transition: opacity 200ms linear, visibility 0s 700ms; }
  .cand-route.is-open .cand-route__panel { opacity: 1; transition: opacity 500ms 250ms var(--ease-out); }
  .cand-route__inner { width: calc(100cqw - 4 * var(--tab) - 3 * var(--rgap)); height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr); align-items: center; gap: clamp(20px, 2.6vw, 36px); padding: 26px 26px 26px 6px; }
  .cand-route__photo { aspect-ratio: auto; height: 100%; }
  .cand-routes__hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: var(--s-5); font-size: var(--fs-small); color: var(--muted); }
  .cand-routes__hint .icon { width: 16px; height: 16px; color: var(--green-strong); }
  html:not(.js) .cand-routes { display: grid; height: auto; }
  html:not(.js) .cand-route__inner { width: auto; }
  html:not(.js) .cand-route__label { writing-mode: horizontal-tb; rotate: none; }
  html:not(.js) .cand-routes__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cand-route, .cand-route__panel { transition: none !important; } }
@media (max-width: 599px) {
  .cand-route__copy { align-items: center; text-align: center; }
  .cand-route .cand-roles { justify-content: center; }
}

