/* Readable, unaltered fallback before enhancement; compact only the existing public nav. */
header[data-nv-spring-header] {
  top: env(safe-area-inset-top, 0px);
}
header[data-nv-spring-header] > .nav {
  min-height: var(--nv-header-row-height);
}
header[data-nv-spring-header] .brand-wordmark {
  transform: scale(var(--nv-header-wordmark-scale, 1));
  transform-origin: left center;
}
.nv-spring-header-space {
  display: block;
  height: var(--nv-header-reserved-space, 0px);
  flex: none;
  pointer-events: none;
}
@media (max-width: 1280px) {
  header[data-nv-spring-header] nav#navigation.open {
    top: 100%;
    box-sizing: border-box;
    max-height: calc(100vh - var(--nv-header-row-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px);
    max-height: calc(100dvh - var(--nv-header-row-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 2px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* These links extend the public drawer, not the desktop or app navigation. */
#navigation .nv-nav-mobile-end { display: none; }
@media screen and (max-width: 1280px) {
  #navigation.open .nv-nav-mobile-end {
    display: block;
    flex: none;
    min-width: 0;
    margin-top: 18px;
    border-block: 1px solid rgba(196, 164, 114, .32);
    background-color: #101e2b;
  }
  .nv-nav-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-block: 10px;
  }
  #navigation .nv-nav-shortcuts a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 8px 6px;
    text-align: center;
    line-height: 1.25;
    font-size: .9375rem;
    white-space: normal;
    overflow-wrap: anywhere;
    color: #fff;
  }
  .nv-nav-shortcuts a + a { border-inline-start: 1px solid rgba(196, 164, 114, .32); }
  .nv-nav-shortcuts svg { color: #c4a472; flex: none; }
  .nv-nav-follow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 9px;
    min-height: 54px;
    padding: 3px 0;
    border-top: 1px solid rgba(196, 164, 114, .32);
  }
  .nv-nav-follow > span { font-size: .875rem; color: #c4a472; }
  .nv-nav-profiles { display: flex; flex-wrap: wrap; align-items: center; min-width: 0; }
  #navigation .nv-nav-profiles a {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    color: #fff;
  }
  .nv-nav-profiles svg { width: 19px; height: 19px; }
  #navigation .nv-nav-mobile-end a:focus-visible { outline: 2px solid #c4a472; outline-offset: -2px; }
  .nv-app-installed #navigation.open .nv-nav-mobile-end,
  .nv-app-navigation #navigation.open .nv-nav-mobile-end { display: none; }
}
@media (display-mode: standalone) {
  #navigation.open .nv-nav-mobile-end { display: none; }
}

/* Keep the mobile drawer flush to the header; soften only its lower edge. */
@media screen and (max-width: 1100px) and (display-mode: browser) {
  html:not(.nv-app-installed, .nv-app-navigation) body > header > .nav > nav#navigation.open:has(> .nv-nav-mobile-end) {
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }
}
