/* Editorial shapes with the final logo's berry, orange and leaf palette.
   Typography, wording, image assets, geometry and inner pages remain unchanged. */
body:not(.inner-page) {
  --brand-berry: #a6065e;
  --brand-orange: #f46309;
  --brand-leaf: #64a60c;
  --brand-purple: var(--brand-berry);
  --purple: var(--brand-berry);
  --orange: var(--brand-orange);
  --orange-light: #ffd4b8;
  --focus: var(--brand-berry);
  --navy: var(--purple-dark);
  --pink: var(--brand-berry);
  --green: #3d6908;
  --green-light: #f1f6e9;
  --purple-dark: #4b1238;
  --lavender: #f8edf3;
  --paper: #fffdf9;
  --ink: #321f35;
  --muted: #655563;
  --line: #e3d1df;
  --home-teal: #3d6908;
  
  --home-gap: clamp(64px, 7vw, 106px);
  background: #faf8f4;
}
body:not(.inner-page) main { background: #faf8f4; }
body:not(.inner-page) p { text-wrap: pretty; }
body:not(.inner-page) .button { border-radius: 7px; padding: 13px 24px; box-shadow: 0 7px 22px #4b123814;  }
body:not(.inner-page) .button:hover { background: #7f0649; }
body:not(.inner-page) .site-header-centered { background: #fffdf9f5; border-color: #a6065e12; }
body:not(.inner-page) .site-header-centered .site-nav.site-nav-rich { background: #f8edf3; border-color: #a6065e12; }
body:not(.inner-page) .site-header-centered .header-cta { border-radius: 7px; }
body:not(.inner-page) .hero {
  isolation: isolate; min-height: 720px; grid-template-columns: .91fr 1.09fr;
  column-gap: 70px; padding: 54px max(40px,calc((100vw - 1320px)/2));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
body:not(.inner-page) .hero-heading,
body:not(.inner-page) .hero-details { position: relative; z-index: 2; }
body:not(.inner-page) .hero h1 { max-width: 16ch;   margin-bottom: 24px; }
body:not(.inner-page) .hero-heading .eyebrow { margin-bottom: 18px; }
body:not(.inner-page) .hero-intro { max-width: 510px;   }
body:not(.inner-page) .hero-media { grid-area: auto; position: absolute; inset: 0 0 0 43%; width: 57%; height: 100%; aspect-ratio: auto; border-radius: 0; clip-path: url(#home-hero-curve); }
body:not(.inner-page) .hero-media img { object-position: 100% center; }
.hero-shape-definitions { position: absolute; pointer-events: none; }
.hero-contour { position: absolute; z-index: 1; inset: 0 0 0 43%; width: 57%; height: 100%; pointer-events: none; overflow: visible; }
body:not(.inner-page) .hero-actions { gap: 12px 20px; margin-top: 24px; }
body:not(.inner-page) .trust-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 30px 0 24px; }
body:not(.inner-page) .trust-list li { align-items: center; gap: 8px; }
body:not(.inner-page) .trust-list .trust-icon { width: 29px; height: 29px; flex-basis: 29px; background: transparent; border: 1px solid #93ae73; color: var(--home-teal); }
body:not(.inner-page) .ofsted-trust { max-width: 510px;  gap: 0 16px; padding-top: 15px; }
body:not(.inner-page) .hero-eligibility-link { margin-top: 10px;  gap: 20px; }
body:not(.inner-page) .hero-eligibility-link span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--home-teal); }
/* An image arch and a generous headline create a quieter editorial interlude. */
body:not(.inner-page) .purpose { grid-template-columns: .86fr 1.14fr; gap: clamp(44px,7vw,112px); }
body:not(.inner-page) .purpose-photo { aspect-ratio: 1.1; border-radius: 47% 47% 10px 10px; box-shadow: -18px 18px 0 #f8dfce; }
body:not(.inner-page) .purpose-copy h2 { max-width: 17ch;   margin-bottom: 25px; }
body:not(.inner-page) .purpose-copy > p { max-width: 560px;  }
body:not(.inner-page) .purpose-copy .text-link { max-width: 480px; color: var(--purple); }
body:not(.inner-page) .purpose::after { content: ''; position: absolute; z-index: 0; width: 470px; height: 180px; right: -160px; bottom: 38px; border: 1px solid #f463092e; border-radius: 50%; transform: rotate(-23deg); pointer-events: none; }
/* Question choices keep the existing single-panel and keyboard behaviour. */
body:not(.inner-page) .home-reflection { background: #f8edf3; border-block: 1px solid #ecd9e4; }
body:not(.inner-page) .reflection-heading { grid-template-columns: 1.1fr .9fr; margin-bottom: 40px; }
body:not(.inner-page) .reflection-heading > p { max-width: 440px; justify-self: end; }
body:not(.inner-page) .reflection-explorer { grid-template-columns: .92fr 1.08fr; gap: clamp(30px,5vw,76px); align-items: stretch; }
body:not(.inner-page) .reflection-choices { gap: 0; }
body:not(.inner-page) .reflection-choice { border-radius: 0; border-width: 0 0 1px; border-color: #dfc6d4; min-height: 87px; padding: 17px 12px; }
body:not(.inner-page) .reflection-choice-number {    min-width: 36px; }
body:not(.inner-page) .reflection-choice[aria-selected=true] { background: #fffdf9; padding-inline: 18px; border-color: #ca92b1; box-shadow: -4px 0 var(--purple); }
body:not(.inner-page) .reflection-responses { position: relative; }
body:not(.inner-page) .reflection-response { position: relative; isolation: isolate; overflow: hidden; border-radius: 100px 12px 12px 12px; padding: 54px 44px 40px; background: linear-gradient(135deg,#a6065e,#4b1238); }
body:not(.inner-page) .reflection-response::after { content: ''; position: absolute; z-index: -1; right: -100px; bottom: -160px; width: 320px; height: 360px; border: 1px solid #ffffff26; border-radius: 50%; transform: rotate(30deg); box-shadow: 0 0 0 25px #ffffff05,0 0 0 60px #ffffff03; }
body:not(.inner-page) .reflection-response h3 {   max-width: 19ch; }
body:not(.inner-page) .reflection-response-top { color: #ffe0cc;  margin-bottom: 27px; }
body:not(.inner-page) .reflection-actions .button { color: #7f0649; }
body:not(.inner-page) .reflection-actions .button:hover { background: #fff1e7; }
body:not(.inner-page) .eligibility-reassurance { margin-top: 32px; background: #fffcf5; border-left: 3px solid var(--home-teal); border-radius: 0; padding: 25px 30px; }
/* A flowing route is a visual thread, with every stage always readable. */
body:not(.inner-page) .pathway { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(110deg,#7f0649,#4b1238 65%,#283e17); }
body:not(.inner-page) .pathway::before { display: block; content: ''; position: absolute; z-index: -1; inset: -140px -40% 45%; border: 1px solid #f8c9e329; border-radius: 50%; background: none; transform: rotate(-8deg); box-shadow: 0 25px 0 #f8c9e306,0 65px 0 #f8c9e305; }
body:not(.inner-page) .pathway .eyebrow { color: #ffd4b8; }
body:not(.inner-page) .pathway .section-heading { margin-bottom: 44px; }
body:not(.inner-page) .pathway-steps { gap: 28px; margin-top: 0; }
body:not(.inner-page) .pathway-steps::before { top: 32px; left: 32px; right: 12%; height: 1px; background: linear-gradient(90deg,#e596bd,#a9ce77); }
body:not(.inner-page) .pathway-steps li > span { width: 64px; height: 64px; margin-bottom: 24px; border-color: #da80ad; background: #7f0649;    box-shadow: 0 0 0 7px #ffffff04; }
body:not(.inner-page) .pathway-steps li:last-child > span { border-color: #b5d88e; background: #3d6908; }
body:not(.inner-page) .pathway-steps h3 {   min-height: 2.3em; }
body:not(.inner-page) .pathway-steps p {   color: #fff1e7; }
body:not(.inner-page) .pathway-note { margin-top: 38px; border-color: #ffffff24; }
/* Brand-colour invitations: dark text on the brighter orange and leaf cards. */
body:not(.inner-page) .journey-grid { gap: 18px; }
body:not(.inner-page) .journey-card { isolation: isolate; overflow: hidden; padding: 30px 26px; min-height: 360px; border: 0; border-radius: 9px 60px 9px 9px; color: var(--card-ink, white); --card-paint: linear-gradient(145deg,#a6065e,#7f0649); background: var(--card-paint); }
body:not(.inner-page) .journey-card:nth-child(2) { --card-ink: var(--ink); --card-paint: linear-gradient(145deg,#f46309,#ffa66e); background: var(--card-paint); }
body:not(.inner-page) .journey-card:nth-child(3) { --card-ink: var(--ink); --card-paint: linear-gradient(145deg,#64a60c,#85bb3d); background: var(--card-paint); }
body:not(.inner-page) .journey-card:nth-child(4) { --card-paint: linear-gradient(145deg,#7f0649,#4b1238); background: var(--card-paint); }
body:not(.inner-page) .journey-card::before { display: block; width: 300px; height: 420px; right: -185px; bottom: -125px; border: 1px solid #ffffff26; transform: rotate(35deg); background: #ffffff07; z-index: -1; }
body:not(.inner-page) .journey-card .card-number { color: var(--card-ink, white); opacity: 1;    margin-bottom: 28px; }
body:not(.inner-page) .journey-card div p { color: var(--card-ink, #fff1e7);  }
body:not(.inner-page) .journey-card h3 { color: var(--card-ink, white);   }
body:not(.inner-page) .journey-card small { color: var(--card-ink, #fff);   }
body:not(.inner-page) .journey-card .round-arrow { width: 39px; height: 39px; background: transparent; color: var(--card-ink, white); border-color: currentColor; }
body:not(.inner-page) .journey-card:hover { background: var(--card-paint); color: var(--card-ink, white); box-shadow: 0 15px 30px #4b123820; }
/* The six approved portraits stay distinct, with readable captions below. */
body:not(.inner-page) .types { padding-top: 0; }
body:not(.inner-page) .types-grid { gap: 34px 26px; }
body:not(.inner-page) .type-card { border: 0; border-radius: 0; background: transparent; }
body:not(.inner-page) .type-card-photo { aspect-ratio: 3/4; border-radius: 9px 60px 9px 9px; }
body:not(.inner-page) .type-card:nth-child(2n) .type-card-photo { border-radius: 60px 9px 9px 9px; }
body:not(.inner-page) .type-card-content { padding: 23px 4px 5px; border-bottom: 1px solid #e3d1df; }
body:not(.inner-page) .type-card h3 {  margin-bottom: 10px; }
body:not(.inner-page) .type-card-content > p {  margin-bottom: 12px; }
body:not(.inner-page) .type-card-cta { justify-content: space-between; width: 100%; padding-block: 10px 16px; }
/* Full-width support band balances the lighter editorial sections. */
body:not(.inner-page) .support.section { width: 100%; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); padding: var(--home-gap) max(32px,calc((100vw - 1320px)/2)); background: radial-gradient(ellipse at 20% 70%,#64a60c2e,transparent 65%),#213610; color: white; }
body:not(.inner-page) .support-photo { aspect-ratio: 1.15; border-radius: 50% 50% 10px 10px; border: 1px solid #c8e2a33b; padding: 12px; }
body:not(.inner-page) .support-photo img { border-radius: inherit; }
body:not(.inner-page) .support-copy .eyebrow { color: #d4e9b6; }
body:not(.inner-page) .support-copy h2 { max-width: 15ch; }
body:not(.inner-page) .support-copy li { color: #f1f6e9; border-color: #ffffff24;  padding-block: 14px; }
body:not(.inner-page) .support-copy li::before { top: 16px; color: #c8e5a2; background: #64a60c40; }
body:not(.inner-page) .support-copy .text-link { color: #fff; }
body:not(.inner-page) .allowance.section { background: #fff1e7; padding-block: 60px; gap: 60px; }
body:not(.inner-page) .allowance-intro h2 {  margin-bottom: 20px; }
body:not(.inner-page) .allowance-guide { border: 1px solid #efd6c3; border-radius: 9px 40px 9px 9px; background: #fffdf9; padding: 35px; }
body:not(.inner-page) .matching { grid-template-columns: .86fr 1.14fr; gap: clamp(44px,6vw,100px); }
body:not(.inner-page) .matching-photo { border-radius: 50% 8px 8px 8px; aspect-ratio: 1.25; box-shadow: 18px 18px 0 #e3edd5; }
body:not(.inner-page) .resources { padding-top: 18px; }
body:not(.inner-page) .home-faqs { max-width: 1050px; }
body:not(.inner-page) .home-faqs summary {    padding-block: 21px; }
body:not(.inner-page) .enquire { border-radius: 8px 80px 8px 8px; background: linear-gradient(110deg,#a6065e,#4b1238); grid-template-columns: .85fr 1.15fr; }
body:not(.inner-page) .enquire-content .eyebrow { color: #ffd4b8; }
body:not(.inner-page) .enquire-content .button { background: white; color: #7f0649; }
body:not(.inner-page) .enquire-content .button:hover { background: #fff1e7; }
body:not(.inner-page) .site-footer { background: #4b1238; }
body:not(.inner-page) .site-footer .brand-footer { border-radius: 5px; }
body:not(.inner-page) .footer-links strong { color: #ffd4b8; }
@media(min-width:1281px) {
 body:not(.inner-page) .pathway-steps li:nth-child(2) { padding-top: 12px; }
 body:not(.inner-page) .pathway-steps li:nth-child(3) { padding-top: 24px; }
 body:not(.inner-page) .pathway-steps li:nth-child(4) { padding-top: 12px; }
 body:not(.inner-page) .pathway-steps::before { top: 33px; height: 23px; border-bottom: 1px solid #df95b9; border-radius: 0 0 50% 50%; background: none; transform: none; }
}
@media(max-width:1280px) {
 body:not(.inner-page) .hero { grid-template-columns: 1fr; grid-template-areas: 'heading' 'photo' 'details'; gap: 24px; min-height: 0; padding: 38px 32px 44px; }
 body:not(.inner-page) .hero h1 { max-width: 22ch;  margin: 0; }
 body:not(.inner-page) .hero-media { position: relative; inset: auto; grid-area: photo; width: 100%; height: auto; max-height: none; aspect-ratio: 1.8; clip-path: none; border-radius: 90px 8px 8px 8px; border-left: 8px solid #a6065e; }
 body:not(.inner-page) .hero-media img { object-position: center; }
 body:not(.inner-page) .hero-contour { display: none; }
 body:not(.inner-page) .hero-intro { max-width: 760px; }
 body:not(.inner-page) .trust-list { max-width: 660px; gap: 18px; }
 body:not(.inner-page) .ofsted-trust { max-width: 660px; }
 body:not(.inner-page) .purpose { gap: 44px; }
 body:not(.inner-page) .reflection-response { padding: 46px 30px 30px; border-top-left-radius: 70px; }
 body:not(.inner-page) .journey-card { min-height: 340px; }
 body:not(.inner-page) .pathway-steps { grid-template-columns: 1fr; gap: 28px; }
 body:not(.inner-page) .pathway-steps::before { top: 32px; left: 31px; right: auto; bottom: 45px; width: 1px; height: auto; background: #a9ce775c; }
 body:not(.inner-page) .pathway-steps li { display: grid; grid-template-columns: 64px 1fr; gap: 24px; }
 body:not(.inner-page) .pathway-steps li > span { margin: 0; }
 body:not(.inner-page) .pathway-steps h3 { min-height: 0; margin-bottom: 9px; }
 body:not(.inner-page) .pathway-steps p { max-width: 610px; }
 body:not(.inner-page) .support.section { gap: 32px; }
 body:not(.inner-page) .support-photo { aspect-ratio: .95; }
}
@media(max-width:820px) {
 body:not(.inner-page) .reflection-heading,body:not(.inner-page) .reflection-explorer { grid-template-columns: 1fr; gap: 24px; }
 body:not(.inner-page) .reflection-heading > p { justify-self: start; }
 body:not(.inner-page) .reflection-choice { min-height: 70px; }
 body:not(.inner-page) .reflection-response { min-height: 0; }
}
@media(max-width:760px) {
 body:not(.inner-page) { --home-gap: 64px; }
 body:not(.inner-page) .hero { padding: 30px 20px 40px; gap: 25px; }
 body:not(.inner-page) .hero-heading .eyebrow { margin-bottom: 14px;  }
 body:not(.inner-page) .hero-media { border-top-left-radius: 60px; border-left-width: 5px; }
 body:not(.inner-page) .trust-list { grid-template-columns: 1fr; margin-top: 24px; gap: 12px; }
 body:not(.inner-page) .purpose { grid-template-columns: 1fr; gap: 40px; }
 body:not(.inner-page) .purpose-photo { width: calc(100% - 12px); margin-left: 12px; box-shadow: -12px 12px 0 #f8dfce; aspect-ratio: 1.2; }
 body:not(.inner-page) .purpose-copy h2 {  max-width: 19ch; }
 body:not(.inner-page) .reflection-heading { margin-bottom: 24px; }
 body:not(.inner-page) .reflection-response { padding: 40px 26px 30px; border-radius: 65px 8px 8px 8px; }
 body:not(.inner-page) .eligibility-reassurance { padding: 22px; }
 body:not(.inner-page) .pathway-steps li { gap: 20px; }
 body:not(.inner-page) .pathway .section-heading { margin-bottom: 36px; }
 body:not(.inner-page) .pathway-note { gap: 8px; }
 body:not(.inner-page) .journey-card { min-height: 0; padding: 28px; }
 body:not(.inner-page) .journey-card h3 { max-width: 20ch;  }
 body:not(.inner-page) .type-card-photo { border-top-right-radius: 50px; }
 body:not(.inner-page) .support.section { grid-template-columns: 1fr; padding-inline: 20px; gap: 40px; }
 body:not(.inner-page) .support-photo { aspect-ratio: 1.1; }
 body:not(.inner-page) .support-copy h2 { max-width: 17ch; }
 body:not(.inner-page) .allowance.section { grid-template-columns: 1fr; padding-inline: 20px; gap: 24px; }
 body:not(.inner-page) .allowance-guide { padding: 24px; }
 body:not(.inner-page) .matching { grid-template-columns: 1fr; gap: 36px; }
 body:not(.inner-page) .matching-photo { width: calc(100% - 12px); box-shadow: 12px 12px 0 #e3edd5; }
 body:not(.inner-page) .resources { padding-top: 18px; }
 body:not(.inner-page) .enquire { grid-template-columns: 1fr; border-radius: 8px 60px 8px 8px; }
 body:not(.inner-page) .enquire-photo { aspect-ratio: 1.15; max-height: none; }
 body:not(.inner-page) .enquire-photo img { object-position: 50% 35%; }
 body:not(.inner-page) .enquire-content { padding: 34px 25px; }
}
@media(prefers-reduced-motion:no-preference) {
 body:not(.inner-page) .journey-card { transition: transform .25s ease,box-shadow .25s ease; }
 body:not(.inner-page) .journey-card:hover { transform: translateY(-5px); }
 body:not(.inner-page) .pathway:has(.home-motion-enter) .pathway-steps::before { animation: route-draw 1.6s ease-out both; transform-origin: top left; }
 @keyframes route-draw { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0); } }
 @media(max-width:1280px) { @keyframes route-draw { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0); } } }
}
@media(prefers-reduced-motion:reduce) {
  body:not(.inner-page) .journey-card,body:not(.inner-page) .pathway-steps::before { animation: none; transition: none; }
}
/* The reference's compact, browsable strip; all six approved cards remain. */
body:not(.inner-page) .types { position: relative; }
body:not(.inner-page) .type-gallery-actions { display: flex; justify-content: flex-end; gap: 10px; margin: -10px 0 22px; }
body:not(.inner-page) .type-gallery-actions[hidden] { display: none; }
body:not(.inner-page) .type-gallery-actions button { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid #d8b5c9; border-radius: 50%; background: white; color: var(--purple); cursor: pointer; }
body:not(.inner-page) .type-gallery-actions button:disabled { opacity: .4; cursor: default; }
body:not(.inner-page) .type-gallery-actions button:not(:disabled):hover { background: var(--purple); color: white; }
body:not(.inner-page) .types-grid { display: flex; gap: 22px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 4px; padding: 4px 4px 14px; margin-inline: -4px; scrollbar-width: thin; scrollbar-color: #ba6c97 #f8edf3; }
body:not(.inner-page) .type-card { flex: 0 0 calc((100% - 66px)/4); scroll-snap-align: start; overflow: hidden; border: 1px solid #e3d1df; border-radius: 9px 40px 9px 9px; background: white; }
body:not(.inner-page) .type-card-photo,body:not(.inner-page) .type-card:nth-child(2n) .type-card-photo { aspect-ratio: 4/3; border-radius: 0; }
body:not(.inner-page) .type-card-photo img { object-position: 50% 28%; }
body:not(.inner-page) .type-card-content { padding: 22px 20px 8px; border: 0; }
@media(max-width:1200px) { body:not(.inner-page) .type-card { flex-basis: calc((100% - 44px)/3); } }
@media(max-width:960px) { body:not(.inner-page) .type-card { flex-basis: calc((100% - 22px)/2); } }
@media(max-width:600px) { body:not(.inner-page) .type-card { flex-basis: 86%; } body:not(.inner-page) .type-gallery-actions { margin: 0 0 18px; } }

/* Presentation attributes in the decorative hero SVG inherit the same palette. */
body:not(.inner-page) #home-hero-gradient stop:nth-child(1) { stop-color: var(--brand-berry); }
body:not(.inner-page) #home-hero-gradient stop:nth-child(2) { stop-color: var(--brand-orange); }
body:not(.inner-page) #home-hero-gradient stop:nth-child(3) { stop-color: var(--brand-leaf); }
body:not(.inner-page) .hero-contour path:nth-child(2) { stroke: #daafc7; }
