/* Restore the native open menu. When closed, its preserved header geometry
   still calibrates the authored full-width body wordmark. */
@media (max-width:767px) {
  html[data-mobile-wordmark-nav-ready]:not([data-native-wordmark-menu-open]) #header,
  html[data-mobile-wordmark-nav-ready]:not([data-native-wordmark-menu-open]) #header * {visibility:hidden!important;pointer-events:none!important;}
  html[data-mobile-wordmark-nav-ready] [data-mobile-wordmark-trigger] {cursor:pointer;-webkit-tap-highlight-color:transparent;}
  html[data-mobile-wordmark-nav-ready] [data-mobile-wordmark-trigger]:focus-visible {outline:1px solid #fff!important;outline-offset:-4px!important;}
  #mobile-wordmark-fallback {display:block;border:0;box-shadow:none;padding:0;margin:max(12px,env(safe-area-inset-top)) 0 18px;width:100%;min-height:44px;background:transparent;cursor:pointer;}
  #mobile-wordmark-fallback img {width:100%;height:auto;aspect-ratio:5000/700;object-fit:contain;display:block;}
  /* Standalone pages have no native header. Keep their emergency menu in the
     same centered PT Serif composition, not the previous logo-stacked dialog. */
  html[data-mobile-wordmark-dialog-open] {overflow:hidden;}
  #mobile-wordmark-menu {
    box-sizing:border-box;position:fixed;inset:0;width:100%;height:100vh;height:100dvh;
    max-width:none;max-height:none;border:0;padding:max(72px,env(safe-area-inset-top)) 20px max(50px,env(safe-area-inset-bottom));margin:0;
    overscroll-behavior:contain;overflow-y:auto;background:#000;color:#fff;text-align:center;font-family:"PT Serif",Georgia,serif;
  }
  #mobile-wordmark-menu::backdrop {background:#000;}
  #mobile-wordmark-menu:not([open]) {display:none!important;}
  #mobile-wordmark-menu[open] {display:grid;place-items:center;}
  #mobile-wordmark-menu .mobile-wordmark-close {
    position:absolute;top:max(20px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));
    width:44px;height:44px;padding:0;border:0;background:transparent;color:#fff;cursor:pointer;
  }
  #mobile-wordmark-menu .mobile-wordmark-close::before,#mobile-wordmark-menu .mobile-wordmark-close::after {content:"";position:absolute;inset:21px 8px auto;height:1px;background:currentColor;}
  #mobile-wordmark-menu .mobile-wordmark-close::before {transform:rotate(45deg);}
  #mobile-wordmark-menu .mobile-wordmark-close::after {transform:rotate(-45deg);}
  #mobile-wordmark-menu nav {display:grid;justify-items:center;gap:14px;margin:0;outline:0;}
  #mobile-wordmark-menu nav a {display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 12px;color:#fff;text-decoration:none;font:400 clamp(24px,8.5vw,34px)/1 "PT Serif",Georgia,serif;scale:1;}
  #mobile-wordmark-menu nav a[aria-current="page"] {font-weight:600;}
  #mobile-wordmark-menu nav .mobile-wordmark-fallback-apply {position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);font-size:14px;}
  #mobile-wordmark-menu :is(a,button):focus-visible {outline:1px solid #fff!important;outline-offset:-3px!important;}
}
@media (min-width:768px) {
  #mobile-wordmark-menu,#mobile-wordmark-fallback {display:none!important;}
}

/* One floating tap target; no masthead, strip or button fill. */
@media (max-width:767px) {
  html[data-mobile-wordmark-nav-ready] #mobile-favicon-menu-trigger {
    position:fixed;top:max(10px,env(safe-area-inset-top));right:max(13px,env(safe-area-inset-right));z-index:1100;
    display:grid;place-items:center;box-sizing:border-box;
    width:44px;height:44px;min-width:44px;min-height:44px;
    margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent!important;
    color:#f2eede;cursor:pointer;scale:1;
    opacity:1;transform:translateY(0);
    transition:transform 220ms ease,opacity 170ms ease!important;
  }
  html[data-mobile-wordmark-nav-ready] #mobile-favicon-menu-trigger img {
    width:21px;height:21px;object-fit:contain;display:block;
    filter:drop-shadow(0 1px 2px rgba(0,0,0,.7));
  }
  html[data-mobile-wordmark-nav-ready] #mobile-favicon-menu-trigger[data-scroll-hidden] {
    opacity:0;transform:translateY(calc(-100% - max(10px,env(safe-area-inset-top))));
    pointer-events:none;
  }
  /* The native auto-hide header uses transform:translateY(-100%) when
     scrolled. A transformed ancestor traps the fixed drawer in that short
     header. Neutralize it only while opened by this floating shortcut. */
  html[data-native-wordmark-menu-open][data-mobile-favicon-drawer-open] #header {
    transform:none!important;transition-property:none!important;
  }
  html:is([data-native-wordmark-menu-open],[data-mobile-wordmark-dialog-open]) #mobile-favicon-menu-trigger {
    visibility:hidden!important;pointer-events:none!important;
  }
  @media(prefers-reduced-motion:reduce) {
    html[data-mobile-wordmark-nav-ready] #mobile-favicon-menu-trigger {transition:none!important;}
  }
}
@media(min-width:768px) {#mobile-favicon-menu-trigger{display:none!important;}}
