/* Dash Authority Kadence header — matches the Dashwood nav. Scoped to #masthead / #mobile-drawer. */
#masthead,
#mobile-drawer {
  --da-ink: #211f1c;
  --da-paper: #faf5ed;
  --da-paper-2: #f3ece1;
  --da-gold: #d1a155;
  --da-gold-soft: #f3e3c1;
  --da-rule: #e6ddd0;
  --da-white: #ffffff;
  --da-display: Rubik, "Helvetica Neue", Arial, sans-serif;
  --da-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --da-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

#masthead .header-html p,
#mobile-drawer .mobile-html p {
  margin: 0;
}
#masthead .header-html {
  margin: 0 !important;
}
#masthead .header-html-inner,
#mobile-drawer .mobile-html-inner {
  display: flex;
  align-items: center;
}

#masthead .site-branding a.brand img {
  transition: transform 0.35s var(--da-bounce);
}
#masthead .site-branding a.brand:hover img {
  transform: rotate(-2deg) scale(1.03);
}

/* Primary links as pills */
#masthead .header-navigation .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-family: var(--da-display);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s;
}
#masthead .header-navigation .menu > li > a:hover,
#masthead .header-navigation .menu > li.current-menu-item > a,
#masthead .header-navigation .menu > li.current-menu-ancestor > a,
#masthead .header-navigation .menu > li.sfHover > a {
  background: var(--da-paper-2);
}
#masthead .header-navigation .dropdown-nav-toggle {
  transition: transform 0.25s var(--da-ease);
}
#masthead .header-navigation .menu > li.sfHover > a .dropdown-nav-toggle,
#masthead .header-navigation .menu > li:hover > a .dropdown-nav-toggle {
  transform: rotate(180deg);
}

/* Courses dropdown */
#masthead .header-navigation ul.sub-menu {
  width: 20rem;
  min-width: 20rem;
  padding: 0.5rem;
  background: var(--da-white);
  border: 1px solid var(--da-rule);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(33, 31, 28, 0.05), 0 14px 32px -12px rgba(33, 31, 28, 0.18);
}
#masthead .header-navigation ul.sub-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-family: var(--da-display);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
}
#masthead .header-navigation ul.sub-menu a:hover {
  background: var(--da-paper);
}
#masthead .header-navigation ul.sub-menu .current-menu-item > a,
#masthead .header-navigation ul.sub-menu a[aria-current="page"] {
  background: var(--da-gold-soft);
  font-weight: 700;
}
#masthead .header-navigation ul.sub-menu .da-submenu-all {
  border-top: 1px solid var(--da-rule);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
#masthead .header-navigation ul.sub-menu .da-submenu-all > a {
  font-weight: 600;
}

