/* Homepage layout. Shared typography and colours live in styles.css. */
body:not(.inner-page) { --home-gap: clamp(48px, 6vw, 88px); }
body:not(.inner-page) main { overflow: clip; padding-top: 112px; }
body:not(.inner-page) .section { width: min(calc(100% - 64px), 1320px); margin-inline: auto; padding-block: var(--home-gap); padding-inline: 0; }
body:not(.inner-page) :is(h1,h2,h3) { font-family: var(--sans); font-weight: 800; font-style: normal; letter-spacing: -.035em; overflow-wrap: normal; word-break: normal; }
body:not(.inner-page) h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.18; }
body:not(.inner-page) h3 { line-height: 1.3; }
body:not(.inner-page) .eyebrow { font-size: .78rem; font-weight: 800; line-height: 1.5; color: var(--purple); letter-spacing: .1em; }
body:not(.inner-page) .section-heading { margin-bottom: 32px; max-width: 820px; }
body:not(.inner-page) .section-heading-row { max-width: none; gap: 32px; }
body:not(.inner-page) .section-heading-row > div { max-width: 680px; }
body:not(.inner-page) .section-heading-row > p { max-width: 340px; }
body:not(.inner-page) :is(section,[id^="reflection-response-"]) { scroll-margin-top: 136px; }
body:not(.inner-page) .button { min-height: 48px; font-size: .94rem; gap: 14px; white-space: normal; text-align: center; }
body:not(.inner-page) .text-link { min-height: 44px; font-size: .94rem; line-height: 1.5; }
/* The photograph is a single informative img, never a background under text. */
body:not(.inner-page) .hero { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); grid-template-areas: "heading photo" "details photo"; row-gap: 0; column-gap: clamp(32px,4vw,64px); align-items: center; min-height: 0; padding: 40px max(32px, calc((100vw - 1440px)/2)); background: var(--paper); overflow: visible; }
body:not(.inner-page) .hero-content { display: contents; position: static; width: auto; padding: 0; min-height: 0; }
body:not(.inner-page) .hero-heading { grid-area: heading; align-self: end; }
body:not(.inner-page) .hero-details { grid-area: details; align-self: start; }
body:not(.inner-page) .hero-content > * { width: auto; max-width: none; }
body:not(.inner-page) .hero h1 { font-size: clamp(2.35rem,3.6vw,3.75rem); line-height: 1.1; margin: 0 0 22px; }
body:not(.inner-page) .hero-intro { font-size: clamp(1rem,1.25vw,1.12rem); line-height: 1.6; color: var(--muted); margin-bottom: 0; }
body:not(.inner-page) .hero-media { grid-area: photo; position: relative; inset: auto; width: 100%; height: auto; min-height: 0; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: none; }
body:not(.inner-page) .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 78% 45%; }
body:not(.inner-page) .hero-actions { gap: 14px 24px; margin-top: 26px; }
body:not(.inner-page) .trust-list { display: flex; flex-wrap: wrap; gap: 10px 20px; width: 100%; max-width: none; margin: 26px 0 20px; padding: 0; }
body:not(.inner-page) .trust-list li, body:not(.inner-page) .trust-list li + li { display: flex; min-width: 0; padding: 0; gap: 8px; border: 0; text-align: left; }
body:not(.inner-page) .trust-list .trust-icon { margin: 0; width: 21px; height: 21px; flex: 0 0 21px; font-size: .7rem; background: var(--lavender); border: 0; color: var(--purple); }
body:not(.inner-page) .trust-list strong { font-size: .78rem; line-height: 1.5; font-weight: 800; hyphens: none; word-break: normal; overflow-wrap: normal; }
.ofsted-trust { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.ofsted-trust p { width: 100%; margin: 0 0 2px; font-weight: 800; font-size: .88rem; color: var(--purple-dark); }
.ofsted-trust a { padding-block: 7px; text-decoration: underline; text-underline-offset: 4px; }
.hero-eligibility-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 10px; color: var(--purple); font-size: .84rem; font-weight: 800; }
body:not(.inner-page) .purpose { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(32px,5vw,80px); align-items: center; overflow: visible; }
body:not(.inner-page) .purpose-copy { width: auto; margin: 0; text-align: left; }
body:not(.inner-page) .purpose-copy > p { font-size: 1.05rem; line-height: 1.65; color: var(--muted); }
body:not(.inner-page) :is(.purpose-photo,.support-photo,.matching-photo) { position: relative; inset: auto; width: 100%; min-height: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 22px; background: none; }
body:not(.inner-page) :is(.purpose-photo,.support-photo,.matching-photo) img { display: block; width: 100%; height: 100%; object-fit: cover; }
body:not(.inner-page) .purpose-copy .text-link { display: inline-flex; max-width: 520px; }
body:not(.inner-page) .pathway { background: var(--purple-dark); color: white; }
body:not(.inner-page) .pathway::before { display: none; }
body:not(.inner-page) .pathway .eyebrow { color: var(--orange-light); }
body:not(.inner-page) .pathway-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); margin: 38px 0 0; gap: 24px; }
body:not(.inner-page) .pathway-steps::before { top: 27px; left: 27px; right: 8%; background: rgba(255,255,255,.3); }
body:not(.inner-page) .pathway-steps li { min-height: 0; padding: 0; align-items: flex-start; text-align: left; }
body:not(.inner-page) .pathway-steps li > span { position: relative; inset: auto; width: 56px; height: 56px; margin-bottom: 18px; font-size: 1rem; font-weight: 800; background: var(--purple-dark); border: 1px solid var(--orange-light); }
body:not(.inner-page) .pathway-steps li::after { display: none; }
body:not(.inner-page) .pathway-steps h3 { font-size: 1.12rem; margin: 0 0 12px; letter-spacing: -.01em; }
body:not(.inner-page) .pathway-steps p { font-size: .94rem; line-height: 1.6; color: rgba(255,255,255,.9); }
.pathway-note { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 36px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.pathway-note p { flex: 1 1 420px; margin: 0; font-size: .88rem; color: rgba(255,255,255,.9); }
.pathway-note .text-link { color: white; }
body:not(.inner-page) .journey-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; align-items: stretch; }
body:not(.inner-page) .journey-card { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; padding: 28px; min-height: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--lavender); color: var(--ink); transform: none; box-shadow: none; }
body:not(.inner-page) .journey-card::before, body:not(.inner-page) .journey-card::after { display: none; }
body:not(.inner-page) .journey-card div { max-width: none; }
body:not(.inner-page) .journey-card .card-number { margin: 0 0 24px; color: var(--purple); font-size: .86rem; }
body:not(.inner-page) .journey-card div p { color: var(--purple); font-size: .74rem; margin-bottom: 10px; }
body:not(.inner-page) .journey-card h3 { font-size: 1.32rem; margin: 0 0 14px; }
body:not(.inner-page) .journey-card small { display: block; font-size: .92rem; line-height: 1.6; color: var(--muted); }
body:not(.inner-page) .journey-card .round-arrow { position: static; margin-top: auto; transform: none; background: white; color: var(--purple); border-color: var(--line); }
body:not(.inner-page) .journey-card div { margin-bottom: 24px; }
body:not(.inner-page) .journey-card:hover { border-color: var(--purple); background: white; }
body:not(.inner-page) .types { padding-top: 0; }
body:not(.inner-page) .types-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-flow: row; grid-auto-columns: auto; gap: 28px; overflow: visible; padding: 0; margin: 0; }
body:not(.inner-page) .type-card { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--ink); box-shadow: none; transform: none; }
body:not(.inner-page) .type-card::before { display: none; }
.type-card-photo { overflow: hidden; aspect-ratio: 3/4; border-radius: 20px 20px 0 0; }
.type-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
body:not(.inner-page) .type-card-content { display: flex; flex: 1; flex-direction: column; padding: 26px; }
body:not(.inner-page) .type-card h3 { font-size: 1.45rem; }
body:not(.inner-page) .type-card-content > p { min-height: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }
body:not(.inner-page) .type-card-cta { margin-top: auto; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--purple); font-size: .9rem; }
body:not(.inner-page) .type-card-cta:hover { text-decoration: underline; }
body:not(.inner-page) .support { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,70px); align-items: center; min-height: 0; background: transparent; color: var(--ink); padding-top: 0; }
body:not(.inner-page) .support-copy li { padding: 12px 0 12px 34px; color: var(--muted); border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: none; font-size: 1rem; }
body:not(.inner-page) .support-copy li::before { content: "✓"; top: 14px; left: 0; width: 22px; height: 22px; color: var(--purple); background: var(--lavender); }
body:not(.inner-page) .support-copy ul { gap: 0; margin: 0 0 20px; }
body:not(.inner-page) .allowance { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; background: var(--lavender); width: 100%; padding: var(--home-gap) max(32px,calc((100vw - 1320px)/2)); }
body:not(.inner-page) .allowance-guide { border: 0; box-shadow: none; border-radius: 20px; padding: 32px; }
body:not(.inner-page) .matching { grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,70px); }
body:not(.inner-page) .resources { padding-top: 0; }
.home-faqs { border-top: 1px solid var(--line); }
.home-faqs details { border-bottom: 1px solid var(--line); padding-block: 4px; }
.home-faqs summary { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 24px; padding-block: 16px; cursor: pointer; font-weight: 800; font-size: 1.1rem; list-style: none; }
.home-faqs summary::-webkit-details-marker { display: none; }
.home-faqs summary span { color: var(--purple); font-size: 1.5rem; }
.home-faqs details[open] summary span { transform: rotate(45deg); }
.home-faqs details > div { max-width: 860px; padding: 0 0 24px; color: var(--muted); }
body:not(.inner-page) .enquire { grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); padding: 0; min-height: 0; margin-bottom: var(--home-gap); border-radius: 24px; }
body:not(.inner-page) .enquire-photo { background: none; opacity: 1; min-height: 0; }
body:not(.inner-page) .enquire-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
body:not(.inner-page) .enquire-content { padding: clamp(28px,4vw,64px); }
body:not(.inner-page) .enquire-content .eyebrow { color: var(--orange-light); }
body:not(.inner-page) .enquire-actions { flex-wrap: wrap; gap: 12px 24px; }
body:not(.inner-page) .enquire-content small { font-size: .84rem; }
@media(max-width:1380px) { body:not(.inner-page) main { padding-top: 108px; } }
@media(max-width:1100px) {
 body:not(.inner-page) .journey-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body:not(.inner-page) .pathway-steps { gap: 18px; }
}
@media(max-width:960px) {
 body:not(.inner-page) .hero { grid-template-columns: 1fr; grid-template-areas: "heading" "photo" "details"; gap: 24px; padding-block: 32px; }
 body:not(.inner-page) .hero h1 { margin-bottom: 0; max-width: 720px; font-size: clamp(2.1rem,5vw,3.2rem); }
 body:not(.inner-page) .hero-media { aspect-ratio: 16/9; max-height: 480px; }
 body:not(.inner-page) .hero-content { max-width: 780px; }
 body:not(.inner-page) .types-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body:not(.inner-page) .pathway-steps { grid-template-columns: 1fr; gap: 26px; }
 body:not(.inner-page) .pathway-steps::before { top: 28px; left: 27px; right: auto; bottom: 40px; width: 1px; height: auto; }
 body:not(.inner-page) .pathway-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 24px; align-items: start; }
 body:not(.inner-page) .pathway-steps li > span { margin: 0; }
 body:not(.inner-page) .pathway-steps h3 { margin-bottom: 8px; }
 body:not(.inner-page) .allowance { gap: 32px; }
}
@media(max-width:760px) {
 body:not(.inner-page) .section { width: calc(100% - 40px); }
 body:not(.inner-page) .hero { padding-inline: 20px; }
 body:not(.inner-page) .hero h1 { font-size: clamp(2rem,6.5vw,2.65rem); }
 body:not(.inner-page) .section-heading-row { display: block; }
 body:not(.inner-page) .section-heading-row > p { margin-top: 16px; max-width: none; }
 body:not(.inner-page) :is(.purpose,.support,.matching,.allowance,.enquire) { grid-template-columns: 1fr; }
 body:not(.inner-page) .purpose { gap: 28px; }
 body:not(.inner-page) .purpose-copy > p { font-size: 1rem; }
 body:not(.inner-page) .allowance { width: 100%; padding-inline: 20px; }
 body:not(.inner-page) .allowance-guide { padding: 24px; }
 body:not(.inner-page) .enquire { padding: 0; }
 body:not(.inner-page) .enquire-photo { aspect-ratio: 3/4; max-height: 560px; }
 body:not(.inner-page) .enquire-photo img { object-position: 50% 45%; }
 body:not(.inner-page) .enquire-content { padding: 28px 24px; }
 body:not(.inner-page) :is(section,[id^="reflection-response-"]) { scroll-margin-top: 116px; }
}
@media(max-width:600px) {
 body:not(.inner-page) main { padding-top: 94px; }
 body:not(.inner-page) .journey-grid, body:not(.inner-page) .types-grid { grid-template-columns: 1fr; }
 body:not(.inner-page) .trust-list { flex-direction: column; gap: 9px; }
 body:not(.inner-page) .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
 body:not(.inner-page) .hero-actions .button { width: 100%; }
 body:not(.inner-page) .hero-media { aspect-ratio: 16/10; }
 body:not(.inner-page) .journey-card { padding: 26px; }
 body:not(.inner-page) .journey-card .card-number { margin-bottom: 18px; }
 .home-faqs summary { font-size: 1rem; }
 body:not(.inner-page) .enquire-actions .button { width: 100%; }
}

body:not(.inner-page) :is(.types,.resources) .section-heading { width: auto; }
