/* Shared navigation and footer. Loaded last on every page. */
html { scrollbar-gutter: stable; }
body { min-width: 0; }
.site-header,
.site-header.scrolled,
.site-header.menu-active {
  height: var(--header-h);
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  padding-inline: max(24px, calc((100% - 1320px) / 2));
  border-bottom-width: 1px;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header .brand, .site-footer .brand { gap: 14px; flex-shrink: 0; }
.site-header .his-lockup, .site-footer .his-lockup { min-width: 52px; }
.site-header .his-lockup strong, .site-footer .his-lockup strong { font-size: 2rem; }
.site-header .brand-separator, .site-footer .brand-separator { height: 36px; }
.site-header .brand-copy, .site-footer .brand-copy { gap: 7px; }
.site-header .brand-copy strong, .site-footer .brand-copy strong { font-size: .8125rem; letter-spacing: .12em; }
.site-header .brand-copy small, .site-footer .brand-copy small { font-size: .75rem; letter-spacing: .1em; opacity: .9; font-weight: 400; }
.site-header .desktop-nav { gap: clamp(18px, 1.6vw, 28px); align-items: center; }
.site-header .desktop-nav a { display: flex; align-items: center; min-height: 44px; padding-block: 10px; font-size: .875rem; letter-spacing: .02em; white-space: nowrap; }
.site-header .desktop-nav a::after { height: 2px; bottom: 5px; background: var(--turmeric); }
.site-header .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .header-cta { display: inline-flex; justify-content: center; min-height: 46px; padding: 12px 18px; font-size: .875rem; line-height: 1.5; letter-spacing: .01em; white-space: nowrap; border-radius: 4px 18px 4px 4px; box-shadow: none; }
.site-header .header-cta svg { flex: 0 0 16px; }
.site-header .menu-button, .site-header .mobile-menu[hidden], .site-header .menu-button[hidden] { display: none; }
.site-header .menu-fallback { display: none; }
.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible { outline: 3px solid var(--sun); outline-offset: 5px; }
.site-header.scrolled a:focus-visible, .site-header.menu-active a:focus-visible, .site-header.menu-active button:focus-visible { outline-color: var(--his-blue); }

.site-footer, .subpage .site-footer { padding: clamp(40px, 4.5vw, 64px) 0 28px; border-top: 0; background: linear-gradient(120deg, #003465, #07487c); }
.site-footer::before { width: 340px; height: 340px; right: -160px; top: -140px; border-color: rgba(0, 183, 206, .2); }
.site-footer::after { height: 4px; }
.site-footer .footer-top, .subpage .site-footer .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .8fr); gap: clamp(28px, 4vw, 56px); padding-bottom: 30px; align-items: start; }
.footer-identity { min-width: 0; }
.site-footer .footer-identity p { margin: 22px 0 10px; color: #d5eaf5; font-size: .875rem; line-height: 1.9; text-wrap: pretty; }
.site-footer .footer-back-top { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; font-size: .8125rem; color: #d5eaf5; }
.footer-back-top span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #78abc8; border-radius: 50%; }
.site-footer .footer-nav-title { margin: 0 0 15px; font-size: .875rem; letter-spacing: .04em; font-weight: 700; color: var(--sun); }
.site-footer .footer-top nav { display: grid; justify-content: stretch; gap: 2px 24px; }
.site-footer .footer-top .footer-guide-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer .footer-top nav a { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; border: 0; font-size: .875rem; font-weight: 500; line-height: 1.7; text-wrap: pretty; word-break: auto-phrase; }
.site-footer .footer-top nav a[aria-current="page"] { color: var(--sun); text-decoration: underline; text-underline-offset: 6px; }
.site-footer .footer-top nav a:hover, .site-footer .footer-back-top:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 6px; }
.site-footer .footer-top nav a span { flex: 0 0 auto; }
.site-footer .footer-external-note { margin: 12px 0 0; color: #b8d7e9; font-size: .75rem; line-height: 1.8; text-wrap: pretty; }
.site-footer .footer-note { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px 36px; padding-top: 22px; }
.site-footer .footer-note p, .subpage .site-footer .footer-note p { margin: 0; max-width: 58em; font-size: .8125rem; line-height: 1.85; color: #b8d7e9; }
.site-footer .footer-bottom, .subpage .site-footer .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding-top: 22px; color: #b8d7e9; font-size: .75rem; }
.site-footer .footer-bottom a { min-height: 32px; display: inline-flex; align-items: center; border: 0; color: #d5eaf5; text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-brand:hover .his-lockup { animation: none; }
body.menu-open .mobile-sticky { visibility: hidden; pointer-events: none; }

@media (max-width: 1080px) {
  .site-header, .site-header.scrolled, .site-header.menu-active { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding-inline: 24px; }
  .site-header .desktop-nav, .site-header .header-cta { display: none; }
  .site-header .menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: auto; min-width: 106px; height: 44px; padding: 8px 12px; border: 1px solid currentColor; border-radius: 4px; color: inherit; background: transparent; cursor: pointer; }
  .site-header .menu-fallback { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; font-size: .875rem; border: 1px solid currentColor; border-radius: 4px; }
  .site-header .menu-button span { grid-area: auto; width: auto; height: auto; background: none; transform: none; }
  .site-header .menu-button[aria-expanded="true"] > span { transform: none; }
  .site-header .menu-label { font-size: .875rem; line-height: 1.5; white-space: nowrap; }
  .site-header .menu-icon { display: grid; align-items: center; width: 20px !important; height: 18px !important; }
  .menu-icon i { display: block; grid-area: 1 / 1; width: 20px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-icon i:first-child { transform: translateY(-4px); }
  .menu-icon i:last-child { transform: translateY(4px); }
  .menu-button[aria-expanded="true"] .menu-icon i:first-child { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon i:last-child { transform: rotate(-45deg); }
  .site-header .mobile-menu { display: block; position: fixed; inset: var(--header-h) 0 auto; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); padding: 24px; overflow-y: auto; overscroll-behavior: contain; background: #fff; color: var(--ink); border-top: 1px solid #d6e5eb; box-shadow: 0 18px 24px rgba(0, 38, 67, .12); backdrop-filter: none; }
  .mobile-menu-inner { width: min(600px, 100%); margin-inline: auto; }
  .site-header .mobile-menu-title { margin: 0 0 14px; font-size: .875rem; font-weight: 700; color: var(--his-blue); }
  .mobile-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .mobile-menu-grid a { display: flex; align-items: center; min-height: 56px; padding: 12px 0; border-bottom: 1px solid #d6e5eb; font-size: 1rem; line-height: 1.7; font-weight: 500; text-wrap: balance; word-break: auto-phrase; }
  .mobile-menu-grid a[aria-current="page"] { color: var(--his-blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .site-header .menu-booking { width: 100%; min-height: 52px; margin-top: 24px; padding: 14px 18px; font-size: .875rem; }
  .site-footer .footer-top, .subpage .site-footer .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 44px; }
  .footer-identity { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 28px; }
  .site-footer .footer-identity p { grid-column: 1; margin: 4px 0 0; }
  .site-footer .footer-back-top { grid-column: 2; grid-row: 1 / span 2; }
  .site-footer .footer-note { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 680px) {
  body { padding-bottom: 0; }
  .site-footer, .subpage .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media (max-width: 600px) {
  .site-header, .site-header.scrolled, .site-header.menu-active { padding-inline: 16px; gap: 12px; }
  .site-header .brand { gap: 10px; }
  .site-header .his-lockup { min-width: 42px; }
  .site-header .his-lockup strong { font-size: 1.75rem; }
  .site-header .brand-copy strong { font-size: .75rem; letter-spacing: .04em; }
  .site-header .brand-copy small { font-size: .75rem; letter-spacing: .04em; }
  .site-header .menu-button { min-width: 94px; gap: 8px; padding: 8px; }
  .site-header .mobile-menu { padding: 20px 16px 24px; }
  .mobile-menu-grid { gap: 0 20px; }
  .mobile-menu-grid a { font-size: .875rem; min-height: 54px; }
  .site-footer .footer-top, .subpage .site-footer .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer-identity { grid-column: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .site-footer .footer-back-top { align-self: start; font-size: 0; gap: 0; }
  .footer-back-top span { width: 44px; height: 44px; font-size: 1rem; }
  .site-footer .footer-nav-title { margin-bottom: 8px; }
  .site-footer .footer-top .footer-official-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-top nav { gap: 2px 20px; }
  .site-footer .footer-external-note { margin-top: 6px; }
  .site-footer .footer-bottom { display: grid; gap: 8px; padding-top: 18px; }
  .site-footer .footer-bottom a { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .site-header *::after, .site-footer * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
