/* ── Page hero ───────────────────────────────────────────────────────────────
   Replicated from the theme's page-heroes / templates layout. The plugin emits
   .bmp-section-hero-wrapper itself (bmpfaq/hero block), and the theme only
   styles it under page-template-* body classes the FAQ pages don't have — so we
   own the hero styling here instead of borrowing a body class. This stylesheet
   only loads on FAQ pages, so the bare `main` rule is scoped by enqueue. */

main {
  padding-top: 1.25rem !important;
}

.bmp-section-hero-wrapper {
  position: relative;
  z-index: 1;
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  transition: min-height 0.3s ease;
}

.bmp-section-hero-wrapper .bmp-section-hero-content-title {
  position: relative;
  z-index: 10;
  grid-column: 1;
  /* Base left gutter; the wide left-edge alignment at >=1216px is supplied by
     the shared `.bmp-align-wide-left` helper (firebird-horizontal-spacing.css), applied
     to this element in bmpfaq_render_hero(). */
  padding-left: var(--bmp-gutter);
}

.bmp-section-hero-wrapper .bmp-section-hero-content-title h1 {
  margin: 0;
}

@media (min-width: 768px) {
  main {
    padding-top: 1.5rem !important;
  }
}

@media (min-width: 1200px) {
  .bmp-section-hero-wrapper {
    min-height: 215px;
    gap: 2rem;
  }
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */

.bmpfaq-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: var(
    --wp--custom--block--globals--typography--font-size--87,
    0.875rem
  );
  color: var(--wp--custom--block--globals--color--text--heading, #292929);
  margin: 1.5rem 0 1.5rem 0;
  line-height: 1.4;
}

.bmpfaq-breadcrumbs a {
  color: var(--wp--custom--block--globals--color--purple, #534be7);
  text-decoration: none;
}

.bmpfaq-breadcrumbs a:hover {
  text-decoration: underline;
  text-decoration-color: var(
    --wp--custom--block--globals--color--purple,
    #534be7
  );
}

.bmpfaq-breadcrumb-sep {
  color: var(--wp--custom--block--globals--color--gray-400, #a3a3a3);
  line-height: 1;
}

/* ── Main column ─────────────────────────────────────────────────────────── */
/* No horizontal padding on main: below 1200px the theme's .bmp-default-column-layout
   supplies the spacing-160 indent (matching the hero title); at ≥1200px the content
   column centres on wide-size, lining up with the hero's left edge. That wide-size
   centring is supplied by the shared `.bmp-wide` helper (firebird-horizontal-spacing.css),
   applied to .bmp-default-column-layout in single-bmpfaq.html. Any padding-left here
   would shift that centred column off the hero. */
.bmpfaq-main {
  padding-top: 1.5rem !important;
}
.bmpfaq-main h2 {
  margin-block-start: 0 !important;
}

.bmpfaq-timestamp {
  font-size: var(
    --wp--custom--block--globals--typography--font-size--87,
    0.875rem
  );
  color: var(--wp--custom--block--globals--color--text--subheading, #525252);
  margin: 0 0 var(--wp--custom--unit--spacing--240, 1.5rem);
}

/* Post body — targets the live wp:post-content output (.entry-content). Links are
   intentionally left to the theme so they keep their visible (purple) styling. */
/* .bmpfaq-main .entry-content {
  font-size: var(
    --wp--custom--block--globals--typography--font-size--100,
    1rem
  );
  line-height: 1.3;
}

.bmpfaq-main .entry-content p {
  margin: 0 0 1em;
}
.bmpfaq-main .entry-content h2 {
  font-size: 1.3rem;
  margin: 1.5em 0 0.5em;
}
.bmpfaq-main .entry-content h3 {
  font-size: 1.15rem;
  margin: 1.25em 0 0.5em;
}
.bmpfaq-main .entry-content ul,
.bmpfaq-main .entry-content ol {
  margin: 0 0 1em 1.5em;
}
.bmpfaq-main .entry-content li {
  margin-bottom: 0.4em;
} */

.bmpfaq-divider {
  border: none;
  border-top: 1px solid
    var(--wp--custom--block--globals--color--gray-200, #e5e5e7);
  margin: var(--wp--custom--unit--spacing--320, 2rem) 0;
}

/* ── Feedback widget ─────────────────────────────────────────────────────── */

.bmpfaq-feedback {
  text-align: center;
  padding: var(--wp--custom--unit--spacing--80, 0.5rem) 0
    var(--wp--custom--unit--spacing--240, 1.5rem);
}

.bmpfaq-feedback-question {
  font-size: var(
    --wp--custom--block--globals--typography--font-size--100,
    1rem
  );
  font-weight: var(
    --wp--custom--block--globals--typography--font-weight--600,
    600
  );
  margin: 0 0 var(--wp--custom--unit--spacing--160, 1rem);
}

.bmpfaq-vote-buttons {
  display: flex;
  justify-content: center;
  gap: var(--wp--custom--unit--spacing--120, 0.75rem);
  margin-bottom: 0.875rem;
}

.bmpfaq-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--wp--custom--unit--spacing--80, 0.5rem)
    var(--wp--custom--unit--spacing--240, 1.5rem);
  border: 1px solid var(--wp--custom--block--globals--color--gray-300, #d6d6d6);
  border-radius: var(--wp--custom--unit--corner-radius--100, 0.25rem);
  background: var(--wp--custom--block--globals--color--white, #ffffff);
  font-size: 0.95rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.bmpfaq-vote-btn:hover {
  background: var(--wp--custom--block--globals--color--gray-100, #f5f5f5);
  border-color: var(--wp--custom--block--globals--color--gray-400, #a3a3a3);
}

.bmpfaq-vote-btn.voted-yes {
  background: #eaf7ea;
  border-color: #46b450;
  color: #2a7a2e;
}

.bmpfaq-vote-btn.voted-no {
  background: #fef2f2;
  border-color: #d9534f;
  color: #a02020;
}

.bmpfaq-vote-btn:disabled {
  cursor: default;
}

.bmpfaq-vote-count {
  font-size: var(
    --wp--custom--block--globals--typography--font-size--87,
    0.875rem
  );
  color: var(--wp--custom--block--globals--color--text--subheading, #525252);
  margin: 0;
  min-height: 1.2em;
}

/* ── Submit a request ────────────────────────────────────────────────────── */

.bmpfaq-request {
  font-size: 0.9rem;
  color: var(--wp--custom--block--globals--color--text--subheading, #525252);
  text-align: center;
  margin: 0;
}

.bmpfaq-request a {
  color: inherit;
  text-decoration: underline;
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.bmpfaq-related {
  border-left: 1px solid
    var(
      --wp--custom--block--mixins--button--border-color-style-outline,
      #534be7
    );
  border-radius: var(
    --wp--custom--block--bmp-section-navigation--corner-radius,
    0.5rem
  );
  margin: 1.25rem auto 0;
  max-width: var(--wp--style--global--content-size, 895px);
}

.bmpfaq-related-heading {
  /* color: var(--wp--custom--block--globals--color--purple); */
  font-family: var(
    --wp--preset--font-family--heading,
    "Bespoke Slab",
    Rockwell,
    "Rockwell Nova",
    "Roboto Slab",
    "DejaVu Serif",
    "Sitka Small",
    serif
  );
  font-size: var(
    --wp--custom--block--globals--typography--font-size--125,
    1.25rem
  );
  font-weight: var(
    --wp--custom--block--globals--typography--font-weight--500,
    500
  );
  line-height: var(
    --wp--custom--block--globals--typography--line-height--120,
    1.2em
  );
  margin: 0;
  padding: 1rem 1rem 0 1.125rem;
}

.bmpfaq-related-list {
  list-style: none;
  margin: 0;
  padding: 1rem 1rem 1.5rem 1.125rem;
}

.bmpfaq-related-list li {
  margin: 0;
  padding: 0.32rem 0;
}

.bmpfaq-related-list a {
  color: var(--wp--custom--block--globals--color--text--heading, #292929);
  display: block;
  font-size: var(
    --wp--custom--block--globals--typography--font-size--112,
    1.125rem
  );
  font-weight: var(
    --wp--custom--block--globals--typography--font-weight--500,
    500
  );
  line-height: var(
    --wp--custom--block--globals--typography--line-height--140,
    1.4em
  );
  text-decoration: none;
}

.bmpfaq-related-list a:hover,
.bmpfaq-related-list a:active {
  text-decoration: underline;
  text-decoration-color: var(
    --wp--custom--block--globals--color--purple,
    #534be7
  );
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (min-width: 1200px) {
  .bmpfaq-related {
    margin-top: 0;
    max-width: 265px;
  }
}
