/* An open navigation menu lives above page artwork and entrance transforms. */
.language-subnav[data-nav-layer]{position:fixed;inset:auto;color:var(--ink,#0f5132);margin:0;z-index:2147483647;box-sizing:border-box;min-width:200px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 100px);overflow-y:auto;opacity:1;visibility:visible;translate:none;transform:none;isolation:isolate}
.language-subnav[data-nav-layer][hidden]{display:none}
.language-subnav[data-nav-layer]::backdrop{background:transparent;pointer-events:none}
/* The compact menu groups lesson pages beneath their category. */
.mobile-menu .mobile-nav-label{display:block;font-size:15px;font-weight:700;letter-spacing:0;margin:0;padding:11px 12px 4px;color:var(--ink,#0f5132)}
.site-header .mobile-menu .mobile-nav-child{padding-left:30px;font-weight:500}
@media(max-width:820px){
 .site-header .nav-links>.nav-home{display:inline-flex;align-items:center;justify-content:center;font-size:13px;white-space:nowrap;padding:9px 0;min-height:38px}
 .site-header .nav-links{gap:10px;flex-shrink:0}
}
@media(max-width:540px){
 .site-header .nav-links{gap:8px}
 .site-header .nav-links>.nav-home{font-size:12px}
}
@media(max-width:360px){
 .site-header .brand .new-wordmark.primary-wordmark{width:96px;height:62px}
 .site-header .brand .new-wordmark.primary-wordmark img{width:321px!important;height:214px!important;left:-10px;top:-15px}
 .site-header .nav-links{gap:6px}
 .site-header .nav-links>.button{padding-inline:9px}
}

/* Keep the mobile navigation close at hand without changing the page's flow. */
.mobile-nav-spacer[hidden]{display:none}
@media(max-width:820px){
 html{scroll-padding-top:calc(88px + env(safe-area-inset-top,0px))}
 .site-header.mobile-nav-compact{
  position:fixed!important;inset:0 0 auto!important;width:100%;z-index:10000;
  background:#f7f3e8!important;color:#0f5132;border-bottom:1px solid #cbd3bf;
  box-shadow:0 5px 18px #173d2810;padding:env(safe-area-inset-top,0px) 0 0!important;
  overflow:visible!important;transform:none!important;translate:none!important;
 }
 .site-header.mobile-nav-compact .shell.nav{
  width:calc(100% - 32px)!important;min-height:72px!important;height:72px;
  padding:0!important;gap:12px;position:relative;align-items:center;
 }
 .site-header.mobile-nav-compact .brand .new-wordmark.primary-wordmark{
  width:88px!important;height:56px!important;flex-shrink:0;
 }
 .site-header.mobile-nav-compact .brand .new-wordmark.primary-wordmark img{
  width:294px!important;height:196px!important;left:-9.5px!important;top:-14px!important;
 }
 .site-header.mobile-nav-compact .nav-links{gap:9px;align-items:center;flex-shrink:0}
 .site-header.mobile-nav-compact .nav-links>.nav-home{font-size:12px;min-height:44px}
 .site-header.mobile-nav-compact .nav-links>.button{
  min-height:40px;padding:0 14px;font-size:12px;white-space:nowrap;
 }
 .site-header.mobile-nav-compact .mobile-menu-toggle{
  display:inline-flex;width:42px;height:42px;flex-basis:42px;border-radius:50%;
  border:1px solid #cbd3bf;background:transparent;color:#0f5132;
 }
 .site-header .mobile-menu{
  z-index:10001;background:#fffcf5;border:1px solid #cbd3bf;border-radius:18px;
  box-shadow:0 12px 30px #173d281a;max-height:calc(100dvh - var(--mobile-nav-height,130px) - 24px);
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 }
 .site-header.mobile-nav-compact .mobile-menu{top:calc(100% + 8px);right:0;width:min(310px,calc(100vw - 32px));padding:12px}
 .site-header .mobile-menu a{min-height:44px;display:flex;align-items:center;border-radius:10px}
 .site-header .mobile-menu a[aria-current="page"]{background:#e7eddd;font-weight:600}
 .site-header .mobile-menu .mobile-nav-label{font-size:12px;letter-spacing:.06em;padding:10px 12px 6px;color:#53695b}
 .site-header .mobile-menu a.mobile-nav-child{padding-left:26px}
}
@media(max-width:359px){
 .site-header.mobile-nav-compact .shell.nav{width:calc(100% - 24px)!important;gap:8px}
 .site-header.mobile-nav-compact .nav-links{gap:7px}
 .site-header.mobile-nav-compact .nav-links>.button{padding:0 11px;font-size:11px}
}
