/* Editorial and technical pages reuse the accepted article grid and park tokens. */
#root.mm-system .mm-document-layout,#root.mm-system .mm-legend-layout{min-width:0}
#root.mm-system :is(.mm-document-layout,.mm-legend-layout) .r7-toc nav{max-height:min(49vh,450px);overflow:auto;overscroll-behavior:contain;padding:3px;overflow-wrap:anywhere}
#root.mm-system :is(.mm-document-layout,.mm-legend-layout) .r7-toc-cta{margin-top:24px;padding-top:18px}
#root.mm-system :is(.mm-document-layout,.mm-legend-layout) .r7-breadcrumbs{overflow-wrap:anywhere}
#root.mm-system :is(.mm-document-layout,.mm-legend-layout) .r7-article-header{overflow-wrap:anywhere}
#root.mm-system .mm-document-body .source-section{border:0;padding:0;margin:0 0 22px;background:none}
#root.mm-system .mm-document-body .source-copy{max-width:none;font:400 var(--mm-body)/1.7 var(--mm-font);overflow-wrap:anywhere}
#root.mm-system .mm-document-body :is(.source-copy p,.source-copy li){margin-block:0 12px}
#root.mm-system .mm-document-body .source-section>h2{font-size:var(--mm-h3);line-height:1.23;margin:24px 0 14px}
#root.mm-system .mm-document-body .mm-document-clause{font-size:clamp(23px,3vw,34px);line-height:1.22;margin:34px 0 14px}
#root.mm-system .mm-document-body .source-images{display:flex;flex-wrap:wrap;gap:12px;align-items:start;margin:16px 0}
#root.mm-system .mm-document-body .source-images img{display:block;max-width:min(100%,160px);height:auto;object-fit:contain}
#root.mm-system .mm-document-links{border-top:1px solid var(--mm-line);padding-top:26px}
#root.mm-system .mm-document-links h2{font-size:var(--mm-h3)}
#root.mm-system .mm-document-links ul{margin-block:0;padding-left:18px}
#root.mm-system .mm-document-links li{margin-bottom:8px}
#root.mm-system .mm-legend-article>.mf-section{padding:26px 0;margin:0;background:none}
#root.mm-system .mm-legend-article>.mf-section>.container{width:100%;max-width:none;padding-inline:0;margin:0}
#root.mm-system .mm-legend-article .mf-heading{display:block}
#root.mm-system .mm-legend-article .mf-heading h2{margin-bottom:var(--mm-heading-copy-gap)}
#root.mm-system .mm-legend-article .mf-story:has(>div:only-child){display:block}
#root.mm-system .mm-legend-article .mf-story.is-reverse{align-items:center;gap:24px}
#root.mm-system .mm-legend-article .mf-story.is-reverse>:last-child{min-width:0}
#root.mm-system .mm-legend-article .mf-photo-triplet{align-items:start}
#root.mm-system .mm-legend-article .mf-film{margin-inline:0}
#root.mm-system .mm-legend-article .mf-film figcaption{gap:8px 18px;flex-wrap:wrap}
#root.mm-system .mm-mission-intro{margin-bottom:var(--mm-split-gap)}
#root.mm-system .mm-mission-intro .home-frame{height:auto;aspect-ratio:auto;overflow:hidden}
#root.mm-system .mm-mission-intro .home-frame img{display:block;width:100%;height:auto;max-height:470px;object-fit:cover}
#root.mm-system [data-mm-template=mission] .mf-value-grid{gap:var(--mm-gap)}
#root.mm-system [data-mm-template=mission] .mf-value-grid>*{min-width:0;border-radius:var(--mm-radius);padding:var(--mm-card-pad)}
#root.mm-system [data-mm-template=mission] .mm-story-emblem{width:min(180px,75%);height:auto;justify-self:center}
#root.mm-system [data-mm-template=mission] [data-mm-scene]>.mm-story-emblem{max-height:185px;object-fit:contain}
#root.mm-system [data-mm-template=mission] [data-mm-scene]:has(>.mm-story-emblem){grid-template-columns:minmax(0,.5fr) minmax(0,1fr)}
#root.mm-system [data-mm-state-grid]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.65fr);align-items:center;gap:var(--mm-split-gap);text-align:left}
#root.mm-system [data-mm-state-grid] .mm-state-copy{grid-column:1;grid-row:1;min-width:0}
#root.mm-system [data-mm-state-grid] .mm-state-copy :is(p,.home-actions){margin-inline:0;justify-content:flex-start}
#root.mm-system [data-mm-state-grid] .mm-state-art{grid-column:2;grid-row:1;justify-self:center;width:min(100%,230px);height:auto;margin:0;object-fit:contain}
@media(min-width:1200px){
 #root.mm-system .mm-desktop-nav .mm-submenu{max-height:calc(100dvh - var(--mm-header-height,132px) - 20px);overflow:auto;overscroll-behavior:contain}
 #root.mm-system footer.mm-shared-footer .mm-footer-documents{max-width:none}
 #root.mm-system footer.mm-shared-footer .mm-footer-legal{flex-wrap:nowrap;gap:clamp(10px,1.1vw,24px)}
 #root.mm-system footer.mm-shared-footer .mm-footer-legal a{white-space:nowrap;font-size:clamp(11px,1vw,13px)}
}
#root.mm-system footer.mm-shared-footer .mm-directory-link{display:none}
#root.mm-system .mm-local-nav-target{scroll-margin-top:calc(var(--mm-header-height,132px) + 16px)}
#root.mm-system .home-cover.mm-home-cover-clean .mm-hero-play{display:none}

