/*
 * A/B test (home_v1; the header follows the home group): the new app's header on classic snapshot pages.
 * Markup is injected by scripts/classic-nav.mjs; it only shows when
 * public/bh-experiment.js has put `bh-nav-new` on <html> (treatment), and then
 * Squarespace's own nav and menu are hidden. Everything is scoped to #bh-nav so
 * it can't touch the Squarespace page. Mirrors src/components/layout/header.tsx.
 */
@font-face {
  font-family: "BH Roboto Mono";
  src: url("/fonts/RobotoMono-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

#bh-nav {
  display: none;
}
html.bh-nav-new #bh-nav {
  display: block;
}
html.bh-nav-new #header .header-announcement-bar-wrapper,
html.bh-nav-new #header .header-menu {
  display: none !important;
}
/* The classic homepage (/ and /home) has its own Bonsai search bar; the new
   menu's search icon drops one down, so hide the page's copy. Only the code
   block: the section's background is the homepage's hero photo. */
html.bh-nav-new .page-section[data-section-id="6abd3e81d79e102ed43391cc"] .sqs-block-code {
  display: none !important;
}

#bh-nav,
#bh-nav * {
  box-sizing: border-box;
}
#bh-nav {
  position: relative;
  z-index: 50;
  /* Squarespace's <header> is pointer-events: none (only its own parts opt
     back in), so without this every click falls through to the page. */
  pointer-events: auto;
  font-family: "BH Roboto Mono", ui-monospace, monospace;
  color: #fff;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  text-align: left;
}
#bh-nav a {
  color: inherit;
  text-decoration: none;
  background: none;
}
#bh-nav button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
#bh-nav svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Bar */
#bh-nav .bhn-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
}
#bh-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 56px;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
#bh-nav .bhn-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}
#bh-nav .bhn-logo img {
  display: block;
  width: 175px;
  max-width: 100%;
  height: auto;
}
#bh-nav .bhn-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: -8px;
  padding: 0 13px;
}
#bh-nav .bhn-burger span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
#bh-nav.bhn-open .bhn-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#bh-nav.bhn-open .bhn-burger span:nth-child(2) {
  opacity: 0;
}
#bh-nav.bhn-open .bhn-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
#bh-nav .bhn-desktop {
  display: none;
}
#bh-nav .bhn-ai {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

/* Search link: a plain search icon at every width. */
#bh-nav svg.bhn-ai-icon {
  width: 20px;
  height: 20px;
}

/* Desktop (lg, 1024px+) */
@media (min-width: 1024px) {
  #bh-nav::before,
  #bh-nav .bhn-bar {
    height: 72px;
  }
  #bh-nav .bhn-bar {
    padding: 0 32px;
  }
  #bh-nav .bhn-burger,
  #bh-nav .bhn-panel {
    display: none !important;
  }
  #bh-nav .bhn-logo {
    position: static;
    transform: none;
  }
  #bh-nav .bhn-desktop {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-left: 32px;
  }
}
#bh-nav .bhn-link,
#bh-nav .bhn-dd-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.15s;
}
#bh-nav .bhn-link:hover,
#bh-nav .bhn-dd-btn:hover,
#bh-nav .bhn-ai:hover {
  color: #fff;
}

/* Dropdowns: Locations, Offerings, Learn More */
#bh-nav .bhn-dd {
  position: relative;
}
#bh-nav .bhn-dd svg,
#bh-nav .bhn-acc svg {
  transition: transform 0.2s;
}
#bh-nav .bhn-dd.bhn-dd-open .bhn-dd-btn svg,
#bh-nav .bhn-acc[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
#bh-nav .bhn-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 12px;
  width: 240px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}
#bh-nav .bhn-dd-menu.bhn-dd-wide {
  width: 288px;
}
#bh-nav .bhn-dd.bhn-dd-open .bhn-dd-menu {
  display: block;
}
#bh-nav .bhn-ddlink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: background 0.15s;
}
#bh-nav .bhn-ddlink:hover {
  background: rgba(255, 255, 255, 0.05);
}
#bh-nav .bhn-ddlink svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.2);
}
#bh-nav .bhn-loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  transition: background 0.15s;
}
#bh-nav .bhn-loc:hover {
  background: rgba(255, 255, 255, 0.05);
}
#bh-nav .bhn-loc-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
#bh-nav .bhn-loc-sub {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
#bh-nav .bhn-loc svg {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.2);
}

/* Search row under the bar (like the app header's Bonsai row) */
#bh-nav .bhn-search {
  position: relative;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#bh-nav .bhn-search[hidden] {
  display: none;
}
#bh-nav .bhn-search-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 12px 16px;
}
#bh-nav bonsai-searchbar {
  display: block;
}

/* Mobile panel */
#bh-nav .bhn-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: var(--bhn-top, 56px);
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #000;
}
#bh-nav .bhn-panel[hidden] {
  display: none;
}
#bh-nav .bhn-panel nav {
  padding: 8px 20px 40px;
}
#bh-nav .bhn-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#bh-nav .bhn-acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
#bh-nav .bhn-acc svg {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.8);
}
#bh-nav .bhn-acc-body {
  display: none;
  padding-bottom: 12px;
}
#bh-nav .bhn-acc[aria-expanded="true"] + .bhn-acc-body {
  display: block;
}
#bh-nav .bhn-acc-body .bhn-loc {
  margin-bottom: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
}
#bh-nav .bhn-main {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: #fff;
}
#bh-nav .bhn-acc-body .bhn-extra {
  padding-left: 16px;
}
#bh-nav .bhn-extra {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
#bh-nav .bhn-cta {
  padding-top: 20px;
}
#bh-nav .bhn-cta-btn {
  display: block;
  padding: 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}
html.bhn-lock,
html.bhn-lock body {
  overflow: hidden;
}
