/* T30y — Mobile menu: full-screen panel + inline accordions (Services, Company).
   Loaded LAST (after obx-header.css) so it wins the cascade on ≤900px. */
@media (max-width: 900px) {
  /* ── Full-screen panel: hides the page behind it ───────────────────── */
  .site-header nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    margin: 0 !important;
    height: 100vh; height: 100dvh; /* belt + braces: top/bottom stretch fails in some engines */
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; padding: 84px 22px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: none; border-bottom: 0; z-index: 100;
  }
  .site-header nav.open { display: flex; animation: t30y-nav-in .22s ease; }
  @keyframes t30y-nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  /* dim + lock the page behind the open panel */
  body:has(.site-header nav.open) { overflow: hidden; }

  /* The open panel covers the header row: give the header a solid white bar so
     the brand + close button read cleanly, and move the brand above the panel
     (z-index) while hiding the Book button (the panel has its own CTAs). */
  .site-header:has(nav.open) { background: #fff; box-shadow: 0 1px 0 var(--obx-hairline), 0 12px 32px -24px rgba(11,27,43,.4); }
  /* Home: the header is transparent over the hero — the logo statement lives in
     that top strip, so hide it (its link is the brand above) and keep the white bar. */
  .site-header:has(nav.open) .logo-statement { visibility: hidden; pointer-events: none; opacity: 0 !important; animation: none !important; }
  .site-header:has(nav.open) .header-inner { position: relative; z-index: 101; pointer-events: none; }
  .site-header:has(nav.open) .brand { pointer-events: auto; }
  .site-header:has(nav.open) .brand a, .site-header:has(nav.open) .brand { color: var(--obx-ink); text-shadow: none; }
  /* close button (the hamburger) sits over the panel */
  .site-header:has(nav.open) .nav-toggle { pointer-events: auto; background: #fff; border: 1px solid var(--obx-hairline); border-radius: 2px; width: 44px; height: 44px; align-items: center; justify-content: center; }

  /* top-level items in the normal menu style; tap targets ≥44px */
  .site-header nav > a,
  .site-header nav .nav-item > a {
    color: var(--obx-ink) !important; text-shadow: none !important;
    font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; text-transform: none;
    padding: 14px 0; min-height: 44px;
    border-bottom: 1px solid var(--obx-hairline);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .site-header nav a.portal-link {
    display: flex; color: #8A6A2F !important; font-weight: 600; min-height: 44px;
  }

  /* ── Dropdowns open as INLINE ACCORDIONS below their item ────────────
     .nav-sub becomes part of the column flow (static), revealed by
     .nav-item.open. Never a floating box over other items. */
  .site-header nav .nav-item { display: block; position: static; }
  .site-header nav .nav-item > a .nav-caret {
    font-size: 1rem; margin-left: auto; opacity: .8;
    transition: transform .25s ease;
  }
  .site-header nav .nav-item.open > a .nav-caret { transform: rotate(90deg); }
  .site-header nav .nav-sub {
    position: static; transform: none !important;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
    min-width: 0; white-space: normal;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    display: none;
  }
  .site-header nav .nav-item.open .nav-sub { display: block; animation: t30y-nav-in .2s ease; }
  .site-header nav .nav-sub::before { content: none; }

  /* item names: normal menu style (strong). Descriptions: sentence case,
     small, grey, normal letter spacing. */
  .site-header nav .nav-sub a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 12px 0 12px 4px; min-height: 44px;
    border-bottom: 1px solid var(--obx-hairline);
    color: rgba(11,27,43,.55) !important; text-shadow: none !important;
    font-size: .78rem; letter-spacing: .02em; text-transform: none; line-height: 1.4;
    background: none;
  }
  .site-header nav .nav-sub a strong {
    display: block; font-size: .95rem; font-weight: 600;
    letter-spacing: .02em; text-transform: none; color: var(--obx-ink); margin: 0;
  }
  .site-header nav .nav-sub a span {
    display: block; font-size: .78rem; font-weight: 400;
    color: #6b7785; letter-spacing: .02em; text-transform: none; margin: 0;
  }
  .site-header nav .nav-sub a::after { display: none; }
  .site-header nav .nav-sub a:hover,
  .site-header nav .nav-sub a:focus { background: rgba(198,166,100,.08); }

  .site-header .nav-toggle svg { width: 26px; height: 26px; }
}

/* ── T30y part 2 — Home "Aboard your yacht" tab row on mobile ──────────
   Loaded last so it wins the cascade. Edge fade + keep labels whole. */
@media (max-width: 900px) {
  .explorer .tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  /* keep the default 132px min-width so labels are never cut mid-word at load;
     the row scrolls sideways with the edge fade above */
  .explorer .tab__label { letter-spacing: .14em; }

  /* T30y part 4 — tap targets ≥44px on the small interactive elements. */
  .site-header .brand { min-height: 44px; align-items: center; }
  .site-header .btn-header-book { min-height: 44px; display: inline-flex; align-items: center; }
  .site-header .nav-toggle { width: 44px; height: 44px; }
  .aud-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-montage .hero-scroll { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
