/* Hummingbird Editor — Frontend block styles */

:root {
    --hbe-black: var(--c-black, #242424);
    --hbe-white: var(--c-white, #fff);
}

/* Lora loaded via theme SCSS (_fonts.scss @fontsource/lora) */

/* ── Block wrapper ──────────────────────────────────────────────────────────── */
.hbe-block {
  width: 100%;
}

/* ── Images ─────────────────────────────────────────────────────────────────── */
.hbe-picture {
  display: block;
  line-height: 0;
}
.hbe-img {
  max-width: 100%;
  height: auto;
}
.hbe-img-link {
  display: inline-block;
}

/* ── Responsive content switch (CSS-only, no JS) ──────────────────────────── */
.hbe-content--mobile {
  display: none;
}

@media (max-width: 767px) {
  .hbe-content--desktop {
    display: none;
  }
  .hbe-content--mobile {
    display: block;
  }
}

/* ── Text link wrapper ───────────────────────────────────────────────────────── */
.hbe-link {
  display: block;
  text-decoration: none;
  color: inherit;
}


/* ── Top promo bar ───────────────────────────────────────────────────────── */
.hbe-topbar {
  background: var(--bs-primary);
  color: #fff;
  font-size: var(--fs-body-xs);
  line-height: 1.2;
  padding: 6px 10px;
  text-align: center;
  letter-spacing: 0.2px;
}

.hbe-topbar a,
.hbe-topbar a:hover,
.hbe-topbar a:focus {
  color: #fff;
  text-decoration: underline;
}


/* ── Search overlay ──────────────────────────────────────────────────────── */

/* header needs relative positioning for the overlay */
#header {
  position: relative;
  overflow: visible !important;
}

/* Full-width overlay — position:absolute on #header, height auto so
   the suggestions row below the input bar is not clipped */
.ps-search-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--bs-body-bg, #fff);
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  box-sizing: border-box;
}

.ps-search-overlay.is-open {
  display: flex;
}

/* Row 1: form with input + close button, same height as the header */
.ps-search-overlay__form {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0 1.5rem;
  min-height: 60px;
  box-sizing: border-box;
}

.ps-search-overlay__input {
  flex: 1;
  border: none;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
  font-size: var(--fs-body-l);
  padding: 0.4rem 0.25rem;
}

.ps-search-overlay__input:focus {
  outline: none;
}

.btn-search-open,
.btn-search-close {
  line-height: 1;
  padding: 0;
  cursor: pointer !important;
  color: inherit;
}

.btn-search-close .material-icons {
  font-size: 1.5rem;
  vertical-align: middle;
}

/* Dropdown — full viewport width, fixed below the overlay */
.ps-search-overlay .ps-searchbar__dropdown {
  position: fixed;
  top: var(--search-dropdown-top, 80px);
  left: 0;
  width: 100vw;
  max-height: 70vh;
  overflow-y: auto;
  z-index: 10001;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-top: 1px solid var(--bs-border-color, #dee2e6);
}

/* Dimmer — covers everything below the header */
.search-page-dimmer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.search-page-dimmer.is-visible {
  display: block;
  pointer-events: auto;
}

.search-page-dimmer.is-active {
  opacity: 1;
}

/* ── Search synonym suggestions (Row 2 of overlay) ───────────────────────── */
.ps-search-suggestions {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.5rem 0.75rem;
  border-top: 1px solid var(--bs-border-color, #e9ecef);
  width: 100%;
  box-sizing: border-box;
}

.ps-search-suggestions__label {
  font-size: var(--fs-body-xs);
  color: var(--bs-secondary-color, #6c757d);
  white-space: nowrap;
  margin-right: 0.15rem;
}

.ps-search-suggestions__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.7rem;
  border: 1px solid var(--bs-border-color, #ccc);
  border-radius: 50rem;
  background: var(--bs-body-bg, #fff);
  font-size: var(--fs-body-xs);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.ps-search-suggestions__chip:hover,
.ps-search-suggestions__chip:focus {
  background: var(--bs-dark, #212529);
  color: #fff;
  border-color: var(--bs-dark, #212529);
  outline: none;
}

