@import url('/site/plan-dialog.css?v=20261102-1');
/* Homepage-only feature explorer. Shared EMS header/footer styles remain in home.css. */
.home-main{background:#fff;padding:0 28px 48px}
.home-intro,.home-explorer,.home-plans{max-width:1120px;margin:0 auto}
.home-intro{padding:clamp(36px,5vw,58px) 0 0}



.explorer-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;gap:12px}
.explorer-heading h2{font-size:15px;font-weight:650;margin:0}
.explorer-heading p{font-size:12px;color:#64716b;margin:0}
.resource-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.resource-card{position:relative;display:block;min-width:0}
.resource-tab{display:flex;width:100%;min-width:0;padding-right:56px;align-items:center;position:relative;gap:14px;min-height:94px;padding:19px 20px;border:1px solid #dce5df;border-radius:9px;color:#213a32;background:#fff;text-decoration:none;transition:background .14s,border-color .14s;scroll-margin-top:20px}
.resource-tab:hover,.resource-tab[aria-selected=true]{background:#eff7f2;border-color:var(--ems-plan-plus)}
.resource-tab[aria-selected=true]::after{content:'';position:absolute;left:20px;right:20px;bottom:-1px;height:3px;border-radius:3px;background:var(--ems-plan-plus)}
.resource-tab:focus-visible,.resource-open:focus-visible,.home-plans summary:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:4px}
.resource-icon{display:flex;align-items:center;justify-content:center;flex:none;width:39px;height:39px;background:#f0f6f2;border-radius:9px;color:var(--ems-plan-plus)}
.resource-icon svg{width:25px;height:25px}
.resource-label{display:flex;flex-direction:column;gap:3px}
.resource-label strong{font-size:16px;font-weight:650;line-height:1.3}
.resource-label>span{font-size:12px;color:#607167}
.resource-play{position:absolute;right:17px;top:50%;transform:translateY(-50%);display:grid;place-items:center;flex:none;width:26px;height:26px;padding:0;border:0;border-radius:0;background:transparent;color:var(--ems-plan-plus);cursor:pointer}
.resource-play svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.resource-play svg path{fill:currentColor;stroke:none}
.resource-play:hover{background:transparent;color:#085240;transform:translateY(-50%) scale(1.08)}
.resource-play:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:3px}
.resource-tab[aria-selected=true] .resource-arrow{color:var(--ems-plan-plus)}
.resource-panels{margin-top:18px;background:#fffbf2;border:2px solid #d6ae57;border-radius:10px;overflow:hidden}
.resource-panel{padding:23px 26px 14px;min-height:320px;scroll-margin-top:20px}
.resource-panel[hidden]{display:none}
.resource-panel+.resource-panel:not([hidden]){border-top:1px solid #e0e8e2}
.js .home-explorer .resource-panel{border-top:0}
/* With JavaScript the page opens on the top-left Multiplayer Games card alone, so it is drawn that way from the first frame rather than
   showing all six rows until the script hides five (owner, 29 October 2026). A link to another row (#panel-papers)
   switches to it once the script runs. Without JavaScript all six rows stay, each reached by its card's link. */
.js .home-explorer:not([data-ready]) .resource-panel:not(#panel-play){display:none}
/* "Click" with a mouse, "Tap" on a touch screen: the same test the script uses for hovering (finePointer). */
.pointer-fine{display:none}
@media (hover:hover) and (pointer:fine){.pointer-fine{display:inline}.pointer-touch{display:none}}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.panel-heading h2{font-size:21px;letter-spacing:-.02em;margin:0 0 3px;color:#213a32}
.panel-heading p{font-size:13px;color:#5b6670;margin:0}
.resource-open{display:inline-flex;align-items:center;gap:8px;flex:none;border:1px solid #c28b19;border-radius:6px;background:#efb944;color:#263123;text-decoration:none;padding:10px 16px;font-size:14px;font-weight:700;position:relative}
.resource-open:hover{background:#e3a72c}
/* Account names lead the detail cards; the features sit visibly inside their plan. */
.access-columns{display:grid;gap:18px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.access-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.access-columns-1{grid-template-columns:1fr}
.access-column{--account-color:#41564a;--account-tint:#eef2ef;background:white;border:1px solid #d9e3dd;border-top:4px solid var(--account-color);border-radius:8px;overflow:hidden}
.account-plus{--account-color:var(--ems-plan-plus);--account-tint:#e8f4ed}.account-teacher{--account-color:var(--ems-plan-teacher);--account-tint:#eaf2f7}.account-hod{--account-color:var(--ems-plan-hod);--account-tint:#f1ebf5}
.access-account{background:var(--account-tint);padding:16px 20px 14px;border-bottom:1px solid #e0e7e2}
.access-account h3{font-size:23px;line-height:1.2;font-weight:750;margin:0 0 7px;color:#183329;letter-spacing:-.02em}
.access-account a{color:inherit;text-decoration:none}.access-account a:hover{text-decoration:underline;text-underline-offset:4px}
.access-account p{font-size:12px;line-height:1.5;margin:0;color:#243a30}
.access-description{font-size:15px;font-weight:650;color:#263c30;margin:17px 20px 10px}
.access-column ul{padding:0 20px 20px;margin:0;list-style:none}
.access-column li{display:flex;align-items:baseline;gap:7px;font-size:15px;line-height:1.6;color:#21303b;margin-top:8px;flex-wrap:wrap}
.access-column li:before,.plan-options li:before{content:'✓';color:var(--ems-plan-plus);flex:none;font-size:13px;margin-right:2px}
.access-column li>span:first-of-type{flex:1;min-width:0}
.coming-soon{color:#59634f;font-size:10px;white-space:nowrap;border:1px solid #d7dfce;border-radius:4px;padding:1px 5px;line-height:1.5;flex:none}
.panel-footnote{font-size:13px;color:#526258;margin:18px 0 0}
.access-preview-note{font-size:12px;color:#59665e;margin:11px 0 0;text-align:right}
.home-plans{margin-top:24px;border-top:1px solid #dfe7e1;border-bottom:1px solid #dfe7e1}
.plan-link{display:flex;align-items:center;gap:20px;padding:21px 0;text-decoration:none;color:inherit}
.plan-link:hover .compare-label{text-decoration:underline;text-underline-offset:4px}
.plan-summary-heading{font-size:16px;font-weight:700;color:#213a32}
.plan-summary-tiers{display:flex;gap:17px;align-items:center;margin:auto;font-size:14px;color:#465c4f}
.plan-summary-tiers span+span:before{content:'·';margin-right:17px;color:#697c6f}
.compare-label{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:700;color:var(--ems-plan-plus)}
.plan-link:focus-visible,.access-account a:focus-visible,.pricing-main a:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:4px}
/* The full plan comparison has its own page. */
.pricing-main{background:#fff;padding:30px max(28px,calc((100% - 1200px)/2)) 56px}
.pricing-back{font-size:14px;color:var(--ems-plan-plus);text-decoration:none}
.pricing-intro{text-align:center;padding:27px 0 34px}
.pricing-intro .home-eyebrow{color:var(--ems-plan-plus);font-size:12px;font-weight:750;letter-spacing:.12em;margin:0 0 10px}
.pricing-intro h1{font-size:36px;line-height:1.2;letter-spacing:-.025em;color:#213a32;margin:0 0 14px}
.pricing-intro>p{font-size:16px;color:#526258;margin:0 auto;max-width:740px}
.pricing-intro .pricing-status{font-size:13px;margin-top:13px}
.plan-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
.plan-options section{--account-color:#41564a;--account-tint:#eef2ef;border:1px solid #d9e3dd;border-top:5px solid var(--account-color);border-radius:9px;padding:23px 20px;scroll-margin-top:25px;background:linear-gradient(var(--account-tint),#fff 170px)}
.plan-options #plus{--account-color:var(--ems-plan-plus);--account-tint:#e8f4ed}.plan-options #teacher{--account-color:var(--ems-plan-teacher);--account-tint:#eaf2f7}.plan-options #hod{--account-color:var(--ems-plan-hod);--account-tint:#f1ebf5}
/* The plan a homepage link chose (/pricing/?plan=plus). A query, not a #plus fragment: the fragment made the browser
   jump down to the card after the page had drawn (25 October 2026). */
.plan-options section.plan-chosen{outline:3px solid var(--account-color);outline-offset:4px}
.plan-options .access-tier{font-size:23px;font-weight:750;color:var(--account-color);line-height:1.2}
.plan-options h3{font-size:15px;margin:14px 0 0;color:#33483c;font-weight:600}
.plan-price{font-size:33px;color:#213a32;font-weight:700;letter-spacing:-.035em;margin:18px 0 21px}
.plan-price span{font-size:13px;font-weight:400;letter-spacing:0;color:#526258}
.plan-options ul{list-style:none;padding:0;margin:0}.plan-options li{font-size:15px;display:flex;gap:7px;color:#34483c;margin-bottom:13px;line-height:1.65}
.plan-notes{border-top:1px solid #e3e9e5;margin-top:28px;padding-top:16px}.plan-notes p{font-size:13px;line-height:1.7;color:#526258;margin:7px 0}
.pricing-help{padding:24px;background:#f3f7f4;border:1px solid #dfe7e1;border-radius:9px;margin-top:28px}.pricing-help h2{font-size:20px;margin:0 0 8px;color:#213a32}.pricing-help p{font-size:15px;margin:0 0 14px;color:#455c4e}.pricing-help a{color:var(--ems-plan-plus);font-size:15px;font-weight:650}
@media(min-width:1100px) and (min-height:900px){.resource-tab{min-height:102px}.home-main{padding-bottom:58px}}

@media(max-width:1000px){.plan-options{grid-template-columns:repeat(2,minmax(0,1fr))}.plan-summary-tiers{gap:10px;font-size:12px}.plan-summary-tiers span+span:before{margin-right:10px}.plan-summary-heading{font-size:14px}.compare-label{font-size:13px}}
@media(max-width:900px){.resource-tab{padding:16px 13px;gap:10px}.resource-label strong{font-size:14px}.resource-label>span{font-size:11px}.resource-play{width:32px;height:32px}.resource-icon{width:32px;height:34px}.resource-icon svg{width:22px;height:22px}.access-columns{gap:12px}.access-account{padding:14px}.access-account h3{font-size:21px}.access-column ul{padding:0 14px 16px}.access-description{margin:15px 14px 10px}.access-column li{font-size:14px}}
@media(max-width:650px){
 .home-main{padding:0 18px 32px}.home-intro{padding:38px 0 0}.explorer-heading{align-items:baseline;gap:8px}.explorer-heading h2{font-size:13px}.explorer-heading p{font-size:10px}
 .resource-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.resource-tab{min-height:91px;align-items:flex-start;gap:8px;padding:13px 10px}.resource-label strong{font-size:13px}.resource-label>span{font-size:10px;line-height:1.5}.resource-icon{width:26px;height:29px}.resource-icon svg{width:21px;height:21px}.resource-tab[aria-selected=true]::after{left:10px;right:10px}
 .resource-panel{padding:19px 13px 16px;min-height:0}.panel-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:20px}.panel-heading h2{font-size:20px}.panel-heading p{font-size:13px}.access-columns,.access-columns-2,.access-columns-1{grid-template-columns:1fr;gap:16px}.access-account h3{font-size:23px}.access-column li{font-size:14px}.access-preview-note{text-align:left;font-size:12px}.panel-footnote{font-size:12px}
 .plan-link{flex-wrap:wrap;gap:12px;padding:18px 0}.plan-summary-heading{font-size:15px;flex:1}.compare-label{font-size:12px}.plan-summary-tiers{order:3;flex-basis:100%;margin:0;font-size:12px;justify-content:space-between}.plan-summary-tiers span+span:before{display:none}
 .pricing-main{padding:22px 18px 36px}.pricing-intro{padding:24px 0}.pricing-intro h1{font-size:29px}.pricing-intro>p{font-size:15px}.plan-options{grid-template-columns:1fr;gap:17px}.plan-options section{padding:22px}.plan-options .access-tier{font-size:25px}.plan-options li{font-size:15px}.pricing-help{padding:20px}
}
@media(prefers-reduced-motion:reduce){.resource-tab{transition:none}}
@media(min-width:1000px) and (min-height:650px){.home-intro{padding:clamp(18px,3dvh,36px) 0 0}}

/* The page occupies the first viewport; the footer begins at the next pixel. The homepage's header and main share one
   screen-height block (.ems-screen, as Past Papers since 25 October 2026), so the main fills what the header leaves
   from the first frame (29 October 2026: on an upright iPad it was drawn with a guessed 85px header, then shrank 44px
   once the script measured the real one). Pricing still reserves the measured header height. */
:root{--ems-header-height:85px}
.home-page .ems-screen{min-height:100dvh;display:flex;flex-direction:column}
.home-page .ems-screen>.home-main{flex:1 0 auto;box-sizing:border-box}
.pricing-main{flex:none;min-height:calc(100dvh - var(--ems-header-height));box-sizing:border-box}
.home-main{padding:0 28px 14px;display:flex;flex-direction:column}
.home-intro,.home-explorer{width:100%}
.home-intro{padding:clamp(12px,2dvh,22px) 0 0}
.home-intro .features-title{min-height:0;margin-bottom:clamp(12px,2dvh,22px)}
.home-explorer{display:flex;flex:1;flex-direction:column}
.explorer-heading{margin-bottom:9px}
.resource-tabs{gap:10px}
.resource-tab{min-height:72px;padding:13px 18px}
.resource-panels{margin-top:12px;flex:1;min-height:0;display:flex;flex-direction:column}
.resource-panel{padding:14px 20px 12px;min-height:0;flex:1;display:flex;flex-direction:column}
.resource-panel[hidden]{display:none}
.panel-heading{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;margin-bottom:14px;align-items:center}
.panel-heading>div{min-width:0}
.panel-heading h2{font-size:18px}.panel-heading p{font-size:12px}
.resource-open{grid-column:2;justify-self:center;font-size:16px;padding:11px 20px}
.compare-plans{grid-column:3;justify-self:end;display:inline-flex;gap:9px;font-size:14px;font-weight:700;text-decoration:none;color:var(--ems-plan-plus);white-space:nowrap}
.compare-plans:hover{text-decoration:underline;text-underline-offset:4px}
.compare-plans:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:4px}
.access-columns{flex:1;gap:14px}
.access-account{padding:11px 16px 10px}.access-account h3{font-size:22px;margin-bottom:4px}
.access-description{margin:11px 16px 7px}.access-column ul{padding:0 16px 13px}
.access-column li{margin-top:6px;line-height:1.45}
.panel-footnote{margin:10px 0 0;font-size:12px}.access-preview-note{margin-top:7px;font-size:11px}
.pricing-main{padding-top:18px;padding-bottom:18px;display:flex;flex-direction:column;gap:18px}
.pricing-back{align-self:flex-start}
.plan-comparison-body{display:flex;flex:1;flex-direction:column;gap:18px}
/* Cards end just below their longest list rather than stretching to the bottom of the screen (owner, 17 October 2026). */
.plan-options{flex:none}
.plan-options section{padding:20px 18px}
.plan-options h3{margin-top:10px}.plan-price{margin:16px 0 20px}
.plan-options li{margin-bottom:12px;line-height:1.55}
.plan-notes{margin:0;padding-top:10px}.plan-notes p{margin:5px 0;font-size:12px;line-height:1.55}
.compact-resource-label,.compact-pricing-label,.compact-account-label{display:none}
@media(min-width:1001px) and (max-height:760px){
 .resource-tab{min-height:60px;padding:9px 14px}.resource-icon{width:32px;height:32px}.resource-label>span{font-size:11px}
 .home-intro{padding-top:12px}.home-intro .features-title{margin-bottom:12px}
 .panel-heading{margin-bottom:10px}.panel-heading p{line-height:1.35}.resource-panel{padding:12px 16px 10px}
 .access-account{padding:9px 13px}.access-account h3{font-size:21px}.access-account p{font-size:11px}
 .access-description{margin:9px 13px 5px;font-size:14px}.access-column ul{padding:0 13px 10px}.access-column li{font-size:14px;line-height:1.4;margin-top:5px}
 .plan-options section{padding:18px 16px}.plan-options li{font-size:14px;line-height:1.5}.plan-price{margin:13px 0 17px}
}
@media(max-width:1000px){
 .pricing-main .plan-options{grid-template-columns:1fr}
 .pricing-main .compact-pricing-label{display:flex}
 .pricing-main .plan-options section{max-width:720px;width:100%;justify-self:center}
}
@media(max-width:900px){
 .home-main,.pricing-main{padding-left:16px;padding-right:16px;padding-bottom:12px}
 .home-intro{padding-top:12px}.home-intro .features-title{margin-bottom:14px}
 .js .home-explorer .resource-tabs,.js .home-explorer .explorer-heading{display:none}
 .js .home-explorer .compact-resource-label,.js .home-explorer .compact-account-label{display:flex}
 .compact-resource-label,.compact-pricing-label,.compact-account-label{align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:650;color:#334e40}
 .compact-resource-label select,.compact-pricing-label select,.compact-account-label select{min-height:34px;max-width:70%;font:inherit;font-size:13px;color:var(--ems-plan-plus);background:#fff;border:1px solid #b9cfc1;border-radius:5px;padding:5px 8px}
 .resource-panels{margin-top:9px}.resource-panel{padding:10px}
 .panel-heading{grid-template-columns:1fr auto;gap:9px;margin-bottom:10px}
 .js .home-explorer .panel-heading>div{display:none}
 .resource-open{grid-column:1;font-size:14px;padding:9px 13px;justify-self:center}.compare-plans{grid-column:2;font-size:12px;gap:5px}
 .compact-account-label{margin-bottom:8px}
 .access-columns,.access-columns-2,.access-columns-1{grid-template-columns:1fr}
 .access-column[hidden]{display:none}
 .access-account{padding:8px 12px}.access-account h3{font-size:21px;margin-bottom:3px}.access-account p{font-size:11px}
 .access-description{font-size:13px;margin:8px 12px 5px}.access-column ul{padding:0 12px 10px}.access-column li{font-size:13px;line-height:1.45;margin-top:5px}
 .panel-footnote{font-size:11px;margin-top:8px}.access-preview-note{font-size:10px;line-height:1.4;margin-top:6px}
 .pricing-main{gap:14px;padding-top:14px}.plan-comparison-body{gap:12px}.plan-options section{padding:18px}.plan-options .access-tier{font-size:25px}.plan-options li{font-size:15px}.plan-notes p{font-size:11px}
}
.pricing-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px}
.pricing-details-button,.pricing-details-close{display:none}
.pricing-main[data-compact-notes] .pricing-details-button{display:block;background:white;border:1px solid #b9cfc1;border-radius:5px;padding:6px 10px;color:var(--ems-plan-plus);font:inherit;font-size:13px;cursor:pointer}
.plan-notes[popover]{border:1px solid #a8bfb0;border-radius:9px;background:#fff;color:#213a32;padding:22px;margin:auto;width:min(560px,calc(100% - 32px));box-shadow:0 10px 40px #123a2c33}
.plan-notes[popover] p{font-size:14px;line-height:1.6;margin:12px 0}
.plan-notes[popover]::backdrop{background:#102e244d}
.plan-notes[popover] .pricing-details-close{display:block;margin:0 0 14px auto;border:0;background:#e8f4ed;border-radius:5px;color:var(--ems-plan-plus);padding:7px 12px;font:inherit;cursor:pointer}
@media(min-width:901px) and (max-height:680px){
 .js .home-explorer .resource-tabs,.js .home-explorer .explorer-heading{display:none}
 .js .home-explorer .compact-resource-label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:14px;font-weight:650}
 .compact-resource-label select{font:inherit;font-weight:500;color:var(--ems-plan-plus);background:#fff;border:1px solid #b9cfc1;border-radius:5px;padding:6px 10px;min-height:34px}
 .resource-panels{margin-top:10px}
 .home-intro .features-title-primary{font-size:clamp(1.35rem,2.1vw,1.9rem)}
}
@media(min-width:1001px) and (max-height:820px){
 .home-intro{padding-top:12px}.home-intro .features-title{margin-bottom:12px}
 .resource-tab{min-height:60px;padding:9px 14px}
 .access-account{padding:9px 13px}.access-account h3{font-size:21px}.access-account p{font-size:11px}
 .access-description{margin:9px 13px 5px;font-size:14px}.access-column ul{padding:0 13px 10px}.access-column li{font-size:14px;line-height:1.4;margin-top:5px}
}
@media(max-width:900px) and (max-height:740px){
 .home-intro{padding-top:8px}.home-intro .features-title{margin-bottom:8px}
 .access-description{display:none}.access-column ul{padding-top:5px}
 .panel-footnote{margin-top:5px;font-size:10px}.resource-panel{padding:8px}
 .resource-panels{margin-top:7px}.panel-heading{margin-bottom:7px}
 .access-preview-note{margin-top:5px}
 .access-account{padding:6px 10px}.access-account p{font-size:10px}.access-account h3{font-size:20px}
 .pricing-main{gap:10px}.plan-comparison-body{gap:10px}
}
@media(max-width:900px) and (max-height:740px){
 .home-page .site-header .header-inner,.pricing-page .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto;row-gap:10px}
 .home-page .site-header .site-nav,.pricing-page .site-header .site-nav{grid-column:2;grid-row:1;width:auto;justify-self:end}
 .home-page .site-header .site-play-link,.pricing-page .site-header .site-play-link{grid-column:1 / -1;grid-row:2}
 .home-intro .features-title-primary{font-size:1.35rem}
 .home-intro .features-title::before{margin-bottom:8px}
}

/* Each applicable plan is a separate coloured name badge. */
.access-account h3{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.access-account h3 a,.plan-options .access-tier{display:inline-block;background:#41564a;color:#fff;border-radius:6px;padding:6px 10px;line-height:1.2;font-size:18px;font-weight:750;white-space:nowrap}
.access-account a[href$="?plan=plus"],.plan-options .tier-plus{background:var(--ems-plan-plus)}
.access-account a[href$="?plan=teacher"],.plan-options .tier-teacher{background:var(--ems-plan-teacher)}
.access-account a[href$="?plan=hod"],.plan-options .tier-hod{background:var(--ems-plan-hod)}
@media(max-width:900px),(max-height:820px){.access-account h3 a{font-size:15px;padding:5px 8px}}

/* Full incremental plan lists stay readable within the pricing viewport. */
.plan-options .plan-includes{font-weight:750;color:#213a32}
.pricing-page .plan-options li{font-size:14px;line-height:1.4;margin-bottom:7px}
.pricing-page .plan-price{margin:12px 0 16px}
@media(max-height:820px){
 .pricing-page .plan-options section{padding:14px}
 .pricing-page .plan-options li{font-size:13px;line-height:1.35;margin-bottom:5px}
 .pricing-page .plan-options h3{margin-top:7px;font-size:13px}
 .pricing-page .plan-price{font-size:28px;margin:8px 0 12px}
}
@media(max-width:1000px){
 .pricing-page .plan-options section{padding:12px}
 .pricing-page .plan-options li{font-size:12px;line-height:1.3;margin-bottom:4px}
 .pricing-page .plan-options .access-tier{font-size:18px;padding:5px 8px}
 .pricing-page .plan-price{font-size:25px;margin:6px 0 9px}
}

@media(min-width:1001px) and (max-height:680px){
 .pricing-page .plan-options h3{display:none}
 .pricing-page .plan-options li{font-size:12px;line-height:1.25;margin-bottom:4px}
 .pricing-page .plan-options section{padding:12px}
 .pricing-page .plan-price{font-size:25px;margin:8px 0 10px}
 .pricing-page .plan-options .access-tier{font-size:17px;padding:5px 8px}
 .pricing-main{padding-top:12px;padding-bottom:12px;gap:12px}
}

@media(max-width:900px) and (max-height:740px){.pricing-main{gap:6px;padding-top:8px;padding-bottom:5px}.pricing-page .plan-options li{margin-bottom:3px}}

.pricing-toolbar{display:grid;grid-template-columns:1fr auto 1fr}
/* Prices include VAT (owner, 20 October 2026; UK pricing must show the full price). The same statement is on the account
   page and in the terms; Website/admin/test/vat-statement.test.mjs keeps all three in line with the payment setting. */
.pricing-vat{grid-column:3;justify-self:end;margin:0;font-size:13px;color:#4a6358}
.pricing-details-button{justify-self:end}
.billing-toggle{display:inline-flex;gap:3px;padding:3px;border:1px solid #a9c4b6;border-radius:999px;background:#edf5f0}
.billing-toggle button{border:0;border-radius:999px;padding:6px 15px;color:#335447;background:transparent;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.billing-toggle button[aria-pressed=true]{background:var(--ems-plan-plus);color:white}
.billing-toggle button:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:3px}
.pricing-page .plan-price.price-pending{font-size:20px;letter-spacing:0}
@media(max-width:650px){.pricing-toolbar{grid-template-columns:1fr auto;gap:8px}.pricing-vat{grid-column:1;justify-self:start;font-size:11px}.billing-toggle{grid-column:2;grid-row:1 / span 2}.pricing-details-button{grid-column:1;justify-self:start}.pricing-back{font-size:11px}.billing-toggle button{padding:5px 10px;font-size:12px}}

/* Subscription coverage leads the teacher and school benefits. */
.pricing-page .plan-options .plan-entitlement{font-weight:750;color:var(--account-color);background:var(--account-tint);border-left:3px solid var(--account-color);border-radius:4px;padding:8px;margin-top:8px}

.access-column .access-includes{font-weight:750;color:#213a32}

/* Feature lists follow the plan badges directly, without account-card slogans. */
.access-column ul{padding-top:10px}

.resource-panels[hidden]{display:none}
.home-explorer[data-ready]:not([data-selected]) .resource-tabs{display:grid}
.home-explorer[data-ready]:not([data-selected]) .compact-resource-label{display:none}
.home-explorer[data-ready]:not([data-selected]) .explorer-heading{display:flex}

.annual-charge{display:block;margin-top:4px;font-size:12px;line-height:1.4;font-weight:400;letter-spacing:0;color:#526258}

/* Empty video preview shown when a feature card is opened. */
.feature-video-stage[hidden]{display:none}
.feature-video-stage{width:100%;aspect-ratio:16/9;align-self:stretch;border-radius:7px;background:linear-gradient(145deg,#26352f,#111b17);position:relative;overflow:hidden}
.feature-video-stage::after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:52px;height:52px;border:2px solid #e8c66e;border-radius:50%;opacity:.9}.feature-video-stage::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-35%,-50%);width:20px;height:24px;background:#e8c66e;clip-path:polygon(0 0,100% 50%,0 100%)}
/* Feature videos (owner, 26 October 2026; Social Media/HomePage Videos/1 Spec §4): the card's banner (title, Explore,
   Compare plans) stays so a viewer can open the feature at any moment; the video takes the plan columns' place. */
.resource-panel[data-video-mode]{min-height:0;justify-content:flex-start;align-items:stretch}
.resource-panel[data-video-mode]>.access-columns,.resource-panel[data-video-mode]>.panel-footnote{display:none}
.resource-panel[data-video-mode]>.feature-video-stage{display:block;width:100%;margin:0}
@media(max-width:900px){.resource-card{min-width:0}.resource-play{width:25px;height:25px;right:13px}.resource-tab{padding-right:52px}}

.explorer-heading{justify-content:flex-start}
.explorer-heading p{display:none}

/* Keep the preview inside the fixed amber feature panel and provide an in-panel close control. */
.resource-panels{min-height:0}
.resource-panel[data-video-mode]{min-height:0;justify-content:stretch;align-items:stretch}
.resource-panel[data-video-mode]>.feature-video-stage{display:block;position:relative;flex:1 1 0%;width:100%;height:100%;min-height:0;aspect-ratio:auto;box-sizing:border-box;margin:0;border-radius:7px}
.feature-video-close{position:absolute;z-index:1;top:12px;right:12px;display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(232,198,110,.8);border-radius:50%;background:rgba(17,27,23,.72);color:#fff;font:inherit;font-size:25px;line-height:1;cursor:pointer}
.feature-video-close:hover{background:rgba(17,27,23,.95)}
/* A real video, made 2.4:1 (spec §3), is shown whole and scaled to fit; the stage takes its background colour. */
.feature-video-stage.has-video{aspect-ratio:12/5;background:#e9efec}
.feature-video-stage.has-video::before,.feature-video-stage.has-video::after{content:none}
.feature-video-stage>video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#e9efec}
.feature-video-close:focus-visible{outline:3px solid #e8c66e;outline-offset:3px}
/* Yearly saving against monthly (owner, 17 October 2026). */
.plan-saving{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:#e3f1e8;color:#1f5e3d;font-size:11px;line-height:inherit;font-weight:700;letter-spacing:0;vertical-align:top}
.plan-options section.plan-unavailable>:not(.plan-trial-summary):not(.plan-trial-form){opacity:.5;filter:grayscale(.7)}
.plan-options section>*,.plan-trial-summary>*{transition:opacity .25s ease,filter .25s ease}
@media (prefers-reduced-motion:reduce){.plan-options section>*,.plan-trial-summary>*{transition:none}}
.plan-saving.yearly-only{background:#efeaf4;color:#4f3a6b}
/* The billing line has one fixed height whether or not it carries a badge, so switching between
   Monthly and Yearly never moves the feature lists (owner, 17 October 2026). */
.annual-charge{height:20px;line-height:20px;white-space:nowrap}
.annual-charge .plan-saving{line-height:18px;margin-top:1px;vertical-align:top}
/* School free-trial request (owner, 17 October 2026): the HOD card becomes a short form. The plan list
   and the form share one grid cell, so the card (and the row) is always the form's length. */
.plan-options section.plan-waitlist-card:not([hidden]){display:grid;grid-template-rows:auto 1fr;align-content:start}
.plan-waitlist-card#plus{--waitlist-accent:var(--ems-plan-plus);--waitlist-hover:#075740;--waitlist-border:#a9c4b6}
.plan-waitlist-card#teacher{--waitlist-accent:var(--ems-plan-teacher);--waitlist-hover:#214b63;--waitlist-border:#b8cbd5}
.plan-waitlist-card#hod{--waitlist-accent:var(--ems-plan-hod);--waitlist-hover:#563d69;--waitlist-border:#c9bdd4}
.plan-trial-summary,.plan-trial-form{grid-row:2;grid-column:1;min-width:0}
.plan-trial-summary{display:flex;flex-direction:column}
.plan-trial-form[hidden]{display:flex;visibility:hidden}
.plan-trial-open .plan-trial-summary{visibility:hidden}
.plan-options section.plan-unavailable .plan-trial-summary>:not(.plan-trial-button){opacity:.5;filter:grayscale(.7)}
.plan-trial-button{display:block;margin-top:auto;padding:9px 12px;border-radius:6px;background:var(--waitlist-accent,var(--ems-plan-hod));color:#fff;font-weight:700;font-size:14px;text-align:center;text-decoration:none}
.plan-trial-button:hover{background:var(--waitlist-hover,#563d69)}
.plan-trial-button:focus-visible,.plan-trial-form button:focus-visible{outline:3px solid #e8c66e;outline-offset:3px}
.plan-trial-form{display:flex;flex-direction:column;gap:6px;align-self:stretch;height:100%;box-sizing:border-box;margin-top:0}
.plan-trial-title{margin:0;font-size:16px;font-weight:750;color:var(--waitlist-accent,#33483c)}
.plan-trial-note{margin:0 0 4px;font-size:13px;line-height:1.4;color:#526258}
/* The waitlist privacy line (owner, 4 November 2026) links in the card's own colour. */
.plan-trial-note a{color:var(--waitlist-accent,var(--ems-plan-hod));font-weight:600}
.plan-trial-form label,.plan-trial-phone legend,.plan-trial-label{display:flex;flex-direction:column;gap:3px;font-size:13px;font-weight:600;color:#34483c}
.plan-trial-field{display:flex;flex-direction:column;gap:3px}
.plan-trial-form input,.plan-trial-form textarea,.trial-picker-button{font:inherit;font-size:14px;font-weight:400;padding:5px 8px;border:1px solid var(--waitlist-border,#c9bdd4);border-radius:5px;background:#fff;color:#213a32;resize:vertical}
.plan-trial-form input:focus,.plan-trial-form textarea:focus,.trial-picker-button:focus-visible{outline:2px solid var(--waitlist-accent,var(--ems-plan-hod));outline-offset:0}
.plan-trial-phone{border:0;margin:0;padding:0;display:grid;grid-template-columns:6.4em 1fr;gap:6px;min-width:0}
.plan-trial-phone legend{grid-column:1/-1;padding:0;margin-bottom:3px;gap:4px;flex-direction:row}
.plan-trial-phone legend span{font-weight:400;color:#526258}
.plan-trial-phone input{min-width:0}
.plan-trial-actions{display:flex;gap:8px;margin-top:auto}
.plan-trial-actions button{font:inherit;font-size:14px;font-weight:700;padding:8px 12px;border-radius:6px;cursor:pointer;border:1px solid var(--waitlist-accent,var(--ems-plan-hod))}
.plan-trial-actions button[type=submit]{flex:1;background:var(--waitlist-accent,var(--ems-plan-hod));color:#fff}
.plan-trial-actions button[data-trial-back]{background:#fff;color:var(--waitlist-accent,var(--ems-plan-hod))}
.plan-trial-sent{margin:0;font-size:13px;line-height:1.4;color:#1f5e3d}
.plan-trial-sent[data-error]{color:#a33227}.plan-trial-actions button:disabled{opacity:.65;cursor:wait}.waitlist-honeypot{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
/* Flag dropdowns: flags from intl-tel-input 29.5.3 (MIT), one 20 x 15 image per country in a sprite. */
.trial-picker{position:relative;min-width:0}
.trial-picker-value{position:absolute;inset:auto 0 0;width:100%;height:1px;opacity:0;pointer-events:none;padding:0;border:0}
.trial-picker-button{display:flex;align-items:center;gap:7px;width:100%;min-height:32px;text-align:left;cursor:pointer}
.trial-picker-button:after{content:'';margin-left:auto;flex:none;border:5px solid transparent;border-top-color:var(--ems-plan-hod);border-bottom:0}
.trial-picker-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trial-picker:not([data-iso]) .trial-picker-text{color:#7a8a80}
.trial-picker-error .trial-picker-button{border-color:#b3261e;outline:1px solid #b3261e}
.trial-picker-message{display:block;margin-top:3px;font-size:12px;color:#b3261e}
.trial-flag{--trial-flag-offset:0;flex:none;width:20px;height:15px;border-radius:1px;box-shadow:0 0 1px #888;background-image:image-set(url(/vendor/intl-tel-input-flags/flags.webp) 1x,url(/vendor/intl-tel-input-flags/flags@2x.webp) 2x);background-repeat:no-repeat;background-size:4880px 15px;background-position:calc(var(--trial-flag-offset) * -20px) 0}
.trial-flag[hidden]{display:none}
.trial-picker-panel{position:absolute;z-index:20;top:calc(100% + 4px);left:0;width:max(100%,260px);background:#fff;border:1px solid #c9bdd4;border-radius:6px;box-shadow:0 8px 24px rgba(33,58,50,.18);padding:6px}
.plan-trial-phone .trial-picker-panel{width:260px}
.trial-picker-panel input{width:100%;box-sizing:border-box;margin-bottom:6px}
.trial-picker-panel ul{list-style:none;margin:0;padding:0;max-height:220px;overflow-y:auto}
.pricing-page .plan-options .trial-picker-panel li{margin:0;line-height:1.3;display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:4px;font-size:14px;cursor:pointer;color:#213a32}
.plan-options .trial-picker-panel li:before{content:none}
.plan-options .trial-picker-panel li[aria-selected=true]{background:#f1ebf5}

/* The selected homepage feature shows its video poster in place of plan columns. */
.resource-panel .panel-heading{position:relative;z-index:2}
.resource-panel>.feature-video-stage{display:block;position:relative;flex:1 1 0%;width:100%;height:100%;min-height:0;aspect-ratio:auto;box-sizing:border-box;background:#e9efec}
.feature-video-stage::before,.feature-video-stage::after{content:none}
.feature-video-start{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:#e9efec;cursor:pointer}
.feature-video-start img{display:block;width:100%;height:100%;object-fit:contain}
.feature-video-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:68px;height:68px;border:2px solid #fff;border-radius:50%;background:var(--ems-plan-plus);color:#fff;font-size:25px;line-height:1;transform:translate(-50%,-50%);box-shadow:0 6px 22px #102e2455}
.feature-video-start:hover .feature-video-play{background:#075740;transform:translate(-50%,-50%) scale(1.08)}
.feature-video-start:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:-5px}
.feature-video-start[hidden],.feature-video-close[hidden],.feature-video-stage>video[hidden]{display:none}
.feature-video-pending{display:grid!important;place-items:center;background:#eef4f0;color:#405b4d;text-align:center}
.feature-video-pending p{margin:0;padding:18px;font-size:17px;font-weight:650}
.resource-play:disabled,.resource-play:disabled:hover{opacity:.4;cursor:default;transform:translateY(-50%)}
@media(max-width:900px){
 .js .home-explorer .panel-heading>div{display:block;grid-column:1/-1}
 .resource-open{justify-self:start}
 .feature-video-play{width:56px;height:56px;font-size:22px}
}
@media(max-width:520px){
 .panel-heading{grid-template-columns:minmax(0,1fr) auto}
 .resource-open{grid-column:1}
 .compare-plans{grid-column:2}
 .feature-video-pending p{font-size:14px}
}

/* Compare one feature across all plans, or return to the existing full plan view. */
.pricing-feature-filter{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:11px 14px;border:1px solid #d7e5dc;border-radius:8px;background:#f3f8f4}
.pricing-feature-filter[hidden]{display:none}
.pricing-feature-filter label{display:flex;align-items:center;gap:10px;color:#274539;font-size:14px;font-weight:700}
.pricing-feature-filter select{min-height:38px;min-width:205px;max-width:100%;padding:6px 10px;border:1px solid #a9c4b6;border-radius:6px;background:#fff;color:#213a32;font:inherit;font-weight:500}
.pricing-feature-filter select:focus-visible,.pricing-feature-clear:focus-visible{outline:3px solid var(--ems-plan-plus);outline-offset:2px}
.pricing-feature-clear{border:0;background:transparent;color:var(--ems-plan-plus);font:inherit;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.pricing-feature-clear[hidden]{display:none}
.pricing-feature-context{margin:0 0 0 auto;color:#526258;font-size:13px}
.plan-options .plan-full-features[hidden],.plan-options .plan-filtered-features[hidden]{display:none}
.pricing-page .plan-options .plan-feature-empty{color:#6b746e;font-style:italic}
.pricing-page .plan-options .plan-feature-empty::before{content:none}
.pricing-main[data-feature-filtered] .plan-trial-form[hidden]{display:none}
@media(max-width:700px){
 .pricing-feature-filter{align-items:flex-start;flex-direction:column}
 .pricing-feature-filter label{width:100%;justify-content:space-between;flex-wrap:wrap}
 .pricing-feature-filter select{min-width:0;width:min(100%,250px)}
 .pricing-feature-context{margin-left:0}
}

/* The native plan picker controls compact cards from the first paint, even if scripts arrive late.
   It also works when scripts are unavailable; the module only keeps its URL in sync. */
@media(max-width:1000px){
 .pricing-main .plan-options section,
 .pricing-main .plan-options section.plan-waitlist-card:not([hidden]){display:none}
 .pricing-main:has(#compact-pricing option[value="free"]:checked) .plan-options #free{display:block}
 .pricing-main:has(#compact-pricing option[value="plus"]:checked) .plan-options #plus,
 .pricing-main:has(#compact-pricing option[value="teacher"]:checked) .plan-options #teacher,
 .pricing-main:has(#compact-pricing option[value="hod"]:checked) .plan-options #hod{display:grid}
}

/* EMS Lite is explained where it is named (owner, 19 October 2026): hover, focus or tap shows what it includes and what EMS Plus adds. */
.pricing-page .plan-has-term{position:relative}
.pricing-page .plan-term{text-decoration:underline dotted 1.5px;text-underline-offset:3px;cursor:help;outline-offset:2px}
.pricing-page .plan-term-note{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:20;padding:14px 16px 12px;border:1px solid #cfe0d8;border-left:3px solid var(--account-color);border-radius:8px;background:#fff;color:#213a32;font-weight:500;font-size:13.5px;line-height:1.4;box-shadow:0 10px 28px rgba(19,26,38,.16);opacity:0;visibility:hidden;transition:opacity .12s;text-decoration:none;cursor:default}
.pricing-page .plan-term:hover .plan-term-note,.pricing-page .plan-term:focus .plan-term-note,.pricing-page .plan-term:focus-within .plan-term-note{opacity:1;visibility:visible}
.pricing-page .plan-term-note>span{display:block}
.pricing-page .note-title{font-weight:750;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--account-color);margin-bottom:6px}
.pricing-page .note-sub{margin-top:12px;padding-top:11px;border-top:1px solid #e3ece8;color:#5b6b65}
.pricing-page .note-list>span{display:block;position:relative;padding-left:20px;margin:4px 0}
.pricing-page .note-list>span:before{position:absolute;left:0;top:0;font-weight:800}
.pricing-page .note-yes>span:before{content:"✓";color:var(--account-color)}
.pricing-page .note-plus>span:before{content:"+";color:#0f6b4f}
.pricing-page .plan-term.is-dismissed .plan-term-note{opacity:0;visibility:hidden}
/* The Explore button is the main action of each feature panel (owner, 25 October 2026). Each time a feature is chosen
   it pops with an amber ring, its arrow nudges, and a tag beside it says "Click here to open" for three seconds
   (homepage.mjs pointToOpen). Below 900px the tag sits under the button instead. Reduced motion keeps the tag, still. */
.instruction-explore{padding:1px 7px;border-radius:5px;background:#efb944;color:#263123}
.resource-open>span[aria-hidden]:not(.resource-open-hint){display:inline-block}
.resource-open-hint{position:absolute;left:calc(100% + 14px);top:50%;z-index:3;display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:7px;background:#1f4d3f;color:#fff;font-size:14px;font-weight:700;white-space:nowrap;box-shadow:0 4px 14px rgba(20,50,40,.22);pointer-events:none;visibility:hidden;transform:translateY(-50%)}
.resource-open-hint:before{content:"";position:absolute;right:100%;top:50%;border:7px solid transparent;border-right-color:#1f4d3f;transform:translateY(-50%)}
.resource-open-hand{display:inline-block;font-size:17px}
.resource-open.is-pointed{animation:explore-pop .6s ease-out 2}
.resource-open.is-pointed>span[aria-hidden]:not(.resource-open-hint){animation:explore-arrow .6s ease-in-out 2}
.resource-open.is-pointed .resource-open-hint{animation:explore-hint 3.2s ease forwards}
.resource-open.is-pointed .resource-open-hand{animation:explore-hand-side .5s ease-in-out 4}
@keyframes explore-pop{0%{transform:scale(1);box-shadow:0 0 0 0 rgba(239,185,68,.75)}40%{transform:scale(1.08)}100%{transform:scale(1);box-shadow:0 0 0 14px rgba(239,185,68,0)}}
@keyframes explore-arrow{50%{transform:translateX(5px)}}
/* Shown and hidden outright: a fade passes through part-transparent text that fails WCAG contrast (axe, hosted CI 25 Oct). */
@keyframes explore-hint{0%,99%{visibility:visible}100%{visibility:hidden}}
@keyframes explore-hand-side{50%{transform:translateX(-6px)}}
@keyframes explore-hand-up{50%{transform:translateY(-5px)}}
@media(max-width:900px){
 .resource-open-hint{left:50%;top:calc(100% + 12px);transform:translateX(-50%);font-size:13px}
 .resource-open-hint:before{right:auto;left:50%;top:auto;bottom:100%;border-right-color:transparent;border-bottom-color:#1f4d3f;transform:translateX(-50%)}
 .resource-open.is-pointed .resource-open-hand{animation-name:explore-hand-up}
}
@media(prefers-reduced-motion:reduce){
 .resource-open.is-pointed,.resource-open.is-pointed>span[aria-hidden]:not(.resource-open-hint),.resource-open.is-pointed .resource-open-hand{animation:none}
 .resource-open.is-pointed .resource-open-hint{animation:explore-hint 3.2s steps(1,end) forwards}
}

/* The instruction shows play as the cards' own play icon (owner, 26 October 2026). */
.instruction-play{display:inline-grid;place-items:center;width:1.15em;height:1.15em;vertical-align:-.2em;margin:0 .08em;color:var(--ems-plan-plus)}
.instruction-play svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.instruction-play svg path{fill:currentColor;stroke:none}

/* PHONE LAYOUT (owner-approved 4 November 2026; SITE-EXPERIENCE.md "Phone layout"). The one shared phone media query:
   upright phone (≤600px wide) or phone on its side (≤500px tall); iPads and computers never match. Last in the file so
   it follows every rule it adjusts.
   - The content starts at the top of the screen. The one-screen block (.ems-screen, min-height:100dvh) stays, so the
     footer is still below the fold; any spare height falls below the content. This replaced the stretched layout in
     which the video box grew to fill a tall phone (a big grey box at 390 × 844), and the mock-up's centring, which
     left a large empty gap above the heading on taller phones (owner, 4 November 2026).
   - Before play the video is a small poster card at the film's own shape (12:5), labelled with its length. Every
     homepage film is 45 seconds (Social Media/HomePage Videos/1 Spec; test/homepage-phone-layout.test.mjs reads each
     MP4's own duration so the label cannot drift).
   - Playing, the video is our own full-screen layer on every phone (homepage.mjs adds Back/Esc/end-of-film exits,
     requestFullscreen and the landscape lock where the browser allows them). */
@media (max-width:600px), (orientation:landscape) and (max-height:500px) {
 .home-explorer,.resource-panels,.resource-panel{flex:none}
 .home-page .ems-screen>.home-main{padding-bottom:24px}
 .home-intro .features-title-primary{font-size:1.3rem;line-height:1.25}
 .home-intro .features-title{margin-bottom:12px}
 .resource-panel>.feature-video-stage{flex:none;height:auto;aspect-ratio:12/5;margin-top:14px;border-radius:9px}
 .js .home-explorer .compact-resource-label select{min-height:44px}
 .resource-open{min-height:44px;box-sizing:border-box}
 .compare-plans{display:inline-flex;align-items:center;min-height:44px}
 .feature-video-play{width:52px;height:52px;font-size:20px}
 .feature-video-start::after{content:"45 sec · opens full screen";position:absolute;left:8px;bottom:8px;padding:3px 8px;border-radius:20px;background:rgb(17 27 23 / 78%);color:#fff;font-size:11.5px;font-weight:650;letter-spacing:.01em}
 html:has(.resource-panel[data-video-mode]){overflow:hidden}
 .resource-panel[data-video-mode]>.feature-video-stage{position:fixed;inset:0;z-index:2147483000;width:100vw;height:100dvh;max-height:none;margin:0;aspect-ratio:auto;border-radius:0;background:#000}
 .resource-panel[data-video-mode]>.feature-video-stage>video{inset:auto;left:50%;top:50%;width:min(100vw,240dvh);height:auto;aspect-ratio:12/5;transform:translate(-50%,-50%);background:#000}
 .resource-panel[data-video-mode] .feature-video-close{position:fixed;z-index:2;top:calc(10px + env(safe-area-inset-top));right:calc(10px + env(safe-area-inset-right));width:44px;height:44px;border:2px solid #fff;background:rgb(0 0 0 / 55%);font-size:28px}
}
/* Upright phone, while playing: "Turn sideways for a bigger picture" under the picture; it fades after about 5 seconds. */
@media (max-width:600px) and (orientation:portrait) {
 .resource-panel[data-video-mode]>.feature-video-stage::after{content:"Turn sideways for a bigger picture";position:absolute;left:50%;top:calc(50% + 20.8vw + 22px);bottom:auto;width:max-content;max-width:calc(100vw - 48px);height:auto;padding:10px 16px 10px 44px;border:0;border-radius:22px;opacity:1;transform:translateX(-50%);background:#ffffff1f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='17' rx='2'/%3E%3Cpath d='M21 14a9 9 0 0 1-6 7.5M18 21.5l-3 0 1-3'/%3E%3C/svg%3E") no-repeat 14px center;color:#fff;font-size:14px;font-weight:650;text-align:center;pointer-events:none;animation:ems-hint-fade 6s ease forwards}
}
@keyframes ems-hint-fade{0%,75%{opacity:1}100%{opacity:0}}
/* Phone on its side, before play: the words on the left and the poster on the right, so both fit one screen. This also
   fixes L10 (the video squeezed to a 29px strip at 844 × 390). */
@media (orientation:landscape) and (max-height:500px) {
 .home-intro{padding-top:10px}
 .home-intro .features-title{margin-bottom:8px}
 .home-intro .features-title::before{display:none}
 .resource-panel:not([hidden]):not([data-video-mode]){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,46%);column-gap:20px;align-items:center}
 .resource-panel:not([data-video-mode])>.feature-video-stage{margin-top:0}
 .resource-panels,.resource-panel:not([hidden]){overflow:visible}
 .panel-heading{grid-template-columns:auto auto;justify-content:start;column-gap:22px}
}
