/**
 * WindowsWear — site-wide modern header v3
 */
:root {
  --ww-h-accent: #874390;
  --ww-h-accent-hover: #703777;
  --ww-h-accent-soft: rgba(135, 67, 144, 0.1);
  --ww-h-ink: #262525;
  --ww-h-muted: #5f5b63;
  --ww-h-border: #e7e4ea;
  --ww-h-bg: #ffffff;
  --ww-h-wash: #f5f3f7;
  --ww-h-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
  --ww-h-height: 74px;
  --ww-ancr-offset: 0px;
}

/* W-01: Announcer sticky bar pushes fixed header down (Announcer Pro on PROD) */
body.ww-site-modern .header-main-section {
  top: var(--ww-ancr-offset, 0px) !important;
}
body.admin-bar.ww-site-modern .header-main-section {
  top: calc(var(--ww-ancr-offset, 0px) + 32px) !important;
}
@media (max-width: 782px) {
  body.admin-bar.ww-site-modern .header-main-section {
    top: calc(var(--ww-ancr-offset, 0px) + 46px) !important;
  }
}
body.ww-site-modern .mobile-menu.ww-header--mobile {
  top: var(--ww-ancr-offset, 0px) !important;
}
body.admin-bar.ww-site-modern .mobile-menu.ww-header--mobile {
  top: calc(var(--ww-ancr-offset, 0px) + 32px) !important;
}
@media (max-width: 782px) {
  body.admin-bar.ww-site-modern .mobile-menu.ww-header--mobile {
    top: calc(var(--ww-ancr-offset, 0px) + 46px) !important;
  }
}

/* Collapse header wrapper only — fixed children must not push page flow */
body.ww-site-modern .home-before-login > .ww-header-wrap {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  position: static !important;
}

/* ── Shell ──────────────────────────────────────────────── */
body.ww-site-modern .header-main-section {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000;
  background: var(--ww-h-bg);
  border-bottom: 1px solid var(--ww-h-border);
  box-shadow: none;
  overflow: visible !important;
}

body.ww-site-modern .header-main-section.ww-header--scrolled {
  box-shadow: var(--ww-h-shadow);
}

body.ww-site-modern .header-main-section .wrapper-1300 {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

body.ww-site-modern .header-main-section > .wrapper-1300 > .d-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  min-height: var(--ww-h-height);
}

/* ── Logo (never clip) ─────────────────────────────────── */
body.ww-site-modern .header-left-sec {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 !important;
  gap: 20px;
  overflow: visible !important;
}

body.ww-site-modern .header-logo-sec {
  flex: 0 0 auto !important;
  width: auto !important;
  min-width: 155px;
  overflow: visible !important;
}

body.ww-site-modern .header-logo-sec a {
  display: block;
  line-height: 0;
}

body.ww-site-modern .header-logo-sec img,
body.ww-site-modern .header-logo-sec #logo_ww {
  width: auto !important;
  max-width: 200px !important;
  height: 36px !important;
  object-fit: contain !important;
  object-position: left center;
  display: block !important;
}

/* ── Nav ─────────────────────────────────────────────────── */
body.ww-site-modern .header-nav-sec {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  overflow: visible !important;
}

body.ww-site-modern .header-main-nav-menus {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: visible !important;
}

/* Top-level nav row only — do NOT style .sub-menu ul as flex */
body.ww-site-modern .header-main-nav-menus > ul,
body.ww-site-modern .header-main-nav-menus ul.primary_login {
  display: flex !important;
  align-items: center;
  gap: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  flex-wrap: nowrap;
  overflow: visible !important;
}

body.ww-site-modern .header-main-nav-menus > ul > li,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li {
  float: none !important;
  display: block !important;
  margin: 0 !important;
  list-style: none;
  position: relative;
}

body.ww-site-modern .header-main-nav-menus > ul > li > a,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li > a {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  font-family: 'Poppins', system-ui, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ww-h-ink) !important;
  padding: 6px 0 !important;
  margin: 0 11px !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s ease;
  box-shadow: none !important;
}

