/* PTJ adapter: preserve existing paper/dark tokens, fonts, and desktop navigation. */
[data-ptj-mobile-menu-trigger] {
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
  touch-action: manipulation;
}
dialog.ptj-mobile-menu {
  --ptj-menu-bg: var(--blog-role-bg, var(--travel-bg, var(--bg, Canvas)));
  --ptj-menu-ink: var(--blog-role-title, var(--travel-title, var(--ink, CanvasText)));
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ptj-menu-ink);
  font: inherit;
  text-align: start;
  isolation: isolate;
}
dialog.ptj-mobile-menu:not([open]) { display: none; }
dialog.ptj-mobile-menu::backdrop { background: transparent; }
.ptj-mobile-menu *, .ptj-mobile-menu *::before, .ptj-mobile-menu *::after { box-sizing: border-box; }
.ptj-mobile-menu__layer {
  position: absolute;
  inset: 0;
  background: var(--ptj-menu-ink);
  pointer-events: none;
}
.ptj-mobile-menu__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--ptj-menu-bg);
  color: var(--ptj-menu-ink);
  overflow: hidden;
}
.ptj-mobile-menu__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 16px max(20px, env(safe-area-inset-left));
}
.ptj-mobile-menu__brand {
  font-family: var(--ptj-menu-brand-font, 'PTJHandTC', 'BrandHand', 'PTJEntryHandTC', 'EntryHand', cursive);
  font-size: 26px;
  line-height: 1.3;
  white-space: nowrap;
}
.ptj-mobile-menu__close {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
}
.ptj-mobile-menu__scroll {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: clamp(16px, 4vh, 40px) max(24px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  scroll-padding: 12px;
}
.ptj-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ptj-mobile-menu__item { min-width: 0; margin: 0; padding: 0; }
dialog.ptj-mobile-menu .ptj-mobile-menu__link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ptj-menu-ink);
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(28px, 6.5vw, 36px);
  font-weight: 500;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  touch-action: manipulation;
}
dialog.ptj-mobile-menu .ptj-mobile-menu__link:is(:link,:visited,:hover,:active,[aria-current]) {
  color: var(--ptj-menu-ink);
  text-decoration: none;
}
/* Integration supplies an existing, theme-aware gold token; never a new color. */
dialog.ptj-mobile-menu .ptj-mobile-menu__link[aria-current] {
  color: var(--ptj-menu-current, var(--blog-focus, var(--travel-focus, var(--ptj-menu-ink))));
}
html[data-theme="dark"] dialog.ptj-mobile-menu .ptj-mobile-menu__link[aria-current] {
  color: var(--ptj-menu-current, var(--blog-brand-gold, var(--travel-gold, var(--ptj-menu-ink))));
}
.ptj-mobile-menu__label { min-width: 0; max-width: 100%; }
.ptj-mobile-menu__current { font-size: 14px; font-weight: 400; line-height: 1.7; }
.ptj-mobile-menu__secondary { margin-top: clamp(24px, 6vh, 56px); }
.ptj-mobile-menu__secondary .ptj-mobile-menu__list { gap: 4px; }
dialog.ptj-mobile-menu .ptj-mobile-menu__secondary .ptj-mobile-menu__link { font-size: 17px; font-weight: 400; line-height: 1.7; }
.ptj-mobile-menu :is(a,button,[tabindex]):focus-visible,
[data-ptj-mobile-menu-trigger]:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.ptj-mobile-menu__scroll:focus-visible { outline-offset: -6px; }
.ptj-mobile-menu__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 992px) { [data-ptj-mobile-menu-trigger] { display: none !important; } }
@media (max-height: 480px) {
  .ptj-mobile-menu__header { padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .ptj-mobile-menu__scroll { padding-top: 8px; }
  .ptj-mobile-menu__list { gap: 4px; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ptj-mobile-menu :is(a,button):hover { translate: 0 -2px; text-shadow: 0 0 12px currentColor; }
}
@media (prefers-reduced-motion: reduce) {
  .ptj-mobile-menu *, [data-ptj-mobile-menu-trigger] { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ptj-mobile-menu :is(a,button):hover { translate: none; }
}

/* Trigger typography is shared; each host retains its existing placement. */
.ptj-mobile-menu-trigger{display:none;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:5px 10px;border:1px solid currentColor;border-radius:999px;background:transparent;color:inherit;font:400 13px/1.5 PTJBody,sans-serif;white-space:nowrap;cursor:pointer}
@media(max-width:991px){.ptj-mobile-menu-trigger{display:inline-flex}}

/* All menu surfaces use the already approved private entry white/black/gold roles. */
html body dialog.ptj-mobile-menu{--ptj-menu-bg:#F6F6F7;--ptj-menu-ink:#3E474A;--ptj-menu-current:color-mix(in srgb,#C09350 45%,#3E474A)}
html[data-theme=dark] body dialog.ptj-mobile-menu{--ptj-menu-bg:#040706;--ptj-menu-ink:#FFFDFF;--ptj-menu-current:#C09350}

/* 2026-11-07 user correction: mobile top-right plus only; no visible frame. */
@media(max-width:991px){
 html body button.ptj-mobile-menu-trigger[data-ptj-mobile-menu-trigger]{position:fixed;top:calc(16px + env(safe-area-inset-top,0px));right:calc(16px + env(safe-area-inset-right,0px));z-index:81;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:400 28px/1 PTJBody,sans-serif;color:inherit;transform:none}
 html body:not([data-ptj-travel-entry-shell]) .ptj-header-actions:not(:has(.ptj-mobile-menu-trigger)),html body[data-ptj-travel-nav-active=true] .ptj-header-actions:not(:has(.ptj-mobile-menu-trigger)){right:calc(72px + env(safe-area-inset-right,0px))}
 html body .ptj-header-actions:has(.ptj-mobile-menu-trigger){right:calc(16px + env(safe-area-inset-right,0px))}
 html body .ptj-header-actions button.ptj-mobile-menu-trigger{position:static;order:3;flex:none}
 html body .cn-nav-row{display:flex;padding-right:188px}
 html body [data-entry-title-nav],html body[data-ptj-travel-entry-shell] [data-public-travel-nav]{padding-right:188px}
 html body:not(:has(.ptj-header-actions)) [data-entry-title-nav]{padding-right:80px}
 body:has([data-static-mobile-directory]) .masthead{padding-right:58px}
}
@media(min-width:992px){html body button.ptj-mobile-menu-trigger{display:none!important}}
