/**
 * BuddyBoss site shell aligned to Barker Custom staging
 * (https://staging.barker.cabinetdesigner.ai/).
 * Header / logo / account only — forum content stays on the BuddyBoss theme.
 *
 * Canonical lockup: assets/brand/cabinetforums-lockup.svg (dark surfaces).
 * Light-surface variant: assets/brand/cabinetforums-lockup-on-light.svg.
 */

html body.buddyboss-theme,
body.buddyboss-theme {
  --cf-forest: #101c30;
  --cf-forest-deep: #101c30;
  --cf-paper: #eef3f6;
  --cf-cream: #faf4e5;
  --cf-ink: #102a40;
  --cf-ivory: #faf4e5;
  --cf-ivory-70: rgba(250, 244, 229, 0.82);
  --cf-nav: rgba(255, 255, 255, 0.86);
  --cf-sage: #576978;
  --cf-green: #0b2942;
  --cf-brass: #c5a04f;
  --cf-heading: #ffffff;
  --cf-line: rgba(197, 160, 79, 0.28);
  --cf-sans: Inter, "Segoe UI", sans-serif;
  --cf-serif: Inter, "Segoe UI", sans-serif;
  --bb-header-background: #101c30;
  --bb-header-alternate-background: #0b2942;
  --bb-header-links: #ffffff;
  --bb-header-links-hover: #ffffff;
}

/* Dark navy header bar — Barker Custom staging #101c30 */
body.buddyboss-theme #masthead.site-header,
body.buddyboss-theme .site-header.site-header--bb,
body.buddyboss-theme .bb-mobile-header {
  --bb-header-background: #101c30;
  --bb-header-alternate-background: #0b2942;
  --bb-header-links: #ffffff;
  --bb-header-links-hover: #ffffff;
  background-color: #101c30;
  min-height: 88px;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
}

body.buddyboss-theme.sticky-header #masthead.site-header.sticky,
body.buddyboss-theme #masthead.site-header.is-stuck {
  background-color: #101c30;
  box-shadow: none;
}

/* Compact lockup — Concept 03 proportions, not the 350px BuddyBoss option */
body.buddyboss-theme .site-header #site-logo,
body.buddyboss-theme .site-header .site-branding,
body.buddyboss-theme .site-header .site-title,
body.buddyboss-theme .site-header-container .site-branding {
  width: auto;
  min-width: 0 !important;
  max-width: 240px;
}

body.buddyboss-theme .site-header #site-logo .site-title,
body.buddyboss-theme .site-header .site-title a {
  display: flex;
  align-items: center;
  width: auto;
  height: 76px;
}

body.buddyboss-theme .site-header img.bb-logo,
body.buddyboss-theme .bb-mobile-header img.bb-mobile-logo {
  content: url("../brand/cabinetforums-lockup.svg?ver=2.2.9");
}

body.buddyboss-theme #masthead a[href*="/forums/category/kitchen-design/"],
body.buddyboss-theme .bb-mobile-panel-wrapper a[href*="/forums/category/kitchen-design/"],
body.buddyboss-theme .bb-mobile-header a[href*="/forums/category/kitchen-design/"] {
  display: none !important;
}

body.buddyboss-theme #masthead li:has(> a[href*="/forums/category/kitchen-design/"]),
body.buddyboss-theme .bb-mobile-panel-wrapper li:has(> a[href*="/forums/category/kitchen-design/"]) {
  display: none !important;
}

body.buddyboss-theme .site-header img.bb-logo,
body.buddyboss-theme .site-header .site-title img,
body.buddyboss-theme .site-header #site-logo .site-title img.bb-logo,
body.buddyboss-theme .site-header-container #site-logo .site-title img.bb-logo,
body.buddyboss-theme .site-header-container #site-logo .bb-logo img,
body.buddyboss-theme .buddypanel .site-title img {
  display: block;
  height: 40px !important;
  width: auto !important;
  max-width: 240px !important;
  max-height: 40px !important;
  min-height: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

body.buddyboss-theme .bb-mobile-header .mobile-logo-wrapper,
body.buddyboss-theme .bb-mobile-header .site-title {
  max-width: 210px;
  min-width: 0;
}

body.buddyboss-theme .bb-mobile-header img.bb-mobile-logo,
body.buddyboss-theme .bb-mobile-header .site-title img,
body.buddyboss-theme .site-title img.bb-mobile-logo {
  display: block;
  height: 32px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 32px !important;
  min-height: 0 !important;
  padding: 0 !important;
  object-fit: contain;
}

/* Primary navigation */
body.buddyboss-theme #masthead #primary-menu > li > a,
body.buddyboss-theme #masthead .primary-menu > li > a,
body.buddyboss-theme #masthead #primary-navbar > ul > li > a {
  font-family: var(--cf-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--cf-nav);
}

