/* Shared academy identity. Loaded after legacy skins; page-specific reading
   surfaces and semantic feedback keep their own contrast and colours. */
html:has(body.magic-theme dialog[open]){overflow:hidden}
body.magic-theme:not(.lp-academy) {
  --bg:#102936;--bg-2:#15303d;--panel:#193440;--panel-2:#254450;
  --ink:#eee8dc;--text:#eee8dc;--muted:#c0cccd;--muted-2:#aebec1;
  --primary:#d6c495;--primary-2:#e3d3a9;--accent:#d6c495;--accent-2:#e3d3a9;
  --mint:#d6c495;--gold:#d6c495;--purple:#9baea9;--lavender:#bac5b1;
  --pop:#d6c495;--pop-2:#e3d3a9;--success:#a6c8af;
  --line:#405762;--line-strong:#78898d;
  --font-h:Manrope,Arial,sans-serif;--gh-clip:none;--gh-card:#193440;
  --glow-cyan:none;--glow-violet:none;
  background:#102936;color:#eee8dc;font-family:Manrope,Arial,sans-serif;
}
body.magic-theme:not(.lp-academy) ::selection{background:#d6c495;color:#102936}
body.magic-theme:not(.lp-academy) :is(.nav,.nav.scrolled){background:#0b202b;border-color:#405762;box-shadow:none}
body.magic-theme:not(.lp-academy) :is(.logo img,.expedition-brand img){filter:grayscale(1) sepia(.5) brightness(1.23)}
body.magic-theme:not(.lp-academy) .nav-links a{font:600 14px/1.4 Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#e3ddcf;text-shadow:none}
body.magic-theme:not(.lp-academy) .nav-links a:hover{color:#f3deb0;text-shadow:none}
body.magic-theme:not(.lp-academy) :is(.student-login-link,.nav-account-link){font:600 13px/1.4 Manrope,Arial,sans-serif;letter-spacing:0;text-transform:none;color:#e3ddcf;border:1px solid #72817d;border-radius:7px;padding:11px 14px;min-height:44px;display:inline-flex;align-items:center;background:#193440;clip-path:none;box-shadow:none}
body.magic-theme:not(.lp-academy) :is(.student-login-link,.nav-account-link):hover{background:#294753;box-shadow:none}
body.magic-theme:not(.lp-academy) .nav-toggle{border-color:#78898d;color:#d6c495;background:#193440;border-radius:7px}
body.magic-theme:not(.lp-academy) :is(.mobile-menu,.nav-account-panel){background:#102936;border-color:#78898d;color:#eee8dc;box-shadow:0 12px 30px #05141d60}
body.magic-theme:not(.lp-academy) :is(.mobile-menu a,.nav-account-panel a,.nav-account-panel button){color:#eee8dc;border-color:#405762;font-family:Manrope,Arial,sans-serif;text-transform:none;letter-spacing:0}
body.magic-theme:not(.lp-academy) .mobile-menu a{font-size:15px;min-height:48px}
body.magic-theme:not(.lp-academy) :is(.nav-account-panel a,.nav-account-panel button):hover{background:#254450}
body.magic-theme:not(.lp-academy)>footer{background:#0b202b;border-color:#405762}
body.magic-theme:not(.lp-academy)>footer::before{display:none}
body.magic-theme:not(.lp-academy) .foot-col h5{color:#d6c495;font:600 14px/1.4 Manrope,Arial,sans-serif;letter-spacing:.04em}
body.magic-theme:not(.lp-academy) main>.page-back{background:none;border-color:#405762}
body.magic-theme:not(.lp-academy) :is(main .eyebrow,main .gh-kicker){color:#d6c495;font:600 12px/1.5 Manrope,Arial,sans-serif;letter-spacing:.1em;background:none;box-shadow:none;border:0}
body.magic-theme:not(.lp-academy) :is(main .eyebrow,main .gh-kicker)::before,
body.magic-theme:not(.lp-academy) :is(main .eyebrow,main .gh-kicker)::after{display:none}
body.magic-theme:not(.lp-academy) :is(main .btn,.cookie-banner .btn,.modal .btn){font:600 14px/1.45 Manrope,Arial,sans-serif;text-transform:none;letter-spacing:0;clip-path:none;border-radius:8px;box-shadow:none;min-height:44px}
body.magic-theme:not(.lp-academy) :is(main .btn-primary,.modal .btn-primary,.cookie-banner .btn-primary){background:#d6c495;border-color:#d6c495;color:#122734;text-shadow:none}
body.magic-theme:not(.lp-academy) :is(main .btn-primary,.modal .btn-primary,.cookie-banner .btn-primary):hover{background:#e3d3a9;color:#122734;box-shadow:none}
body.magic-theme:not(.lp-academy) :is(main .btn-ghost,main .btn-accent,.modal .btn-ghost){background:#193440;border:1px solid #78898d;color:#eee8dc;box-shadow:none}
body.magic-theme:not(.lp-academy) :is(main .btn-ghost,main .btn-accent,.modal .btn-ghost):hover{background:#294753;color:#eee8dc;box-shadow:none}
body.magic-theme:not(.lp-academy) .promo-bar{background:#0b202b;color:#d8dece;border-color:#405762;font:400 13px/1.6 Manrope,Arial,sans-serif}
body.magic-theme:not(.lp-academy) .promo-bar a{color:#e7d4a6}
body.magic-theme:not(.lp-academy) :is(a,button,input,select,textarea,summary):focus-visible{outline:2px solid #d6c495;outline-offset:3px}
/* The same artwork and restrained lighting link the hero to the academy. */
.expedition-game .premium-profile-stage::before{background-image:url('../images/magic/academy-hero-v2.webp');background-position:65% 35%;opacity:.3}
.expedition-game .premium-profile .premium-profile-avatar [data-profile-portrait]{filter:saturate(.78) drop-shadow(0 8px 10px #061b2580)}
.expedition-game .premium-profile .companion-crew-inline .companion-profile-portrait{filter:saturate(.88) drop-shadow(0 7px 9px #061b2570)}
.expedition-game .premium-profile :is(.phud-ring-fg,.phud-ring-progress){filter:none}
.expedition-game :is(.adventure-dialog,.companion-chat-dialog){scrollbar-color:#8f9a95 #d8d0c0;scrollbar-width:thin}
.expedition-game .adventure-dialog::backdrop{background:#061722b8;backdrop-filter:blur(3px)}
.expedition-game .adventure-dialog .adventure-dialog-close{background:var(--panel);color:var(--ink);border:1px solid var(--line-strong);box-shadow:none;width:44px;height:44px}
.expedition-game .companion-chat-form input{border-radius:9px}
.expedition-game .game-map-tools a{background:#193440;color:#eee8dc;border-color:#78898d;font:500 14px/1.5 Manrope,Arial,sans-serif;min-height:44px}
.expedition-game .game-map-tools a:hover{background:#254450;border-color:#d6c495}
/* Inline MathML otherwise shrinks fraction digits below the answer text. */
.expedition-game .adventure-dialog :is(.math-command,.answer-text)>.math-inline,
.expedition-game .adventure-dialog .mission-feedback .math-inline{math-style:normal;font-size:1.2em}
@media(max-width:600px){
  body.lp-academy .lp-nav-inner{width:calc(100% - 32px);gap:8px}
  body.lp-academy .lp-nav .lp-logo img{width:134px}
  body.lp-academy .lp-nav-actions{gap:6px}
  body.lp-academy .lp-nav .lp-login{padding:10px 8px;font-size:11px;letter-spacing:0}
  body.magic-theme:not(.lp-academy) .nav-links a{font-size:14px}
  body.magic-theme:not(.lp-academy) .nav .nav-inner{width:100%;max-width:none;padding-inline:12px;gap:8px}
  body.magic-theme:not(.lp-academy) .nav-right{gap:6px}
  body.magic-theme.shell-guest:not(.lp-academy) .nav .logo{width:auto;min-width:0;flex:0 0 auto}
  body.magic-theme.shell-guest:not(.lp-academy) .nav .logo img{width:126px;max-width:126px}
  body.magic-theme:not(.lp-academy) .nav .student-login-link{font-size:12px;padding:10px 8px;min-height:44px}
  body.magic-theme:not(.lp-academy) .nav-parent-account{font-size:12px;padding:9px}
}
@media(max-width:360px){body.lp-academy .lp-nav .lp-logo img{width:110px}}
@media(max-width:350px){body.magic-theme.shell-guest:not(.lp-academy) .nav .logo img{width:100px;max-width:100px}}
