/* Package B shared chrome. Study questions, feedback and saved state stay with their own apps. */
html:root body.academia-unified{padding-top:86px!important;font-size:16px;}
html:root body.academia-unified>header[hidden]{display:none!important;}
/* Keep numbered study navigation; its duplicate brand logo is already in the common header. */
html:root body.academia-unified>header.site-header{top:86px!important;}
html:root body.academia-unified>header.site-header .brand{display:none!important;}
html:root body.academia-unified>header.site-header .book-nav a{
  min-width:44px!important;min-height:44px!important;font-size:14px!important;
}
html:root body.academia-unified>.nx-header.academia-public-header{
  position:fixed!important;inset:0 0 auto!important;z-index:10000!important;
  display:block!important;width:100%!important;max-width:none!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;border-bottom:1px solid var(--nx-accent,#674195)!important;
  border-radius:0!important;background:var(--nx-bg,#f5f3fa)!important;color:var(--nx-ink,#191329)!important;
  font-family:Onest,system-ui,sans-serif!important;box-sizing:border-box!important;
}
html:root body.academia-unified .academia-public-header .nx-header-inner{
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  flex-wrap:nowrap!important;gap:20px!important;max-width:1280px!important;min-height:86px!important;
  margin:0 auto!important;padding:12px 24px!important;box-sizing:border-box!important;
}
html:root body.academia-unified .academia-public-header .nx-brand{
  display:flex!important;align-items:center!important;gap:9px!important;min-height:44px!important;
  min-width:0!important;margin:0!important;padding:0!important;font-size:18px!important;
  line-height:1.15!important;font-weight:800!important;color:var(--nx-ink,#191329)!important;
  text-decoration:none!important;white-space:nowrap!important;
}
html:root body.academia-unified .academia-public-header .nx-brand img{
  display:block!important;width:44px!important;height:44px!important;object-fit:contain!important;flex-shrink:0!important;
}
html:root body.academia-unified .academia-public-header .nx-brand small{
  display:block!important;margin-top:4px!important;font-size:12px!important;line-height:1.2!important;
  font-weight:500!important;letter-spacing:.02em!important;color:var(--nx-muted,#62596f)!important;
}
html:root body.academia-unified .academia-public-header .nx-desktop-nav{
  display:flex!important;align-items:center!important;gap:12px!important;margin:0 0 0 auto!important;padding:0!important;
}
html:root body.academia-unified .academia-public-header .nx-desktop-nav a,
html:root body.academia-unified .academia-public-header .nx-menu>a{
  display:flex!important;align-items:center!important;min-height:44px!important;
  padding:8px 10px!important;box-sizing:border-box!important;font-size:14px!important;line-height:1.3!important;
  color:var(--nx-ink,#191329)!important;font-weight:650!important;text-decoration:none!important;
}
html:root body.academia-unified .academia-public-header .nx-theme{
  display:flex!important;align-items:center!important;gap:4px!important;margin:0!important;padding:3px!important;
  flex-shrink:0!important;border:1px solid var(--nx-line,#d8cee9)!important;border-radius:24px!important;
  background:var(--nx-surface,#fff)!important;
}
html:root body.academia-unified .academia-public-header .nx-theme button,
html:root body.academia-unified .academia-public-header .nx-menu-button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:44px!important;min-height:44px!important;width:auto!important;height:auto!important;
  padding:8px 12px!important;font:700 14px/1.3 Onest,system-ui,sans-serif!important;
  color:var(--nx-ink,#191329)!important;background:var(--nx-surface,#fff)!important;
  border:1px solid var(--nx-line,#d8cee9)!important;border-radius:12px!important;cursor:pointer!important;
}
html:root body.academia-unified .academia-public-header .nx-theme button{font-size:12px!important;border-color:transparent!important;}
html:root body.academia-unified .academia-public-header .nx-theme button[aria-pressed=true]{
  background:var(--nx-accent,#674195)!important;color:var(--nx-on-accent,#fff)!important;
}
html:root body.academia-unified .academia-public-header .nx-menu-button::after{content:none!important;}
html:root body.academia-unified .academia-public-header .nx-menu{
  position:absolute!important;top:calc(100% + 8px)!important;right:max(16px,calc((100vw - 1232px)/2))!important;
  left:auto!important;display:grid!important;gap:2px!important;min-width:260px!important;max-width:calc(100vw - 32px)!important;
  max-height:calc(100dvh - 178px)!important;overflow:auto!important;margin:0!important;padding:12px!important;
  box-sizing:border-box!important;background:var(--nx-surface,#fff)!important;
  color:var(--nx-ink,#191329)!important;border:1px solid var(--nx-line,#d8cee9)!important;border-radius:16px!important;
  box-shadow:0 12px 32px #180d3026!important;
}
html:root body.academia-unified .academia-public-header .nx-menu[hidden]{display:none!important;}
html:root body.academia-unified .academia-public-header .nx-menu>.nx-theme{margin-top:8px!important;justify-content:flex-start!important;}
html:root body.academia-unified .academia-public-header :is(a,button):focus-visible,
html:root body.academia-unified :is(.academia-bottom-nav,.academia-footer) a:focus-visible{
  outline:3px solid var(--nx-accent,#674195)!important;outline-offset:3px!important;
}
html:root body.academia-unified .academia-breadcrumb{font-size:14px!important;line-height:1.5!important;}
html:root body.academia-unified .academia-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;}
html:root body.academia-unified>.academia-footer{
  display:block!important;max-width:none!important;margin:44px 0 0!important;padding:36px 24px 20px!important;
  box-sizing:border-box!important;border-top:1px solid var(--nx-line,#d8cee9)!important;
  background:var(--nx-soft,#ece7f7)!important;color:var(--nx-ink,#191329)!important;
  font:400 14px/1.6 Onest,system-ui,sans-serif!important;
}
html:root body.academia-unified .academia-footer-grid{
  display:grid!important;grid-template-columns:2fr repeat(3,minmax(0,1fr))!important;gap:24px!important;
  max-width:1232px!important;margin:0 auto!important;
}
html:root body.academia-unified .academia-footer-grid nav{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;}
html:root body.academia-unified .academia-footer a{
  display:flex!important;align-items:center!important;min-height:44px!important;
  padding:8px 0!important;box-sizing:border-box!important;font-size:14px!important;line-height:1.4!important;
  color:var(--nx-ink,#191329)!important;text-decoration:none!important;
}
html:root body.academia-unified .academia-footer .academia-footer-brand{font-size:20px!important;font-weight:800!important;}
html:root body.academia-unified .academia-footer p{font-size:14px!important;line-height:1.6!important;color:var(--nx-muted,#62596f)!important;}
html:root body.academia-unified .academia-footer-bottom{max-width:1232px!important;font-size:14px!important;line-height:1.6!important;}
html:root body.academia-unified>.academia-study-footer{font-size:14px;line-height:1.6;flex-wrap:wrap;}
html:root body.academia-unified .academia-bottom-nav{display:none!important;}
html:root body.academia-unified .academia-quick-contact{
  position:fixed!important;right:18px!important;bottom:18px!important;top:auto!important;left:auto!important;z-index:9998!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  width:auto!important;height:auto!important;min-width:44px!important;min-height:44px!important;max-width:calc(100vw - 36px)!important;
  padding:10px 14px!important;border:1px solid var(--nx-accent,#674195)!important;border-radius:24px!important;
  background:var(--nx-accent,#674195)!important;color:var(--nx-on-accent,#fff)!important;
  font:700 14px/1.4 Onest,system-ui,sans-serif!important;text-decoration:none!important;box-sizing:border-box!important;
}
html:root body.academia-unified .academia-quick-contact :is(svg,span){display:inline!important;color:inherit!important;}
html:root body.academia-unified .academia-quick-contact svg{width:22px!important;height:22px!important;fill:currentColor!important;flex-shrink:0!important;}
html:root body.academia-unified .academia-quick-contact:is([hidden],.hide){display:none!important;}
html:root body.academia-unified.academia-study-active :is(.academia-quick-contact,#contactPanel,.ae-resource-tools){display:none!important;}
html:root body.academia-unified :is(.nx-word-archive,.ae-resource-tools__home,[data-academia-practice-nav]){display:none!important;}
/* Default-visible protection for optional reveal effects; no lesson nodes are removed. */
html:root body.academia-unified .nx-reveal{opacity:1!important;transform:none!important;visibility:visible!important;}
html:root body.academia-unified :is(.academia-public-header small,.academia-bottom-nav a){font-size:12px!important;}
html:root body.academia-unified .academia-study-footer small{font-size:12px!important;}
@media(max-width:1080px){
  html:root body.academia-unified .academia-public-header .nx-header-inner{gap:10px!important;padding:12px 18px!important;}
  html:root body.academia-unified .academia-public-header .nx-desktop-nav{gap:4px!important;}
}
@media(max-width:860px){
  html:root body.academia-unified .academia-public-header .nx-desktop-nav{display:none!important;}
  html:root body.academia-unified .academia-public-header .nx-menu-button{margin-left:auto!important;}
  html:root body.academia-unified .academia-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:700px){
  html:root body.academia-unified{padding-top:74px!important;padding-bottom:calc(78px + env(safe-area-inset-bottom))!important;}
  html:root body.academia-unified>header.site-header{top:74px!important;}
  html:root body.academia-unified .academia-public-header .nx-header-inner{min-height:74px!important;padding:10px 14px!important;gap:8px!important;}
  html:root body.academia-unified .academia-public-header .nx-brand{font-size:14px!important;gap:8px!important;}
  html:root body.academia-unified .academia-public-header .nx-brand img{width:34px!important;height:34px!important;}
  html:root body.academia-unified .academia-public-header .nx-menu{left:12px!important;right:12px!important;min-width:0!important;max-width:none!important;max-height:calc(100dvh - 166px)!important;}
  html:root body.academia-unified .academia-bottom-nav{
    position:fixed!important;inset:auto 0 0!important;z-index:9999!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    min-height:64px!important;padding:4px 4px calc(4px + env(safe-area-inset-bottom))!important;box-sizing:border-box!important;
    background:var(--nx-surface,#fff)!important;border-top:1px solid var(--nx-line,#d8cee9)!important;
  }
  html:root body.academia-unified .academia-bottom-nav a{
    display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:52px!important;
    padding:8px 3px!important;box-sizing:border-box!important;text-align:center!important;white-space:normal!important;
    font:700 12px/1.3 Onest,system-ui,sans-serif!important;color:var(--nx-muted,#62596f)!important;text-decoration:none!important;
  }
  html:root body.academia-unified .academia-bottom-nav a[aria-current]{background:var(--nx-soft,#ece7f7)!important;color:var(--nx-accent,#674195)!important;}
  html:root body.academia-unified .academia-quick-contact{right:12px!important;bottom:calc(80px + env(safe-area-inset-bottom))!important;}
  html:root body.academia-unified>.academia-footer{padding:28px 18px 18px!important;}
  html:root body.academia-unified .academia-footer-grid{gap:18px!important;}
}
@media print{
  html:root body.academia-unified{padding:0!important;}
  html:root body.academia-unified :is(.academia-public-header,.academia-bottom-nav,.academia-quick-contact,.academia-breadcrumb){display:none!important;}
}
