/* Site shell: sticky header, desktop & <dialog> mobile navigation, catalog masthead,
   full-bleed page bands, static polar footer, breadcrumbs, and pagination. */

header.site {
    --hdr-ink: #0D1B2A;
    --hdr-ink-hover: #000000;
    --hdr-brand-mark: #005FCC;
    --hdr-brand-mark-hover: #004DB3;
    --hdr-link: #334A61;
    --hdr-link-hover: #0D1B2A;
    --hdr-pill-bg: rgba(241, 245, 250, 0.90);
    --hdr-pill-bg-hover: #FFFFFF;
    --hdr-pill-border: rgba(15, 23, 42, 0.11);
    --hdr-pill-border-hover: rgba(0, 95, 204, 0.34);
    --hdr-hover-bg: rgba(0, 95, 204, 0.08);
    --hdr-active-bg: rgba(0, 95, 204, 0.11);
    --hdr-active-ink: #005FCC;
    --hdr-active-ring: rgba(0, 95, 204, 0.24);
    --hdr-caret: #64748B;

    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--header-h);
    background: var(--glass-hdr-bg) no-repeat border-box;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--glass-hdr-border);
    box-shadow: var(--glass-hdr-shadow);
    color: var(--hdr-ink);
    padding-top: env(safe-area-inset-top, 0px);
    transition: background 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.2s ease;
}

/* Polar Midnight header variables, plus Polar Hero Stage at-rest variables in BOTH themes */
html[data-theme="dark"] header.site,
body:has(.catalog-masthead) header.site:not(.is-scrolled) {
    --hdr-ink: #FFFFFF;
    --hdr-ink-hover: #FFFFFF;
    --hdr-brand-mark: #7DD3FC;
    --hdr-brand-mark-hover: #FFFFFF;
    --hdr-link: rgba(219, 234, 250, 0.82);
    --hdr-link-hover: #FFFFFF;
    --hdr-pill-bg: rgba(6, 19, 36, 0.54);
    --hdr-pill-bg-hover: rgba(14, 34, 62, 0.76);
    --hdr-pill-border: rgba(148, 210, 255, 0.18);
    --hdr-pill-border-hover: rgba(148, 210, 255, 0.36);
    --hdr-hover-bg: rgba(148, 210, 255, 0.11);
    --hdr-active-bg: rgba(56, 189, 248, 0.16);
    --hdr-active-ink: #FFFFFF;
    --hdr-active-ring: rgba(125, 211, 252, 0.28);
    --hdr-caret: rgba(148, 210, 255, 0.58);
}

/* Over a full-bleed Polar Hero Stage (.catalog-masthead), dissolve the 64px horizontal seam
   at rest so the polar sky & stereographic graticule breathe to the top edge,
   crystallizing into frosted glacier-white (light) or obsidian-glass (dark) on scroll. */
body:has(.catalog-masthead) header.site:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(4, 11, 22, 0.72) 0%, rgba(4, 11, 22, 0.24) 62%, rgba(4, 11, 22, 0) 100%) no-repeat border-box;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* When a full-width sticky filterbar docks flush beneath header.site, drop the header's
   overlapping shadow so the two-tier glass chrome casts a single unified shadow onto cards. */
body:not(:has(.catalog-masthead)):has(.filterbar) header.site,
body:has(.filterbar.is-stuck) header.site {
    box-shadow: none;
}

.header-in {
    min-height: calc(var(--header-h) - 1px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 0 0 auto;
}

header.site .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--hdr-ink);
    font: 400 20.5px/1.1 var(--f-serif);
    letter-spacing: -0.012em;
    text-decoration: none;
    transition: color 0.18s ease;
}

header.site .brand .icon {
    width: 24px;
    height: 29px;
    color: var(--hdr-brand-mark);
    transition: color 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

header.site .brand:hover {
    text-decoration: none;
    color: var(--hdr-ink-hover);
}

header.site .brand:hover .icon {
    color: var(--hdr-brand-mark-hover);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.36));
}

