/* Floating menus share the site's warm paper / evergreen palette. */
:root {
  --lcc-menu-shadow: 0 14px 42px #173f3624;
}
html[data-theme=dark] {
  --lcc-menu-shadow: 0 16px 44px #0006;
}

html[data-theme] :is(nav.header-account-menu,.site-nav-secondary,.mention-suggestions,.leader-results),
html[data-theme] [data-yv-sdk][data-slot="popover-content"] {
  background: var(--lcc-surface);
  color: var(--ink);
  border: 1px solid var(--lcc-ring);
  border-radius: 16px;
  box-shadow: var(--lcc-menu-shadow);
  background-clip: padding-box;
}

/* Keep wheel, touch, and keyboard scrolling; hide only the menu scrollbars. */
:is(nav.header-account-menu,.site-nav-secondary,.mention-suggestions,.leader-results),
[data-yv-sdk][data-slot="popover-content"],
[data-yv-sdk][data-slot="popover-content"] :is([class~="yv:overflow-y-auto"],[class~="yv:overflow-auto"],[data-slot="tabs-content"]) {
  scrollbar-width: none;
  scrollbar-gutter: auto;
  overscroll-behavior: contain;
}
:is(nav.header-account-menu,.site-nav-secondary,.mention-suggestions,.leader-results)::-webkit-scrollbar,
[data-yv-sdk][data-slot="popover-content"]::-webkit-scrollbar,
[data-yv-sdk][data-slot="popover-content"] :is([class~="yv:overflow-y-auto"],[class~="yv:overflow-auto"],[data-slot="tabs-content"])::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

nav.header-account-menu > :is(a,button),
html[data-theme] .mention-suggestions [role="option"],
.leader-results .leader-choice,
body > header.compact-site-header .site-nav-links a {
  border-radius: 10px;
}

/* SDK pickers are body-level portals; their nested surfaces need the same palette. */
html[data-theme] [data-yv-sdk][data-slot="popover-content"],
html[data-theme] [data-yv-sdk][data-slot="popover-content"] [data-yv-sdk] {
  --yv-background: var(--lcc-surface);
  --yv-popover: var(--lcc-surface);
  --yv-card: var(--lcc-surface);
  --yv-muted: var(--lcc-soft);
  --yv-accent: var(--lcc-soft);
  --yv-border: var(--lcc-ring);
  --yv-ring: var(--lcc-accent);
}
[data-yv-sdk][data-slot="popover-content"] [data-slot="button"] {
  border-radius: 10px;
}

@media (max-width: 1000px) {
  body > header.compact-site-header > nav.compact-site-navigation {
    inset: calc(100% + 6px) 12px auto;
    max-height: calc(100dvh - 104px);
    border: 1px solid var(--lcc-ring);
    border-radius: 16px;
    background: var(--lcc-surface);
    box-shadow: var(--lcc-menu-shadow);
    scrollbar-width: none;
    scrollbar-gutter: auto;
  }
  body > header.compact-site-header > nav.compact-site-navigation::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  html[data-theme] body > header.compact-site-header .site-nav-secondary {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