body.ww-site-modern .header-main-nav-menus > ul > li > a:hover,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li > a:hover {
  color: var(--ww-h-accent) !important;
  background: transparent !important;
}

/* Active = underline, not pill */
body.ww-site-modern .header-main-nav-menus > ul > li.current-menu-item > a,
body.ww-site-modern .header-main-nav-menus > ul > li.current_page_item > a,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li.current-menu-item > a,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li.current_page_item > a {
  color: var(--ww-h-accent) !important;
  font-weight: 600 !important;
  background: transparent !important;
}

body.ww-site-modern .header-main-nav-menus > ul > li.current-menu-item > a::before,
body.ww-site-modern .header-main-nav-menus > ul > li.current_page_item > a::before,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li.current-menu-item > a::before,
body.ww-site-modern .header-main-nav-menus ul.primary_login > li.current_page_item > a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ww-h-accent);
  border-radius: 0;
}

/* Kill legacy Genericons chevrons — use clean CSS arrow on parents only */
body.ww-site-modern .header-main-nav-menus .menu-item > a::after,
body.ww-site-modern .main-navigation.after_log .menu-item > a::after {
  display: none !important;
  content: none !important;
}

body.ww-site-modern .header-main-nav-menus .menu-item-801555 > .sub-menu,
body.ww-site-modern .header-main-nav-menus .menu-item-801556 > .sub-menu,
body.ww-site-modern .header-main-nav-menus .menu-item-801557 > .sub-menu {
  display: none !important;
}

body.ww-site-modern .header-main-nav-menus .menu-item-has-children > a::after,
body.ww-site-modern .header-main-nav-menus .ww-has-db-mega > a::after {
  display: inline-block !important;
  content: '' !important;
  width: 5px !important;
  height: 5px !important;
  border: none !important;
  border-right: 1.5px solid currentColor !important;
  border-bottom: 1.5px solid currentColor !important;
  transform: rotate(45deg) !important;
  position: static !important;
  margin-left: 2px !important;
  margin-top: -2px !important;
  font-family: inherit !important;
  font-size: inherit !important;
  vertical-align: middle !important;
  top: auto !important;
  right: auto !important;
}

/* Native WP submenus are replaced by .ww-nav-mega panels */
body.ww-site-modern .header-main-nav-menus .ww-has-nav-mega > .sub-menu,
body.ww-site-modern .header-main-nav-menus .ww-has-db-mega > .sub-menu {
  display: none !important;
  left: -999em !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ── Dropdown sub-menus (other items) ─────────── */
/* W-03: no hover gap — submenu flush under parent + invisible bridge */
body.ww-site-modern .header-main-nav-menus .sub-menu {
  display: block !important;
  position: absolute !important;
  left: -999em !important;
  right: auto !important;
  top: 100% !important;
  margin: 0 !important;
  padding: 10px 0 !important;
  min-width: 212px;
  background: #fff !important;
  border: 1px solid var(--ww-h-border) !important;
  border-top: none !important;
  border-radius: 0 !important;
  box-shadow: var(--ww-h-shadow) !important;
  z-index: 1001 !important;
  float: none !important;
  width: auto !important;
  list-style: none !important;
}

/* Hover bridge: fills any pixel gap so menu doesn't flicker */
body.ww-site-modern .header-main-nav-menus .sub-menu::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: -12px !important;
  height: 12px !important;
  background: transparent !important;
  pointer-events: auto !important;
}

body.ww-site-modern .header-main-nav-menus .sub-menu::after {
  display: none !important;
}

body.ww-site-modern .header-main-nav-menus li:hover > .sub-menu,
body.ww-site-modern .header-main-nav-menus li.focus > .sub-menu,
body.ww-site-modern .header-main-nav-menus li.ww-menu-open > .sub-menu {
  left: 0 !important;
  right: auto !important;
}

body.ww-site-modern .header-main-nav-menus .sub-menu li {
  display: block !important;
  margin: 0 !important;
  float: none !important;
  width: 100% !important;
  border: none !important;
}

