/* The overlay lives in the top layer and does not take space in the header. */
.bs-explorer-brand { display: flex; position: relative; flex: 0 0 auto; padding-inline-start: 54px; }
.bs-explorer-brand > .bs-explorer { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
.bs-explorer-toggle, .bs-explorer-close {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #d9e0dc;
  border-radius: 8px;
  background: #fffdfa;
  color: #30654e;
  cursor: pointer;
}
.bs-explorer-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -6px currentColor, 0 6px currentColor;
}
.bs-explorer-toggle:hover, .bs-explorer-close:hover { background: #edf4ef; }
.bs-explorer-panel {
  box-sizing: border-box;
  position: fixed;
  inset: var(--bs-explorer-top, 68px) auto auto var(--bs-explorer-left, 16px);
  width: min(365px, calc(100vw - var(--bs-explorer-left, 16px) - 12px));
  max-height: min(570px, calc(100dvh - var(--bs-explorer-top, 68px) - 12px));
  margin: 0;
  padding: 12px;
  border: 1px solid #d9e0dc;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 12px 34px #132a3626;
  color: #132a36;
  font: 15px/1.4 Arial, sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
}
.bs-explorer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 0 8px 8px;
  border-bottom: 1px solid #d9e0dc;
}
.bs-explorer-heading strong { font: bold 20px/1.2 Georgia, serif; }
.bs-explorer-close { font: 24px/1 Arial, sans-serif; }
.bs-explorer-panel details + details { border-top: 1px solid #e8ece8; }
.bs-explorer-panel summary {
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 8px;
  color: #214b3a;
  font-weight: 700;
  cursor: pointer;
}
.bs-explorer-panel ul { margin: 0 0 8px; padding: 0; list-style: none; }
.bs-explorer-panel li { margin: 0; padding: 0; }
.bs-explorer-panel a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px 8px 24px;
  border-radius: 6px;
  color: #214b3a;
  text-decoration: none;
}
.bs-explorer-panel a:hover { background: #edf4ef; text-decoration: underline; }
.bs-explorer :focus-visible { outline: 2px solid #277760; outline-offset: 2px; }
/* Preserve guide-header rules that originally targeted the direct logo child. */
.product-header > .bs-explorer-brand { margin-right: auto; }
@media (max-width: 680px) {
  .product-header > .bs-explorer-brand > .brand { font-size: 22px; }
}
/* Browsers without Popover keep the original navigation. */
@supports not selector(:popover-open) {
  .bs-explorer { display: none; }
  .bs-explorer-brand { display: contents; }
}
