/* BBM Single Post FAQ Accordion v1.0.1
   Single posts only (body.single). Homepage untouched: the homepage FAQ uses
   button markup and is handled by the homepage design plugin. No text is
   changed; the JS only wraps the existing H3 questions and paragraph
   answers into cards. Question stays an H3, answer stays paragraphs.
   v1.0.1: literal hex colours, NOT var(--bbm-*). The site's bbm.css (which
   defines the --bbm-* variables on :root) loads ONLY on the homepage, not
   on single posts, so the vars were undefined there: the card border and
   the teal + circle never rendered and the white + was invisible on white.
   Literal values make this plugin self-contained. */

body.single .bbm-spfaq-item {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(22, 50, 60, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
body.single .bbm-spfaq-item.open {
  border-color: #2380A8;
  box-shadow: 0 12px 28px rgba(22, 50, 60, 0.12);
}
body.single .bbm-spfaq-item > h3 {
  margin: 0;
  padding: 22px 26px;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
body.single .bbm-spfaq-item > h3::after {
  content: "+";
  color: #fff;
  background: #2380A8;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex: 0 0 30px;
  transition: transform 0.2s ease, background 0.2s ease;
}
body.single .bbm-spfaq-item.open > h3::after {
  transform: rotate(45deg);
  background: #F97316;
}
body.single .bbm-spfaq-a {
  display: none;
  padding: 0 26px 24px;
}
body.single .bbm-spfaq-item.open .bbm-spfaq-a {
  display: block;
}
body.single .bbm-spfaq-a p {
  margin: 0 0 12px;
}
body.single .bbm-spfaq-a p:last-child {
  margin-bottom: 0;
}
