/* Additional global styles for non-parity pages in bbb-theme-block. */
body { margin: 0; }

.bbb-editor-page {
  background: var(--cream, #F8F4EE);
}

.bbb-editor-page--prose {
  padding: 3rem 2rem 4rem;
}

.bbb-editor-page__inner {
  max-width: 900px;
  margin: 0 auto;
}

.bbb-editor-page--prose h1,
.bbb-editor-page--prose h2,
.bbb-editor-page--prose h3,
.bbb-editor-page--prose h4,
.bbb-editor-page--prose h5,
.bbb-editor-page--prose h6 {
  color: var(--text-dk, #0F1E14);
  line-height: 1.2;
}

.bbb-editor-page--prose p,
.bbb-editor-page--prose li,
.bbb-editor-page--prose blockquote {
  color: var(--text-brown, #3A2C1A);
}

.bbb-editor-page--prose img {
  max-width: 100%;
  height: auto;
}

.bbb-editor-page--builder > .elementor,
.bbb-editor-page--builder .elementor {
  width: 100%;
}

.bbb-editor-bridge {
  width: 100%;
}

/* BBB ad spec containers */
.bbb-ad-top,
.bbb-ad-mid,
.bbb-ad-footer {
  width: 100%;
  text-align: center;
}

/* Keep dimensions stable for real ad markup and fallback placeholders */
.bbb-ad-top,
.bbb-ad-footer {
  min-height: 90px;
}

.bbb-ad-mid {
  min-height: 250px;
}

/* Top/footer card structure (matches source HTML style: ad-lb / ad-footer / ad-lbl / ad-ph) */
.bbb-ad-top .ad-lb,
.bbb-ad-footer .ad-footer {
  width: 100%;
  margin: 0 auto;
}

.bbb-ad-top .ad-lbl,
.bbb-ad-footer .ad-lbl {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(42, 80, 56, 0.25);
  margin-bottom: 0.35rem;
  text-align: center;
}

.bbb-ad-top .ad-ph,
.bbb-ad-footer .ad-ph,
.bbb-ad-top .ad-placeholder,
.bbb-ad-footer .ad-placeholder {
  display: block;
  max-width: 728px;
  width: 100%;
  min-height: 90px;
  margin: 0 auto;
  overflow: hidden;
  box-sizing: border-box;
}

.bbb-ad-mid > *,
.bbb-ad-mid .ad-placeholder {
  display: block;
  max-width: 300px;
  width: 100%;
  min-height: 250px;
  margin: 0 auto;
}

.bbb-ad-top img,
.bbb-ad-mid img,
.bbb-ad-footer img,
.bbb-ad-top iframe,
.bbb-ad-mid iframe,
.bbb-ad-footer iframe {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.bbb-ad-top .ad-ph *,
.bbb-ad-footer .ad-ph * {
  max-width: 100% !important;
  box-sizing: border-box;
}

.bbb-ad-top .ad-ph img,
.bbb-ad-footer .ad-ph img {
  width: auto !important;
  max-width: 100% !important;
  max-height: 90px !important;
  height: auto !important;
  object-fit: contain;
}

.bbb-ad-top .ad-ph iframe,
.bbb-ad-footer .ad-ph iframe,
.bbb-ad-top .ad-ph ins,
.bbb-ad-footer .ad-ph ins {
  max-width: 100% !important;
  max-height: 90px;
}

/* Spec: empty ads collapse to zero height */
.bbb-ad-top.is-empty,
.bbb-ad-mid.is-empty,
.bbb-ad-footer.is-empty {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
}

.archive-pagination,
.pagination {
  position: static;
  inset: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 0 0;
  flex-wrap: wrap;
  width: 100%;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.archive-pagination .page-btn,
.pagination .page-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cream-dk, #EDE5D4);
  background: #fff;
  color: var(--text-muted, #6A7868);
  border-radius: 2px;
  text-decoration: none;
  line-height: 1;
}

.archive-pagination .page-btn:hover,
.archive-pagination .page-btn.active,
.archive-pagination .page-btn.current,
.pagination .page-btn:hover,
.pagination .page-btn.active,
.pagination .page-btn.current {
  background: var(--forest, #0F1E14);
  color: var(--warm-white, #F5EDE0);
  border-color: var(--forest, #0F1E14);
}

/* ── User account avatar + dropdown (desktop) ─────────────────────── */
.user-menu {
  position: relative;
  display: inline-block;
}
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.55rem 0.25rem 0.3rem;
  background: transparent;
  border: 1px solid rgba(248, 244, 238, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: #F8F4EE;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.user-menu-toggle:hover,
.user-menu-toggle:focus-visible {
  background: rgba(248, 244, 238, 0.08);
  border-color: rgba(248, 244, 238, 0.32);
  outline: none;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B87830 0%, #8A5520 100%);
  color: #F8F4EE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  flex: 0 0 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.user-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 1.35rem;
}
.user-menu-caret {
  font-size: 0.65rem;
  color: rgba(248, 244, 238, 0.55);
  transition: transform 0.18s ease;
}
.user-menu-toggle[aria-expanded="true"] .user-menu-caret {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid rgba(15, 30, 20, 0.1);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 0.4rem 0;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.user-menu-dropdown[hidden] {
  display: none;
}
.user-menu-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.user-menu-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(15, 30, 20, 0.08);
  margin-bottom: 0.35rem;
}
.user-menu-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.user-menu-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #0F1E14;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.74rem;
  color: rgba(58, 44, 26, 0.6);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1rem;
  color: #3A2C1A;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.93rem;
  transition: background 0.12s ease, color 0.12s ease;
}
.user-menu-item:hover,
.user-menu-item:focus-visible {
  background: #F8F4EE;
  color: #0F1E14;
  outline: none;
}
.user-menu-item--danger {
  color: #8B3A2F;
}
.user-menu-item--danger:hover,
.user-menu-item--danger:focus-visible {
  background: rgba(180, 60, 47, 0.07);
  color: #6B2A23;
}
.user-menu-icon {
  display: inline-flex;
  width: 18px;
  justify-content: center;
  font-size: 0.9rem;
}
.user-menu-divider {
  margin: 0.3rem 0;
  border: 0;
  border-top: 1px solid rgba(15, 30, 20, 0.06);
}

/* Mobile drawer: profile card + logout style ─────────────────────── */
.mobile-menu-profile {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.2rem 0 1rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(248, 244, 238, 0.08);
}
.mobile-menu-profile .user-menu-name {
  color: #F8F4EE;
}
.mobile-menu-profile .user-menu-sub {
  color: rgba(248, 244, 238, 0.55);
}
.mobile-menu-btn--logout {
  background: transparent;
  color: #E89485;
  border: 1px solid rgba(232, 148, 133, 0.32);
  margin-top: 0.25rem;
}
.mobile-menu-btn--logout:hover {
  background: rgba(232, 148, 133, 0.06);
}

/* ── Mobile hamburger + slide-out drawer ──────────────────────────── */
/* Hidden on every screen by default — only the mobile @media block re-enables.
   !important guarantees these can never leak onto desktop. */
.nav-toggle,
.mobile-menu,
.mobile-menu-backdrop {
  display: none !important;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream, #F8F4EE);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 20, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 998;
}
.mobile-menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: #0F1E14;
  color: #F8F4EE;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
}
.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(248, 244, 238, 0.08);
}
.mobile-menu-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #F8F4EE;
  text-decoration: none;
  line-height: 1.2;
  padding-right: 0.5rem;
}
.mobile-menu-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(248, 244, 238, 0.18);
  border-radius: 6px;
  color: #F8F4EE;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.mobile-menu-close:hover {
  background: rgba(248, 244, 238, 0.08);
}

/* Target any <ul> inside the drawer — covers both wp_nav_menu's
   custom class AND the theme's fallback (<ul class="nav-links">).
   display:block !important defeats global rules like
   .nav-links{display:flex} that would otherwise lay the pillar links
   horizontally inside the narrow drawer column. */
.mobile-menu ul,
.mobile-menu ul.nav-links,
.mobile-menu ul.mobile-menu-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 1rem 0 !important;
  flex: 1;
  display: block !important;
  gap: 0 !important;
  width: 100% !important;
}
.mobile-menu ul li {
  margin: 0 !important;
  display: block !important;
  width: 100% !important;
}
.mobile-menu ul li a {
  display: block;
  padding: 0.9rem 1.4rem;
  color: #F8F4EE;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 400;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.mobile-menu ul li a:hover {
  background: rgba(248, 244, 238, 0.04);
  border-left-color: #B87830;
}
.mobile-menu ul li a.active {
  background: rgba(248, 244, 238, 0.05);
  border-left-color: #B87830;
  color: #D4A060;
}

.mobile-menu-actions {
  padding: 1rem 1.4rem 1.8rem;
  border-top: 1px solid rgba(248, 244, 238, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.mobile-menu-btn {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  text-decoration: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  transition: opacity 0.15s ease;
}
.mobile-menu-btn:hover {
  opacity: 0.88;
}
.mobile-menu-btn--ghost {
  background: transparent;
  color: #F8F4EE;
  border: 1px solid rgba(248, 244, 238, 0.22);
}
.mobile-menu-btn--primary {
  background: #B87830;
  color: #0F1E14;
  border: 1px solid #B87830;
}

body.bbb-menu-open {
  overflow: hidden;
}

/* Re-enable hamburger + drawer only at mobile sizes;
   above 768px they stay hidden by the baseline rule. */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex !important;
  }
  .mobile-menu {
    display: flex !important;
  }
  .mobile-menu-backdrop {
    display: block !important;
  }
  .nav-inner > .nav-links,
  .nav-inner > .nav-actions {
    display: none;
  }
}
