.inner-page { background: #081425; color: var(--ivory); }
.inner-page.page-policy { background: #f1eadd; color: #293a32; }
.page-policy .inner-header { background: #f1eaddf5; color: #293a32; border-color: #293a3220; box-shadow: 0 5px 15px #293a320b; text-shadow: none; }
.page-policy .page-kicker, .page-policy a:is(:hover,:focus-visible) { color: #8b5132; }
.page-policy h1, .page-policy h2 { text-shadow: none; }
.page-policy .page-lead, .page-policy .review-note { color: #46574b; }
.policy-shell { padding-bottom: 75px; }
.policy-reading { max-width: 780px; }
.policy-section { padding-block: 27px; border-top: 1px solid #293a3226; scroll-margin-top: 105px; }
.page-policy .policy-section h2 { font-size: clamp(24px, 3vw, 36px); }
.policy-section p { margin-top: 15px; font-size: 16px; line-height: 1.75; color: #46574b; }
.policy-section a { color: #8b5132; text-decoration: underline; text-underline-offset: 3px; }
.page-policy .page-actions .action { color: #293a32; border-color: #8b513280; }
.inner-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  justify-items: center;
  min-height: 79px;
  padding: 13px clamp(24px, 5vw, 80px);
  background: #081425ed;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid #f6f0e71a;
  text-shadow: var(--photo-type-shadow);
}
.inner-brand { position: absolute; left: clamp(19px, 4vw, 62px); top: 14px; width: 48px; height: 48px; }
.inner-brand img { display: block; width: 100%; height: 100%; }
.inner-menu { display: none; min-height: 44px; padding-inline: 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.inner-header .nav { gap: clamp(18px, 3.4vw, 55px); }
.inner-header .nav a { text-align: left; }
.page-shell { width: min(100%, 1280px); margin-inline: auto; padding-inline: clamp(24px, 7vw, 112px); }
.reading-width { max-width: 760px; }
.page-intro { padding-block: clamp(48px, 8vw, 100px) clamp(34px, 5vw, 65px); }
.page-kicker { color: var(--amber); font-size: 11px; font-weight: 750; letter-spacing: .23em; text-transform: uppercase; }
.inner-page h1 { margin-block: .19em .2em; font-size: clamp(44px, 8vw, 116px); line-height: .93; letter-spacing: -.06em; text-shadow: var(--photo-type-shadow); }
.page-lead { max-width: 52ch; font-size: clamp(16px, 1.7vw, 22px); line-height: 1.55; color: #f6f0e7d9; }
.page-section { padding-block: clamp(35px, 6vw, 78px); }
.inner-page h2 { font-size: clamp(28px, 4vw, 50px); line-height: 1.06; letter-spacing: -.035em; }
.section-lead { max-width: 58ch; margin-top: 16px; line-height: 1.65; color: #f6f0e7d4; }
.review-note { max-width: 65ch; margin-top: 22px; padding-left: 13px; border-left: 2px solid var(--amber); font-size: 13px; line-height: 1.6; color: #f6f0e7b8; }
.page-inline-link { color: var(--amber); text-decoration: underline; text-underline-offset: 4px; }
.page-inline-link:hover { color: var(--ivory); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 23px; margin-top: 25px; }
.page-actions .action { padding-inline: 25px; }
.paper-surface { background: var(--ivory); color: var(--navy); }
.paper-surface .page-kicker { color: #863d24; }
.paper-surface h2 { text-shadow: var(--paper-type-shadow); }
.paper-surface .section-lead { color: #304158; }
.paper-surface .page-inline-link { color: #863d24; }
.paper-surface :focus-visible { outline-color: #863d24; }
.field-label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 700; }
.field-control {
  display: block;
  width: 100%;
  min-height: 49px;
  padding: 12px 15px;
  border: 1px solid #b0c4d26b;
  border-radius: 7px;
  color: var(--ivory);
  background: #10223a;
  font: inherit;
}
.field-control::placeholder { color: #b9c4d0; }
.story-photo { margin: 0; }
.story-photo img { display: block; width: 100%; height: clamp(230px, 42vw, 540px); object-fit: cover; }
.story-photo figcaption { padding-top: 10px; color: #f6f0e78c; font-size: 11px; }
.story-values { margin-top: 30px; }
.story-values div { padding-block: 23px; border-top: 1px solid #0b1b3536; }
.story-values dt { font-size: 21px; font-weight: 750; }
.story-values dd { margin: 9px 0 0; max-width: 58ch; line-height: 1.65; color: #304158; }
.page-statement { padding-block: clamp(55px, 9vw, 110px); }
.page-statement p { max-width: 22ch; font-size: clamp(30px, 5.5vw, 73px); font-weight: 850; line-height: 1.06; letter-spacing: -.04em; }
.course-photo { display: block; width: 100%; max-height: 460px; object-fit: cover; aspect-ratio: 2.1; border-radius: 14px; margin-top: 29px; }
.topic-list { padding: 0; list-style: none; margin: 25px 0 0; }
.topic-list li { padding-block: 17px; border-top: 1px solid #0b1b3536; line-height: 1.5; }
.topic-list strong { display: block; margin-bottom: 5px; font-size: 18px; }
.practice-example { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--amber); }
.practice-example h3 { margin: 9px 0; font-size: 24px; }
.practice-example p:last-child { max-width: 58ch; line-height: 1.6; color: #f6f0e7d9; }
.admission-picker { margin-top: 28px; max-width: 620px; }
.preparation { padding-top: 25px; }
.preparation h2 { font-size: clamp(27px, 4vw, 45px); }
.preparation ul { margin-top: 20px; padding-left: 21px; max-width: 62ch; }
.preparation li { padding-block: 6px; line-height: 1.6; }
.preparation.is-updated { animation: preparation-change .45s ease; }
@keyframes preparation-change { from { translate: 0 6px; } to { translate: 0 0; } }
.admissions-guide { margin: 0; padding: 0; list-style: none; counter-reset: admissions; }
.admissions-guide li { counter-increment: admissions; padding-block: 27px; border-top: 1px solid #0b1b3536; }
.admissions-guide h3 { font-size: 22px; margin: 0 0 10px; }
.admissions-guide h3::before { content: '0' counter(admissions) ' '; color: #863d24; }
.admissions-guide p { max-width: 60ch; line-height: 1.65; }
.contact-form { max-width: 720px; }
.contact-form .form-field { margin-top: 23px; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-hint { margin-top: 7px; color: #f6f0e7ad; font-size: 12px; line-height: 1.5; }
.draft-result { max-width: 720px; margin-top: 35px; padding-top: 28px; border-top: 1px solid var(--amber); }
.draft-result h2 { margin-bottom: 12px; }
.draft-result textarea { min-height: 240px; margin-top: 18px; }
.draft-status { min-height: 24px; margin-top: 13px; font-size: 13px; color: var(--amber); }
.inner-page .site-footer { margin-top: 0; }
.inner-page .site-footer-inner { width: min(100%, 1056px); }
.page-contact .page-intro h1 { letter-spacing: -.055em; }
.page-contact .page-intro h1 { animation: conversation-focus .85s var(--ease); }
.course-photo { animation: course-opening 1.1s var(--ease); }
.page-reveal { opacity: .35; translate: 0 14px; transition: opacity .75s ease, translate .75s var(--ease); }
.page-reveal.is-revealed { opacity: 1; translate: 0 0; }
@keyframes conversation-focus { from { opacity: .25; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@keyframes course-opening { from { clip-path: inset(0 10% 0 10% round 14px); } to { clip-path: inset(0 round 14px); } }
@media (max-width: 660px) {
  .inner-header { min-height: 67px; justify-items: end; padding: 10px 15px; }
  .inner-brand { top: 11px; left: 17px; width: 43px; height: 43px; }
  .has-page-menu .inner-menu { display: block; }
  .has-page-menu .inner-header .nav { position: absolute; top: 100%; right: 15px; width: min(270px, calc(100vw - 30px)); display: grid; gap: 0; padding: 8px; border: 1px solid #f6f0e737; background: #081425fa; box-shadow: 0 14px 30px #0006; }
  .inner-header .nav a { padding: 3px 16px; }
  .page-shell { padding-inline: 24px; }
  .page-intro { padding-block: 42px 31px; }
  .inner-page h1 { font-size: clamp(40px, 11vw, 66px); }
  .page-actions { gap: 13px; }
}

/* Inner page layouts */
.inner-page:is(.page-course, .page-about, .page-contact, .page-admissions, .page-policy) {
  --paper-ink: var(--meridian-ink);
  --paper-muted: #46574b;
  --paper-accent: #376251;
  background: var(--meridian-cream);
  color: var(--paper-ink);
  color-scheme: light;
}
.inner-page:not(.page-programmes) .inner-header {
  background: color-mix(in srgb, var(--meridian-cream) 96%, transparent);
  color: #293a32;
  border-color: #293a3225;
  box-shadow: 0 3px 12px #293a3210;
  text-shadow: none;
}
.inner-page:not(.page-programmes) .inner-header .nav a:is(:hover, :focus-visible, [aria-current]) { color: #376251; }
.inner-page:not(.page-programmes) :is(.page-lead, .section-lead, .review-note) { color: var(--paper-muted); }
.inner-page:not(.page-programmes) :is(.page-kicker, .page-inline-link) { color: var(--paper-accent); }
.inner-page:not(.page-programmes) h1 { color: var(--meridian-blue); text-shadow: var(--paper-type-shadow); }
.inner-page:not(.page-programmes) .review-note { border-color: var(--paper-accent); }
.inner-page:not(.page-programmes) .site-footer { color-scheme: dark; }
.inner-cta.action {
  --wave-edge: #ffe2be;
  --wave: #f2b878;
  align-self: start;
  justify-self: start;
  min-height: 52px;
  padding: 11px 23px;
  background: #fffaf2;
  color: #293a32;
  border-color: #8a806b;
  text-shadow: none;
  box-shadow: 0 7px 16px #58301920;
}
.inner-cta.action:is(:hover, :focus-visible, :active) { color: #39251d; border-color: #9e6744; }
.inner-page:not(.page-programmes) main :focus-visible { outline-color: #376251; }

.course-opening .page-intro { padding-bottom: clamp(28px, 5vw, 55px); }
.page-course h1 { font-size: clamp(43px, 8vw, 104px); overflow-wrap: anywhere; }
.editorial-photo { margin: 0; }
.editorial-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.course-visual { overflow: hidden; height: clamp(210px, 44vw, 520px); border-radius: 15px; background: #cbbca5; }
.course-visual img { object-position: center 47%; }
.course-learning { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 6vw, 82px); }
.course-learning h2 { font-size: clamp(28px, 3vw, 43px); }
.course-example { padding: clamp(22px, 4vw, 43px); border-radius: 15px; background: var(--meridian-sage); }
.course-example h3 { margin-block: 18px 8px; }
.course-example p { line-height: 1.65; }
.course-next { background: color-mix(in srgb, var(--meridian-sage) 50%, var(--meridian-cream)); }

.admissions-select { padding-top: 12px; }
.page-admissions .paper-surface { background: var(--meridian-sage); color: var(--meridian-blue); }
.page-admissions .draft-status { color: var(--paper-accent); }

.contact-layout { padding-block: clamp(36px, 7vw, 92px); }
.contact-content { max-width: 640px; margin-inline: auto; }
.page-contact .contact-heading h1 { font-size: clamp(43px, 6.5vw, 88px); }
.enquiry { margin-top: 25px; }
.contact-form { display: grid; gap: 14px; }
.contact-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.enquiry .field-label { margin-bottom: 6px; }
.enquiry .field-label span { font-weight: 400; }
.enquiry .field-control, .page-admissions .field-control { background: #fffbf4; border-color: #9a9381; color: #293a32; }
.enquiry .field-control::placeholder { color: #58645d; }
.enquiry textarea { min-height: 95px; resize: vertical; }
.enquiry .form-hint { margin: 0; color: #46574b; }
.enquiry .form-hint a { text-decoration: underline; text-underline-offset: 3px; }
.enquiry .draft-result { border-color: #769787; background: var(--meridian-sage); padding: 20px; border-radius: 10px; }
.enquiry .draft-result textarea { min-height: 120px; margin-top: 0; }
.enquiry .draft-status { color: #46574b; }
.enquiry-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: clamp(17px, 4vw, 36px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--meridian-cream);
  color: #293a32;
  border: 1px solid #b8aa93;
  border-radius: 17px;
  box-shadow: 0 22px 64px #09191255;
  text-shadow: none;
}
.enquiry-dialog[open] { animation: enquiry-enter .24s var(--ease) both; }
.enquiry-dialog::backdrop { background: #101c19a8; backdrop-filter: blur(4px); }
.enquiry-panel-heading { display: flex; align-items: start; gap: 12px; justify-content: space-between; }
.enquiry-panel-heading h2 { color: var(--meridian-blue); font-size: clamp(25px, 4vw, 36px); }
.enquiry-close { min-width: 44px; min-height: 44px; font-size: 27px; border: 1px solid #9a9381; border-radius: 50%; }
.editorial-photo.is-revealed img { animation: editorial-enter .9s var(--ease) both; }
@keyframes editorial-enter { from { clip-path: inset(0 0 13%); opacity: .65; transform: scale(1.035); } to { clip-path: inset(0); opacity: 1; transform: none; } }
@keyframes enquiry-enter { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

.page-policy .policy-section { border-top-color: #37625145; }
.page-policy .policy-section a { color: var(--paper-accent); }
.page-policy .review-note { background: var(--meridian-sage); padding-block: 8px; }

@media (max-width: 660px) {
  .has-page-menu .inner-page:not(.page-programmes) .inner-header .nav { background: var(--meridian-cream); border-color: #293a3230; }
  .course-learning { grid-template-columns: 1fr; }
  .enquiry-dialog { inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; }
}
@media (max-width: 390px) { .contact-field-pair { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .editorial-photo.is-revealed img, .enquiry-dialog[open], .preparation.is-updated { animation: none; }
}