body.ww-site-modern .header-main-nav-menus .sub-menu li a {
  display: block !important;
  float: none !important;
  width: 100% !important;
  padding: 11px 24px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ww-h-muted) !important;
  background: transparent !important;
  border-radius: 0 !important;
  white-space: nowrap;
}

body.ww-site-modern .header-main-nav-menus .sub-menu li a:hover,
body.ww-site-modern .header-main-nav-menus .sub-menu li a:focus {
  color: var(--ww-h-accent) !important;
  background: var(--ww-h-wash) !important;
}

body.ww-site-modern .header-main-nav-menus .sub-menu li a::before {
  display: none !important;
}

/* ── Databases mega-menu panel ─────────────────────────── */
body.ww-site-modern .mega-menu-full-sec {
  z-index: 999 !important;
  top: 0 !important;
  transform: translateY(var(--ww-mega-top, 64px)) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12) !important;
  border-top: 1px solid var(--ww-h-border);
}

/* ── Right toolbar ───────────────────────────────────────── */
body.ww-site-modern .header-right-sec {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto;
  padding: 0 !important;
}

body.ww-site-modern .header-right-sec-menu {
  display: flex !important;
  align-items: center !important;
  gap: 14px;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.ww-site-modern .header-right-sec-menu > li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  float: none !important;
  position: relative;
  align-self: center;
}

body.ww-site-modern .header-right-sec-menu > li.search_img {
  display: none !important;
}

/* Free/Plan Membership label — match mockup */
body.ww-site-modern .header-right-sec-menu > li.membership_tab {
  display: flex !important;
  margin-left: 0 !important;
}

body.ww-site-modern .membership_sec a,
body.ww-site-modern li.membership_tab a {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--ww-h-accent) !important;
  line-height: 1.15 !important;
  text-align: left;
  text-decoration: none !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Search */
body.ww-site-modern li.search-box-nw > a { display: none !important; }

body.ww-site-modern li.search-box-nw > span {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  position: relative !important;
}

body.ww-site-modern .search-box-nw form {
  position: relative !important;
  margin: 0 !important;
  overflow: visible !important;
}

body.ww-site-modern li.search-box-nw {
  overflow: visible !important;
}

body.ww-site-modern .header-right-sec,
body.ww-site-modern .header-right-sec-menu {
  overflow: visible !important;
}

/* W-07: match mockup search pill */
body.ww-site-modern .search-box-nw-input {
  width: 210px !important;
  height: 38px !important;
  padding: 0 34px 0 15px !important;
  border: 1px solid var(--ww-h-border) !important;
  border-radius: 999px !important;
  font-size: 14px !important;
  background: var(--ww-h-wash) !important;
  color: var(--ww-h-ink) !important;
  box-shadow: none !important;
  float: none !important;
  text-transform: none !important;
}