/* Account cluster */
.da-account-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.da-account-nav .learndash-wrapper {
  display: contents;
}
.da-account-nav .ld-icon {
  display: none;
}
#masthead .site-header-row,
#masthead .site-header-row-container,
#masthead .site-header-row-container-inner,
#masthead .header-html,
#masthead .header-html-inner,
#masthead .da-account-nav {
  overflow: visible;
}
.da-account-nav a.ld-login,
.da-account-nav a.ld-logout,
.da-account-link,
.da-logout-link {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  overflow: visible;
  font-family: var(--da-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.25s var(--da-bounce);
}
body #masthead .header-html a.ld-login,
body #masthead .header-html a.ld-logout,
body #mobile-drawer .mobile-html a.ld-login,
body #mobile-drawer .mobile-html a.ld-logout,
.da-account-nav a.ld-login,
.da-account-nav a.ld-logout {
  box-sizing: border-box !important;
  border: 2px solid var(--da-ink) !important;
  background: transparent;
  color: var(--da-ink);
  box-shadow: none;
  overflow: visible;
}
.da-account-nav a.ld-login:hover {
  background: var(--da-ink);
  color: var(--da-paper);
}
.da-account-nav a.da-account-link {
  border: 2px solid var(--da-ink);
  background: var(--da-gold-soft);
  color: var(--da-ink);
}
body #masthead .header-html a.da-account-link:hover,
body #masthead .header-html a.da-account-link:focus-visible,
body #mobile-drawer .mobile-html a.da-account-link:hover,
body #mobile-drawer .mobile-html a.da-account-link:focus-visible,
.da-account-nav a.da-account-link:hover,
.da-account-nav a.da-account-link:focus-visible {
  background: var(--da-ink) !important;
  color: var(--da-paper) !important;
}
.da-logout-link {
  border: 2px solid transparent;
  background: transparent;
  color: var(--da-ink);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  min-height: 2.5rem;
  text-decoration: underline;
  text-decoration-color: var(--da-gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.da-logout-link:hover {
  color: var(--da-ink);
  text-decoration-color: var(--da-ink);
}

/* Mobile toggle: circular button, bars morph to X */
#mobile-toggle.menu-toggle-open {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 50%;
  background: var(--da-paper-2);
  color: var(--da-ink);
  position: relative;
}
#mobile-toggle .menu-toggle-icon {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--da-ink);
  border-radius: 2px;
  position: relative;
  transition: opacity 0.2s, background-color 0.2s;
}
#mobile-toggle .menu-toggle-icon svg {
  display: none;
}
#mobile-toggle .menu-toggle-icon::before,
#mobile-toggle .menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 2px;
  background: var(--da-ink);
  border-radius: 2px;
  transition: transform 0.3s var(--da-ease);
}
#mobile-toggle .menu-toggle-icon::before { top: -6px; }
#mobile-toggle .menu-toggle-icon::after { top: 6px; }
body.showing-popup-drawer-from-right #mobile-toggle .menu-toggle-icon {
  background: transparent;
}
body.showing-popup-drawer-from-right #mobile-toggle .menu-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}
body.showing-popup-drawer-from-right #mobile-toggle .menu-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile drawer */
#mobile-drawer.popup-drawer {
  font-family: var(--da-display);
}
#mobile-drawer .drawer-inner {
  background: var(--da-paper);
  color: var(--da-ink);
}
#mobile-drawer .drawer-header {
  padding: 0.75rem 1rem;
}
#mobile-drawer .menu-toggle-close {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--da-paper-2);
}
#mobile-drawer .mobile-navigation .menu > li > a,
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
}
#mobile-drawer .mobile-navigation .menu > li > a:hover,
#mobile-drawer .mobile-navigation .drawer-nav-drop-wrap > a:hover,
#mobile-drawer .mobile-navigation .current-menu-item > a,
#mobile-drawer .mobile-navigation .current-menu-ancestor > a {
  background: var(--da-paper-2);
}
#mobile-drawer .mobile-navigation .sub-menu {
  background: var(--da-paper-2);
  border-radius: 16px;
  margin: 0.25rem 0 0.5rem;
  padding: 0.35rem;
}
#mobile-drawer .mobile-navigation .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
}
#mobile-drawer .mobile-navigation .sub-menu .current-menu-item > a {
  background: var(--da-gold-soft);
  font-weight: 700;
}
#mobile-drawer .mobile-navigation .sub-menu .da-submenu-all {
  border-top: 1px solid var(--da-rule);
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
#mobile-drawer .mobile-navigation .sub-menu .da-submenu-all > a {
  font-weight: 600;
}
#mobile-drawer .mobile-html {
  margin-top: 1rem;
}
#mobile-drawer .da-account-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0 0.5rem 1rem;
}
#mobile-drawer .da-account-nav a.ld-login,
#mobile-drawer .da-account-link,
#mobile-drawer .da-logout-link {
  width: 100%;
  justify-content: center;
  min-height: 2.75rem;
}
#mobile-drawer .da-logout-link {
  border: 2px solid var(--da-ink);
  text-decoration: none;
}

@media (hover: none) {
  #masthead .site-branding a.brand:hover img {
    transform: none;
  }
}

