/* Ministry component system. The homepage is the visual reference, not a content template.
   Families keep their composition; semantic roles share type, spacing and states. */
:root{
 --mm-font:Manrope,Arial,sans-serif;--mm-display:Forum,Georgia,serif;
 --mm-ink:#2b241a;--mm-muted:#6e604d;--mm-paper:#f7f2e8;--mm-sand:#f3e7d4;--mm-line:#e6d8c1;--mm-link:#936322;
 --mm-gold:linear-gradient(115deg,#edcd83,#ddb45c);--mm-button-fill:linear-gradient(115deg,#edcd83,#ddb45c);--mm-on-gold:#43321b;
 --mm-gutter:80px;--mm-content:1280px;--mm-section:82px;--mm-gap:24px;--mm-split-gap:64px;
 --mm-h1:84px;--mm-h2:60px;--mm-h3:30px;--mm-card-title:29px;--mm-body:16px;--mm-card-copy:14px;
 --mm-radius:16px;--mm-photo-radius:20px;--mm-card-pad:28px;--mm-window-pad:32px;
 --mm-button-height:56px;--mm-button-size:14px;--mm-control:46px;--mm-field:52px;
 --mm-copy-action-gap:24px;--mm-heading-copy-gap:22px;--mm-card-copy-gap:16px;
}
@media(max-width:1199px){:root{--mm-gutter:40px;--mm-h1:76px;--mm-h2:48px;--mm-section:64px;--mm-split-gap:36px}}
@media(max-width:759px){:root{--mm-gutter:20px;--mm-h1:clamp(38px,11.3vw,46px);--mm-h2:38px;--mm-h3:26px;--mm-card-title:26px;--mm-body:15px;--mm-section:54px;--mm-gap:16px;--mm-split-gap:28px;--mm-card-pad:20px;--mm-window-pad:20px;--mm-button-height:50px;--mm-button-size:13px;--mm-control:44px}}

#root.mm-system{font-family:var(--mm-font);color:var(--mm-ink)}
#root.mm-system :is(main,.cc-page,.mf-page,.source-page){font-family:var(--mm-font);font-size:var(--mm-body);line-height:1.65}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(p,li,label,small,summary,figcaption,input,select,textarea,button,a){font-family:var(--mm-font)}
#root.mm-system main :is(h1,h2,h3,h4),.modal-backdrop :is(h1,h2,h3,h4),.fp-dialog :is(h1,h2,h3,h4){font-family:var(--mm-display);font-weight:400;letter-spacing:-.012em}
#root.mm-system main h1{font-size:var(--mm-h2);line-height:1.06}
#root.mm-system main h2{font-size:var(--mm-h2);line-height:1.06;margin:0 0 22px}
#root.mm-system main h3{font-size:var(--mm-h3);line-height:1.13}
#root.mm-system main h4{font-size:23px;line-height:1.2}
#root.mm-system main :is(h1,h2,h3,h4)>a{font:inherit;letter-spacing:inherit}
#root.mm-system main p:not([data-mm-component]){line-height:1.65}
#root.mm-system main :is(.cc-lead,.home-lead){font-size:18px;line-height:1.6;max-width:65ch}
#root.mm-system :is([data-mm-component="kicker"],.home-kicker,.cc-kicker,.mf-kicker){font:500 11px/1.5 var(--mm-font)!important;letter-spacing:.12em!important;text-transform:uppercase;margin:0 0 16px;color:var(--mm-link)}
#root.mm-system [data-mm-component="section"]{padding-block:var(--mm-section)}
#root.mm-system [data-mm-component="container"],#root.mm-system :is(.mm-header-inner,.mm-offer-inner),#root.mm-system footer.mm-shared-footer>.container{width:min(calc(100% - var(--mm-gutter)*2),var(--mm-content));max-width:var(--mm-content);padding-inline:0;margin-inline:auto}
#root.mm-system [data-mm-component="split"]{column-gap:var(--mm-split-gap);row-gap:28px;align-items:center}
#root.mm-system [data-mm-component="grid"]{gap:var(--mm-gap);align-items:stretch}
#root.mm-system :is(.home-section-head,.cc-heading,.mf-heading){gap:28px var(--mm-split-gap);margin-bottom:32px}
#root.mm-system :is(.home-section-head,.cc-heading,.mf-heading) :is(h2,h3){margin-bottom:0}
#root.mm-system :is(.home-section-head,.cc-heading,.mf-heading)>p{font-size:14px;line-height:1.65}

/* Content heroes: same height, text axis and hierarchy; artwork remains page-specific. */
#root.mm-system[data-mm-hero-page]{padding-top:var(--mm-promo-space,49px)!important}
#root.mm-system[data-mm-hero-page] .mm-header-shell:not(.is-solid):not(.is-menu-open) .mm-site-header{background:transparent;color:#fff9ee;border-bottom-color:#eed8b529;box-shadow:none}
#root.mm-system[data-mm-hero-page] .mm-header-shell:not(.is-solid):not(.is-menu-open) :is(.mm-nav-direct,.mm-nav-group>summary):hover{color:#f3d39b}
#root.mm-system [data-mm-component="hero"]{position:relative;isolation:isolate;display:flex;align-items:center;min-height:890px;padding:0!important;overflow:hidden;color:#fff7e9;background:#29251e}
#root.mm-system [data-mm-component="hero-copy"]{position:relative;z-index:2;padding-block:180px 130px!important;min-width:0;width:min(calc(100% - var(--mm-gutter)*2),var(--mm-content));margin-inline:auto}
#root.mm-system [data-mm-component="hero-copy"][data-mm-contained="true"]{width:100%;margin-inline:0}
#root.mm-system [data-mm-component="hero"] h1{font:400 var(--mm-h1)/.98 var(--mm-display);letter-spacing:-.012em;max-width:700px;margin:0 0 25px;text-wrap:balance;color:inherit;overflow-wrap:normal;hyphens:none}
#root.mm-system [data-mm-component="hero-copy"]>p:not([data-mm-component="kicker"]):not([data-mm-component="breadcrumb"]){font:400 18px/1.5 var(--mm-font);max-width:560px;margin:0 0 24px;color:#fff7e9}
#root.mm-system [data-mm-component="hero"] [data-mm-component="kicker"]{color:#e7c88f;margin:0 0 16px!important;max-width:700px}
#root.mm-system [data-mm-component="hero"] [data-mm-component="kicker"]::before{display:none!important}
#root.mm-system [data-mm-component="breadcrumb"]{display:block;font:400 12px/1.5 var(--mm-font);letter-spacing:normal;margin:0 0 28px;padding:0;border:0;color:inherit;opacity:.8}
#root.mm-system [data-mm-component="hero"] :is(.home-actions,.cc-actions,.mf-actions,.actions){display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:28px 0 0}
#root.mm-system [data-mm-component="hero-copy"] .home-cover-meta{font-size:20px!important}
#root.mm-system [data-mm-component="hero"] .home-cover-caption{left:0;right:0;bottom:30px;font:400 10px/1.5 var(--mm-font)}
#root.mm-system [data-mm-component="hero"] .home-cover-caption [data-mm-component="container"]{padding-left:64px;max-width:var(--mm-content);width:min(calc(100% - var(--mm-gutter)*2),var(--mm-content))}
#root.mm-system .home-cover-caption.container{padding-left:64px!important}
#root.mm-system .mm-hero-play{position:absolute;inset:auto auto 24px max(var(--mm-gutter),calc((100% - var(--mm-content))/2));z-index:5;display:grid;place-items:center;width:var(--mm-control);height:var(--mm-control);min-width:var(--mm-control);min-height:var(--mm-control);padding:0;margin:0;border:1px solid #f7e7bd99;border-radius:50%;background:#30291de6;color:white;cursor:pointer;line-height:0;transform:none;box-shadow:0 3px 16px #20160c26}
.mm-hero-play>svg{display:block;width:22px;height:22px;margin:0}
#root.mm-system [data-mm-component="hero"]::before,#root.mm-system [data-mm-component="hero"]::after{pointer-events:none}
#root.mm-system [data-mm-component="hero"] .cc-hero-video{pointer-events:none}
@media(max-width:1199px){#root.mm-system [data-mm-component="hero"]{min-height:820px}#root.mm-system [data-mm-component="hero-copy"]{padding-block:170px 120px!important}}
@media(max-width:759px){
 #root.mm-system [data-mm-component="hero"]{min-height:740px;align-items:center}
 #root.mm-system [data-mm-component="hero-copy"]{padding-block:140px 110px!important;width:calc(100% - 40px);max-width:none}
 #root.mm-system [data-mm-component="hero"] h1{max-width:100%;margin-bottom:22px;line-height:1.03}
 #root.mm-system [data-mm-component="hero-copy"]>p:not([data-mm-component="kicker"]):not([data-mm-component="breadcrumb"]){font-size:15px;line-height:1.55;margin-bottom:20px;max-width:100%}
 #root.mm-system [data-mm-component="hero"] [data-mm-component="kicker"]{font-size:10px!important;letter-spacing:.1em!important}
 #root.mm-system [data-mm-component="hero"] [data-mm-component="breadcrumb"]{font-size:11px;margin-bottom:24px}
 #root.mm-system [data-mm-component="hero"] :is(.home-actions,.cc-actions,.mf-actions,.actions){flex-direction:column;align-items:stretch;gap:12px;margin-top:24px;max-width:390px}
 #root.mm-system [data-mm-component="hero"] :is(.home-actions,.cc-actions,.mf-actions,.actions)>*{width:100%;max-width:none}
 #root.mm-system [data-mm-component="hero-copy"] .home-cover-meta{font-size:16px!important}
 #root.mm-system [data-mm-component="hero"] .home-cover-caption{bottom:24px;font-size:8px}
}

/* Buttons share a role, not the layout of the surrounding page. */
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="button"],.home-button,.cc-btn,.mf-button,.button):not(.close){display:inline-flex!important;align-items:center!important;justify-content:center;gap:18px;box-sizing:border-box;min-height:var(--mm-button-height);max-width:100%;padding:14px 24px;border:1px solid transparent;border-radius:var(--mm-radius);background:var(--mm-button-fill);color:var(--mm-on-gold);font:600 var(--mm-button-size)/1.5 var(--mm-font)!important;letter-spacing:normal;text-align:center;text-decoration:none;cursor:pointer;box-shadow:0 5px 18px #402b1012;white-space:normal;overflow-wrap:normal}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="button"],.home-button,.cc-btn,.mf-button,.button):not(.close)::after{content:""!important;display:block!important;flex:0 0 20px;width:20px!important;height:20px!important;margin:0!important;padding:0!important;border:0!important;background:currentColor!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 18 18 6M6 6h12v12'/%3E%3C/svg%3E") center/20px no-repeat;transform:none!important}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(.home-outline,.secondary,.mf-button-outline,.mf-button-secondary,[data-mm-variant="secondary"]):is([data-mm-component="button"],.home-button,.cc-btn,.mf-button,.button){background:transparent;color:var(--mm-ink);border-color:#c7ad7f;box-shadow:none}
#root.mm-system [data-mm-component="hero"] :is(.home-outline,.secondary,.mf-button-outline,.mf-button-secondary,[data-mm-variant="secondary"]){color:#fff7e9;border-color:#e9d5ac80}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="button"],.home-button,.cc-btn,.mf-button,.button):not(.close):hover{filter:brightness(1.045);text-decoration:none}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(button,a,summary,input,select,textarea):focus-visible{outline:2px solid #ac7c30;outline-offset:4px}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) button:disabled{cursor:not-allowed;opacity:.45;box-shadow:none}
#root.mm-system :is(.mm-ticket-button,.mm-mobile-phone){font-family:var(--mm-font);border-radius:var(--mm-radius);background:var(--mm-button-fill);color:var(--mm-on-gold)}
#root.mm-system footer.mm-shared-footer .button{min-height:48px;font-size:12px!important;padding:12px 20px;gap:12px}
#root.mm-system footer.mm-shared-footer .button::after{width:18px!important;height:18px!important;flex-basis:18px;mask-size:18px}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="text-link"],.home-link,.cc-link,.text-link,.mf-link,.mm-dialog-back){font:400 14px/1.5 var(--mm-font)!important;color:var(--mm-link);text-decoration:none;letter-spacing:normal;border:0;text-underline-offset:4px}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="text-link"],.home-link,.cc-link,.text-link,.mf-link,.mm-dialog-back):hover{text-decoration:underline}
#root.mm-system :is([data-mm-component="tabs"],.cc-filters,.mf-filter) button{min-height:44px;padding:10px 18px;border:1px solid var(--mm-line);border-radius:12px;background:#fffaf1;color:var(--mm-ink);font:500 13px/1.4 var(--mm-font)}
#root.mm-system :is([data-mm-component="tabs"],.cc-filters,.mf-filter) button:is([aria-selected="true"],[aria-pressed="true"]){background:#ead6a4;border-color:#b48a43;color:#49371d}

/* Card families retain image/story/art layouts; repeated text and action areas align. */
#root.mm-system [data-mm-component="card"]{box-sizing:border-box;min-width:0;padding:var(--mm-card-pad);border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:#fff}
#root.mm-system [data-mm-component="card"]:not([data-mm-layout="art-split"]){display:flex;flex-direction:column;align-items:stretch}
#root.mm-system [data-mm-component="card"] :is(h2,h3){font:400 var(--mm-card-title)/1.13 var(--mm-display);letter-spacing:-.012em;margin:0 0 16px}
#root.mm-system [data-mm-component="card"] p:not([data-mm-component="kicker"]):not([data-mm-component="price"]),#root.mm-system [data-mm-component="card"] li{font:400 var(--mm-card-copy)/1.65 var(--mm-font)}
#root.mm-system [data-mm-component="card"]>p{margin:0 0 18px}
#root.mm-system [data-mm-component="card"]>:is(.home-button,.cc-btn,.mf-button,.button,.home-link,.cc-link,.text-link):last-child{margin-top:auto;align-self:stretch}
#root.mm-system [data-mm-component="card"]>:is(.home-actions,.cc-actions,.mf-actions){margin-top:auto;padding-top:20px}
#root.mm-system [data-mm-component="card"].is-selected{border-color:#b18a4b;box-shadow:0 0 0 2px #b18a4b22}
#root.mm-system [data-mm-component="card"]:is(.cc-featured,.is-featured){background:#f3e7d4}
#root.mm-system [data-mm-component="price"]{font:400 42px/1.12 var(--mm-display)!important;letter-spacing:-.012em;color:#b2873c;margin:12px 0 22px}
#root.mm-system [data-mm-component="illustration"]{width:96px;height:96px!important;max-width:100%;object-fit:contain!important;object-position:center!important;background:transparent!important;border:0!important;border-radius:0!important;flex:none}
#root.mm-system [data-mm-component="photo-card"]{display:flex;flex-direction:column;min-width:0}
#root.mm-system [data-mm-component="photo-card"]>h3,#root.mm-system [data-mm-component="photo-card"]>div>h3{font:400 var(--mm-card-title)/1.13 var(--mm-display);letter-spacing:-.012em;margin:22px 0 14px}
#root.mm-system [data-mm-component="photo-card"]>p,#root.mm-system [data-mm-component="photo-card"]>div>p{font:400 var(--mm-card-copy)/1.65 var(--mm-font);margin:0 0 18px}
#root.mm-system [data-mm-component="photo-card"]>:is(.home-link,.cc-link,.text-link,.home-button,.cc-btn,.mf-button):last-child{margin-top:auto;padding-top:12px}
#root.mm-system [data-mm-component="card-photo"]{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;object-position:var(--photo-safe-position,50% 42%);border-radius:var(--mm-photo-radius);overflow:hidden}
#root.mm-system img[data-mm-component="card-photo"]{height:auto}
#root.mm-system [data-mm-component="card-photo"] img{width:100%;height:100%!important;object-fit:cover}
#root.mm-system :is(.home-photo-cards,.mf-three,.mf-four,.cc-grid,.mf-value-grid,.home-courses,.fp-price-grid,.mf-price-grid){align-items:stretch}

/* Fields and disclosures have one vocabulary across all templates. */
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is([data-mm-component="form"],.cc-form,.mf-form,.mf-request,.fp-request-form,.request-form){gap:20px;padding:var(--mm-card-pad);border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:#fff;color:var(--mm-ink)}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) form label{font:500 13px/1.5 var(--mm-font);color:var(--mm-muted)}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),select,textarea){box-sizing:border-box;width:100%;min-width:0;min-height:var(--mm-field);height:var(--mm-field);padding:13px 14px;border:1px solid #d9cbb4;border-radius:12px;background:#fff;color:var(--mm-ink);font:400 16px/1.5 var(--mm-font);box-shadow:none;margin:6px 0 0}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) textarea{height:auto!important;min-height:110px;resize:vertical}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) textarea{min-height:110px!important}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input,select,textarea){scroll-margin-top:calc(var(--mm-promo-space,49px) + 120px)}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input,select,textarea):user-invalid{border-color:#a13e31;box-shadow:0 0 0 1px #a13e31}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input,select,textarea):focus{border-color:#ad813f}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input,select,textarea)[aria-invalid="true"]{border-color:#a13e31;box-shadow:0 0 0 1px #a13e31}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input,select,textarea):disabled{background:#f2eee7;color:#81786b;cursor:not-allowed}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(input[type="checkbox"],input[type="radio"]){width:20px;height:20px;min-width:20px;min-height:20px;padding:0;margin:2px 0 0;accent-color:#a87c35;flex:none}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) form label:has(input[type="checkbox"]){display:flex;align-items:flex-start;gap:12px;font:400 13px/1.55 var(--mm-font);grid-column:1/-1}
:is(#root.mm-system,.modal-backdrop,.fp-dialog) :is(.cc-error,.fp-error,[role="alert"]){font-family:var(--mm-font)}
#root.mm-system main [data-mm-component="disclosure"]{padding:0;border:0;border-top:1px solid var(--mm-line);border-radius:0;background:transparent}
#root.mm-system main [data-mm-component="disclosure"]>summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:64px;padding:20px 0!important;margin:0;font:500 15px/1.5 var(--mm-font);color:var(--mm-ink);list-style:none;cursor:pointer}
#root.mm-system main [data-mm-component="disclosure"]>summary::after{content:""!important;position:static;display:block!important;flex:0 0 32px;width:32px!important;height:32px!important;padding:0;margin:0;border:1px solid #d9c5a0!important;border-radius:50%;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23966f34' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") center/20px no-repeat!important;transform:none!important;rotate:0deg;mask:none!important}
#root.mm-system main [data-mm-component="disclosure"][open]>summary::after{rotate:180deg}
#root.mm-system main [data-mm-component="disclosure"]>summary::-webkit-details-marker{display:none}
#root.mm-system main [data-mm-component="disclosure"]>p,#root.mm-system main [data-mm-component="disclosure"]>div{font:400 var(--mm-body)/1.65 var(--mm-font);margin:0;padding:0 48px 24px 0;color:var(--mm-muted)}

/* Same window chrome, with explicit content sizes instead of unrelated themes. */
.modal-backdrop{background:rgba(35,27,18,.72)!important;font-family:var(--mm-font)}
.modal-backdrop{box-sizing:border-box;padding:16px!important;align-items:center!important;overflow:hidden!important}
.modal-backdrop>.modal-content{box-sizing:border-box;margin:0!important;max-height:calc(100dvh - 32px)!important}
.modal-backdrop>.modal-content,.fp-dialog{background:#fbf6ed!important;color:var(--mm-ink)!important;border-radius:24px!important;border:1px solid #e5d5b8;box-shadow:0 24px 70px #20170d33;font:400 var(--mm-body)/1.65 var(--mm-font)}
.modal-backdrop>.modal-content:focus{outline:none}
.modal-backdrop:not(.gradebook-modal):not(.video-lightbox):not(.mm-photo-modal)>.modal-content{padding:var(--mm-window-pad)!important;width:min(1100px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
.modal-backdrop :is(h1,h2),.fp-dialog :is(h1,h2){font:400 36px/1.1 var(--mm-display)!important;letter-spacing:-.012em;margin-bottom:22px}
.modal-backdrop h3,.fp-dialog h3{font:400 27px/1.15 var(--mm-display);letter-spacing:-.012em}
.modal-backdrop p,.fp-dialog p{font-family:var(--mm-font);line-height:1.65}
.modal-backdrop .modal-tools .close,.fp-dialog-close{display:grid!important;place-items:center!important;grid-template:1fr/1fr!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:1px solid #d6c3a1!important;border-radius:50%!important;background:#eee1c8!important;color:#61451f!important;line-height:0;box-shadow:none}
.modal-backdrop .modal-tools{right:20px!important;top:20px!important}
.modal-backdrop:not(.mm-photo-modal):not(.video-lightbox):not(.gradebook-modal)>.modal-content>.modal-tools{position:sticky;top:0!important;right:0!important;width:44px;height:0;margin-left:auto}
.fp-dialog-close{right:20px!important;top:20px!important}
.modal-backdrop:not(.gradebook-modal) :is(.video-window>h2,.mm-programme-layout h1,.mm-programme-layout h2,.mm-faculty-copy h2),.fp-dialog>h2{padding-right:52px}
.modal-backdrop .photo-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;font:400 14px/1.5 var(--mm-font);color:var(--mm-ink)}
.modal-backdrop .photo-controls button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 24px;border:1px solid #c7ad7f;border-radius:16px;background:transparent;color:var(--mm-ink);font:500 14px/1.5 var(--mm-font)}
.fp-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px);padding:var(--mm-window-pad)!important;overflow:auto}
.fp-dialog::backdrop{background:rgba(35,27,18,.72);backdrop-filter:blur(8px)}
.fp-dialog .home-kicker{padding-right:52px}
.fp-dialog .home-kicker::before{display:none!important}
#root.mm-system .fp-dialog>.fp-price{font:400 36px/1.12 var(--mm-display);color:#a57b38;margin:12px 0 22px}
.modal-backdrop .mm-dialog-back{margin-bottom:24px;padding-right:50px}
.gradebook-modal .book-controls .button{min-height:44px!important;font-size:12px!important;padding:10px 16px!important}
.gradebook-modal .book-controls .button::after{display:none!important}
.gradebook-modal .book-heading h2{font-size:30px!important}
@media(max-width:759px){
 #root.mm-system [data-mm-component="price"]{font-size:36px!important}
 #root.mm-system [data-mm-component="illustration"]{width:80px;height:80px!important}
 #root.mm-system [data-mm-component="split"]{grid-template-columns:minmax(0,1fr)}
 #root.mm-system [data-mm-component="hero-copy"]{margin-inline:auto}
 #root.mm-system main :is(.cc-lead,.home-lead){font-size:16px}
 #root.mm-system main [data-mm-component="disclosure"]>summary{font-size:14px;gap:16px}
 .modal-backdrop :is(h1,h2),.fp-dialog :is(h1,h2){font-size:28px!important;margin-bottom:18px}
 .modal-backdrop h3,.fp-dialog h3{font-size:24px}
 .modal-backdrop .modal-tools{right:16px!important;top:16px!important}
 .fp-dialog-close{right:16px!important;top:16px!important}
 .gradebook-modal .book-heading h2{font-size:24px!important}
}

/* Editorial and service templates have purposeful hierarchy, not a video-hero disguise. */
#root.mm-system[data-mm-template="article"] main h1{font:400 clamp(38px,4.2vw,60px)/1.1 var(--mm-display);max-width:1000px}
#root.mm-system[data-mm-template="article"] main :is(.prose,.source-page-content,.article-body){font-size:17px;line-height:1.75;max-width:75ch}
#root.mm-system[data-mm-template="article"] main h2{font-size:36px;line-height:1.15;margin:36px 0 20px}
#root.mm-system[data-mm-template="article"] main h3{font-size:28px;line-height:1.2;margin:28px 0 16px}
#root.mm-system[data-mm-template="article"] main :is(.source-copy,.source-section) :is(p,li){font:400 17px/1.75 var(--mm-font)}
#root.mm-system[data-mm-template="article"] main :is(div.source-copy,.source-section){font:400 17px/1.75 var(--mm-font)}
@media(max-width:759px){#root.mm-system[data-mm-template="article"] main h2{font-size:30px}#root.mm-system[data-mm-template="article"] main h3{font-size:25px}#root.mm-system[data-mm-template="article"] main :is(.source-copy,.source-section) :is(p,li){font-size:16px}}
#root.mm-system[data-mm-template="document"] main h1{font-size:clamp(36px,3.6vw,52px);line-height:1.12}
#root.mm-system[data-mm-template="document"] main h2{font-size:32px;line-height:1.18}
#root.mm-system[data-mm-template="document"] main h3{font-size:25px}
#root.mm-system[data-mm-template="newspaper"] main .masthead{font-family:var(--mm-display);font-size:clamp(44px,7vw,94px)}
@media(prefers-reduced-motion:reduce){.mm-hero-play{transition:none}}

/* Explicit variants: they share tokens without flattening the authored composition. */
#root.mm-system [data-mm-component="card"].featured{background:#30271d;color:#fff7e9;border-color:#705d40}
#root.mm-system [data-mm-component="card"].featured :is(p,dt,dd,li){color:#fff1d8}
#root.mm-system [data-mm-component="card"].featured :is([data-mm-component="kicker"],[data-mm-component="price"],.home-link){color:#e7c88f}
#root.mm-system [data-mm-component="card"].featured dl>div{border-color:#e9d5ac33}
#root.mm-system [data-mm-component="disclosure"]>summary{font:500 15px/1.5 var(--mm-font)!important}
#root.mm-system .cc-blogger{display:flex;flex-direction:column;border-radius:var(--mm-radius);border:1px solid var(--mm-line);background:white;overflow:hidden;min-width:0}
#root.mm-system .cc-blogger-body{padding:var(--mm-card-pad);display:flex;flex-direction:column;flex:1}
#root.mm-system .cc-blogger h3{font:400 var(--mm-card-title)/1.13 var(--mm-display);margin:0 0 16px}
#root.mm-system .cc-blogger-body>p{font:400 14px/1.65 var(--mm-font)}
#root.mm-system .cc-blogger-body>.cc-btn{margin-top:auto;align-self:stretch}
#root.mm-system .cc-blogger [data-mm-component="disclosure"]>summary{font-size:13px!important;gap:12px}
#root.mm-system .cc-blogger [data-mm-component="disclosure"]>p{padding-right:0;font-size:14px}
#root.mm-system :is(.home-house-link,.mf-faculty-grid>a){border-radius:var(--mm-radius);border-color:var(--mm-line)}
#root.mm-system :is(.home-house-link,.mf-faculty-grid>a) h3{font:400 var(--mm-card-title)/1.13 var(--mm-display)}
#root.mm-system :is(.home-house-link,.mf-faculty-grid>a) p{font:400 14px/1.65 var(--mm-font)}
#root.mm-system :is(.fp-editorial-list,.home-photo-cards,.cc-grid,.mf-value-grid)>article{min-width:0}
#root.mm-system :is(.cc-offer-row,.mf-notice,.home-note,.mm-detail-note){border-radius:var(--mm-radius)}
#root.mm-system .cc-offer-row>img[data-mm-component="illustration"]{width:150px;height:150px!important}
.modal-backdrop :is(.mm-programme>header,.mm-quiz>h2,.mm-recall>h2){padding-right:52px}
.modal-backdrop :is(.mm-related button,.mm-quiz label,.mm-recall label,.mm-faculty-chip){border-radius:12px;border-color:var(--mm-line);background:#fffcf7;color:var(--mm-ink);font:400 14px/1.55 var(--mm-font);min-height:50px}
.modal-backdrop :is(.mm-quiz label.selected,.mm-related button[aria-pressed="true"]){background:#eee0c2;border-color:#ac8038}
.modal-backdrop .mm-detail-layout{gap:var(--mm-gap)}
.modal-backdrop :is(.mm-dialog-actions,.mm-related){gap:12px}
.modal-backdrop :is(.mm-back,.mm-text-button){font:400 14px/1.5 var(--mm-font);color:var(--mm-link)}
.modal-backdrop :is(.mm-detail-copy>p,.mm-detail-copy li,.mm-faculty-copy>p:not(.mm-motto):not(.mm-eyebrow):not(.mm-detail-note),.mm-quiz>p:not(.mm-eyebrow),.mm-recall>p),.fp-dialog>p:not(.home-kicker):not(.fp-price),.fp-dialog li{font:400 var(--mm-body)/1.65 var(--mm-font)}
.modal-backdrop .mm-detail-copy>.mm-detail-lead{font-size:18px}
@media(max-width:759px){.modal-backdrop .mm-detail-copy>.mm-detail-lead{font-size:16px}}
:is(#root.mm-system,.gradebook-modal) .record-book.is-fitted .book-heading h2{font:400 28px/1.08 var(--mm-display)!important;margin:0!important;padding:0;letter-spacing:-.012em}
:is(#root.mm-system,.gradebook-modal) .record-book.is-fitted :is(.book-controls>.button,.book-helper-entry>.button){min-height:44px!important;height:44px;padding:9px 16px!important;font:600 12px/1.3 var(--mm-font)!important;gap:12px}
:is(#root.mm-system,.gradebook-modal) .record-book.is-fitted .book-controls>.button::after{display:none!important}
@media(max-width:759px){
 #root.mm-system [data-mm-component="disclosure"]>summary{font-size:14px!important}
 #root.mm-system .cc-addon-grid .cc-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:8px 20px}
 #root.mm-system .cc-addon-grid .cc-card>img{grid-row:span 3;margin:0}
 #root.mm-system .cc-addon-grid .cc-card>label{grid-column:2}
 #root.mm-system .mf-rich-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px 20px;align-items:start}
 #root.mm-system .mf-rich-card>img{grid-row:span 2;margin:0}
 #root.mm-system .mf-rich-card>h3{margin:0}
 #root.mm-system .mf-rich-card>p{grid-column:2;margin:0}
 #root.mm-system .cc-offer-row>img[data-mm-component="illustration"]{width:80px;height:80px!important}
 :is(#root.mm-system,.gradebook-modal) .record-book.is-fitted .book-heading h2{font-size:24px!important}
 .modal-backdrop .mm-dialog-actions{align-items:stretch}
}
@media(max-width:559px){#root.mm-system .cc-bloggers{grid-template-columns:minmax(0,1fr)}#root.mm-system .cc-blogger>img{aspect-ratio:4/3;object-fit:cover;object-position:50% 28%;height:auto}}
@media(max-width:359px){#root.mm-system .mf-rich-card{grid-template-columns:62px minmax(0,1fr);gap:12px}#root.mm-system .mf-rich-card>img{width:62px;height:62px!important}#root.mm-system .cc-addon-grid .cc-card{grid-template-columns:minmax(0,1fr)}#root.mm-system .cc-addon-grid .cc-card>label{grid-column:1}}
#root.mm-system .summary-card .price{font:400 36px/1.12 var(--mm-display);letter-spacing:-.012em}
#root.mm-system [data-mm-component="button"][aria-pressed="true"]{border-color:#956d2f;box-shadow:0 0 0 2px #a8783622}
#root.mm-system [data-mm-component="tabs"] button{font:500 13px/1.4 var(--mm-font)!important;text-transform:none;letter-spacing:normal;border-radius:12px}
#root.mm-system :is(.home-craft-r8 article,.fp-editorial-list article,.home-booking-facts article,.usp,.mf-journey-card,.location-card) h3{font:400 var(--mm-card-title)/1.13 var(--mm-display);letter-spacing:-.012em}
#root.mm-system :is(.home-craft-r8 article,.fp-editorial-list article,.home-booking-facts article,.usp,.mf-journey-card,.location-card) p{font:400 var(--mm-card-copy)/1.65 var(--mm-font)}
#root.mm-system :is(.usp,.mf-journey-card,.location-card){border-radius:var(--mm-photo-radius);overflow:hidden}
#root.mm-system .fp-grad-card.is-gold{background:var(--mm-sand);color:var(--mm-ink);border-color:#c4a065}
#root.mm-system :is(.form-panel,.cc-price-panel,.summary-card){border-radius:var(--mm-radius)}
#root.mm-system :is(.cc-price-panel,.summary-card) h3{font:400 var(--mm-card-title)/1.13 var(--mm-display)}
#root.mm-system .p-pass-number{font-family:var(--mm-display);font-weight:400;line-height:1}
#root.mm-system .cc-offer-row{grid-template-columns:190px minmax(0,1fr) auto}
#root.mm-system .cc-offer-row h2{font:400 36px/1.13 var(--mm-display);margin:0 0 16px}
#root.mm-system .cc-offer-row>div{min-width:0}
@media(max-width:1100px){#root.mm-system .cc-offer-row{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:759px){#root.mm-system .cc-offer-row{grid-template-columns:80px minmax(0,1fr);gap:20px}#root.mm-system .cc-offer-row h2{font-size:var(--mm-card-title)}}
@media(max-width:359px){#root.mm-system .cc-offer-row{grid-template-columns:64px minmax(0,1fr);gap:16px}#root.mm-system .cc-offer-row>img[data-mm-component="illustration"]{width:64px;height:64px!important}}
@media(max-height:600px){:is(#root.mm-system,.gradebook-modal) .record-book.is-fitted .book-heading h2{font-size:22px!important}:is(#root.mm-system,.gradebook-modal) .record-book.is-fitted :is(.book-controls>.button,.book-helper-entry>.button){min-height:36px!important;height:36px;padding:7px 12px!important;font-size:11px!important}}
#root.mm-system .p-select::after{display:none!important}
:is(#root.mm-system,.modal-backdrop) :is(.mm-motto,.mm-faculty-motto){font:400 27px/1.2 var(--mm-display);letter-spacing:-.012em;color:#9e783c}
:is(#root.mm-system,.modal-backdrop) :is(.wz-video-play,.wz-video-sound){width:var(--mm-control)!important;height:var(--mm-control)!important;min-width:var(--mm-control)!important;min-height:var(--mm-control)!important;padding:0!important}
#root.mm-system .inclusion-card h3{font:400 20px/1.2 var(--mm-display);margin:16px 0 0}
@media(max-width:759px){#root.mm-system[data-mm-template="article"] main :is(div.source-copy,.source-section){font-size:16px}}
@media(max-width:559px){#root.mm-system .inclusion-cards{grid-template-columns:minmax(0,1fr)}#root.mm-system .inclusion-card{display:grid!important;grid-template-columns:72px minmax(0,1fr);gap:16px;padding:16px;align-items:center}#root.mm-system .inclusion-card>img{width:72px;height:72px!important;margin:0}#root.mm-system .inclusion-card h3{margin:0;text-align:left}}
#root.mm-system .usp .photo-caption h3{font-size:22px;line-height:1.15}
@media(max-width:759px){#root.mm-system .usp .photo-caption h3{font-size:20px}#root.mm-system .usp .photo-caption p{font-size:13px}}
@media(max-width:559px){#root.mm-system .home-courses{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1199px){#root.mm-system .cc-rates{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
#root.mm-system .fp-request-grid{padding:var(--mm-card-pad);gap:var(--mm-gap);border:1px solid var(--mm-line);border-radius:var(--mm-radius);background:#fff}
#root.mm-system .fp-request-grid form.fp-request-form{padding:0;border:0;border-radius:0;background:transparent}
/* r6: content-to-action spacing is owned by the preceding text block.
   Equal-height cards, forms and hero stacks keep their separate layout contracts. */
#root.mm-system main :is(p,ul,ol):not(:is([data-mm-component="hero"],[data-mm-component="card"],[data-mm-component="photo-card"],form,.summary-card,.cc-price-panel,.mf-press,.fp-editorial-list,.cc-blogger-body) *):has(+ :is(.home-button,.cc-btn,.mf-button,.button,.home-actions,.cc-actions,.mf-actions,.actions)){
 margin-bottom:var(--mm-copy-action-gap)!important;
}
#root.mm-system main :is(p,ul,ol):not(:is([data-mm-component="hero"],[data-mm-component="card"],[data-mm-component="photo-card"],form,.summary-card,.cc-price-panel,.mf-press,.fp-editorial-list,.cc-blogger-body) *) + :is(.home-button,.cc-btn,.mf-button,.button,.home-actions,.cc-actions,.mf-actions,.actions){
 margin-top:0!important;
}
/* These headings are vertical text stacks, not the two-column section headers. */
#root.mm-system .mf-heading>h2:has(+p){margin-bottom:var(--mm-heading-copy-gap)}
#root.mm-system .home-book-r8>div>h3{margin-bottom:var(--mm-card-copy-gap)}
#root.mm-system .home-book-r8>div>.home-button+.home-link{margin-top:var(--mm-card-copy-gap)}
/* Joined faculty panels share dividing lines. They are not separate cards:
   no grid gutters or inner rounding may interrupt the cell hover surface. */
#root.mm-system .home-houses{gap:0!important}
#root.mm-system .home-houses .home-house-link{border-radius:0;isolation:isolate}
#root.mm-system .home-houses .home-house-link:is(:hover,:focus-visible){background:#fff9ed}
#root.mm-system .home-houses .home-house-link:focus-visible{outline-offset:-4px}
/* Retain the original crest artwork. Darken blends its white canvas into the
   light panel without tinting the coloured emblem or redrawing the source. */
#root.mm-system :is(.home-house-link,.mf-faculty-grid>a) img[src$="-crest.png"],
.modal-backdrop .mm-faculty-chip img[src$="-crest.png"]{mix-blend-mode:darken}
@media(max-height:600px) and (max-width:539px),(max-height:399px){.modal-backdrop.gradebook-modal{overflow-y:auto!important;align-items:flex-start!important}.modal-backdrop.gradebook-modal>.modal-content{max-height:none!important;height:560px!important;min-height:560px;flex-shrink:0}}

/* Faculty mottos: canonical copy, a fine divider and the display face. */
#root.mm-system .home-houses .home-house-link p.home-house-motto{
 width:100%;max-width:340px;min-height:0;margin:16px 0;
 padding-top:16px;border-top:1px solid var(--mm-line);
 font:400 24px/1.25 var(--mm-display);color:var(--mm-link);
}
@media(max-width:759px){
 #root.mm-system .home-houses .home-house-link p.home-house-motto{
  font-size:20px;margin:12px 0;padding-top:12px;
 }
}