body.ww-site-modern .search-box-nw-input:focus {
  outline: none !important;
  width: 230px !important;
  border-color: var(--ww-h-accent) !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.ww-site-modern .search-box-nw-search-submit {
  position: absolute !important;
  right: 2px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  border-left: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.ww-site-modern .search-box-nw-search-submit svg {
  width: 14px !important;
  height: 14px !important;
}

/* Project button — outline pill (mockup) */
body.ww-site-modern li.create_project {
  margin-right: 5px !important;
}

body.ww-site-modern .ww-header__cta,
body.ww-site-modern li.create_project > a,
body.ww-site-modern li.create_featured_member > a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: auto !important;
  padding: 8px 16px !important;
  border: 1.5px solid var(--ww-h-accent) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--ww-h-accent) !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

body.ww-site-modern .ww-header__cta:hover,
body.ww-site-modern li.create_project > a:hover,
body.ww-site-modern li.create_featured_member > a:hover {
  background: var(--ww-h-accent) !important;
  color: #fff !important;
  border-color: var(--ww-h-accent) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.ww-site-modern .ww-header__cta svg { width: 15px !important; height: 15px !important; margin: 0 !important; }

/* Icon buttons */
body.ww-site-modern .header-message-icon,
body.ww-site-modern .header-right-sec-menu a .header-message-icon,
body.ww-site-modern #noti_Button.header-message-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  line-height: 1 !important;
  border-radius: 8px !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  transition: background 0.15s ease;
}

body.ww-site-modern .header-message-icon:hover,
body.ww-site-modern .header-right-sec-menu a:hover .header-message-icon {
  background: #f1f5f9 !important;
}

body.ww-site-modern .header-message-image { width: 18px !important; height: 18px !important; }

/* Bell + message badges — same purple circle on the 36px icon top-right (mockup) */
body.ww-site-modern .header-right-sec-menu > li.ww-header-alert-icon,
body.ww-site-modern .header-right-sec-menu > li.header-message-icon-box {
  position: relative !important;
  margin: 0 !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  align-self: center !important;
  overflow: visible !important;
}

body.ww-site-modern #noti_Counter.noti_CounterDesk,
body.ww-site-modern #noti_Counter.noti_CounterMobile,
body.ww-site-modern .header-right-sec-menu .message_count {
  position: absolute !important;
  top: 0 !important;
  right: 2px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  width: auto !important;
  max-width: none !important;
  background: var(--ww-h-accent) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 18px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  z-index: 3 !important;
  box-shadow: none !important;
  pointer-events: none;
}

body.ww-site-modern .header-right-sec-menu .message_count .bpbmuc,
body.ww-site-modern .header-right-sec-menu .message_count .bp-better-messages-unread {
  background: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  line-height: 1 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #fff !important;
  border-radius: 0 !important;
  vertical-align: middle !important;
  display: inline !important;
}

body.ww-site-modern .menu-msg-sec {
  position: relative !important;
}

body.ww-site-modern .user_pro_img.user-icon-box {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  width: 38px !important;
  min-width: 38px !important;
}

body.ww-site-modern #user_img.user_pro_img.user-pro-tour.user-icon-box {
  padding-top: 0 !important;
}

body.ww-site-modern .user_pro_img .photo {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 0 !important;
}

/* Profile dropdown — same square card + 16px gap as News / Community megas */
body.ww-site-modern .profile-option {
  width: 220px;
  top: calc(100% + 16px) !important;
  right: 0 !important;
  border-radius: 0 !important;
  border: 1px solid var(--ww-h-border);
  box-shadow: var(--ww-h-shadow);
  padding: 22px 28px 24px;
  background: #fff;
  z-index: 100040;
}

/* Hover bridge so the extra offset doesn't close the panel */
body.ww-site-modern .profile-option::before {
  content: '' !important;
  display: block !important;
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  width: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  transform: none !important;
  box-shadow: none !important;
}

body.ww-site-modern .profile-option span {
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}
body.ww-site-modern .profile-option span a {
  display: block !important;
  padding: 9px 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  font-family: 'Roboto', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif !important;
  color: #262525 !important;
  background: transparent !important;
  text-align: left !important;
  line-height: 1.3;
  text-decoration: none !important;
}

body.ww-site-modern .profile-option span a:hover {
  background: transparent !important;
  color: var(--ww-h-accent) !important;
}

/* Content offset — single source; reset legacy style_window top: 111px / 80px */
body.ww-site-modern .bottom-sec-full {
  top: 0 !important;
  margin-top: 0 !important;
}

@media screen and (min-width: 1261px) {
  body.ww-site-modern .bottom-sec-full {
    top: 0 !important;
    position: relative !important;
  }
}

body.ww-site-modern.logged-in .bottom-sec-full {
  /* Announcer owns html margin-top; only reserve fixed header height here */
  padding-top: var(--ww-h-height, 64px);
}


@media (max-width: 782px) {
  body.admin-bar.ww-site-modern.logged-in .bottom-sec-full {
    padding-top: calc(var(--ww-h-height, 64px) + 46px);
  }
}