header.site .site-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

/* Centered editorial navigation capsule */
header.site .nav-primary {
    margin-inline: auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: var(--r-pill);
    background: var(--hdr-pill-bg);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    border: 1px solid var(--hdr-pill-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

header.site.is-scrolled .nav-primary,
body:not(:has(.catalog-masthead)) header.site .nav-primary {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-theme="dark"] header.site.is-scrolled .nav-primary,
html[data-theme="dark"] body:not(:has(.catalog-masthead)) header.site .nav-primary {
    background: rgba(255, 255, 255, 0.035);
}

/* Desktop navigation links & <details> dropdown summaries */
header.site .nav-primary > a,
.nav-group summary {
    font: 500 13px/1 var(--f-sans);
    letter-spacing: 0.01em;
    color: var(--hdr-link);
    height: 32px;
    padding: 0 14px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-pill);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
    user-select: none;
    -webkit-user-select: none;
}

header.site .nav-primary > a:hover,
.nav-group summary:hover {
    color: var(--hdr-link-hover);
    background: var(--hdr-hover-bg);
    text-decoration: none;
}

header.site .nav-primary > a:active,
.nav-group summary:active {
    background: var(--hdr-active-bg);
}

header.site .nav-primary > a:focus-visible,
.nav-group summary:focus-visible,
.lang-select summary:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

header.site .nav-primary > a.active,
.nav-group summary.active,
.nav-group[open] summary {
    background: var(--hdr-active-bg);
    color: var(--hdr-active-ink);
    box-shadow: inset 0 0 0 1px var(--hdr-active-ring);
}

turbo-frame#voyages {
    display: block;
}

/* Header dropdowns — <details> disclosure & Glacier/Obsidian-Glass popovers */
.nav-group,
.lang-select {
    position: relative;
}

.nav-group summary,
.lang-select summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    list-style: none;
}

.nav-group summary::-webkit-details-marker,
.lang-select summary::-webkit-details-marker {
    display: none;
}

.nav-group summary .icon-caret,
.lang-select summary .icon-caret {
    width: 11px;
    height: 11px;
    color: var(--hdr-caret);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), color 0.16s ease;
}

.nav-group summary:hover .icon-caret,
.lang-select summary:hover .icon-caret {
    color: var(--hdr-link-hover);
}

.nav-group[open] summary .icon-caret,
.lang-select[open] summary .icon-caret {
    transform: rotate(180deg);
    color: var(--accent);
}

.hdr-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 120;
    min-width: 216px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--glass-pop-bg);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid var(--glass-pop-border);
    border-radius: 14px;
    box-shadow: var(--glass-pop-shadow);
    animation: menuFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-5px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-group .hdr-menu {
    left: 0;
    right: auto;
}

.nav-primary > .nav-group:last-child .hdr-menu {
    left: auto;
    right: 0;
}

.lang-select .hdr-menu {
    min-width: 172px;
}

.hdr-menu a,
.hdr-menu .active,
header.site .site-nav .hdr-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8.5px 12px;
    border-radius: 9px;
    font: 500 13px/1.35 var(--f-sans);
    color: var(--glass-ink-2);
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.14s ease, color 0.14s ease;
}

.hdr-menu a:hover,
header.site .site-nav .hdr-menu a:hover {
    background: var(--glass-accent-soft);
    color: var(--glass-ink);
    text-decoration: none;
}

.hdr-menu a:active,
header.site .site-nav .hdr-menu a:active {
    background: var(--accent-soft-hover);
}

.hdr-menu a:focus-visible,
header.site .site-nav .hdr-menu a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.hdr-menu a.active,
.hdr-menu .active,
header.site .site-nav .hdr-menu a.active {
    font-weight: 600;
    background: var(--glass-accent-soft);
    color: var(--glass-accent);
    box-shadow: inset 0 0 0 1px var(--glass-accent-border);
}

.hdr-menu a.active:hover,
header.site .site-nav .hdr-menu a.active:hover {
    background: var(--accent-soft-hover);
    color: var(--glass-accent);
}

