/* USMLE Explained shared chrome (owner 26 Nov 2026 "fix all"):
   A. header search button + search sheet, used on every page (new and old).
   B. the new header, menu and footer on the OLD pages (cart, checkout, FAQ, question pages, cheat sheets...).
      Everything in B is scoped to .uec so the old page content is untouched. */
@font-face{font-family:"Plus Jakarta Sans";src:url(fonts/jakarta-var-latin.woff2) format("woff2");font-weight:200 800;font-style:normal;font-display:swap}
@font-face{font-family:Inter;src:url(fonts/inter-var-latin.woff2) format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

/* ---------- A. search button + sheet ---------- */
.sbtn{display:inline-grid;place-items:center;width:44px;height:44px;margin-left:6px;padding:0;border:0;background:none;color:#fff;cursor:pointer;border-radius:10px;flex:none}
.sbtn svg{width:20px;height:20px;display:block}
.sbtn:active{transform:scale(.94)}
.sbtn:focus-visible{outline:2px solid #E8B730;outline-offset:2px}
.hright{display:flex;align-items:center;gap:2px}
.ssheet{position:fixed;left:0;right:0;bottom:0;top:56px;z-index:46;background:rgba(10,20,40,.4);opacity:0;pointer-events:none;transition:opacity .2s}
.ssheet.on{opacity:1;pointer-events:auto}
.spanel{background:#0F2348;padding:12px 0 16px;transform:translateY(-8px);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.ssheet.on .spanel{transform:none}
.spanel .swrap{max-width:720px;margin:0 auto;padding:0 20px;box-sizing:border-box}
.spanel input{display:block;width:100%;box-sizing:border-box;height:52px;border-radius:12px;border:0;margin:0;padding:0 16px 0 44px;font:16px/1.2 Inter,system-ui,sans-serif;color:#1A2233;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6478' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50%/20px no-repeat;-webkit-appearance:none;appearance:none}
.spanel input:focus{outline:3px solid #E8B730;outline-offset:0}
.hres{margin-top:10px;background:#fff;color:#1A2233;border-radius:12px;padding:4px 14px 10px;max-height:min(60vh,520px);overflow:auto;font:14px/1.45 Inter,system-ui,sans-serif;display:none}
.hres.on{display:block}
.hres .rl{font-size:14px;padding:9px 0;border-bottom:1px solid #E4E8F0}
.hres .rl small{display:block;color:#5B6478;font-size:12px;margin-top:2px}
.hres .hy{display:inline-block;font-size:10px;font-weight:700;color:#8A6400;background:#FFF0C2;border-radius:4px;padding:1px 5px;margin-right:6px;vertical-align:1px}
.hres .hmore{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;font-size:14px;font-weight:600;color:#1B3566;text-decoration:none}
.hres .hint{color:#5B6478;font-size:13px;padding:10px 0 2px}
@media (prefers-reduced-motion:reduce){.ssheet,.spanel{transition:none}}

/* ---------- B. new header / menu / footer on old pages (scoped) ---------- */
.uec,.uec *{box-sizing:border-box}
.uec{--navy:#0F2348;--navy2:#1B3566;--gold:#E8B730;--ink:#1A2233;--mute:#5B6478;--line:#E4E8F0;font-family:Inter,system-ui,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
.uec .wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.uec header{background:var(--navy);color:#fff;margin:0;padding:0;border:0;position:static}
.uec header .wrap{display:flex;align-items:center;justify-content:space-between;height:56px}
.uec .logo{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;font-weight:800;font-size:17px;white-space:nowrap;color:#fff;text-decoration:none;display:inline-block;padding:10px 0;letter-spacing:normal}
.uec .logo i,.uec .ftlogo i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--gold);margin-left:2px;vertical-align:2px}
.uec header nav{display:flex;gap:14px;font-size:14px;font-weight:500}
.uec header nav a{color:#DCE3F2;text-decoration:none;white-space:nowrap;padding:12px 4px}
.uec header nav a:hover{color:#fff}
.uec header nav a.cartl{display:inline-flex;align-items:center;gap:6px;color:#fff;font-weight:600}
.uec header nav a.cartl b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gold);color:var(--navy);font-size:12px}
.uec .menu{display:none;width:44px;height:44px;margin:0 -8px 0 0;padding:0;border:0;background:none;position:relative;cursor:pointer;box-shadow:none;min-height:0}
.uec .menu:before,.uec .menu:after,.uec .menu span{content:"";position:absolute;left:8px;right:8px;height:2px;background:#fff;border-radius:2px}
.uec .menu:before{top:14px}.uec .menu span{top:21px}.uec .menu:after{bottom:14px}
.uec .msheet{position:fixed;left:0;right:0;bottom:0;top:56px;z-index:45;background:rgba(10,20,40,.4);opacity:0;pointer-events:none;transition:opacity .2s}
.uec .msheet.on{opacity:1;pointer-events:auto}
.uec .mpanel{display:block;background:var(--navy);padding:6px 20px 18px;transform:translateY(-8px);transition:transform .25s cubic-bezier(.2,.8,.2,1)}
.uec .msheet.on .mpanel{transform:none}
.uec .mpanel a{display:flex;align-items:center;min-height:44px;color:#fff;text-decoration:none;font-weight:600;font-size:17px;padding:14px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.uec .mpanel a:last-child{border-bottom:0}
.uec .skip{position:absolute;left:8px;top:-60px;z-index:99;background:#fff;color:var(--navy);font-weight:700;padding:12px 16px;border-radius:8px;text-decoration:none}
.uec .skip:focus{top:8px}
.uec footer.ft{background:var(--navy);color:#AEB9D3;padding:40px 0 30px;font-size:14px;margin:0}
.uec .ftgrid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px}
.uec .ftgrid b{display:block;color:#fff;margin-bottom:10px;font-size:14px}
.uec .ftgrid a{display:flex;align-items:center;min-height:44px;color:#AEB9D3;text-decoration:none;padding:0}
.uec .ftgrid a:hover{color:#fff}
.uec .ftgrid p{margin:10px 0 0;color:#AEB9D3}
.uec .ftlogo{font-family:"Plus Jakarta Sans",Inter,system-ui,sans-serif;font-weight:800;font-size:18px;color:#fff}
.uec .ftsmall{border-top:1px solid rgba(255,255,255,.1);margin-top:26px;padding-top:16px;font-size:12.5px;color:#8FA0C4}
.uec .ftsmall a{display:inline-block;min-width:44px;text-align:center;padding:13px 4px;margin:-13px -4px;color:#8FA0C4}
@media (max-width:760px){
  .uec header nav{display:none}.uec .menu{display:block}
  .uec .ftgrid{grid-template-columns:1fr 1fr}.uec .ftgrid>div:first-child{grid-column:1/-1}
}
@media (prefers-reduced-motion:reduce){.uec .msheet,.uec .mpanel{transition:none}}
/* hide the old theme header, extra footer block and footer while the new chrome is on */
body.ue-chrome #masthead,body.ue-chrome .l4-foot,body.ue-chrome #colophon,body.ue-chrome #mobile-drawer,body.ue-chrome .skip-link,body.ue-chrome .uex-hsph,body.ue-chrome #l4-hdrsearch{display:none!important}
/* 27 Nov 2026 (owner: "logo disappears when i hover" on question pages): the old page CSS (.ue-l4 a:hover, navy) beat ours there. Keep the header and footer colours on hover. */
.uec a.logo:hover,.uec a.logo:focus,.uec a.ftlogo:hover,.uec a.ftlogo:focus{color:#fff}
.uec header nav a[href]:hover,.uec .ftgrid a[href]:hover{color:#fff}
