/* One shared navigation control, available on every portfolio page. */
#app .header, #app .about-profile-header, #app .remote-head {
  position: relative;
  z-index: 30;
  overflow: visible;
}
#app .home-introduction { z-index: 30; overflow: visible; }
#app .site-menu { position: relative; flex: 0 0 auto; font-family: 'DM Sans', Arial, sans-serif; text-align: left; }
#app .site-menu-toggle {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 46px; padding: 6px 7px 6px 21px;
  border: 1px solid #f3c29f; border-radius: 999px;
  background: #f3c29f; color: #181310; font-size: 15px; line-height: 1;
  font-weight: 600; white-space: nowrap; box-shadow: 0 3px 16px #0002;
}
#app .site-menu-arrow {
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; background: #181310; color: #f3c29f;
  font-size: 21px; line-height: 1; transition: transform 180ms ease;
}
#app .site-menu-toggle:is(:hover,:focus-visible) { background: #ffdbbf; border-color: #ffdbbf; box-shadow: 0 0 0 4px #f3c29f1a; }
#app .site-menu-toggle[aria-expanded="true"] .site-menu-arrow { transform: rotate(90deg); }
#app .site-menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 100;
  width: min(460px, calc(100vw - 36px)); max-height: min(610px, calc(100dvh - 100px));
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px;
  padding: 24px; margin: 0; overflow: auto; scrollbar-width: thin;
  border: 1px solid #b9896559; border-radius: 20px;
  background: #1b1410; box-shadow: 0 20px 65px #0009;
}
#app .site-menu-panel[hidden] { display: none; }
#app .site-menu-panel:not([hidden]) { animation: menu-enter 160ms ease-out; }
#app .site-menu-group { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#app .site-menu-group:first-child { grid-row: span 2; }
#app .site-menu-heading { display: block; padding: 0 12px 9px; color: #bfa796; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }
#app .site-menu-panel a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 43px; padding: 11px 12px; margin: 0; border: 1px solid transparent;
  border-radius: 9px; background: transparent; box-shadow: none;
  color: #f2e9e2; font-size: 15px; font-weight: 400; line-height: 1.25;
  letter-spacing: 0; text-transform: none; white-space: normal; text-decoration: none;
}
#app .site-menu-panel a:is(:hover,:focus-visible), #app .site-menu-panel a[aria-current="page"] {
  background: #f3c29f; color: #181310; border-color: #f3c29f;
}
#app .site-menu-current { font-size: 7px; }
#app .home-navigation { position: absolute; right: 5.5%; top: 22px; }
#app .remote-header-actions { display: flex; align-items: center; gap: 12px; }
#app .remote-head { min-height: 68px !important; flex-basis: 68px !important; height: auto !important; }
#app .about-profile-header { flex-wrap: nowrap; }
/* Crop the old navigation printed into the artwork; the map itself is unchanged. */
#app .home { --home-scene-width: min(100vw, calc((100dvh - var(--home-header-height)) * 1672 / 651), 1672px); }
#app .home .home-stage { aspect-ratio: 1672 / 651 !important; }
#app .home-artboard { top: -26.728111%; }
/* Destination links stay above decorative visitor arcs and visitor pins. */
#app .home-stage .map-hotspot { z-index: 8; }
@keyframes menu-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) {
  #app .home-navigation { right: 18px; top: 12px; }
  #app .site-menu-toggle { min-height: 44px; padding-left: 17px; font-size: 14px; gap: 15px; }
  #app .site-menu-arrow { width: 30px; height: 30px; }
  #app .site-menu-panel { position: fixed; top: 82px; right: 12px; width: calc(100% - 24px); max-width: 390px; max-height: calc(100dvh - 96px); padding: 20px 16px; gap: 20px 10px; }
  #app .site-menu-panel a { min-height: 44px; padding: 10px; font-size: 14px; }
  #app .site-menu-heading { padding-left: 10px; }
  #app .about-profile-header { justify-content: space-between; gap: 12px; }
  #app .about-profile-brand span { font-size: 14px; }
  #app .remote-header-actions { gap: 8px; }
  #app .remote-head .crumb { display: none; }
  #app .remote-enlarge-btn { padding: 7px; font-size: 11px; }
  #app .home { --home-scene-width: 100%; }
}
@media (max-width: 380px) {
  #app .site-menu-panel { padding: 18px 12px; gap: 18px 6px; }
  #app .about-profile-brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #app .site-menu-panel:not([hidden]) { animation: none; }
  #app .site-menu-arrow { transition: none; }
}

/* Keep the decorative cursor lettering clear of the open menu. */
body:has(.site-menu-toggle[aria-expanded="true"]) .text-flag-cursor { visibility: hidden; }

/* Stable page changes and visible experience actions. */
html { scroll-behavior: auto; scrollbar-gutter: stable; }
body { overflow-x: clip; }
#app .selector-info { justify-content: flex-start; }
#app .selector-action, #app .manila-column .tile-action { margin-top: 14px !important; }
@media (min-width: 721px) {
  #app .home {
    --home-scene-width: min(100%, calc((100dvh - var(--home-header-height) - var(--home-top-space) - var(--home-bottom-space)) * 1672 / 651), 1672px);
  }
}

@media (min-width: 1181px) {
  #app .manila-column > .country-photo { flex-basis: 50% !important; }
}