.hdr-menu-code {
    font: 600 10.5px/1 var(--f-mono);
    letter-spacing: 0.06em;
    color: var(--glass-muted);
}

.hdr-menu .active .hdr-menu-code,
.hdr-menu a.active .hdr-menu-code {
    color: var(--glass-accent);
}

.hdr-menu-sep {
    border: 0;
    border-top: 1px solid var(--glass-divider);
    margin: 5px 6px;
}

.hdr-menu a.hdr-menu-more,
header.site .site-nav .hdr-menu a.hdr-menu-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--glass-accent);
}

.hdr-menu a.hdr-menu-more .icon-arrow,
header.site .site-nav .hdr-menu a.hdr-menu-more .icon-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.hdr-menu a.hdr-menu-more:hover,
header.site .site-nav .hdr-menu a.hdr-menu-more:hover {
    color: var(--accent-hover);
    background: var(--glass-accent-soft);
}

.hdr-menu a.hdr-menu-more:hover .icon-arrow,
header.site .site-nav .hdr-menu a.hdr-menu-more:hover .icon-arrow {
    transform: translateX(3px);
}

/* 1-Click Polar Daylight / Polar Midnight Theme Toggle Pill */
.theme-toggle {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hdr-pill-border);
    border-radius: var(--r-pill);
    background: var(--hdr-pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--hdr-link);
    cursor: pointer;
    touch-action: manipulation;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.theme-toggle:hover {
    background: var(--hdr-pill-bg-hover);
    border-color: var(--hdr-pill-border-hover);
    color: var(--hdr-link-hover);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle .icon,
.drawer-theme-icons .icon {
    width: 15px;
    height: 15px;
}

/* Zero-FOUC CSS icon swap: in light mode show Moon (switch to Dark); in dark mode show Sun (switch to Bright) */
.theme-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-icon-sun {
    display: none;
    color: #FBBF24;
}

.theme-icon-moon {
    display: inline-flex;
}

html[data-theme="dark"] .theme-icon-sun {
    display: inline-flex;
}

html[data-theme="dark"] .theme-icon-moon {
    display: none;
}

/* Compact meridian language instrument pill */
.lang-select {
    flex: 0 0 auto;
}

.lang-select summary {
    height: 34px;
    padding: 0 11px;
    gap: 5px;
    box-sizing: border-box;
    border: 1px solid var(--hdr-pill-border);
    border-radius: var(--r-pill);
    background: var(--hdr-pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--hdr-link);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.lang-select summary .icon-globe {
    width: 13.5px;
    height: 13.5px;
    color: var(--hdr-brand-mark);
    transition: color 0.16s ease;
}

.lang-select summary .lang-code {
    font: 600 11.5px/1 var(--f-mono);
    letter-spacing: 0.06em;
}

.lang-select summary:hover {
    background: var(--hdr-pill-bg-hover);
    border-color: var(--hdr-pill-border-hover);
    color: var(--hdr-link-hover);
}

.lang-select summary:hover .icon-globe,
.lang-select[open] summary .icon-globe {
    color: var(--accent);
}

.lang-select[open] summary {
    color: var(--hdr-active-ink);
    background: var(--hdr-active-bg);
    border-color: var(--hdr-pill-border-hover);
}

/* Mobile hamburger toggle button */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    background: var(--hdr-pill-bg);
    border: 1px solid var(--hdr-pill-border);
    border-radius: var(--r-pill);
    color: var(--hdr-ink);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    touch-action: manipulation;
    box-sizing: border-box;
}

.nav-toggle:hover {
    background: var(--hdr-active-bg);
    border-color: var(--hdr-pill-border-hover);
    color: var(--hdr-ink-hover);
}

.nav-toggle .icon-menu {
    width: 18px;
    height: 18px;
}

/* Native <dialog id="mobile-nav" class="mobile-drawer"> slide-out drawer */
dialog.mobile-drawer {
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--line);
    width: min(86vw, 360px);
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    background: var(--card);
    color: var(--ink);
    box-shadow: -12px 0 40px rgba(2, 8, 20, 0.35);
    overflow: hidden;
}