/* Mobile header — W-08: single-row logo + icons, aligned */
@media screen and (max-width: 1260px) {
  body.ww-site-modern .mobile-menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px;
    padding: 10px 16px !important;
    min-height: 56px;
    border-bottom: 1px solid var(--ww-h-border);
    background: var(--ww-h-bg);
    box-sizing: border-box;
  }

  body.ww-site-modern .mobile-header-logo-sec {
    float: none !important;
    flex: 0 1 auto;
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
  }

  body.ww-site-modern .mobile-header-logo-sec .logo-img,
  body.ww-site-modern .mobile-header-logo-sec #logo_ww {
    max-height: 32px !important;
    height: 32px !important;
    width: auto !important;
    max-width: 160px !important;
    object-fit: contain !important;
    display: block !important;
  }

  body.ww-site-modern .mobile-menu-right-sec-space {
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  body.ww-site-modern .mobile-menu-right-sec-space .mob-mid {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    margin: 0 !important;
    width: auto !important;
  }

  body.ww-site-modern .mobile-menu .header-message-icon,
  body.ww-site-modern .mobile-menu .search_img,
  body.ww-site-modern .mobile-menu .mobile-bars-space {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    line-height: 0;
  }

  body.ww-site-modern .mobile-menu .header-message-image,
  body.ww-site-modern .mobile-menu .search_img img {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
  }

  body.ww-site-modern .mobile-menu .mob_menu_btn,
  body.ww-site-modern .mobile-menu .menu_btn {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 5px;
    width: 22px;
    height: 22px;
  }

  body.ww-site-modern .mobile-menu .menu_btn .bar1,
  body.ww-site-modern .mobile-menu .menu_btn .bar3 {
    width: 22px !important;
    height: 2px !important;
    background: var(--ww-h-ink) !important;
    margin: 0 !important;
  }

  body.ww-site-modern.logged-in .bottom-sec-full {
    padding-top: 56px !important;
    top: 0 !important;
  }

  body.admin-bar.ww-site-modern.logged-in .bottom-sec-full {
    padding-top: calc(56px + 46px) !important;
  }

  /* Mobile drawer — same destinations as desktop, not the old WP mobile menu */
  body.ww-site-modern .slide-menu-wrapper {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    width: min(360px, 100vw) !important;
    max-width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #fff !important;
    border-left: 1px solid var(--ww-h-border);
    box-shadow: var(--ww-h-shadow);
    z-index: 100050 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 16px 20px 40px !important;
    box-sizing: border-box;
    text-align: left !important;
  }

  body.ww-site-modern .slide-menu-wrapper .center-section {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    text-align: left !important;
  }

  body.ww-site-modern .slide-menu-wrapper .mobile-menu-profile-img img {
    width: 48px !important;
    height: 48px !important;
    border: 1px solid var(--ww-h-border) !important;
  }

  body.ww-site-modern .slide-menu-wrapper .membership_sec a {
    font-family: 'Roboto', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ww-h-muted) !important;
    line-height: 1.4 !important;
  }

  body.ww-site-modern .slide-menu-wrapper .membership_sec .text-uppercase {
    font-weight: 700 !important;
    color: var(--ww-h-accent) !important;
  }

  body.ww-site-modern .slide-menu-wrapper .ww-header__cta,
  body.ww-site-modern .slide-menu-wrapper .mobile-menu-create-project {
    display: inline-flex !important;
    margin: 8px 0 16px !important;
  }

  body.ww-site-modern .mobile-menu-nav,
  body.ww-site-modern .mobile-menu-nav nav,
  body.ww-site-modern .mobile-menu-nav .menu,
  body.ww-site-modern .mobile-menu-nav ul {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left !important;
  }

  body.ww-site-modern .mobile-menu-nav ul li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    border-bottom: 1px solid var(--ww-h-border);
  }

  body.ww-site-modern .mobile-menu-nav ul li > a {
    display: block !important;
    padding: 14px 0 !important;
    font-family: 'Roboto', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #262525 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
  }

  body.ww-site-modern .mobile-menu-nav ul li > a:hover,
  body.ww-site-modern .mobile-menu-nav ul li.current-menu-item > a {
    color: var(--ww-h-accent) !important;
  }

  body.ww-site-modern .mobile-menu-nav .sub-menu {
    display: none !important;
  }

  body.ww-site-modern .mobile-menu-nav .ww-mobile-has-mega > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid var(--ww-h-muted);
    border-bottom: 2px solid var(--ww-h-muted);
    transform: rotate(45deg) translateY(-2px);
    vertical-align: middle;
  }

  body.ww-site-modern .mobile-menu-nav .ww-mobile-has-mega.is-open > a::after {
    transform: rotate(-135deg) translateY(-1px);
  }

  body.ww-site-modern .ww-mobile-mega {
    display: block;
    padding: 0 0 14px;
  }

  body.ww-site-modern .ww-mobile-mega[hidden] {
    display: none !important;
  }

  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__grid,
  body.ww-site-modern .ww-mobile-mega .ww-db-mega__grid,
  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__grid--2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__col-title,
  body.ww-site-modern .ww-mobile-mega .ww-db-mega__col-title {
    margin: 8px 0 4px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ww-h-border);
    font-size: 11px !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ww-h-accent);
  }

  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__link,
  body.ww-site-modern .ww-mobile-mega .ww-db-mega__link,
  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__footer {
    display: block;
    padding: 8px 0;
    font-family: 'Roboto', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #262525 !important;
    text-decoration: none !important;
  }

  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__link:hover,
  body.ww-site-modern .ww-mobile-mega .ww-db-mega__link:hover,
  body.ww-site-modern .ww-mobile-mega .ww-nav-mega__footer {
    color: var(--ww-h-accent) !important;
  }

  body.ww-site-modern .mobile-menu-bottom-logo {
    display: none !important;
  }

  body.ww-site-modern .ww-mobile-nav-extra {
    border-top: 0;
  }

  body.ww-site-modern .mobile-menu-nav li.ww-mobile-nav__heading {
    border-bottom: 0;
    padding: 18px 0 4px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ww-h-accent) !important;
  }

  body.ww-site-modern .mobile-menu-nav li.ww-mobile-nav__heading:first-child {
    padding-top: 4px !important;
  }
}

