/* Floating dropdown anchored to the header; scrolls with the page. */
body > header.wrap {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1160px) / 2));
  clip-path: none;
  box-shadow: none;
}
body > header .navlinks a:hover { color: #ffe58a; }
body > header a:focus-visible,
body > header .menu:focus-visible { outline: 3px solid #ffe58a; outline-offset: 4px; }
@media (max-width: 1000px) {
  body > header.wrap { padding-inline: 14px; position: relative; z-index: 20; }
  body > header nav { height: auto; min-height: 78px; flex-wrap: wrap; gap: 0; padding-block: 10px; }
  body > header .brand { order: 0; }
  body > header .nav-buy { display: none; }
  body > header .menu {
    display: grid; place-items: center; order: 1; width: 48px; height: 48px;
    margin-left: auto; padding: 0; border-radius: 10px; cursor: pointer; color: #fff7ed;
  }
  body > header .navlinks {
    display: none; position: absolute; top: calc(100% - 4px); right: 14px;
    width: min(300px, calc(100vw - 28px)); flex-direction: column;
    align-items: stretch; gap: 2px; padding: 10px; margin: 0;
    border: 1px solid #634775; border-radius: 18px; color: #fff7ed;
    background: #291638; box-shadow: 0 18px 45px #10071966;
    max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px);
    overflow-y: auto; overscroll-behavior: contain; z-index: 21;
  }
  body > header .navlinks.is-open { display: flex; }
  body > header .navlinks a { display: block; padding: 13px 16px; min-height: 46px; border-radius: 8px; }
  body > header .navlinks a:hover { background: #362047; }
}