body.buddyboss-theme #masthead #primary-menu > li > a:hover,
body.buddyboss-theme #masthead #primary-menu > li > a:focus,
body.buddyboss-theme #masthead #primary-menu > li.current-menu-item > a,
body.buddyboss-theme #masthead #primary-menu > li.current-menu-parent > a,
body.buddyboss-theme #masthead .primary-menu > li > a:hover,
body.buddyboss-theme #masthead .primary-menu > li > a:focus {
  color: var(--cf-ivory);
}

body.buddyboss-theme #masthead #primary-menu > li > a:focus-visible,
body.buddyboss-theme #header-aside a:focus-visible,
body.buddyboss-theme .bb-mobile-header a:focus-visible {
  outline: 2px solid var(--cf-brass);
  outline-offset: 3px;
}

body.buddyboss-theme #masthead #navbar-collapse .more-button,
body.buddyboss-theme #masthead .more-button,
body.buddyboss-theme #masthead .bb-toggle-panel,
body.buddyboss-theme .bb-mobile-header .bb-left-panel-mobile,
body.buddyboss-theme .bb-mobile-header .push-left,
body.buddyboss-theme .bb-mobile-header .header-aside,
body.buddyboss-theme .bb-mobile-header .header-search-link,
body.buddyboss-theme .bb-mobile-header .notification-link {
  color: var(--cf-ivory);
}

body.buddyboss-theme #masthead .more-button i,
body.buddyboss-theme #masthead .more-button i::before,
body.buddyboss-theme #masthead .bb-toggle-panel i,
body.buddyboss-theme #masthead .bb-toggle-panel i::before,
body.buddyboss-theme .site-header .bb-left-panel-mobile > i,
body.buddyboss-theme .site-header .bb-left-panel-mobile > i::before,
body.buddyboss-theme .bb-mobile-header .bb-left-panel-mobile i,
body.buddyboss-theme .bb-mobile-header .bb-left-panel-mobile i::before,
body.buddyboss-theme .bb-mobile-header .header-search-link i,
body.buddyboss-theme .bb-mobile-header .header-search-link i::before,
body.buddyboss-theme .bb-mobile-header .notification-link i,
body.buddyboss-theme .bb-mobile-header .notification-link i::before,
body.buddyboss-theme .bb-mobile-header .header-aside i,
body.buddyboss-theme .bb-mobile-header .header-aside i::before {
  color: var(--cf-ivory);
}

/*
 * Lined BuddyBoss glyphs inherit a hardcoded #939597 / --bb-header-links
 * ink on the <a>, then paint the <i>. Force the glyph itself.
 */
html body.buddyboss-theme .site-header i,
html body.buddyboss-theme .site-header i::before,
html body.buddyboss-theme .bb-mobile-header i,
html body.buddyboss-theme .bb-mobile-header i::before,
html body.buddyboss-theme .bb-left-panel-mobile,
html body.buddyboss-theme .bb-left-panel-mobile i,
html body.buddyboss-theme .bb-left-panel-mobile i::before,
html body.buddyboss-theme a.header-search-link,
html body.buddyboss-theme a.header-search-link i,
html body.buddyboss-theme a.header-search-link i::before,
html body.buddyboss-theme a.notification-link,
html body.buddyboss-theme a.notification-link i,
html body.buddyboss-theme a.notification-link i::before {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.buddyboss-theme .bb-mobile-header .bb-left-panel-mobile:hover,
body.buddyboss-theme .bb-mobile-header .push-left:hover,
body.buddyboss-theme .bb-mobile-header .header-search-link:hover,
body.buddyboss-theme .bb-mobile-header .notification-link:hover,
body.buddyboss-theme #masthead .more-button:hover,
body.buddyboss-theme #masthead .bb-toggle-panel:hover {
  color: var(--cf-ivory);
}

/* Browse Forums dropdown */
body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu {
  background: #142337;
  border: 1px solid rgba(197, 160, 79, 0.28);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(16, 28, 48, 0.35);
  padding: 8px 6px;
}

body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu::before {
  border-color: #142337 #142337 transparent transparent;
  box-shadow: none;
}

