/* Bounded site scale and complete navigation; page compositions remain intact. */
:root{--emsom-page-width:min(100vw,1100px);--u:calc(var(--emsom-page-width) / 1024);--r:calc(var(--emsom-page-width) / 1024);--x:calc(var(--emsom-page-width) / 1024)}
html{background-color:#15161c}
html body.h2-match,html body.rp-page,html body.xp-page,html.h4-site body{max-width:1100px!important;margin:0 auto!important}
@media(min-width:901px){
 html body :is(.site-header,.rp-header,.xp-header){padding-left:22px!important;padding-right:22px!important}
 html body :is(.concept-header-row,.rp-header,.xp-header){display:flex!important;align-items:center!important;gap:18px!important}
 html body :is(.concept-logo-word,.rp-brand>b,.xp-brand>b){font-size:32px!important;letter-spacing:-1px!important;line-height:1!important}
 html body :is(.concept-logo-name,.rp-brand>span,.xp-brand>span){font:500 10px/1.18 Arial,sans-serif!important;letter-spacing:.2px!important;padding-left:12px!important}
 html body :is(.school-logo,.rp-brand,.xp-brand){display:flex!important;gap:12px!important;flex:none!important;min-width:0!important}
 html body #site-nav{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:4px 5px!important;position:static!important;width:auto!important;min-width:0!important;margin:0!important;padding:6px 0!important;flex:1!important;white-space:normal!important;background:none!important}
 html body #site-nav>a{display:block!important;white-space:nowrap!important;font:500 13px/1.2 Arial,sans-serif!important;letter-spacing:0!important;padding:6px 7px!important;min-height:28px!important;border-radius:7px!important;color:#f7f1fb!important}
 html body #site-nav>a>[data-h4-en]{white-space:nowrap!important;font:inherit!important}
 html body #site-nav>a[aria-current]{background:linear-gradient(#f5e7fc,#c3a0d5)!important;color:#39113f!important;border:1px solid #ead6f4!important}
 html body :is(.site-header,.rp-header,.xp-header) .menu-toggle{display:none!important}
 html body.h2-match .site-header{height:auto!important;min-height:83px!important}
 html.h4-site body:not(.h2-match) .concept-header-row{min-height:82px!important}
 html body :is(.rp-header,.xp-header){min-height:82px!important}
 html body.h2-match :is(.h2-classroom-image,.h2-video-image,.h2-science-image){width:var(--emsom-page-width)!important}
 html body.h2-match .cinema-title:after,html body.h2-match .cinema-signup:before,html body.h2-match .cinema-benefits:before,html body.h2-match .school-tour-video:before,html body.h2-match .cinema-science:before,html body.h2-match .cinema-final-cta:before{background-size:var(--emsom-page-width) auto!important}
}
/* Keep all destinations available on phones and smaller tablets. */
@media(max-width:900px){
 html body :is(.site-header,.rp-header,.xp-header){overflow:visible!important}
 html body :is(.site-header,.rp-header,.xp-header) .menu-toggle{display:block!important;min-height:40px!important;padding:8px 12px!important;border:1px solid #c3a3d4!important;border-radius:6px!important;background:#302238!important;color:#fff!important;font:14px/1.2 Arial,sans-serif!important}
 html body #site-nav{display:none!important}
 html body #site-nav.open{display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:flex-start!important;gap:5px!important;background:#241b2f!important;padding:12px!important;border:1px solid #a58bb5!important;z-index:100!important}
 html body #site-nav.open>a{display:block!important;font:15px/1.25 Arial,sans-serif!important;padding:10px 12px!important;white-space:normal!important;min-height:40px!important;color:#faf5fc!important}
 html body #site-nav.open>a[aria-current]{color:#39113f!important}
}
@media(min-width:701px) and (max-width:900px){
 html body :is(.site-header,.rp-header,.xp-header){padding-left:18px!important;padding-right:18px!important}
 html body :is(.concept-logo-word,.rp-brand>b,.xp-brand>b){font-size:32px!important}
 html body :is(.concept-logo-name,.rp-brand>span,.xp-brand>span){font-size:10px!important}
 html body #site-nav.open{position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;max-height:70vh!important;overflow:auto!important}
}
/* Clear receipt feedback without changing the existing purple design. */
#tour-unavailable[data-state],#request-result:not(:empty){padding:14px 16px!important;border:1px solid #8e63a5!important;border-radius:10px!important;background:#fff4ff!important;color:#35103e!important;font:16px/1.45 Arial,sans-serif!important;overflow-wrap:anywhere;scroll-margin-top:18px}
#tour-unavailable[data-state=success],#request-result[data-state=success]{border:2px solid #76508c!important;background:#f0e2f8!important;font-weight:600!important}
#student-tour-form>button:disabled,#submit-request:disabled{cursor:default;opacity:.9}
#student-tour-form label:has([name=email]){position:relative}
#student-tour-form label:has([name=email]):after{content:'*';color:#aa0000;position:absolute;top:0;left:calc(111 * var(--u));font-weight:800}
html[lang=es] #student-tour-form label:has([name=email]):after{left:auto;right:0}
.co-form .connection-panel{margin:12px 0 20px!important;padding:14px!important;border:1px solid #9b77af!important;border-radius:12px!important;background:#f6edfb!important;color:#3b0e42!important}
.co-form .connection-panel h3{font-size:22px!important;margin:0 0 8px!important;color:#3b0e42!important}
.co-form .connection-panel #connection-description{font:15px/1.4 Arial,sans-serif!important;margin:8px 0!important;color:#3b0e42!important}
.co-form .connection-panel .check{font:15px/1.4 Arial,sans-serif!important;margin:14px 0!important;color:#3b0e42!important}
.co-form .connection-panel .check a{text-decoration:underline!important}
.co-form .connection-panel #submit-request{min-height:58px!important;margin:12px 0 0!important;font-size:22px!important}
.co-form #draft-review>.eyebrow{font:700 13px/1.3 Arial,sans-serif!important;color:#593169!important;margin:0 0 8px!important}
.co-form #draft-review>h2{font-size:27px!important;line-height:1.15!important;margin:0 0 12px!important;color:#3b0e42!important}
.co-form #review-content{font:16px/1.4 Arial,sans-serif!important}
.co-form #review-content dt{font-weight:700!important;margin-top:10px!important}
.co-form #review-content dd{margin-left:0!important;overflow-wrap:anywhere}
.co-form{scrollbar-gutter:stable}
@media(max-width:700px){
 #student-tour-form label:has([name=email]):after{left:auto;right:8px}
 .co-form .connection-panel{padding:12px!important}
 .co-form .connection-panel #submit-request{font-size:20px!important}
}

/* Header links now flow naturally instead of the old three-tab reference coordinates. */
html body #site-nav>a{position:static!important;inset:auto!important;transform:none!important;translate:none!important;width:auto!important;height:auto!important;margin:0!important;clip-path:none!important;float:none!important;box-sizing:border-box!important}
@media(min-width:901px){
 html[lang] body.rp-page .rp-header #site-nav.rp-nav{display:flex!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;pointer-events:auto!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav>a,html[lang] body.xp-page .xp-header #site-nav>a{position:static!important;inset:auto!important;top:auto!important;left:auto!important;transform:none!important;width:auto!important;height:auto!important;margin:0!important;padding:6px 7px!important;font:500 13px/1.2 Arial,sans-serif!important;display:block!important;pointer-events:auto!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav>a>span{transform:none!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav:before,html[lang] body.rp-page .rp-header #site-nav.rp-nav:after{display:none!important}
}
@media(max-width:900px){
 html[lang] body.rp-page .rp-header #site-nav.rp-nav{display:none!important;pointer-events:auto!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav.open{display:flex!important;pointer-events:auto!important;height:auto!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav>a{position:static!important;inset:auto!important;top:auto!important;left:auto!important;width:auto!important;height:auto!important;transform:none!important;font:15px/1.25 Arial,sans-serif!important;pointer-events:auto!important;padding:10px 12px!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav>a>span{transform:none!important}
 html[lang] body.rp-page .rp-header #site-nav.rp-nav:before,html[lang] body.rp-page .rp-header #site-nav.rp-nav:after{display:none!important}
}
@media(max-width:900px){
 html[lang] body.xp-page .xp-header #site-nav{display:none!important}
 html[lang] body.xp-page .xp-header #site-nav.open{display:flex!important}
}
@media(max-width:700px){.co-categories{grid-template-columns:minmax(0,1fr)}.co-categories .xp-panel{min-width:0}}
@media(max-width:380px){.co-categories .xp-panel{gap:16px;padding:20px}.co-categories h2{font-size:25px!important}}
@media(max-width:380px){
 html[lang=es] body.h2-match .cinema-benefits{grid-template-columns:repeat(5,minmax(0,1fr))}
 html[lang=es] body.h2-match .cinema-benefits>div{min-width:0;font-size:10.5px;padding-left:3px;padding-right:3px}
 html[lang=es] body.h2-match .cinema-benefits [data-h4-en]{white-space:normal;overflow-wrap:anywhere}
 body.h2-match .community-grid{grid-template-columns:minmax(0,1fr)}
 body.h2-match .community-grid>div{min-width:0}
}