/* All location cards share one track so changing the active tab never shifts the controls. */
#root.mm-system .journey-layout{
 grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr);
 grid-template-areas:"photo progress" "photo tabs" "photo controls";
 grid-template-rows:2px minmax(min-content,1fr) auto;
 gap:14px 32px;
 align-items:stretch;
}
#root.mm-system .journey-layout>[data-mm-journey-progress]{grid-area:progress;margin:0}
#root.mm-system .journey-layout:not(:has(>[data-mm-journey-progress])){
 grid-template-areas:"photo tabs" "photo controls";grid-template-rows:minmax(min-content,1fr) auto;
}
#root.mm-system .journey-layout>.journey-tabs{grid-area:tabs;grid-auto-rows:1fr;align-self:stretch}
#root.mm-system .journey-layout>.journey-controls{grid-area:controls;margin:0;min-width:0}
#root.mm-system .journey-layout>.journey-panels{grid-area:photo;display:grid;min-width:0}
#root.mm-system .journey-panels>article{
 grid-area:1/1;display:grid;grid-template-rows:auto 1fr;height:auto;
}
#root.mm-system .journey-panels>article[hidden]{display:grid!important;visibility:hidden;pointer-events:none}
#root.mm-system .journey-panels .zoom-photo{
 display:block;width:100%;aspect-ratio:4/3;overflow:hidden;
}
#root.mm-system .journey-panels>article>.zoom-photo>img{
 display:block;width:100%;height:100%!important;max-height:none;
 object-fit:cover!important;object-position:var(--mm-photo-focus,var(--photo-safe-position,50% 42%))!important;
}

/* Use the existing photo frames as crops. Keep originals in the photo viewer. */
#root.mm-system :is([data-mm-fit-in-place],[data-mm-frame="complete"],.p-photo,.p-birthday-photo,.location-card>a)
 >img:not([data-photo-fit="document"]):not(.mm-illustration):not(.location-icon),
#root.mm-system img[data-full-group="true"]{
 object-fit:cover!important;
 object-position:var(--mm-photo-focus,var(--photo-safe-position,var(--cc-focus,50% 42%)))!important;
 background:transparent!important;
}
#root.mm-system [data-mm-frame="complete"]>img:not([data-photo-fit="document"]){
 height:100%!important;max-height:none;
}
#root.mm-system img[src$="0aa03eb547be13adf60d6ffe.jpg"]{--mm-photo-focus:50% 53%}
#root.mm-system .journey-panels img[src$="8cea2595bef130e33f3bc23c.jpg"]{--mm-photo-focus:50% 42%}
#root.mm-system .journey-panels img[src$="185c088a50845e4088d34a01.jpg"]{--mm-photo-focus:35% 58%}
#root.mm-system #cafe .home-media-links{display:none}
#root.mm-system #cafe:has(+.home-source-gallery){padding-bottom:calc(var(--mm-section) / 2)!important}
#root.mm-system #cafe+.home-source-gallery{padding-top:calc(var(--mm-section) / 2)!important}