@media screen and (min-width: 1261px) {
  body.ww-site-modern .mobile-menu {
    display: none !important;
  }
}

/* Logged-out */
body.ww-site-modern .fixed_header.header_site {
  background: var(--ww-h-bg);
  border-bottom: 1px solid var(--ww-h-border);
}

@media (max-width: 1200px) {
  body.ww-site-modern .header-main-nav-menus ul li a {
    padding: 8px 10px !important;
    font-size: 13px !important;
  }
  body.ww-site-modern .search-box-nw-input { width: 130px !important; }
}

@media (max-width: 1100px) {
  body.ww-site-modern li.search-box-nw { display: none !important; }
}

/*
 * Featured CTA is admin-only. Keep the default header above unchanged for
 * everyone else; these rules only fire when that extra pill is in the bar.
 */
body.ww-site-modern .header-right-sec:has(.create_featured_member) {
  flex: 0 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) {
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}

body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) > li {
  flex: 0 0 auto;
}

body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) > li.search-box-nw {
  flex: 1 1 140px;
  min-width: 108px;
  max-width: 210px;
}

body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) .search-box-nw-input,
body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) .search-box-nw-input:focus {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.ww-site-modern li.create_featured_member {
  margin: 0 !important;
}

body.ww-site-modern li.create_featured_member > a {
  padding: 8px 14px !important;
}

@media (max-width: 1360px) {
  body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) {
    gap: 8px;
  }
  body.ww-site-modern .header-right-sec-menu:has(.create_featured_member) > li.search-box-nw {
    flex-basis: 120px;
    max-width: 160px;
  }
}

/* Create / Edit Project fancybox — dark overlay + rounded card */
.fancybox-overlay.ww-fancybox-overlay-modern {
  background: rgba(42, 37, 64, 0.82) !important;
  background-image: none !important;
}
.fancybox-wrap.ww-fancybox-popup-modern .fancybox-skin {
  background: transparent !important;
  border-radius: 18px !important;
  box-shadow: none !important;
}
.fancybox-wrap.ww-fancybox-popup-modern .fancybox-outer,
.fancybox-wrap.ww-fancybox-popup-modern .fancybox-inner,
.fancybox-wrap.ww-fancybox-popup-modern iframe {
  border-radius: 18px !important;
  overflow: hidden;
}
.fancybox-wrap.ww-fancybox-popup-modern.fancybox-opened .fancybox-skin {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35) !important;
}