/* Beat Kadence customizer CSS (inline in head after this file). */
body #masthead .main-navigation .primary-menu-container > ul li.menu-item > a {
  text-transform: none !important;
}
body #masthead .header-navigation .header-menu-container ul ul.sub-menu {
  width: 20rem !important;
  min-width: 20rem !important;
  padding: 0.5rem !important;
  background: #ffffff !important;
  border: 1px solid #e6ddd0 !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 0 rgba(33, 31, 28, 0.05), 0 14px 32px -12px rgba(33, 31, 28, 0.18) !important;
}
body #masthead .header-navigation .header-menu-container ul ul li.menu-item {
  border-bottom: 0 !important;
}
body #masthead .header-navigation .header-menu-container ul ul li.menu-item > a {
  width: auto !important;
  min-height: 2.75rem !important;
  padding: 0.55rem 0.8rem !important;
  border-radius: 10px !important;
  color: #211f1c !important;
  background: transparent !important;
  text-transform: none !important;
}
body #masthead .header-navigation .header-menu-container ul ul li.menu-item > a:hover {
  background: #faf5ed !important;
  color: #211f1c !important;
}
body #masthead .header-navigation .header-menu-container ul ul li.menu-item.current-menu-item > a {
  background: #f3e3c1 !important;
  color: #211f1c !important;
  font-weight: 700 !important;
}
body #masthead .header-navigation .header-menu-container ul ul li.da-submenu-all {
  border-top: 1px solid #e6ddd0 !important;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
body #masthead .header-navigation .header-menu-container ul ul li.da-submenu-all > a {
  font-weight: 600 !important;
}

body #mobile-drawer .drawer-inner {
  background: #faf5ed !important;
  color: #211f1c !important;
}
body #mobile-drawer .drawer-header .drawer-toggle,
body #mobile-drawer .drawer-header .drawer-toggle:focus,
body #mobile-drawer .drawer-header .drawer-toggle:hover {
  color: #211f1c !important;
  background: #f3ece1 !important;
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
}
body #mobile-drawer .mobile-navigation ul li {
  text-transform: none !important;
}
body #mobile-drawer .mobile-navigation ul li > a,
body #mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap {
  background: transparent !important;
  color: #211f1c !important;
  border-radius: 999px !important;
}
body #mobile-drawer .mobile-navigation ul li > a:hover,
body #mobile-drawer .mobile-navigation ul li.menu-item-has-children > .drawer-nav-drop-wrap:hover,
body #mobile-drawer .mobile-navigation ul li.current-menu-item > a,
body #mobile-drawer .mobile-navigation ul li.current-menu-item.menu-item-has-children > .drawer-nav-drop-wrap,
body #mobile-drawer .mobile-navigation ul li.current-menu-ancestor > .drawer-nav-drop-wrap {
  background: #f3ece1 !important;
  color: #211f1c !important;
}
body #mobile-drawer .mobile-navigation ul li a {
  color: #211f1c !important;
  text-transform: none !important;
}
body #mobile-drawer .mobile-navigation ul li.menu-item-has-children .drawer-nav-drop-wrap button {
  color: #211f1c !important;
  border-left: 0 !important;
}
body #mobile-drawer .mobile-navigation .sub-menu {
  background: #f3ece1 !important;
  border-radius: 16px;
  margin: 0.25rem 0 0.5rem;
  padding: 0.35rem;
}
body #mobile-drawer .mobile-navigation .sub-menu a {
  background: transparent !important;
  color: #211f1c !important;
  border-radius: 10px !important;
  text-transform: none !important;
}
body #mobile-drawer .mobile-navigation .sub-menu .current-menu-item > a {
  background: #f3e3c1 !important;
  font-weight: 700 !important;
}
body #mobile-drawer .mobile-navigation .sub-menu .da-submenu-all {
  border-top: 1px solid #e6ddd0;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}
body #mobile-drawer .mobile-html .da-account-nav a.ld-login,
body #mobile-drawer .mobile-html .da-account-link,
body #mobile-drawer .mobile-html .da-logout-link {
  color: #211f1c !important;
}
body #mobile-drawer .mobile-html .da-logout-link {
  border: 2px solid #211f1c !important;
  background: transparent !important;
  text-decoration: none !important;
}

#masthead .site-header-item[data-section="kadence_customizer_header_button"],
#mobile-drawer .site-header-item[data-section="kadence_customizer_mobile_button"] {
  display: none !important;
}

body #masthead .header-navigation .header-menu-container ul ul li.menu-item > a,
body #masthead .header-navigation .header-menu-container ul ul li.menu-item {
  border: 0 !important;
  box-shadow: none !important;
}

body #mobile-drawer .drawer-header .drawer-toggle {
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem !important;
  padding: 0 !important;
  font-size: 16px !important;
  display: grid !important;
  place-items: center !important;
}
