/**
 * MysteryBril — 12 · Veelgestelde vragen
 * ---------------------------------------------------------------------------
 * De pagina-hero komt uit 06-blocks.css. Hieronder staat alleen de accordeon.
 *
 * De vragen zijn opgebouwd met het standaard "Details"-blok van WordPress
 * (<details>/<summary>). Dat klapt zonder JavaScript open en dicht, werkt met
 * toetsenbord en screenreader, en de klant kan gewoon in de editor een vraag
 * toevoegen of aanpassen.
 * ---------------------------------------------------------------------------
 */

/* --- Lijst --- */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq {
  max-width: 800px;
  margin-inline: 0 !important;
}

/* --- Eén vraag --- */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item {
  margin: 0 !important;
  border-bottom: 1px solid var(--mb-line-soft);
}

/* --- De vraag zelf (klikbaar) --- */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* Blocksy geeft elk blok in een flow-container 1.5em ondermarge; dat maakte
     iedere vraag 24px te hoog. */
  margin: 0 !important;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mb-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mb-white);
}

/* Standaard driehoekje van de browser weghalen */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item > summary::-webkit-details-marker {
  display: none;
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item > summary::marker {
  content: "";
}

/* --- Oranje plusje, draait naar een kruisje bij openen --- */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item > summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mb-font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  color: var(--mb-orange);
  transition: transform 0.2s ease;
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item[open] > summary::after {
  transform: rotate(45deg);
}

/* --- Het antwoord ---
   De onderruimte staat op de open <details>, niet als padding op de paragraaf. */
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item[open] {
  padding-bottom: 22px;
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item p {
  max-width: 640px;
  margin: 0 !important;
  font-family: var(--mb-font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--mb-white);
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item p + p {
  margin-top: 14px !important;
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item p a {
  color: var(--mb-orange) !important;
  text-decoration: underline;
}
:is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item p a:hover {
  color: var(--mb-orange-bright) !important;
}

/* --- Mobiel --- */
@media (max-width: 880px) {
  :is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item > summary {
    gap: 14px;
    padding: 18px 0;
    font-size: 14.5px;
  }
  :is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item[open] {
    padding-bottom: 18px;
  }
  :is(.entry-content, .editor-styles-wrapper, .block-editor-block-list__layout) .mb-faq__item p {
    font-size: 13px;
  }
}