/* ── Shared nav mega panels (Databases / Community / News) ─ */
body.ww-site-modern .ww-nav-mega,
body.ww-site-modern .ww-db-mega {
  position: fixed;
  z-index: 100040;
  display: none;
  padding: 28px 32px 30px;
  background: #fff;
  border: 1px solid var(--ww-h-border);
  border-radius: 0;
  box-shadow: var(--ww-h-shadow);
  box-sizing: border-box;
}

/* Hover bridge so the extra offset doesn't close the panel */
body.ww-site-modern .ww-nav-mega::before,
body.ww-site-modern .ww-db-mega::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
  background: transparent;
}

body.ww-site-modern .ww-nav-mega.is-open,
body.ww-site-modern .ww-db-mega.is-open,
body.ww-site-modern .ww-nav-mega:not([hidden]).is-open,
body.ww-site-modern .ww-db-mega:not([hidden]).is-open {
  display: block;
}

body.ww-site-modern .ww-nav-mega[hidden],
body.ww-site-modern .ww-db-mega[hidden] {
  display: none !important;
}

body.ww-site-modern .ww-nav-mega--db,
body.ww-site-modern .ww-db-mega {
  min-width: 700px;
  max-width: min(760px, calc(100vw - 24px));
  padding: 32px 36px 38px;
}

body.ww-site-modern .ww-nav-mega--community {
  min-width: 188px;
  width: 188px;
  padding: 22px 28px 24px;
}

body.ww-site-modern .ww-nav-mega--news {
  min-width: 420px;
  width: 440px;
  max-width: min(460px, calc(100vw - 24px));
}

body.ww-site-modern .ww-nav-mega__grid,
body.ww-site-modern .ww-db-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 46px;
}

body.ww-site-modern .ww-nav-mega__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 40px;
}

body.ww-site-modern .ww-nav-mega__col-title,
body.ww-site-modern .ww-db-mega__col-title {
  margin: 2px 0 12px;
  padding: 0 0 9px;
  border-bottom: 1.5px solid var(--ww-h-border);
  font-family: 'Roboto', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ww-h-accent);
  line-height: 1.2;
}

body.ww-site-modern .ww-nav-mega__link,
body.ww-site-modern .ww-db-mega__link {
  display: block;
  padding: 9px 0;
  font-family: 'Roboto', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0;
  color: #262525 !important;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

body.ww-site-modern .ww-nav-mega__link:hover,
body.ww-site-modern .ww-db-mega__link:hover {
  color: var(--ww-h-accent) !important;
  background: transparent;
}

body.ww-site-modern .ww-nav-mega__footer {
  display: block;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--ww-h-border);
  font-family: 'Roboto', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ww-h-accent) !important;
  text-decoration: none !important;
  line-height: 1.3;
}

body.ww-site-modern .ww-nav-mega__footer:hover {
  color: var(--ww-h-accent-hover) !important;
}

body.ww-site-modern .ww-db-mega__off {
  display: block;
  padding: 9px 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #8b8790;
  opacity: 0.5;
  cursor: default;
  line-height: 1.3;
}

body.ww-site-modern .ww-has-nav-mega.is-mega-open > a,
body.ww-site-modern .ww-has-db-mega.is-db-open > a {
  color: var(--ww-h-accent) !important;
}

@media (max-width: 760px) {
  body.ww-site-modern .ww-nav-mega,
  body.ww-site-modern .ww-db-mega {
    left: 12px !important;
    right: 12px;
    min-width: 0;
    max-width: none;
    width: auto !important;
    padding: 22px 20px 26px;
  }

  body.ww-site-modern .ww-nav-mega__grid,
  body.ww-site-modern .ww-db-mega__grid,
  body.ww-site-modern .ww-nav-mega__grid--2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}


