/* A quiet paper tab unfolds into three chapter buttons on the painted canvas. */
.journey-navigation{position:relative;flex:none;pointer-events:auto}
header #directory,#outboundDialog .outbound-directory{
  position:relative;inset:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  min-width:78px;height:44px;padding:0 14px;
  border:1px solid #7b88654d;border-radius:12px 4px 12px 4px;
  background:#faf6e6ed;color:#496449;box-shadow:0 1px 5px #264e330c;
  font:400 14px/1.2 var(--font-display);letter-spacing:.05em;text-shadow:none;
  transition:background .2s,border-color .2s;
}
:is(#directory,.outbound-directory)::after{
  content:'';width:5px;height:5px;flex:none;margin:-3px 0 0 2px;
  border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  transform:rotate(45deg);transition:transform .2s;
}
:is(#directory,.outbound-directory)[aria-expanded=true]::after{transform:translateY(3px) rotate(225deg)}
header #directory:hover,#outboundDialog .outbound-directory:hover{
  background:#fffbed;color:#36563d;border-color:#7b88658c;opacity:1;transform:none;
}
header #directory[aria-expanded=true],#outboundDialog .outbound-directory[aria-expanded=true]{background:#fffbed;border-color:#7b88658c}
:is(#directory,.outbound-directory):focus-visible{outline:2px solid #8d7845;outline-offset:4px}
#outboundDialog .outbound-navigation{position:absolute;top:clamp(18px,4cqh,44px);right:4%;z-index:7}
#menuList.journey-menu{
  position:absolute;top:calc(100% + 6px);right:0;z-index:8;
  display:flex;flex-direction:column;gap:5px;width:100%;margin:0;padding:0;
  animation:journey-menu-unfold .18s ease-out both;
}
header #menuList.journey-menu button,#outboundDialog #menuList.journey-menu button{
  position:relative;display:flex;align-items:center;justify-content:center;
  width:100%;height:44px;min-height:44px;margin:0;padding:0 12px;
  border:1px solid #a5a68059;border-radius:8px 3px 8px 3px;
  background:#faf7e9f5;color:#5d704e;box-shadow:0 1px 5px #264e330c;
  font:400 14px/1.2 var(--font-display);letter-spacing:.12em;text-align:center;text-shadow:none;
  transition:background .2s,border-color .2s,color .2s;touch-action:manipulation;
}
header #menuList.journey-menu button:hover,#outboundDialog #menuList.journey-menu button:hover{
  background:#eef0da;border-color:#7d8c60;color:#38593d;opacity:1;transform:none;
}
header #menuList.journey-menu button[aria-current],#outboundDialog #menuList.journey-menu button[aria-current]{color:#3f613e;background:#e9ecd7f5}
#menuList.journey-menu button[aria-current]::before{
  content:'';position:absolute;left:10px;width:4px;height:4px;border-radius:50%;background:#839263;
}
#menuList.journey-menu button:focus-visible{outline:2px solid #8d7845;outline-offset:2px}
@keyframes journey-menu-unfold{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:600px),(orientation:portrait) and (max-width:760px){
  header #directory,#outboundDialog .outbound-directory{height:44px;min-width:72px;padding:0 12px;font-size:13px;gap:6px}
  header #menuList.journey-menu button,#outboundDialog #menuList.journey-menu button{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
  header #directory,#outboundDialog .outbound-directory,:is(#directory,.outbound-directory)::after,
  header #menuList.journey-menu button,#outboundDialog #menuList.journey-menu button{transition:none}
  #menuList.journey-menu{animation:none}
}