html[data-theme="dark"] dialog.mobile-drawer {
    background: linear-gradient(180deg, #061325 0%, #091B34 100%);
    box-shadow: -12px 0 40px rgba(2, 8, 20, 0.68);
}

dialog.mobile-drawer:not([open]) {
    display: none;
}

dialog.mobile-drawer[open] {
    display: flex;
    flex-direction: column;
    animation: drawerSlideIn .22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes drawerSlideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

dialog.mobile-drawer::backdrop {
    background: rgba(4, 11, 22, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

body.nav-drawer-open {
    overflow: hidden;
}

.drawer-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 var(--gutter);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}

.drawer-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
    font: 400 18.5px/1.1 var(--f-serif);
    letter-spacing: -0.012em;
    text-decoration: none;
}

.drawer-brand .icon {
    width: 21px;
    height: 25px;
    color: var(--accent);
}

.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color .12s, background .12s;
    touch-action: manipulation;
}

.drawer-close:hover {
    color: var(--ink);
    background: var(--wash);
}

.drawer-close .icon {
    width: 20px;
    height: 20px;
}

.drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--s4) var(--gutter) var(--s8);
    display: flex;
    flex-direction: column;
    gap: var(--s5);
}

.drawer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px var(--s4);
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    text-decoration: none;
    transition: background .12s, transform .12s, box-shadow .12s;
}

.drawer-cta-btn:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.drawer-cta-btn.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 0 0 2px #38bdf8, 0 4px 14px rgba(2, 132, 199, 0.45);
}

.drawer-cta-btn .icon {
    width: 17px;
    height: 17px;
}

.drawer-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 8px 4px;
}

.drawer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    border-left: 3px solid transparent;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.drawer-nav-item:hover {
    background: var(--wash);
    color: var(--ink);
    text-decoration: none;
}

.drawer-nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}

.drawer-nav-item.active:hover {
    background: var(--accent-soft-hover);
    color: var(--accent);
}

.drawer-nav-item--featured {
    color: var(--accent);
    font-weight: 600;
}

.drawer-nav-item--featured:hover {
    color: var(--accent-hover);
}

.drawer-nav-item--featured.active {
    background: var(--accent-soft);
    color: var(--accent);
    border-left: 3px solid var(--accent);
    padding-left: 9px;
}

.drawer-nav-item--featured .icon {
    width: 14px;
    height: 14px;
}

.drawer-footer-controls {
    margin-top: auto;
    padding-top: var(--s4);
    border-top: 1px solid var(--line);
}

.drawer-theme-btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font: 600 13.5px/1.2 var(--f-sans);
    cursor: pointer;
    touch-action: manipulation;
    transition: background .15s ease, border-color .15s ease;
}

.drawer-theme-btn:hover {
    background: var(--wash);
    border-color: var(--accent);
}

.drawer-theme-icons {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
}

@media (max-width: 1080px) {
    header.site .nav-primary > a,
    .nav-group summary {
        padding: 0 11px;
        font-size: 12.5px;
    }
}

@media (max-width: 960px) {
    header.site .brand-block { min-width: 0; margin-right: auto; }
    header.site .site-nav { display: none; }
    .nav-toggle {
        display: inline-flex;
        flex: 0 0 38px;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    :root { --header-actual-h: 56px; }
    .header-in { min-height: 56px; height: 56px; padding-block: 0; flex-wrap: nowrap; gap: 6px; }
    header.site .brand-block { min-width: 0; margin-right: auto; }
    header.site .brand { font-size: 18px; gap: 8px; }
    header.site .brand .icon { width: 22px; height: 26px; }
    header.site .tagline { display: none; }
    header.site .site-nav { display: none; }
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    .lang-select { display: inline-flex; align-items: center; margin-left: 0; flex-shrink: 0; }
    .lang-select summary {
        height: 36px;
        padding: 0 10px;
    }
    .nav-toggle {
        display: inline-flex;
        flex: 0 0 38px;
        margin-left: 0;
    }
}

/* Homepage Atmospheric Polar Stage (Lemaire Channel + Stereographic Graticule) */
.catalog-masthead {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-actual-h, 64px));
    padding: calc(var(--header-actual-h, 64px) + 48px) 0 76px;
    background: #051121;
    color: var(--on-dark);
}

