/* 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;}
}
