/* Waridi Cottage website additions (loaded after site.css). */

/* Our foundation: Christian ethos — calm, quiet band; present but not overpowering */
.ethos { padding: clamp(64px, 9vw, 120px) var(--gutter, 24px); background: linear-gradient(180deg, transparent, rgba(189, 150, 84, .07) 18%, rgba(189, 150, 84, .07) 82%, transparent); }
.ethos-inner { max-width: var(--wide, 1200px); margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
.ethos .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.ethos .eyebrow svg { color: var(--gold, #bd9654); }
.ethos h2 { margin: 14px 0 18px; }
.ethos-lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--ink, #1d2455); max-width: 34rem; }
.ethos-verse { margin: 28px 0 0; padding: 0 0 0 20px; border-left: 2px solid var(--gold, #bd9654); max-width: 32rem; }
.ethos-verse p { margin: 0; font: italic 400 clamp(18px, 1.6vw, 21px)/1.55 var(--display, Lora, Georgia, serif); color: var(--navy, #1d2455); }
.ethos-verse cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6f80); }
.ethos-values { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ethos-values li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 4px 14px; padding: 18px 0; border-top: 1px solid rgba(29, 36, 85, .12); }
.ethos-values li:last-child { border-bottom: 1px solid rgba(29, 36, 85, .12); }
.ethos-values .n { grid-row: span 2; font: italic 500 20px/1.2 var(--display, Lora, Georgia, serif); color: var(--gold, #bd9654); }
.ethos-values h3 { margin: 0; font-size: 18px; }
.ethos-values p { margin: 0; color: var(--muted, #5d6177); }
.ethos-principle { grid-column: 1 / -1; text-align: center; margin: 8px auto 0; max-width: 46rem; font: italic 400 clamp(19px, 1.8vw, 24px)/1.55 var(--display, Lora, Georgia, serif); color: var(--navy, #1d2455); }
@media (max-width: 860px) { .ethos-inner { grid-template-columns: 1fr; } }

/* ---------- Waridi Classroom overview (/classroom, signed out): a website page, full width ---------- */
.desktop-nav a[aria-current] { color: var(--navy); font-weight: 700; }
.desktop-nav .wc-signin { margin-left: 10px; }
.desktop-nav .wc-signin + .button { margin-left: 8px; }
.wc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(64px, 8vw, 112px); }
.wc-hero h1 { margin-bottom: 22px; }
.wc-lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.65; color: var(--muted); max-width: 40rem; margin-bottom: 30px; }
.wc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wc-facts { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 15px; }
.wc-facts li { display: flex; align-items: center; gap: 8px; }
.wc-facts svg { color: var(--blue); }
.wc-hero-photo { position: relative; }
.wc-hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.wc-chip { position: absolute; left: -32px; bottom: -28px; display: flex; align-items: center; gap: 14px; width: min(27rem, calc(100% - 16px)); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 22px 44px -22px rgba(19, 26, 66, .5); font-family: var(--sans); }
.wc-dot { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 10px; background: #1f5f5b; color: #fff; }
.wc-chip-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.35; }
.wc-chip-text small { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.wc-live { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 6px; background: #c8261b; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wc-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.wc-join { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px; background: var(--gold); color: var(--navy-deep); font-weight: 600; font-size: 15px; white-space: nowrap; }

.wc-week { padding-top: clamp(48px, 6vw, 88px); }
.wc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(36px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.wc-row:nth-of-type(even) .wc-media { order: -1; }
.wc-row h3 { font-size: clamp(26px, 2.4vw, 36px); margin-bottom: 14px; }
.wc-row p { font-size: 18px; color: var(--muted); max-width: 38rem; }
.wc-media img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.wc-ui { max-width: 36rem; padding: clamp(20px, 2.4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 48px -30px rgba(19, 26, 66, .45); font-family: var(--sans); }
.wc-ui > small, .wc-ui-who small { display: block; color: var(--muted); font-size: 15px; }
.wc-ui-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wc-ui-title { display: block; font-size: 19px; }
.wc-file { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
.wc-file svg { color: var(--navy); }
.wc-file span { display: flex; flex-direction: column; line-height: 1.35; }
.wc-file small { color: var(--muted); font-size: 14px; }
.wc-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #2557a7; font-weight: 600; font-size: 15px; }
.wc-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2557a7; }
.wc-ui-who { display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.wc-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #264b73; color: #fff; font-weight: 700; font-size: 15px; }
.wc-score { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 14px; padding: 12px 16px; border-radius: 10px; background: #e7f4ec; color: #1f7a45; font-size: 15px; }
.wc-score strong { font-size: 24px; }
.wc-ui p { margin: 0; color: var(--ink); font-size: 16px; }

.wc-who { padding-top: 0; }
.wc-who dl { margin: 0; }
.wc-who dl > div { display: grid; grid-template-columns: minmax(10rem, 18rem) 1fr; gap: 8px 48px; padding: 26px 0; border-top: 1px solid var(--line); }
.wc-who dl > div:last-child { border-bottom: 1px solid var(--line); }
.wc-who dt { font: 500 24px/1.3 var(--display); color: var(--ink); }
.wc-who dd { margin: 0; font-size: 18px; color: var(--muted); max-width: 46rem; }

.wc-start { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding: clamp(56px, 7vw, 96px) var(--gutter); background: var(--navy-deep); color: #fff; }
.wc-start h2 { color: #fff; }
.wc-start p { color: #c9cfe6; font-size: 18px; max-width: 42rem; margin-bottom: 28px; }
.wc-start .wc-outline { background: transparent; border-color: rgba(255, 255, 255, .4); }
.wc-start .wc-outline:hover { background: rgba(255, 255, 255, .1); }
.wc-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; font-size: 19px; }
.wc-contact a { color: #fff; }

@media (max-width: 1000px) {
  .wc-hero, .wc-row, .wc-start { grid-template-columns: 1fr; }
  .wc-row:nth-of-type(even) .wc-media { order: 0; }
  .wc-chip { left: 12px; bottom: -24px; }
  .wc-contact { align-items: flex-start; }
}
@media (max-width: 640px) {
  .wc-join { display: none; }
  .wc-who dl > div { grid-template-columns: 1fr; }
  .wc-actions .button { width: 100%; }
}

/* ---------- Website pages rendered by the app: /fees, /programmes, /online-learning (wp-) ---------- */
.wp-page main { background: var(--paper); }
.wp-hero { padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.wp-hero h1 { max-width: 18ch; }
.wp-hero .wc-lead { max-width: 46rem; }
.wp-block { border-bottom: 1px solid var(--line); }
.wp-note { color: var(--muted); font-size: 15px; max-width: 52rem; margin-top: 18px; }
.wp-tbc { color: var(--muted); font-style: italic; }
.wp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.wp-split h2 { font-size: clamp(28px, 2.8vw, 40px); }
.wp-split p { color: var(--muted); font-size: 17px; max-width: 40rem; }

.wp-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.wp-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.wp-table th, .wp-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.wp-table tbody tr:last-child > * { border-bottom: 0; }
.wp-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); background: #fbfaf6; }
.wp-table thead th small { display: block; font-weight: 400; }
.wp-table tbody th { font: 500 20px/1.3 var(--display); color: var(--ink); }
.wp-table td { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.wp-table.compact th, .wp-table.compact td { padding: 14px 18px; }
.wp-table.compact tbody th { font: 600 16px/1.3 var(--sans); }
.wp-pay { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 20px; }
.wp-pay div { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.wp-pay dt { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-pay dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--ink); }

.wp-ticks { list-style: none; margin: 8px 0 20px; padding: 0; display: grid; gap: 12px; }
.wp-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--ink); }
.wp-ticks li svg { flex: none; margin-top: 3px; color: #1f7a45; }
.wp-ticks.muted li svg { color: var(--gold); }

/* What makes us different: numbered rows, not cards */
.wp-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 112px); }
.wp-why li { display: grid; grid-template-columns: 3.25rem 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.wp-why li > svg { display: none; }
.wp-why-n { grid-row: span 2; font: italic 400 26px/1.1 var(--display); color: var(--gold); }
.wp-why h3 { margin: 0 0 8px; font-size: clamp(22px, 2vw, 28px); }
.wp-why p { margin: 0; color: var(--muted); font-size: 17px; max-width: 36rem; }
.wp-dark { background: var(--navy-deep); border-bottom: 0; }
.wp-dark h2, .wp-dark h3 { color: #fff; }
.wp-dark h2 em { color: var(--gold-soft); }
.wp-dark .section-intro > p, .wp-dark .wp-why p { color: #c9cfe6; }
.wp-dark .wp-why li { border-color: rgba(255, 255, 255, .14); }
.wp-dark .eyebrow { color: var(--gold-soft); }

/* Programmes */
.wp-progs { display: grid; }
.wp-prog { display: grid; grid-template-columns: 3.25rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(14rem, .8fr); gap: 18px clamp(24px, 4vw, 64px); padding: 36px 0; border-top: 1px solid var(--line); align-items: start; }
.wp-prog:last-child { border-bottom: 1px solid var(--line); }
.wp-prog h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 10px; }
.wp-prog p { color: var(--muted); font-size: 17px; margin-bottom: 10px; }
.wp-prog h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 0 10px; }
.wp-prog ul, .wp-curricula ul { margin: 0; padding-left: 18px; color: var(--ink); display: grid; gap: 4px; }
.wp-modes { font-size: 15px !important; font-weight: 600; color: var(--blue) !important; }
.wp-prog-side { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.wp-prog-side strong { font-size: 19px; color: var(--ink); }
.wp-curricula { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.wp-curricula h3 { font-size: 21px; margin-bottom: 10px; }
.wp-exams { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.wp-exams p { font-size: 18px; color: var(--muted); max-width: 42rem; }
.wp-exams img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }

/* Online learning */
.wp-modes-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); }
.wp-modes-list div { padding: 26px 0; border-top: 2px solid var(--navy); }
.wp-modes-list dt { display: flex; align-items: center; gap: 12px; font: 500 26px/1.2 var(--display); color: var(--ink); margin-bottom: 10px; }
.wp-modes-list dt svg { color: var(--gold); }
.wp-modes-list dd { margin: 0; color: var(--muted); font-size: 17px; }
.wp-upnext { display: flex; align-items: center; gap: 14px; margin: 6px 0 14px; padding: 14px; border-radius: 12px; background: #f3f6fb; }
.wp-ui-list { list-style: none; margin: 0; padding: 0; }
.wp-ui-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.wp-ui-list b { min-width: 3.25rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.wp-ui-list em { width: 100%; padding-left: calc(3.25rem + 12px); font-style: normal; color: var(--muted); font-size: 14px; }
.wp-figs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.wp-figs span { display: flex; flex-direction: column; padding: 10px 14px; font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); }
.wp-figs span:first-child { border-left: 0; }
.wp-figs b { font-size: 24px; color: var(--ink); }
.wp-av-2 { background: #8a4b22; }
.wp-report-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.wp-report-head span { display: flex; flex-direction: column; }
.wp-report-head small { color: var(--muted); font-size: 14px; }
.wp-report-head svg { color: var(--navy); }
.wp-ui-report table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; }
.wp-ui-report th, .wp-ui-report td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.wp-ui-report th { color: var(--muted); font-weight: 600; font-size: 13px; }
.wp-ui-report p { font-style: italic; color: var(--muted) !important; font-size: 15px; }



@media (max-width: 1000px) {
  .wp-split, .wp-exams, .home-online, .wp-why, .wp-modes-list, .wp-curricula { grid-template-columns: 1fr; }
  .wp-prog { grid-template-columns: 2.5rem 1fr; }
  .wp-prog > div:not(:nth-child(2)) { grid-column: 2; }
}
@media (max-width: 640px) {
  .wp-pay { grid-template-columns: 1fr; }
  .wp-table thead { display: none; }
  .wp-table table, .wp-table tbody, .wp-table tr, .wp-table th, .wp-table td { display: block; width: 100%; white-space: normal; }
  .wp-table tr { padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .wp-table tbody th, .wp-table td { padding: 4px 0; border: 0; }
  .wp-table td[data-label] { display: flex; justify-content: space-between; gap: 16px; }
  .wp-table td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
}

/* ---------- Video: full-bleed bands (open from an inset frame on scroll) and inline clips ---------- */
.media-band { --open: 1; margin: 0; padding: clamp(16px, 3vw, 40px) 0; }
.motion-enabled .media-band { --open: 0; }
.media-frame { position: relative; overflow: hidden; max-width: 1920px; margin: 0 auto; height: clamp(280px, 46vw, 680px); background: #0d1233;
  clip-path: inset(0 calc((1 - var(--open)) * var(--gutter, 24px)) round calc((1 - var(--open)) * 22px)); }
.media-frame video, .media-frame img, .media-inline video { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-band figcaption { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 18px var(--gutter) 0; }
.media-band figcaption p { margin: 0; max-width: 46rem; font: italic 400 clamp(19px, 1.8vw, 26px)/1.4 var(--display); color: var(--ink); }
.media-band figcaption small { color: var(--muted); font-size: 14px; align-self: end; }
.media-toggle { position: absolute; z-index: 2; right: calc((1 - var(--open, 1)) * var(--gutter, 24px) + 16px); bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 0; border-radius: 999px; background: rgba(13, 18, 51, .62); color: #fff; font: 600 14px/1 var(--sans); backdrop-filter: blur(6px); cursor: pointer; }
.media-toggle:hover { background: rgba(13, 18, 51, .82); }
.media-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.media-toggle[aria-label="Play video"]::before { width: 0; height: 0; border-right: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.media-toggle[hidden] { display: none; }
.media-inline { position: relative; overflow: hidden; border-radius: var(--radius); background: #0d1233; }
.media-inline video { aspect-ratio: 4 / 3.2; height: auto; }
@media (prefers-reduced-motion: reduce) { .motion-enabled .media-band { --open: 1; } }

/* ---------- Fees: calculator, steps, promise, FAQ ---------- */
.wp-calc-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.wp-calc-form { display: grid; gap: 10px; padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.wp-calc-form label, .wp-calc-form legend { font-weight: 600; font-size: 15px; color: var(--ink); }
.wp-calc-form select { min-height: 50px; padding: 10px 14px; border: 1px solid #cdd3e2; border-radius: 12px; background: #fff; font-size: 17px; margin-bottom: 10px; }
.wp-calc-form fieldset { border: 0; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wp-calc-form fieldset legend { width: 100%; margin-bottom: 8px; }
.wp-chip { position: relative; }
.wp-chip input { position: absolute; opacity: 0; }
.wp-chip span { display: inline-block; padding: 11px 18px; border: 1px solid #cdd3e2; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; background: #fff; }
.wp-chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.wp-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }
.wp-calc-out { padding: clamp(24px, 3vw, 38px); background: var(--navy-deep); color: #fff; border-radius: 18px; min-height: 100%; }
.wp-calc-big span { display: block; color: #c9cfe6; font-size: 15px; }
.wp-calc-big strong { display: block; font: 500 clamp(40px, 5vw, 64px)/1.05 var(--display); margin: 6px 0; }
.wp-calc-big small { color: #c9cfe6; font-size: 15px; }
.wp-calc-rows { margin: 26px 0 8px; display: grid; }
.wp-calc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.wp-calc-rows dt { color: #c9cfe6; }
.wp-calc-rows dd { margin: 0; text-align: right; font-weight: 700; }
.wp-calc-rows dd small { display: block; font-weight: 400; color: #aab3d4; font-size: 13px; }
.wp-calc-out .wp-note, .wp-calc-tbc { color: #c9cfe6; }
.wp-table td small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.wp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); counter-reset: none; }
.wp-steps li { padding-top: 22px; border-top: 2px solid var(--navy); }
.wp-steps b { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-size: 17px; }
.wp-steps h3 { margin: 14px 0 6px; font-size: 22px; }
.wp-steps p { color: var(--muted); margin: 0; }
.wp-pay-row { margin-top: clamp(32px, 4vw, 56px); }
.wp-pay-row h3 { font-size: 22px; }
.wp-promise { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 112px); align-items: end; padding: clamp(56px, 7vw, 104px) var(--gutter);
  background: linear-gradient(120deg, #1d2455, #2b3576); color: #fff; }
.wp-promise h2 { color: #fff; } .wp-promise h2 em { color: var(--gold-soft); } .wp-promise .eyebrow { color: var(--gold-soft); }
.wp-promise p { color: #d4d9ee; font-size: 18px; max-width: 44rem; margin-bottom: 26px; }
.wp-promise .wc-outline { background: transparent; border-color: rgba(255, 255, 255, .4); }
.wp-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 96px); }
.wp-faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.wp-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-faq summary { cursor: pointer; padding: 18px 0; font: 500 21px/1.35 var(--display); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-faq summary::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 26px; line-height: 1; }
.wp-faq details[open] summary::after { content: "−"; }
.wp-faq details p { color: var(--muted); font-size: 17px; margin: 0 0 18px; max-width: 46rem; }

/* ---------- Programmes: syllabuses and tracking ---------- */
.wp-syl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wp-syl a { display: block; text-decoration: none; font-weight: 600; color: var(--ink); }
.wp-syl a:hover { color: var(--blue); text-decoration: underline; }
.wp-syl b { color: var(--blue); margin-right: 6px; font-variant-numeric: tabular-nums; }
.wp-syl small { display: block; color: var(--muted); font-size: 14px; }
.wp-track-ui { display: grid; gap: 20px; }
.wp-obj li { justify-content: flex-start; }
.wp-obj b { min-width: 3.5rem; color: var(--blue); }
.wp-obj i { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.wp-obj i.ok { color: #1f7a45; } .wp-obj i.dev { color: #8a5c00; }
.wp-signin { margin-top: 22px; color: var(--muted); }
.wp-dsl { padding: clamp(22px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.wp-dsl strong { display: block; font: 500 28px/1.2 var(--display); color: var(--ink); margin: 6px 0; }
.wp-safe li > svg { display: none; }

/* ---------- Home: online section, stats, fees teaser, ethos in navy ---------- */
.home-online { padding: clamp(72px, 9vw, 128px) 0 clamp(64px, 8vw, 112px); background: #fff; }
.home-online-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 112px); align-items: end; padding: 0 var(--gutter) clamp(24px, 3vw, 40px); }
.home-online-head h2 { margin: 0; }
.home-lead { font-size: clamp(18px, 1.4vw, 20px); color: var(--muted); margin-bottom: 24px; }
.home-stats { list-style: none; margin: clamp(32px, 4vw, 56px) var(--gutter) 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-stats li { padding: 26px 24px 26px 0; display: flex; flex-direction: column; gap: 6px; }
.home-stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.home-stats strong { font: 500 clamp(40px, 4.4vw, 60px)/1 var(--display); color: var(--navy); }
.home-stats span { color: var(--muted); font-size: 16px; max-width: 16rem; }
.home-why { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 24px clamp(32px, 6vw, 112px); padding: clamp(48px, 6vw, 88px) var(--gutter) 0; }
.home-why h3 { font-size: clamp(28px, 2.8vw, 40px); margin-top: 6px; }
.fees-teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 112px); align-items: center; }
.fees-teaser p { color: var(--muted); font-size: 18px; max-width: 38rem; margin-bottom: 26px; }
.fees-teaser-figs { margin: 0; display: grid; }
.fees-teaser-figs div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.fees-teaser-figs div:last-child { border-bottom: 1px solid var(--line); }
.fees-teaser-figs dt { color: var(--muted); }
.fees-teaser-figs dd { margin: 0; font: 500 clamp(24px, 2.4vw, 32px)/1 var(--display); color: var(--ink); }
.ethos { background: var(--navy-deep); color: #e4e7f4; }
.ethos h2, .ethos h3 { color: #fff; }
.ethos h2 em { color: var(--gold-soft); }
.ethos .eyebrow { color: var(--gold-soft); }
.ethos-lead { color: #d4d9ee; }
.ethos-verse { border-left-color: var(--gold); }
.ethos-verse p, .ethos-principle { color: #fff; }
.ethos-verse cite { color: #aab3d4; }
.ethos-values li { border-color: rgba(255, 255, 255, .14) !important; }
.ethos-values p { color: #c9cfe6; }

@media (max-width: 1000px) {
  .wp-calc-grid, .wp-promise, .wp-faq, .home-online-head, .home-why, .fees-teaser { grid-template-columns: 1fr; }
  .wp-steps, .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .home-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .wp-steps { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .wp-table td small { display: none; } }

/* Home: a message without a picture */
.home-quote { margin: 0; padding: clamp(40px, 6vw, 88px) var(--gutter); text-align: center; font: 400 clamp(26px, 3vw, 44px)/1.3 var(--display); color: var(--ink); letter-spacing: -.01em; }
.home-quote em { color: var(--blue); }
@media (max-width: 640px) { .wp-table td small { display: none; } }

/* Home promises: heading on top, three columns, no empty space */
.home-why { display: block; }
.home-why > div:first-child { margin-bottom: clamp(16px, 2vw, 28px); }
.home-why .wp-why { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); }
.home-why .wp-why li { grid-template-columns: 2.5rem 1fr; padding: 22px 0; }
.home-why .wp-why h3 { font-size: clamp(20px, 1.6vw, 24px); margin-bottom: 6px; }
.home-why .wp-why p { font-size: 16px; }
.home-why .wp-why-n { font-size: 20px; }
.home-more { text-align: center; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); margin: 0; }
@media (max-width: 1000px) { .home-why .wp-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .home-why .wp-why { grid-template-columns: 1fr; } }

/* Programmes: pick your child's level, then one compact line per programme */
.wp-pick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.wp-pick a { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.wp-pick a:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 18px 32px -24px rgba(19, 26, 66, .55); }
.wp-pick .n { font: italic 400 18px var(--display); color: var(--gold); }
.wp-pick strong { font: 500 clamp(20px, 1.7vw, 25px)/1.2 var(--display); }
.wp-pick small { color: var(--muted); font-size: 14px; }
.wp-pick em { margin-top: auto; padding-top: 10px; font-style: normal; font-weight: 600; font-size: 15px; color: var(--blue); }
.wp-plist { border-top: 1px solid var(--line); }
.wp-pitem { border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.wp-pitem summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1.6fr) minmax(9rem, .8fr) minmax(10rem, .8fr) 2rem; gap: 20px; align-items: center; padding: 24px 0; }
.wp-pitem summary::-webkit-details-marker { display: none; }
.wp-pitem summary:hover .wp-pname { color: var(--blue); }
.wp-pname { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--display); color: var(--ink); }
.wp-pname small { display: block; font: 400 14px/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.wp-pcur { color: var(--muted); font-size: 16px; }
.wp-pmode { font-size: 15px; font-weight: 600; color: var(--blue); }
.wp-pprice { font-weight: 700; color: var(--ink); }
.wp-pchev { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--navy); transition: transform .25s var(--ease); }
.wp-pitem[open] .wp-pchev { transform: rotate(45deg); }
.wp-pbody { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 80px); padding: 0 0 32px; }
.wp-pbody p { color: var(--muted); font-size: 17px; margin-top: 0; }
.wp-pbody h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.wp-pbody ul.plain { margin: 0 0 18px; padding-left: 18px; }
@media (max-width: 1000px) {
  .wp-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wp-pitem summary { grid-template-columns: 1fr auto; }
  .wp-pcur, .wp-pmode { display: none; }
  .wp-pprice { grid-column: 1; font-size: 15px; }
  .wp-pchev { grid-column: 2; grid-row: 1 / span 2; }
  .wp-pbody { grid-template-columns: 1fr; }
}
.wp-why li { align-content: start; }

/* Programmes: tiles choose one panel (no repeated list) */
.wp-hero-pick { border-bottom: 1px solid var(--line); }
.wp-pick a[aria-current] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy), 0 18px 32px -24px rgba(19, 26, 66, .55); }
.wp-pick a[aria-current] em { color: var(--navy); }
.wp-ppanels { margin-top: 20px; }
.wp-ppanel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 96px); padding: clamp(28px, 3.5vw, 44px); background: #fff; border: 1px solid var(--line); border-radius: 20px; scroll-margin-top: 120px; }
.wp-ppanel + .wp-ppanel { margin-top: 16px; }
.js-tabs .wp-ppanel + .wp-ppanel { margin-top: 0; }
.wp-ppanel[hidden] { display: none; }
.wp-plead { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink); margin-top: 0; }
.wp-ppanel h3 { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 10px; }
.wp-ppanel ul.plain { margin: 0 0 24px; padding-left: 18px; }
@media (max-width: 1000px) { .wp-ppanel { grid-template-columns: 1fr; } }
