/* The hero overlays the sea; the reading navigation sits on solid white. */
.topbar {
  --pane-pad: clamp(18px, 2.75vw, 54px);
  --pane-gap: clamp(12px, 2vw, 30px);
  --pane-text: #173647;
  --pane-active: #b84f0e;
  --pane-hover: rgb(41 92 115 / 9%);
  --pane-line: rgb(73 114 132 / 26%);
  box-sizing: border-box;
  font-family: Inter, "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}
.hero .topbar,
body:has(.r3-panel:popover-open) .hero .topbar {
  --pane-border: rgb(186 227 237 / 35%);
  --pane-sheen: rgb(222 250 255 / 42%);
  --pane-surface: #123546;
  --pane-text: #f7fbff;
  --pane-hover: rgb(207 243 255 / 14%);
  --pane-active: #ffac68;
  --pane-line: rgb(210 240 245 / 33%);
}
.hero .topbar,
body:has(.r3-panel:popover-open) .hero .topbar,
.topbar.scroll-header {
  position: relative;
  align-self: start;
  min-height: 64px;
  padding: 7px var(--pane-pad);
  color: var(--pane-text);
  gap: var(--pane-gap);
}
.hero .topbar,
body:has(.r3-panel:popover-open) .hero .topbar {
  margin: 12px var(--pane-gap) 0;
  background: var(--pane-surface);
  border: 1px solid var(--pane-border);
  border-radius: 10px;
  box-shadow: inset 0 1px var(--pane-sheen), 0 4px 22px rgb(7 39 52 / 9%);
}
@media (min-width: 701px), (orientation: landscape) {
  /* Reflect the very top of the same cover into the header gutter.
     Both surfaces meet at the previous 80px picture boundary. */
  .hero::before {
    inset: 80px 0 auto;
    height: calc(100% - 80px);
    clip-path: inset(0 0 calc(100% - 27px));
    transform-origin: top;
    transform: scaleY(-3);
    background: #0f3244 url("/art/ocean-desktop.webp") 60% top / cover no-repeat;
  }
}
.topbar.scroll-header {
  margin: 0;
  padding-inline: var(--gutter, clamp(20px, 5.25vw, 104px));
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.scroll-header .r3-brand { mix-blend-mode: multiply; }
.topbar.glass-inner-header {
  position: sticky;
  width: auto;
  top: 0;
  z-index: 8;
}
.hero .topbar::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0 9% auto 3%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pane-sheen) 22%, transparent 64%);
}
.topbar .nav-items { gap: clamp(8px, 1.1vw, 22px); }
.glass-nav-item { display: inline-flex; align-items: center; white-space: nowrap; }
.glass-nav-link, .glass-mobile-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  font-weight: 600;
}
.glass-nav-link {
  position: relative;
  padding-inline: 4px;
  font-size: 15px;
}
.glass-nav-link::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--pane-active);
  opacity: 0;
}
.glass-nav-link:hover::after,
.glass-nav-link:focus-visible::after,
.glass-nav-link[aria-current="page"]::after,
.glass-nav-item:has([aria-expanded="true"]) .glass-nav-link::after { opacity: 1; }
.topbar button.glass-toggle {
  position: relative;
  min-width: 28px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.hero .topbar .glass-toggle::before {
  content: "";
  position: absolute;
  left: 0;
  width: 1px;
  height: 11px;
  background: var(--pane-line);
}
.topbar button.glass-toggle:hover,
.topbar button.glass-toggle[aria-expanded="true"] { background: var(--pane-hover); }
.topbar button.glass-toggle::after,
body:has(.r3-panel:popover-open) .hero .glass-toggle::after { border-color: currentColor; }
.topbar .action.top { color: #102c3c; background: #ff963f; border-radius: 4px; }
.topbar .action.top:hover { background: #ffac64; }
body:has(.r3-panel:popover-open) .hero .brand { opacity: 1; }
body:has(.r3-panel:popover-open) .hero .r3-open-logo { opacity: 0; }
body:has(.r3-panel:popover-open) .hero .mobile-menu i { background: currentColor; }
body:has(.r3-panel:popover-open) .hero .topbar :focus-visible,
.hero .topbar :focus-visible { outline-color: #fff; }
.r3-panel {
  --menu-tint: rgb(5 28 43 / 71%);
  --menu-blur: 10px;
  --menu-rule: rgb(215 239 248 / 26%);
  --menu-accent: #ffd1a3;
  color-scheme: dark;
  color: #f6fbff;
  background: rgb(5 28 43 / 80%);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
}
body:has(.hero):not(:has(.scroll-header-slot.is-visible)) .r3-panel {
  --menu-tint: rgb(3 23 36 / 51%);
  --menu-blur: 5px;
}
/* Let the wide directories sit directly over the moving water. Narrow desktop
   popovers sit to the right of the hero copy, so it can stay on screen. */
body:has(:is(#services-menu, #destinations-menu, #special-menu, #mobile-directory):popover-open) .hero .content {
  visibility: hidden;
}
.r3-panel :is(.r3-panel-top h2, .r3-group h3) { color: #f6fbff; }
.r3-panel :is(.r3-group h3, .r3-directory-links, .r3-mobile-cta, .r3-accordion) { border-color: var(--menu-rule); }
.r3-panel .r3-index { color: #edf5f9; }
.r3-panel .r3-link { color: #fff; text-decoration-color: rgb(225 244 251 / 57%); }
.r3-panel .r3-link:hover, .r3-panel .r3-arrow { color: var(--menu-accent); }
.r3-panel .r3-close { color: #fff; border-color: var(--menu-rule); background: transparent; }
.r3-panel .r3-close:hover { background: rgb(218 240 250 / 14%); }
.r3-panel :focus-visible { outline: 2px solid #ffd1a3; outline-offset: 2px; }
.r3-accordion > summary {
  position: relative;
  gap: 0;
  padding-right: 14px;
}
.r3-accordion > summary::before {
  content: "";
  position: absolute;
  inset: 13px 40px 13px auto;
  width: 1px;
  background: var(--menu-rule);
}
.r3-accordion > summary .glass-mobile-link {
  flex: 1;
  margin-right: 25px;
  color: #f6fbff;
}
.r3-accordion[open] > summary, .r3-accordion[open] > summary .glass-mobile-link { color: var(--menu-accent); }
.r3-panel .r3-chevron { border-color: currentColor; }
.glass-mobile-link:focus-visible, .glass-mobile-link:hover,
.glass-mobile-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.r3-accordion > summary .r3-chevron { margin-inline: 0; }

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero .topbar,
  body:has(.r3-panel:popover-open) .hero .topbar {
    --pane-surface: linear-gradient(106deg, rgb(18 49 67 / 52%), rgb(19 63 80 / 35%) 56%, rgb(13 43 61 / 48%));
    -webkit-backdrop-filter: blur(8px) saturate(119%);
    backdrop-filter: blur(8px) saturate(119%);
  }
  .r3-panel {
    background: var(--menu-tint);
    -webkit-backdrop-filter: blur(var(--menu-blur));
    backdrop-filter: blur(var(--menu-blur));
  }
}
@media (max-width: 1040px) {
  .r3-mobile-panel { inset-inline: 9px; }
  .topbar .mobile-menu { border-radius: 5px; }
  .topbar .mobile-menu:hover { background: var(--pane-hover); }
  .hero .topbar,
  body:has(.r3-panel:popover-open) .hero .topbar { margin-top: 7px; }
}
@media (max-width: 700px) {
  .topbar { --pane-pad: 11px; --pane-gap: 8px; }
  .hero .topbar,
  body:has(.r3-panel:popover-open) .hero .topbar,
  .topbar.scroll-header { min-height: 54px; padding-block: 4px; }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  .hero .topbar,
  body:has(.r3-panel:popover-open) .hero .topbar,
  .topbar.scroll-header,
  .r3-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .hero .topbar,
  body:has(.r3-panel:popover-open) .hero .topbar { background: #123546; }
  .r3-panel { background: #102c3b; }
  .topbar::after { display: none; }
}
@media (forced-colors: active) {
  .r3-panel { background: Canvas; border: 1px solid CanvasText; }
  .r3-panel :focus-visible { outline-color: Highlight; }
  .glass-nav-link[aria-current="page"] { text-decoration: underline; }
  .topbar .action.top { border: 1px solid ButtonText; }
  .glass-nav-link, .glass-mobile-link { color: LinkText; }
}
.r3-destination-extra {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 44px;padding:8px 0;border-top:1px solid var(--menu-rule)}
.r3-destination-extra .r3-group {display:flex;align-items:baseline;gap:16px}
.r3-destination-extra .r3-group h3 {border:0;margin:0;padding:0;font-size:1rem}
.r3-destination-extra .r3-group li {padding:0}
.r3-destination-extra a {min-height:32px}
.home-faq .glass-faq-links {flex-wrap:wrap;column-gap:1.4rem;row-gap:0;}
.home-faq .glass-faq-links a {display:inline-flex;align-items:center;min-height:44px;gap:.4em;}
.home-faq .glass-faq-links a:hover {text-decoration:underline;}

.industry-nav-list {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:0}
.industry-nav-list li {border-top:1px solid var(--menu-rule);padding-block:10px}
.industry-nav-list a[aria-current="page"],.glass-nav-link[aria-current="location"],.glass-mobile-link[aria-current="location"] {text-decoration:underline;text-underline-offset:4px}
.industry-mobile-nav {position:relative}
.industry-mobile-nav>.glass-mobile-link {position:absolute;left:0;top:0;z-index:1;display:flex;align-items:center;min-height:44px;padding-inline:14px}
.industry-mobile-nav summary {margin-left:auto;width:48px;min-height:44px;justify-content:center}
.industry-mobile-nav .industry-nav-list {grid-template-columns:minmax(0,1fr);gap:0}
@media(min-width:1041px) and (max-width:1320px){.topbar{--pane-pad:16px;--pane-gap:10px}.topbar .nav-items{gap:3px}.topbar .glass-nav-link{font-size:14px}.topbar .glass-toggle{min-width:23px;width:23px}}

/* The mark and outlined lettering scale together when header space is limited. */
.kfy-lockup {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  width: 211px;
  height: 42px;
  max-width: 100%;
  min-width: 0;
  gap: 4.47%;
  flex: 0 1 211px;
  text-decoration: none;
}
.kfy-lockup img.kfy-emblem { display: block; width: 19.43%; height: auto; }
.kfy-lockup img.kfy-wordmark { display: block; width: 76.10%; height: auto; }
.kfy-lockup:focus-visible { outline: 3px solid #e98730; outline-offset: 3px; }
.scroll-header .kfy-lockup { mix-blend-mode: normal; }
.home-hero .topbar { min-width: 0; }
@media (max-width: 767px) {
  .kfy-lockup { width: 181px; height: 36px; flex-basis: 181px; }
}