.masthead-media {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.masthead-bg-photo {
    position: absolute;
    top: 0;
    right: 0;
    width: min(76%, 1220px);
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    opacity: 0.62;
    filter: saturate(0.86) contrast(1.08);
}

.masthead-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 85% at 74% 46%, rgba(56, 189, 248, 0.12) 0%, transparent 70%),
        linear-gradient(90deg,
            #051121 0%,
            #051121 24%,
            rgba(5, 17, 33, 0.86) 48%,
            rgba(6, 20, 39, 0.24) 75%,
            rgba(5, 17, 33, 0.68) 100%),
        linear-gradient(180deg,
            rgba(4, 11, 22, 0.62) 0%,
            rgba(5, 17, 33, 0.14) 44%,
            #061427 100%);
}

.masthead-graticule {
    position: absolute;
    right: max(-40px, calc(50% - 680px));
    top: 52%;
    transform: translateY(-50%);
    width: 680px;
    height: auto;
    color: rgba(125, 211, 252, 0.22);
}

.catalog-masthead-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--s5) var(--s8);
}

.catalog-masthead-copy {
    max-width: 650px;
}

.masthead-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font: 600 11px/1.3 var(--f-mono);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.masthead-beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18), 0 0 12px rgba(56, 189, 248, 0.7);
    flex-shrink: 0;
}

.catalog-masthead-title {
    margin: 0 0 12px;
    font: 400 clamp(2.35rem, 4.3vw, 3.85rem)/1.05 var(--f-serif);
    letter-spacing: -0.022em;
    color: #ffffff;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(3, 10, 22, 0.45);
}

.catalog-masthead-sub {
    margin: 0;
    max-width: 50ch;
    font: 400 15.5px/1.6 var(--f-sans);
    color: rgba(214, 231, 248, 0.78);
}

.masthead-waypoint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    background: rgba(6, 19, 36, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 214, 255, 0.18);
    font: 500 11px/1.2 var(--f-mono);
    letter-spacing: 0.07em;
    color: rgba(214, 231, 248, 0.82);
}

.masthead-waypoint-cross {
    color: #38bdf8;
    font-weight: 700;
}

.region-masthead,
.seasons-masthead,
.activities-masthead,
.activity-masthead,
.wildlife-masthead,
.wildlife-detail-masthead,
.faq-masthead,
.faq-entry-masthead,
.packing-masthead {
    padding: calc(var(--header-actual-h, 64px) + 40px) 0 46px;
}

.regions-masthead {
    padding: calc(var(--header-actual-h, 64px) + 38px) 0 76px;
}

.region-masthead-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(305px, 376px);
    align-items: center;
    gap: var(--s6) var(--s8);
}

.region-masthead-tagline {
    margin: -4px 0 11px;
    font: 600 12.5px/1.45 var(--f-mono);
    letter-spacing: 0.05em;
    color: #7dd3fc;
}