body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu {
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu .menu-item a {
  font-family: var(--cf-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--cf-ivory-70);
  padding: 9px 20px;
  border-radius: 2px;
}

body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu .menu-item a:hover,
body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu .menu-item a:focus,
body.buddyboss-theme .site-header #primary-navbar .primary-menu .menu-item > .ab-submenu .bb-sub-menu .menu-item:hover > a {
  color: var(--cf-ivory);
  background: rgba(250, 244, 229, 0.08);
}

/* Search, notifications, account */
body.buddyboss-theme #header-aside,
body.buddyboss-theme #header-aside a,
body.buddyboss-theme #header-aside .header-search-link,
body.buddyboss-theme #header-aside .notification-link,
body.buddyboss-theme #header-aside .user-link,
body.buddyboss-theme #header-aside i,
body.buddyboss-theme #header-aside i[class*="bb-icon"],
body.buddyboss-theme #header-aside i[class*="bb-icon"]::before,
body.buddyboss-theme .site-header #header-aside i,
body.buddyboss-theme .site-header .header-aside i {
  color: var(--cf-ivory);
}

body.buddyboss-theme #header-aside a:hover,
body.buddyboss-theme #header-aside a:focus,
body.buddyboss-theme #header-aside .header-search-link:hover,
body.buddyboss-theme #header-aside .notification-link:hover,
body.buddyboss-theme #header-aside .user-link:hover {
  color: var(--cf-ivory);
}

body.buddyboss-theme #header-aside .bb-separator {
  background: var(--cf-line);
}

body.buddyboss-theme #header-aside .notification-link .count,
body.buddyboss-theme #header-aside .count,
body.buddyboss-theme .bb-mobile-header .notification-link .count,
body.buddyboss-theme .bb-mobile-header .count {
  background: var(--cf-brass);
  color: var(--cf-forest-deep);
  border-color: var(--cf-brass);
  font-family: var(--cf-sans);
  font-weight: 700;
}

body.buddyboss-theme #header-aside .user-name {
  font-family: var(--cf-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--cf-ivory-70);
}

body.buddyboss-theme #header-aside .user-link img.avatar {
  width: 32px;
  height: 32px;
  border: 1px solid var(--cf-line);
}

body.buddyboss-theme .header-search-wrap,
body.buddyboss-theme #header-aside .notification-dropdown,
body.buddyboss-theme #header-aside .user-wrap .wrapper,
body.buddyboss-theme #header-aside .sub-menu {
  background: #142337;
  color: var(--cf-ivory);
  border-color: var(--cf-line);
  font-family: var(--cf-sans);
}

body.buddyboss-theme .header-search-wrap input[type="search"],
body.buddyboss-theme .header-search-wrap input[type="text"] {
  background: #fffdf7;
  border: 1px solid #ddb461;
  color: #102a40;
  font-family: var(--cf-sans);
}

body.buddyboss-theme .header-search-wrap button,
body.buddyboss-theme .header-search-wrap .search-form button {
  background: #c5a04f;
  color: #142337;
  font-family: var(--cf-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 9px;
}

body.buddyboss-theme #header-aside .notification-dropdown .title,
body.buddyboss-theme #header-aside .notification-header h2 {
  color: var(--cf-ivory);
  font-family: var(--cf-serif);
}

body.buddyboss-theme #header-aside .notification-dropdown a {
  color: var(--cf-ivory-70);
  font-family: var(--cf-sans);
}

/* Logged-out Sign In / Join Community */
body.buddyboss-theme:not(.logged-in) .bb-header-buttons .signin-button,
body.buddyboss-theme:not(.logged-in) #header-aside .signin-button {
  font-family: var(--cf-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  min-height: 38px;
  padding: 8px 11px;
  box-shadow: none;
}

body.buddyboss-theme:not(.logged-in) .bb-header-buttons a.signup,
body.buddyboss-theme:not(.logged-in) .bb-header-buttons .bs-signup-btn,
body.buddyboss-theme:not(.logged-in) #header-aside a.signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  font-family: var(--cf-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}

body.buddyboss-theme:not(.logged-in) .bb-header-buttons a.signup:hover,
body.buddyboss-theme:not(.logged-in) .bb-header-buttons a.signup:focus,
body.buddyboss-theme:not(.logged-in) .bb-header-buttons .bs-signup-btn:hover,
body.buddyboss-theme:not(.logged-in) #header-aside a.signup:hover,
body.buddyboss-theme:not(.logged-in) #header-aside a.signup:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

