/* Baby Says Books persistent site navigation */
.bsb-menu-button {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: max(28px, env(safe-area-inset-left));
  z-index: 420;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(39, 75, 109, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #274b6d;
  box-shadow: 0 5px 20px rgba(39, 75, 109, 0.14);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bsb-menu-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(39, 75, 109, 0.20);
  background: #fff;
}
.bsb-menu-button:focus-visible,
.bsb-menu-close:focus-visible,
.bsb-menu-link:focus-visible,
.bsb-shop-toggle:focus-visible,
.bsb-submenu-link:focus-visible,
.bsb-menu-brand:focus-visible {
  outline: 2px solid #3a6491;
  outline-offset: 3px;
}
.bsb-menu-icon,
.bsb-menu-icon::before,
.bsb-menu-icon::after {
  width: 20px;
  height: 1.7px;
  border-radius: 2px;
  background: currentColor;
  display: block;
}
.bsb-menu-icon { position: relative; }
.bsb-menu-icon::before,
.bsb-menu-icon::after { content: ''; position: absolute; left: 0; }
.bsb-menu-icon::before { top: -6px; }
.bsb-menu-icon::after { top: 6px; }

.bsb-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 40, 58, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}
.bsb-menu-overlay.is-open { opacity: 1; visibility: visible; }

.bsb-menu-panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(390px, 88vw);
  background: #fff;
  box-shadow: 18px 0 48px rgba(25, 51, 76, 0.18);
  transform: translateX(-102%);
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
  display: flex;
  flex-direction: column;
  padding: max(26px, env(safe-area-inset-top)) 30px max(30px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.bsb-menu-overlay.is-open .bsb-menu-panel { transform: translateX(0); }

.bsb-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e2e8f0;
}
.bsb-menu-brand {
  color: #274b6d;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: none;
}
.bsb-menu-close {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: #274b6d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.bsb-menu-close:hover { background: #f8fafc; }

.bsb-menu-nav { padding-top: 32px; }
.bsb-menu-list,
.bsb-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bsb-menu-item { border-bottom: 1px solid #e2e8f0; }
.bsb-menu-link,
.bsb-shop-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  border: 0;
  background: none;
  color: #274b6d;
  text-decoration: none;
  text-align: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}
.bsb-menu-link:hover,
.bsb-shop-toggle:hover { color: #3a6491; }
.bsb-shop-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
  flex: 0 0 auto;
  margin-right: 5px;
}
.bsb-shop-group.is-expanded .bsb-shop-chevron { transform: rotate(225deg) translate(-2px, -1px); }
.bsb-submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 16px;
  transition: max-height .28s ease, opacity .22s ease, padding-bottom .28s ease;
}
.bsb-shop-group.is-expanded .bsb-submenu {
  max-height: 180px;
  opacity: 1;
  padding-bottom: 16px;
}
.bsb-submenu-link {
  display: block;
  padding: 9px 0;
  color: #555;
  text-decoration: none;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: color .18s ease, transform .18s ease;
}
.bsb-submenu-link:hover { color: #274b6d; transform: translateX(3px); }
.bsb-menu-footnote {
  margin-top: auto;
  padding-top: 34px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #888;
}
body.bsb-menu-open { overflow: hidden !important; }

@media (hover: hover) and (pointer: fine) {
  .bsb-shop-group:hover .bsb-submenu,
  .bsb-shop-group:focus-within .bsb-submenu {
    max-height: 180px;
    opacity: 1;
    padding-bottom: 16px;
  }
  .bsb-shop-group:hover .bsb-shop-chevron,
  .bsb-shop-group:focus-within .bsb-shop-chevron {
    transform: rotate(225deg) translate(-2px, -1px);
  }
}

@media (max-width: 640px) {
  .bsb-menu-button {
    top: max(14px, env(safe-area-inset-top));
    left: max(16px, env(safe-area-inset-left));
    width: 42px;
    height: 42px;
  }
  .bsb-menu-panel { padding-left: 24px; padding-right: 24px; }
  .bsb-menu-link, .bsb-shop-toggle { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .bsb-menu-button,
  .bsb-menu-overlay,
  .bsb-menu-panel,
  .bsb-submenu,
  .bsb-shop-chevron,
  .bsb-submenu-link { transition: none !important; }
}
body.bsb-menu-open .bsb-menu-button { opacity: 0; pointer-events: none; transform: translateY(-2px) scale(.94); }


/* Companion home control used on interior collection/about pages. */
.bsb-home-button {
  position: fixed;
  top: max(20px, env(safe-area-inset-top));
  left: calc(max(28px, env(safe-area-inset-left)) + 60px);
  z-index: 390;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(39, 75, 109, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #274b6d;
  box-shadow: 0 5px 20px rgba(39, 75, 109, 0.14);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bsb-home-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bsb-home-button:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(39, 75, 109, 0.20); background: #fff; }
.bsb-home-button:focus-visible { outline: 2px solid #3a6491; outline-offset: 3px; }
body.bsb-menu-open .bsb-home-button { opacity: 0; pointer-events: none; transform: translateY(-2px) scale(.94); }

@media (max-width: 640px) {
  .bsb-home-button {
    top: max(14px, env(safe-area-inset-top));
    left: calc(max(16px, env(safe-area-inset-left)) + 52px);
    width: 42px;
    height: 42px;
  }
  .bsb-home-button svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .bsb-home-button { transition: none !important; } }