/* Section spacing is shared; the film has no second bottom padding of its own. */
#root.mm-system{--mm-section:clamp(44px,4.2vw,68px)}
#root.mm-system #world .home-world-film{padding-block:16px 0}
#root.mm-system .home-included-note{max-width:none;width:100%;text-wrap:pretty}
#root.mm-system .home-venue-note{width:100%;max-width:none;text-align:left;padding-inline:0;margin-inline:0}
#root.mm-system .home-venue-note>.home-link{display:block;width:fit-content;margin:8px 0 0}
#root.mm-system img[data-mm-photo-view]{cursor:zoom-in}
#root.mm-system img[data-mm-photo-view]:focus-visible{outline:2px solid #a67d38;outline-offset:4px}

.mm-social-links{display:flex;align-items:center;gap:8px}
.mm-social-links>a{
 display:grid;place-items:center;flex:none;width:34px;height:34px;
 border-radius:50%;background:#fffaf1;color:#352a20;transition:background .16s ease;
}
.mm-social-links>a:hover{background:#ecddc4}
.mm-social-links>a:focus-visible{outline:2px solid #a67d38;outline-offset:2px}
.mm-social-links>a>img{display:block;width:18px;height:18px;object-fit:contain}
#root footer.mm-shared-footer .footer-socials.mm-social-links{gap:8px}
.mm-header-actions .mm-header-socials{display:none}
@media(min-width:1440px){
 #root.mm-system .mm-header-inner{column-gap:24px}
 #root.mm-system .mm-desktop-nav{justify-content:flex-end;gap:clamp(12px,1.03vw,17px)}
 #root.mm-system .mm-header-actions{gap:16px}
 #root.mm-system .mm-header-socials{display:flex;gap:4px}
 #root.mm-system .mm-header-socials>a{width:29px;height:29px;background:none;color:inherit}
 #root.mm-system .mm-header-socials>a:hover{background:color-mix(in srgb,currentColor 12%,transparent)}
 #root.mm-system .mm-header-socials>a>svg{display:block;width:21px;height:21px}
}

/* Wizardia's shell insets, in the Ministry palette. */
.modal-backdrop{--mm-close-inset:20px;--mm-close-size:44px}
html body .modal-backdrop>.modal-content>.modal-tools{
 position:absolute;top:var(--mm-close-inset)!important;right:var(--mm-close-inset)!important;
 width:var(--mm-close-size);height:var(--mm-close-size);padding:0;margin:0;
 display:grid;place-items:center;z-index:30;pointer-events:none;
}
html body .modal-backdrop>.modal-content>.modal-tools>.close{
 position:static;inset:auto;pointer-events:auto;
 width:var(--mm-close-size)!important;height:var(--mm-close-size)!important;
 min-width:var(--mm-close-size)!important;min-height:var(--mm-close-size)!important;
}
html body .video-lightbox>.modal-content{position:relative}
html body .video-lightbox .video-window{padding:var(--mm-window-pad)!important}
html body .video-lightbox .video-window>h2{margin:0 0 16px;padding-inline-end:var(--mm-close-size)}
html body .fp-dialog .fp-dialog-close{top:20px;right:20px}

/* All programme, quest, location and faculty windows use the same header and columns. */
.mm-experience-detail .mm-modal-heading{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:16px;
 margin-bottom:clamp(18px,2.5vw,28px);
}
.mm-experience-detail .mm-modal-heading h2{margin:6px 0 0}
.mm-experience-detail .mm-modal-heading .mm-detail-alias{margin:8px 0 0}
.mm-experience-detail .mm-modal-heading>.modal-tools{
 position:static;inset:auto;height:auto;width:auto;margin:0;
}
.mm-experience-detail .mm-modal-heading .close{
 width:var(--mm-close-size)!important;height:var(--mm-close-size)!important;
 min-width:var(--mm-close-size)!important;min-height:var(--mm-close-size)!important;
}
.mm-experience-detail>.modal-content{scrollbar-gutter:stable}
.mm-experience-detail .mm-detail-layout{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mm-gap);
 align-items:start;margin:0;
}
.mm-experience-detail .mm-detail-gallery>.mm-detail-photo{
 display:block;width:100%;height:auto!important;aspect-ratio:4/3;
 object-fit:cover;object-position:var(--mm-photo-focus,50% 42%);
 border-radius:var(--mm-photo-radius);background:transparent;
}
.mm-experience-detail .mm-detail-gallery img[src$="8cea2595bef130e33f3bc23c.jpg"]{--mm-photo-focus:50% 42%}
.mm-experience-detail .mm-detail-gallery img[src$="185c088a50845e4088d34a01.jpg"]{--mm-photo-focus:35% 58%}
.mm-experience-detail .mm-detail-gallery img[src$="0aa03eb547be13adf60d6ffe.jpg"]{--mm-photo-focus:50% 53%}
.mm-experience-detail .mm-gallery-thumbs{flex-wrap:wrap;margin:4px 0 16px}
.mm-experience-detail .mm-gallery-thumbs button{
 width:72px;height:auto;aspect-ratio:4/3;padding:0;overflow:hidden;
 border:0;background:none;border-radius:8px;
}
.mm-experience-detail .mm-gallery-thumbs button[aria-pressed=true]{outline:1px solid #ad7e31;outline-offset:2px}
.mm-experience-detail .mm-gallery-thumbs img{
 display:block;width:100%;height:100%;object-fit:cover;object-position:var(--mm-photo-focus,50% 42%);
 background:none;
}
.mm-experience-detail .mm-faculty-art img{display:block;width:auto;max-width:100%;height:auto;max-height:min(420px,55dvh);margin-inline:auto}
.mm-experience-detail .mm-detail-copy li{margin-bottom:4px}
.mm-experience-detail .mm-detail-copy>ul{margin:0 0 14px}
.mm-experience-detail :is(.mm-detail-copy,.mm-faculty-copy)>.mm-detail-note{margin:16px 0 0}
.mm-experience-detail :is(.mm-detail-copy,.mm-faculty-copy)>.mm-dialog-actions{margin:14px 0 0;gap:0 12px}
@media(max-width:759px){
 #root.mm-system{--mm-section:42px}
 #root.mm-system .journey-layout{
  grid-template-columns:minmax(0,1fr);grid-template-areas:"progress" "tabs" "photo" "controls";
  grid-template-rows:2px auto auto auto;gap:12px;
 }
 #root.mm-system .journey-layout:not(:has(>[data-mm-journey-progress])){
  grid-template-areas:"tabs" "photo" "controls";grid-template-rows:auto auto auto;
 }
 #root.mm-system .journey-layout>.journey-controls{justify-content:flex-start;gap:10px 12px}
 #root.mm-system .journey-layout>.journey-controls>a{flex-basis:100%}
 #root.mm-system img[src$="0aa03eb547be13adf60d6ffe.jpg"]{--mm-photo-focus:50% 50%}
 #root.mm-system #world .home-world-film{padding-block:8px 0}
 .modal-backdrop{--mm-close-inset:14px;--mm-close-size:40px}
 html body .fp-dialog .fp-dialog-close{top:14px;right:14px}
 .mm-experience-detail .mm-detail-layout{grid-template-columns:minmax(0,1fr)}
 .mm-experience-detail .mm-faculty-art img{max-height:260px}
}
@media(max-width:759px){
 #root.mm-system [data-mm-template=mission] [data-mm-scene]:has(>.mm-story-emblem){grid-template-columns:minmax(0,1fr)}
 #root.mm-system [data-mm-template=mission] .mm-story-emblem{width:110px;grid-row:1;justify-self:start}
 #root.mm-system [data-mm-state-grid]{grid-template-columns:minmax(0,1fr);text-align:left}
 #root.mm-system [data-mm-state-grid] .mm-state-art{grid-column:1;grid-row:1;justify-self:start;width:100px}
 #root.mm-system [data-mm-state-grid] .mm-state-copy{grid-row:2}
}
