/* Shared public footer and navigation. Original fonts and consent logic are retained. */
body footer.site-footer-common {
  --site-footer-edge: var(--editorial-edge, max(32px, calc((100vw - 1200px) / 2)));
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(40px, 4vw, 64px) var(--site-footer-edge) 26px !important;
  border: 0;
  color: #0a344b;
  background: linear-gradient(180deg, #edf5f3 0%, #dcecef 20%, #bddde3 70%, #9bd1dd 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
body.is-home footer.site-footer-common { --site-footer-edge: max(32px, calc((100vw - 1200px) / 2)); }
body footer.site-footer-common::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,52,75,.25), transparent);
}
.site-footer-common .footer-common-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 5vw, 80px);
  width: 100%;
}
body .site-footer-common h3 {
  margin: 0 0 14px;
  color: #0a344b;
  font-family: inherit;
  font-size: clamp(15px, 1.08vw, 17px);
  font-weight: 600;
  line-height: 1.3;
}
.site-footer-common .footer-follow > p {
  max-width: 35ch;
  margin: 18px 0 0;
  color: #355e6e;
  font-size: 14px;
  line-height: 1.6;
}
.site-footer-common .footer-common-nav { display: block; min-width: 0; }
.site-footer-common .footer-common-nav a {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 0;
  color: #244e60;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400 !important;
  line-height: 1.55;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: color 180ms ease;
}
.site-footer-common .footer-common-nav a:hover,
.site-footer-common .footer-bottom a:hover { color: #006ca8; transform: none; }
.site-footer-common a:focus-visible,
.site-footer-common button:focus-visible { outline: 2px solid #064f7b; outline-offset: 4px; border-radius: 3px; }
.site-footer-common .footer-social-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.site-footer-common .footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #244e60;
  font-size: 14px;
  font-weight: 400 !important;
  text-decoration: none;
}
.site-footer-common .footer-social-links svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.site-footer-common .footer-social-dot,
.site-footer-common .footer-social-facebook { fill: currentColor !important; stroke: none !important; }
body .site-footer-common .footer-bottom {
  box-sizing: border-box;
  display: flex;
  width: 100% !important;
  max-width: none !important;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(10,52,75,.2);
  color: #355e6e;
  font-size: 12.5px;
  line-height: 1.6;
}
.site-footer-common .footer-bottom a { display: inline-block; margin: 0; color: inherit; font-size: inherit; font-weight: 400 !important; text-decoration: none; }
.site-footer-common .antilles-consent-manage.is-footer-control { min-height: 44px; margin: 14px 0 0; padding: 8px 0; color: #244e60; font-weight: 400 !important; }
:is(.site-header, .authority-header) ~ main :is(section[id], article[id], aside[id], nav[id], h1[id], h2[id], h3[id]) {
  scroll-margin-top: calc(var(--site-shell-header-bottom, 100px) + 16px);
}
:is(.site-header, .authority-header) .main-nav a[aria-current],
.site-footer-common nav a[aria-current] { color: #064f7b; box-shadow: inset 0 -1px 0 rgba(197,141,58,.6); }

/* Quiet page progress. It never takes input or changes native scrolling. */
.site-scroll-progress {
  position: fixed;
  z-index: 80;
  top: 50%;
  right: max(8px, env(safe-area-inset-right));
  width: 3px;
  height: 104px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(10,52,75,.16);
  pointer-events: none;
  transform: translateY(-50%);
}
.site-scroll-progress[hidden] { display: none !important; }
.site-scroll-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold, #b98a43);
  transform: scaleY(0);
  transform-origin: center top;
}

/* The map scene keeps its viewport layout; only its standalone page can reach the footer. */
.site-voyage-page .site-footer-common,
.site-voyage-page .module-footer-access { display: none; }
html.site-voyage-standalone body { overflow-x: hidden; overflow-y: auto; }
html.site-voyage-standalone .app-shell { height: 100vh; height: 100svh; min-height: 0; contain: layout paint; }
html.site-voyage-standalone .experience { min-height: 100vh; min-height: 100svh; }
html.site-voyage-standalone body .site-footer-common { display: block; }
html.site-voyage-standalone .module-footer-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding: 5px 8px;
  color: inherit;
  border: 1px solid rgba(255,250,240,.35);
  border-radius: 6px;
  background: rgba(13,47,47,.16);
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
}
html.site-voyage-standalone .module-footer-access:focus-visible { outline: 2px solid #fff8ed; outline-offset: 3px; }

@media (max-width: 760px) {
  .site-scroll-progress { right: max(3px, env(safe-area-inset-right)); width: 2px; height: 64px; }
  body footer.site-footer-common { padding: 36px 20px max(24px, env(safe-area-inset-bottom)) !important; }
  .site-footer-common .footer-common-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .site-footer-common .footer-follow { grid-column: 1 / -1; }
  .site-footer-common .footer-follow > p { max-width: 46ch; margin-top: 10px; }
  .site-footer-common .footer-common-nav a { min-height: 44px; padding-block: 10px; }
  .site-footer-common .footer-social-links a { min-height: 44px; }
  body .site-footer-common .footer-bottom { margin-top: 20px; gap: 14px; }
  .site-footer-common .footer-bottom a { min-height: 44px; padding: 8px 0; }

  /* A compact consent layout: exact text, choices and event handling stay in ga4-consent.js. */
  #antilles-ga4-consent-panel {
    position: fixed;
    z-index: 2147483000;
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-height: calc(100svh - 24px);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px);
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 9px 11px 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #antilles-ga4-consent-panel .antilles-consent-kicker { margin: 0 0 2px; font-size: 10px; line-height: 1.2; }
  #antilles-ga4-consent-panel h2 { margin: 0; font-size: 17px !important; line-height: 1.2 !important; }
  #antilles-ga4-consent-panel .antilles-consent-copy > p:not(.antilles-consent-kicker) { display: block; margin-top: 4px; font-size: 13px !important; line-height: 1.4; }
  #antilles-ga4-consent-panel a { display: inline-flex; align-items: center; min-height: 44px; margin: 0; font-size: 13px !important; }
  #antilles-ga4-consent-panel .antilles-consent-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; justify-content: stretch; }
  #antilles-ga4-consent-panel .antilles-consent-actions button { min-height: 44px; padding: 7px 8px; font-size: 13px !important; line-height: 1.2; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer-common a { transition: none; }
}
