/* Dunda member navigation, scoped to the theme header and account links. */
body > header { box-sizing: border-box; }
body .header-container { flex-wrap: nowrap; gap: 24px; }
body .header-logo { width: auto; flex: 0 0 80px; }
body .header-menu { width: auto; flex: 1; min-width: 0; }
body .header-nav .menu { gap: 2px; }
body .header-nav li a { padding-left: 10px; padding-right: 10px; }
body .header-nav .dunda-member-item { margin-left: 12px; }
body .header-nav .dunda-member-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 10px 16px; border: 1px solid var(--imp-color-primary, #d4ae7b); border-radius: 4px; color: var(--imp-color-primary, #d4ae7b); font-size: 12px; letter-spacing: .03em; text-transform: none; white-space: nowrap; }
body .header-nav .dunda-member-link:hover { background: var(--imp-color-primary, #d4ae7b); color: #140f0b; }
body .header-nav .dunda-member-link::after { display: none; }
body .header-nav a:focus-visible, .dunda-menu-toggle:focus-visible, .footer-links a:focus-visible, .dunda-member-session a:focus-visible { outline: 2px solid var(--imp-color-primary, #d4ae7b); outline-offset: 4px; }
.dunda-menu-toggle { display: none; }
.dunda-member-session { max-width: 1200px; margin: 120px auto -24px; padding: 12px 24px 0; box-sizing: border-box; display: flex; justify-content: flex-end; position: relative; z-index: 1; }
.dunda-member-session a { color: var(--imp-color-primary, #d4ae7b); font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.footer-links .dunda-footer-member { color: var(--imp-color-primary, #d4ae7b); min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 1181px) {
  body > header {
    padding: 20px 60px;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    transition: padding 250ms ease, background-color 250ms ease, border-color 250ms ease;
  }
  body > header.scrolled {
    padding: 12px 60px;
    background-color: rgba(21, 16, 13, .98);
    border-bottom-color: var(--imp-color-border, #594532);
  }
  /* Keep the logo column's width fixed so menu items do not move sideways. */
  body .header-logo { display: flex; justify-content: center; align-items: center; }
  body .header-logo a { display: block; width: 80px; height: 80px; transition: width 250ms ease, height 250ms ease; }
  body .header-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
  body > header.scrolled .header-logo a { width: 52px; height: 52px; }
  body .header-nav .menu { display: inline-flex; max-height: none; }
  body.admin-bar > header { top: 32px; }
  .dunda-member-session { margin-top: 150px; }
}
@media (max-width: 1180px) {
  body > header, body > header.scrolled { position: relative; padding: 12px 24px; background: #15100d; }
  body .header-container { position: relative; align-items: center; gap: 16px; }
  body .header-logo { width: auto; flex: 0 0 64px; }
  body .header-logo img { width: 64px; height: 64px; display: block; }
  body .header-menu { width: auto; flex: 1; }
  body .header-nav { text-align: right; }
  .dunda-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--imp-color-border, #594532); border-radius: 4px; background: transparent; color: var(--imp-color-primary, #d4ae7b); font: inherit; letter-spacing: 0; text-transform: none; cursor: pointer; }
  .dunda-menu-toggle svg { width: 22px; height: 22px; }
  body .header-nav .menu { display: none; position: absolute; top: calc(100% + 12px); left: -24px; right: -24px; max-height: min(75vh, 650px); overflow-y: auto; padding: 16px 24px 24px; margin: 0; box-sizing: border-box; background: #15100d; border-top: 1px solid var(--imp-color-border, #594532); border-bottom: 1px solid var(--imp-color-border, #594532); text-align: left; }
  body .header-nav.is-open .menu { display: block; }
  body .header-nav li { display: block; }
  body .header-nav li a { padding: 12px; min-height: 44px; box-sizing: border-box; }
  body .header-nav .dunda-member-item { margin: 12px 0 0; padding-top: 16px; border-top: 1px solid var(--imp-color-border, #594532); }
  body .header-nav .dunda-member-link { display: flex; width: 100%; }
  body .header-nav .menu-item-has-children > ul { position: static; visibility: visible; opacity: 1; max-height: none; width: auto; padding: 0 0 0 12px; background: transparent; border: 0; }
  .dunda-member-session { margin-top: 8px; }
  html.no-js .dunda-menu-toggle { display: none; }
  html.no-js body .header-container { flex-wrap: wrap; }
  html.no-js body .header-menu { flex-basis: 100%; }
  html.no-js body .header-nav .menu { display: block; position: static; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .header-nav *, body > header, body .header-logo a { transition: none; }
}