@media (max-width: 900px) {
    .masthead-graticule {
        width: 480px;
        opacity: 0.65;
    }
    .masthead-waypoint {
        display: none;
    }
    .region-masthead-inner {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 768px) {
    .catalog-masthead {
        padding: calc(var(--header-actual-h, 56px) + 24px) 0 28px;
    }
    .masthead-bg-photo {
        width: 100%;
        opacity: 0.40;
    }
    .masthead-scrim {
        background:
            linear-gradient(180deg,
                rgba(4, 11, 22, 0.78) 0%,
                rgba(5, 17, 33, 0.58) 50%,
                #061427 100%);
    }
    .masthead-eyebrow {
        font-size: 10px;
        margin-bottom: 10px;
    }
    .catalog-masthead-title {
        font-size: clamp(1.85rem, 7vw, 2.35rem);
        margin-bottom: 8px;
    }
    .catalog-masthead-sub {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* Full-bleed listing bands (neutralise <main> container so filter strip / masthead spans viewport) */
body.view-listing main,
body.page-ships main,
body.page-operators main,
body.page-regions main,
main:has(.catalog-masthead),
main:has(.filterbar) {
    padding: 0 0 var(--s16);
}

body.page-months main {
    padding: 0;
}

body.view-listing main > .wrap {
    max-width: none;
    padding: 0;
}

.results-band,
.hub-main,
.hub-wrap,
.editorial-wrap {
    position: relative;
    z-index: 10;
}

.results-band {
    display: flow-root;
}

.results-band,
.hub-main {
    padding: var(--s4) 0 0;
}

@media (max-width: 768px) {
    .results-band,
    .hub-main {
        padding-top: var(--s3);
    }
}

.ships-masthead .masthead-bg-photo {
    object-position: center 52%;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 12px;
}

.breadcrumbs.ship-breadcrumbs {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumbs a {
    color: var(--muted);
}

.breadcrumbs a:hover {
    color: var(--accent);
}

/* Pagination */
.pager {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pager a,
.pager span {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--card);
    font: var(--t-num);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.pager span.gap {
    border: 0;
    background: none;
    color: var(--muted);
}

.pager span.current {
    background: var(--btn-bg);
    color: var(--btn-ink);
    border-color: var(--btn-bg);
}

/* Site footer — zero-GPU deep polar gradient */
footer.site {
    position: relative;
    margin-top: var(--s16);
    padding: var(--s10) 0 var(--s8);
    background:
        radial-gradient(ellipse 70% 120% at 15% 0%, rgba(14, 165, 233, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 60% 100% at 85% 100%, rgba(0, 168, 168, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #08182E 0%, #061224 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(7, 21, 41, 0.14);
    color: var(--on-dark);
    z-index: 10;
}

.footer-in {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--s8);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--s8);
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    max-width: 320px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--on-dark);
    font: 400 21px/1.15 var(--f-serif);
    letter-spacing: -0.012em;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.footer-brand:hover {
    opacity: 0.88;
    text-decoration: none;
}

.footer-brand .icon {
    width: 25px;
    height: 30px;
    color: #7dd3fc;
}

.footer-tagline {
    font: var(--t-body);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--on-dark-2);
    margin: 0;
}

.footer-nav-grid {
    display: flex;
    gap: var(--s12);
    margin-left: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    min-width: 120px;
}

.footer-heading {
    font: var(--t-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--ls-label);
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--s2);
}

.footer-links li a {
    font: var(--t-body);
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color .15s ease, transform .15s ease;
    display: inline-block;
}

.footer-links li a:hover {
    color: #ffffff;
    text-decoration: none;
    transform: translateX(2px);
}

.footer-bottom {
    padding-top: var(--s6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.footer-note {
    margin: 0;
    font: var(--t-body);
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.5);
    max-width: 760px;
}

.footer-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s4);
    flex-wrap: wrap;
    font: var(--t-body);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-contact {
    margin: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s ease;
}

.footer-contact a:hover {
    color: #ffffff;
}

.footer-copy {
    margin: 0;
    font-family: var(--f-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 768px) {
    footer.site {
        margin-top: var(--s10);
        padding: var(--s8) 0 var(--s6);
    }
    .footer-top {
        flex-direction: column;
        gap: var(--s6);
    }
    .footer-brand-col {
        max-width: 100%;
    }
    .footer-nav-grid {
        margin-left: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--s6);
    }
    .footer-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--s2);
    }
}

@media (max-width: 480px) {
    .footer-nav-grid {
        grid-template-columns: 1fr;
        gap: var(--s5);
    }
}
