/* Keep the main destinations available on long desktop articles. */
.header .desktop-nav>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 10px;
  line-height: 1.5;
  white-space: nowrap;
  border-radius: 10px;
}
.header .desktop-nav>a:hover,
.header .desktop-nav>a[aria-current=page] {
  background: #f4e7ec;
  color: #69384a;
}
.header .desktop-nav .header-search { width:44px; padding:10px; flex:0 0 44px; }
.header .desktop-nav .header-search svg { display:block; }
.header .mobile-menu nav { max-height:calc(100dvh - 120px); overflow-y:auto; overscroll-behavior:contain; }
.header .mobile-menu nav a[aria-current=page] { color:#69384a; font-weight:700; }
.header-menu-more { border-top:1px solid #e7dee1; margin-top:8px; padding-top:8px; }
@media (max-width: 800px) {
  .header .mobile-menu nav { max-height:calc(100dvh - 180px - env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1101px) {
  .header { flex-wrap:nowrap; gap:24px; }
  .header .desktop-nav { align-items:center; flex-wrap:nowrap; gap:4px; }
}
@media (min-width: 761px) {
  html { scroll-padding-top: 88px; }
  .header {
    position: sticky;
    top: 0;
    z-index: 70;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding-inline: max(28px, calc((100vw - 1208px) / 2));
    background: #fff;
    border-bottom: 1px solid #e8e0e3;
    transition: min-height .18s ease, padding-block .18s ease, box-shadow .18s ease;
  }
  .header.is-compact {
    min-height: 60px;
    padding-block: 8px;
    box-shadow: 0 5px 18px rgba(60, 65, 54, .07);
  }
  .header.is-compact .brand-mark { width: 38px; height: 38px; }
  .header.is-compact .brand-name small { display: none; }
  .article-toc, .chapter-nav { top: 84px; }
}
@media (max-width: 760px) {
  .header { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}