/*
 * Mobile drawer: BuddyBoss marks this .light and paints .bb-mobile-panel-inner
 * white. Child ivory links then fail contrast. Keep the navy shell.
 */
body.buddyboss-theme .bb-mobile-panel-wrapper,
body.buddyboss-theme .bb-mobile-panel-wrapper.light,
body.buddyboss-theme .bb-mobile-panel-wrapper.dark,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner,
body.buddyboss-theme .bb-mobile-panel-wrapper.light .bb-mobile-panel-inner,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-header,
body.buddyboss-theme .bb-mobile-panel-wrapper.light .bb-mobile-panel-header {
  background: var(--cf-forest-deep);
  background-color: var(--cf-forest-deep);
  color: var(--cf-ivory);
  box-shadow: none;
}

body.buddyboss-theme .bb-mobile-panel-wrapper a,
body.buddyboss-theme .bb-mobile-panel-wrapper .link-text,
body.buddyboss-theme .bb-mobile-panel-wrapper .user-name,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-header a,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .bb-primary-menu a,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .side-panel-menu a,
body.buddyboss-theme .bb-mobile-panel-wrapper.light .bb-mobile-panel-inner .side-panel-menu a,
body.buddyboss-theme .bb-mobile-panel-wrapper.light .bb-mobile-panel-inner .bb-primary-menu a {
  color: var(--cf-ivory);
  text-transform: none;
}

body.buddyboss-theme .bb-mobile-panel-wrapper .bb-close-panel,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-close-panel i,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-close-panel i::before {
  color: var(--cf-ivory);
}

body.buddyboss-theme .bb-mobile-panel-wrapper a:hover,
body.buddyboss-theme .bb-mobile-panel-wrapper a:focus,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .side-panel-menu a:hover,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .bb-primary-menu a:hover {
  color: var(--cf-ivory);
}

body.buddyboss-theme .bb-mobile-panel-wrapper .current-menu-item > a,
body.buddyboss-theme .bb-mobile-panel-wrapper .current-menu-item .link-text,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .bb-primary-menu .current-menu-item > a,
body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner .side-panel-menu .current-menu-item > a {
  background: var(--cf-green);
  color: var(--cf-ivory);
  border-radius: 2px;
  padding-left: 12px;
  padding-right: 12px;
}

@media (max-width: 800px) {
  body.buddyboss-theme .site-header img.bb-logo,
  body.buddyboss-theme .site-header .site-title img {
    height: 32px !important;
    max-width: 200px !important;
    max-height: 32px !important;
  }

  body.buddyboss-theme .site-header #site-logo,
  body.buddyboss-theme .site-header .site-branding,
  body.buddyboss-theme .site-header .site-title,
  body.buddyboss-theme .bb-mobile-header .mobile-logo-wrapper,
  body.buddyboss-theme .bb-mobile-header .site-title {
    max-width: 210px;
  }

  /*
   * backdrop-filter on #masthead makes it the containing block for
   * position:fixed descendants. BuddyBoss's mobile panel lives inside
   * #masthead, so the menu was clipped to a ~30px strip under the bar.
   */
  body.buddyboss-theme #masthead.site-header,
  body.buddyboss-theme .site-header.site-header--bb,
  body.buddyboss-theme .bb-mobile-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.buddyboss-theme .bb-mobile-panel-wrapper {
    position: fixed;
    z-index: 10050;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.buddyboss-theme .bb-mobile-panel-wrapper .bb-mobile-panel-inner {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }
}

body.buddyboss-theme .bb-mobile-header .header-aside {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  width: auto !important;
}

/* Mobile header Sign In (Barker Custom Cart-style ghost control) */
body.buddyboss-theme .bb-mobile-header .cf-mobile-signin-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-right: 8px;
  padding: 6px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  height: 34px;
  max-height: 34px;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  font-family: var(--cf-sans);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Mobile drawer account + extra destinations */
body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-account,
body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-more {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.2rem 1.1rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(197, 160, 79, 0.28);
}

body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-signin,
body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-logout,
body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}

body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-join {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1rem;
  background: #c5a04f;
  color: #142337 !important;
  border: 1px solid #c5a04f;
  border-radius: 9px;
  font-weight: 800;
  text-decoration: none;
}

body.buddyboss-theme .bb-mobile-panel-wrapper .cf-mobile-more-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.2rem;
  color: #faf4e5 !important;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

body.buddyboss-theme .bb-mobile-panel-wrapper nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
}
