/* Floating glass navigation shared with Bold Verse. */
.masthead,
.masthead.is-scrolled {
  width: calc(100% - 32px);
  margin: 12px auto 0;
  top: 12px;
  padding-inline: 24px;
  gap: clamp(12px, 2.2vw, 32px);
  border: 1px solid #ffffff26;
  border-radius: 24px;
  background: linear-gradient(130deg, #ffffff16, #ffffff06), #141414e8;
  box-shadow: inset 0 1px #ffffff22, 0 12px 40px #0003;
  backdrop-filter: blur(22px) saturate(1.2);
}
.masthead nav { gap: clamp(14px, 2.1vw, 32px); }
.masthead .dropdown { border-radius: 14px; }
.masthead .language-label select { color: var(--orange); }
.catalogue-menu { display: none; }

@media (max-width: 850px) {
  :root { --nav: 60px; }
  .masthead, .masthead.has-header-exits {
    width: calc(100% - 20px);
    margin-top: 8px;
    top: 8px;
    height: var(--nav);
    display: flex;
    padding-inline: 12px;
    gap: clamp(4px, 1.5vw, 12px);
    border-radius: 18px;
  }
  .masthead .header-exits { margin-left: auto; }
  .masthead .language-label { margin-left: auto; }
  .masthead.has-header-exits .language-label { margin-left: 0; }
  .masthead .catalogue-menu {
    display: grid;
    place-items: center;
    order: 1;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: var(--paper);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
  }
  .catalogue-menu span {
    width: 16px;
    height: 8px;
    border-block: 1px solid currentColor;
  }
  .masthead #catalogue-navigation {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 0 auto;
    width: auto;
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    margin: 0;
    padding: 12px 20px;
    border: 1px solid #ffffff26;
    border-radius: 18px;
    background: linear-gradient(130deg, #ffffff12, #ffffff04), #141414;
  }
  .masthead #catalogue-navigation.is-open { display: block; }
  .masthead #catalogue-navigation > a,
  .masthead #catalogue-navigation summary {
    display: flex;
    text-align: start;
    border-bottom: 1px solid var(--line);
  }
  .masthead .dropdown {
    position: static;
    padding: 0 16px;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 360px) {
  .masthead, .masthead.has-header-exits { padding-inline: 8px; }
}
