/* V19: retain readable navigation before switching to the small-screen menu.
   Keep V18 photography, content, and the phone opening unchanged. */
.desktop-nav .nav-submenu {
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.desktop-nav .nav-submenu a { white-space: normal; }

@media (min-width: 901px) {
  .header .desktop-nav,
  .header.is-compact .desktop-nav { display: flex; flex-wrap: wrap; }
  .header .menu-toggle { display: none; }
}

/* A full-width row avoids squeezing nine destinations between logo and actions.
   The header keeps the same 120px layout height while scrolling. */
@media (min-width: 901px) and (max-width: 1400px) {
  .header { padding-inline: 24px; }
  .header .desktop-nav,
  .header.is-compact .desktop-nav {
    gap: 0 clamp(10px, 1.15vw, 16px);
    width: 100%;
    min-width: 0;
    margin: 8px 0 0;
    justify-content: center;
  }
  .header .desktop-nav > a,
  .header .desktop-nav > .nav-group > .nav-trigger {
    font-size: .875rem;
    letter-spacing: .015em;
    min-height: 44px;
    line-height: 1.4;
  }
  .header.is-compact {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: 72px 48px;
    gap: 0 20px;
  }
  .header.is-compact .brand {
    grid-column: 1;
    grid-row: 1;
    width: 72px;
    height: 72px;
    margin: 0;
  }
  .header.is-compact .header-right {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-direction: row;
    width: auto;
    gap: 10px;
  }
  .header.is-compact .header-right .button { width: auto; min-width: 156px; }
  .header.is-compact .desktop-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    align-self: stretch;
    border-top: 1px solid #fff2;
  }
}

/* Intermediate home opening: leave space below the restored navigation row. */
@media (min-width: 901px) and (max-width: 1280px) {
  .home-page .header:not(.is-compact) .brand {
    top: 62px;
    width: 232px;
    height: 232px;
  }
  .home-page .header:not(.is-compact) .brand-descriptor {
    top: 300px;
    width: calc(100% - 64px);
    max-width: 760px;
  }
  .home-page .hero .hero-content { padding-top: 354px; }
  .home-page .hero .event-board { top: 354px; }
}

/* Avoid a clipped utility bar at intermediate widths or enlarged text. */
@media (min-width: 801px) and (max-width: 1100px) {
  .topline { height: auto; min-height: 42px; flex-wrap: wrap; justify-content: center; gap: 0 20px; }
  .topline-contact { flex-wrap: wrap; justify-content: center; }
}
