/* Shared by the main site and the Nifty Ducks Travel guide sites. */
html body :is(.nd-header, .family-header) .nd-primary-dropdown {
  position: relative;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown > summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .5rem .25rem;
  box-sizing: border-box;
  list-style: none;
  cursor: pointer;
  font: 700 .8125rem/1.35 Arial, sans-serif;
  letter-spacing: .045em;
  text-transform: uppercase;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown > summary::-webkit-details-marker,
.nd-primary-dropdown .nd-primary-group > summary::-webkit-details-marker {
  display: none;
}

html body :is(.nd-header, .family-header) details.nd-primary-dropdown summary > .nd-primary-chevron[aria-hidden="true"]:empty {
  position: relative;
  display: inline-block;
  flex: 0 0 .875rem;
  width: .875rem;
  height: .875rem;
  margin: 0;
  border: 0;
  /* Legacy headers rotate the last span; the shared icon rotates its own shape. */
  transform: none !important;
}

.nd-primary-dropdown summary > .nd-primary-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  width: .375rem;
  height: .375rem;
  margin: auto;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.1rem) rotate(45deg);
}

.nd-primary-dropdown[open] > summary > .nd-primary-chevron::before,
.nd-primary-dropdown .nd-primary-group[open] > summary > .nd-primary-chevron::before {
  transform: translateY(.1rem) rotate(225deg);
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown > :is(.nd-panel, .family-menu-panel) {
  position: absolute;
  inset: calc(100% + .4rem) 0 auto auto;
  box-sizing: border-box;
  width: min(23rem, 90vw);
  max-height: calc(100vh - 8.5rem);
  max-height: calc(100dvh - 8.5rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: .8rem 1.15rem;
  background: #071f2b;
  color: #fff;
  border: 1px solid #fff5;
  border-radius: .65rem;
  box-shadow: 0 16px 42px #0006;
  z-index: 100;
}

.nd-primary-dropdown :is(.nd-primary-global, .nd-primary-local) {
  margin: 0;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown .nd-primary-heading {
  margin: .25rem 0 .3rem;
  color: #eed9b4;
  font: 700 .75rem/1.45 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .085em;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown :is(.nd-primary-global, .nd-primary-local) :is(a, summary) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: .6rem .25rem;
  border: 0;
  border-bottom: 1px solid #fff3;
  color: #fff;
  font: 400 .9375rem/1.4 Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  white-space: normal;
}

.nd-primary-dropdown .nd-primary-group > summary {
  list-style: none;
  cursor: pointer;
}

.nd-primary-dropdown .nd-primary-children {
  margin: .25rem 0 .35rem .45rem;
  padding-left: .65rem;
  border-left: 1px solid #fff4;
}

.nd-primary-dropdown .nd-primary-local {
  padding-top: 1rem;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown :is(a, summary):hover,
html body :is(.nd-header, .family-header) .nd-primary-dropdown a[aria-current="page"] {
  color: #ffd997;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown :is(a, summary):focus-visible {
  outline: 2px solid #ffd997;
  outline-offset: -2px;
}

html body :is(.nd-header, .family-header) .nd-primary-dropdown > div > :is(.nd-panel-plan, .menu-plan) {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 44px;
  margin: .9rem 0 .2rem;
  padding: .65rem .75rem;
  border: 1px solid #bacbd3;
  border-radius: .35rem;
  color: #fff;
  text-align: center;
  font: 700 .9375rem/1.4 Arial, sans-serif;
}

@media (max-width: 760px) {
  html body :is(.nd-header, .family-header) .nd-primary-dropdown > summary {
    gap: .35rem;
    font-size: .75rem;
  }

  html body :is(.nd-header, .family-header) .nd-primary-dropdown > :is(.nd-panel, .family-menu-panel) {
    position: fixed;
    inset: var(--nd-primary-panel-top, 92px) max(1rem, 5vw) auto;
    width: auto;
    max-height: calc(100vh - var(--nd-primary-panel-top, 92px) - 1rem);
    max-height: calc(100dvh - var(--nd-primary-panel-top, 92px) - 1rem);
  }
}
