/* One compact navigation system. Motion material is enhanced in motion.css. */
:root { --header-height: 104px; --rail-inset: 12px; }
html { scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 8px); }
:target { scroll-margin-top: 12px; }
.site-header { height: calc(var(--header-height) + env(safe-area-inset-top, 0px)); padding-top: env(safe-area-inset-top, 0px); }
.mobile-menu-backdrop, .mobile-action-rail { display: none; }
.mobile-menu-toggle { display: grid; place-items: center; }
.menu-symbol { position: relative; display: block; width: 20px; height: 16px; }
.menu-symbol::before, .menu-symbol::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 1.5px; background: currentColor; transition: transform 220ms var(--ease), top 220ms var(--ease); }
.menu-symbol::after { top: 11px; }
.mobile-menu[data-menu-state='open'] .menu-symbol::before { top: 7.5px; transform: rotate(45deg); }
.mobile-menu[data-menu-state='open'] .menu-symbol::after { top: 7.5px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-height: 64px; }
  .site-header { position: fixed; z-index: 70; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
  .guide-page, .policy-page { padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px)); }
  .brand { min-height: 44px; }
  .header-actions { gap: 12px; }
  .mobile-menu summary { width: 44px; height: 44px; border-radius: 3px; }
  .mobile-menu[open] > summary { background: transparent; color: inherit; }
  html[data-mobile-menu='open'], html[data-mobile-menu='closing'] { overflow: hidden; }
  html[data-mobile-menu='open'] .site-header, html[data-mobile-menu='closing'] .site-header { color: var(--lake); background: var(--paper); }
  .mobile-menu-backdrop { position: fixed; z-index: 65; inset: calc(var(--header-height) + env(safe-area-inset-top, 0px)) 0 0; width: 100%; border: 0; padding: 0; background: rgba(7, 24, 29, .22); opacity: 0; transition: opacity 180ms ease; }
  html[data-mobile-menu='open'] .mobile-menu-backdrop { display: block; opacity: 1; }
  html[data-mobile-menu='closing'] .mobile-menu-backdrop { display: block; opacity: 0; }
  .mobile-menu nav { position: absolute; top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 8px); left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); max-height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 0; padding: 12px 22px 18px; color: var(--ink); background: var(--paper); border: 1px solid rgba(255, 255, 255, .72); border-radius: 7px; box-shadow: 0 16px 36px rgba(10, 35, 41, .12); transform-origin: 90% 0; }
  .mobile-menu nav > a { display: flex; align-items: center; min-height: 47px; padding: 10px 0; font-size: 17px; line-height: 1.4; }
  .mobile-menu nav > a:not(.button):hover { color: var(--action); }
  .mobile-menu nav > .button { align-self: stretch; justify-content: space-between; min-height: 46px; margin: 12px 0 8px; padding: 11px 16px; color: var(--paper); background: var(--lake); font-size: 14px; }
  .mobile-menu nav > .menu-email { min-height: 44px; font-size: 13px; gap: 12px; color: var(--muted); overflow-wrap: anywhere; }
  .menu-email svg { width: 17px; height: 17px; flex: 0 0 17px; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav { animation: navigation-open 300ms var(--ease) both; }
  html[data-motion='on'] .mobile-menu[data-menu-state='closing'] nav { animation: navigation-close 160ms ease both; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav > a { animation: navigation-item 300ms var(--ease) both; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav > a:nth-child(2) { animation-delay: 25ms; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav > a:nth-child(3) { animation-delay: 50ms; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav > a:nth-child(4) { animation-delay: 75ms; }
  html[data-motion='on'] .mobile-menu[data-menu-state='open'] nav > a:nth-child(n+5) { animation-delay: 100ms; }
}

@media (max-width: 700px) {
  :root { --header-height: 48px; }
  .site-header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); gap: 10px; }
  .brand { min-height: 44px; gap: 7px; }
  .brand-mark { width: 23px; height: 27px; }
  .brand > span { font-size: 19px; line-height: 1.15; letter-spacing: -.045em; white-space: nowrap; }
  .brand-travel { display: inline; margin-top: 0; margin-left: 5px; font-size: 9px; line-height: 1; letter-spacing: .04em; }
  .header-actions { gap: 3px; }
  .language-link { justify-content: center; min-width: 44px; min-height: 44px; font-size: 12px; }
  .header-cta { display: none; }
  .hero { padding-top: 122px; }
  .route-breadcrumb { top: 80px; }
  .site-footer, .policy-page .site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
  .mobile-action-rail { position: fixed; z-index: 55; left: max(var(--rail-inset), env(safe-area-inset-left)); right: max(var(--rail-inset), env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 5px 5px 5px 13px; min-height: 56px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 7px; background: var(--paper); color: var(--ink); box-shadow: 0 6px 24px rgba(9, 32, 38, .12); opacity: 0; translate: 0 12px; visibility: hidden; pointer-events: none; transition: opacity 220ms ease, translate 300ms var(--ease), visibility 0s linear 220ms, backdrop-filter 260ms ease, -webkit-backdrop-filter 260ms ease; }
  .mobile-action-rail[data-state='visible'] { opacity: 1; translate: 0 0; visibility: visible; pointer-events: auto; transition: opacity 220ms ease, translate 300ms var(--ease), visibility 0s, backdrop-filter 260ms ease, -webkit-backdrop-filter 260ms ease; }
  .rail-context { min-width: 0; }
  .rail-eyebrow { display: block; font-size: 10px; line-height: 1.4; color: var(--muted); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-context-name { display: block; font-size: 13px; line-height: 1.4; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rail-primary { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 44px; padding: 10px 14px; border-radius: 3px; background: var(--lake); color: var(--paper); font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; transition: background-color 180ms ease, transform 140ms ease; }
  .rail-primary:hover { background: var(--action); }
  .rail-primary:active { transform: scale(.985); }
  .rail-primary svg { width: 17px; height: 17px; }
  .selection-notice { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  html[data-rail-visible='true'] .selection-notice { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 370px) {
  .site-header { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
  .brand > span { font-size: 18px; }
  .brand-travel { font-size: 8px; margin-left: 4px; }
  .header-actions { gap: 0; }
  .hero { padding-top: 112px; }
  .mobile-action-rail { gap: 8px; padding-left: 11px; }
  .rail-primary { padding-left: 11px; padding-right: 11px; gap: 8px; font-size: 12px; }
  .rail-context-name { font-size: 12px; }
}
@keyframes navigation-open {
  from { opacity: 0; translate: 0 -8px; scale: .992; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
  to { opacity: 1; translate: 0 0; scale: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
@keyframes navigation-close {
  from { opacity: 1; translate: 0 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  to { opacity: 0; translate: 0 -5px; -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
}
@keyframes navigation-item { from { opacity: .4; translate: 0 -3px; } to { opacity: 1; translate: 0 0; } }
html[data-motion='off'] .mobile-action-rail, html[data-motion='off'] .mobile-menu-backdrop, html[data-motion='off'] .menu-symbol::before, html[data-motion='off'] .menu-symbol::after { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .mobile-action-rail, .mobile-menu-backdrop, .menu-symbol::before, .menu-symbol::after { transition: none; }
}
