/**
 * Version: 1.5.1
 * Timestamp: 2026-08-20T14:18:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Constrains Elementor e-fas-circle bullet icons inside loaded answers to exactly 5px without changing other icons.
 *
 * Version: 1.4.0
 * Timestamp: 2026-08-20T13:13:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Applies the 80px fragment offset to the dedicated answer anchor.
 *
 * Version: 1.3.0
 * Timestamp: 2026-08-20T12:48:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Adds an 80px scroll margin to the answer panel so native scrollIntoView lands below the site header.
 *
 * Version: 1.2.0
 * Timestamp: 2026-08-20T12:24:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Guarantees that the fallback article title stays hidden when the rendered article body already contains the same heading.
 *
 * Version: 1.1.0
 * Timestamp: 2026-08-20T12:11:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Removes every visual hover state from the mobile drill-down while preserving selected and keyboard focus-visible states.
 *
 * Version: 1.0.0
 * Timestamp: 2026-08-20T10:37:00Z
 * Tool: BND Meestgestelde vragen renders an alternate frontend view for Echo Knowledge Base data.
 * Fix: Adds the production mobile drill-down design and robust scoped rendering for common WordPress article content.
 */

.bnd-mgv {
  --bnd-mgv-black: #333333;
  --bnd-mgv-text: #474747;
  --bnd-mgv-muted: #5b5b5b;
  --bnd-mgv-border: #cdcdcd;
  --bnd-mgv-active-bg: #ceece7;
  --bnd-mgv-active: #0ba287;
  --bnd-mgv-white: #ffffff;
  --bnd-mgv-page-bg: #f3f3f3;
  box-sizing: border-box;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 0 96px;
  color: var(--bnd-mgv-text);
  font-family: "Museosans", "Museo Sans", Arial, sans-serif;
}

.bnd-mgv *,
.bnd-mgv *::before,
.bnd-mgv *::after {
  box-sizing: border-box;
}

.bnd-mgv__title {
  margin: 0 0 32px;
  color: var(--bnd-mgv-black);
  font-family: "MuseoSlab", "Museo Slab", Georgia, serif !important;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Desktop and tablet navigation. */
.bnd-mgv__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}

.bnd-mgv__nav--columns-1 {
  grid-template-columns: minmax(0, 369.33px);
}

.bnd-mgv__nav--columns-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 754.66px;
}

.bnd-mgv__nav--columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bnd-mgv__column {
  min-width: 0;
}

.bnd-mgv__column.is-empty {
  display: none;
}

.bnd-mgv__list,
.bnd-mgv__mobile-list-inner {
  overflow: hidden;
  background: var(--bnd-mgv-white);
  border: 1px solid var(--bnd-mgv-border);
  border-radius: 8px;
}

.bnd-mgv .bnd-mgv__item,
.bnd-mgv a.bnd-mgv__item,
.bnd-mgv button.bnd-mgv__item,
.bnd-mgv .bnd-mgv__item:visited {
  display: flex !important;
  width: 100% !important;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-top: 1px solid var(--bnd-mgv-border) !important;
  border-radius: 0 !important;
  background: var(--bnd-mgv-white) !important;
  box-shadow: none !important;
  color: var(--bnd-mgv-text) !important;
  font-family: "Museosans", "Museo Sans", Arial, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.bnd-mgv .bnd-mgv__item:first-child {
  border-top: 0 !important;
}

.bnd-mgv .bnd-mgv__item.is-active {
  background: var(--bnd-mgv-active-bg) !important;
  color: var(--bnd-mgv-active) !important;
}

@media (hover: hover) and (pointer: fine) {
  .bnd-mgv .bnd-mgv__item:hover {
    background: var(--bnd-mgv-white) !important;
    color: var(--bnd-mgv-text) !important;
  }

  .bnd-mgv .bnd-mgv__item.is-active:hover {
    background: var(--bnd-mgv-active-bg) !important;
    color: var(--bnd-mgv-active) !important;
  }
}

.bnd-mgv .bnd-mgv__item:focus-visible,
.bnd-mgv .bnd-mgv__mobile-item:focus-visible,
.bnd-mgv .bnd-mgv__mobile-back:focus-visible {
  outline: 2px solid var(--bnd-mgv-active) !important;
  outline-offset: -2px;
}

.bnd-mgv__item-label {
  min-width: 0;
  color: inherit !important;
  font: inherit !important;
}

.bnd-mgv .bnd-mgv__item.has-children::after {
  flex: 0 0 auto;
  color: var(--bnd-mgv-muted);
  content: "›";
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.bnd-mgv .bnd-mgv__item.has-children.is-active::after,
.bnd-mgv .bnd-mgv__item.has-children:focus-visible::after {
  color: var(--bnd-mgv-active);
}

/* Dedicated mobile navigation is hidden outside the mobile breakpoint. */
.bnd-mgv__mobile {
  display: none;
}

/* Native answer fragment target. */
.bnd-mgv__answer-anchor {
  display: block;
  width: 0;
  height: 0;
  scroll-margin-top: 80px;
}

/* Answer panel. */
.bnd-mgv__article {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 180px;
  padding: 32px;
  background: var(--bnd-mgv-white);
  border: 1px solid var(--bnd-mgv-border);
  border-radius: 8px;
  clear: both;
}

.bnd-mgv__article[hidden] {
  display: none !important;
}

.bnd-mgv__article.is-loading {
  opacity: 0.72;
}

.bnd-mgv__article-title[hidden] {
  display: none !important;
}

.bnd-mgv__article-title {
  margin: 0 0 16px;
  color: var(--bnd-mgv-text);
  font-family: "MuseoSlab", "Museo Slab", Georgia, serif !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

.bnd-mgv__article-content {
  max-width: 100%;
  color: var(--bnd-mgv-text);
  font-family: "Museosans", "Museo Sans", Arial, sans-serif !important;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: normal;
}

.bnd-mgv__article-content :where(p, li, span, strong, em, b, i, small, div, a, blockquote, figcaption, td, th, dt, dd) {
  font-family: "Museosans", "Museo Sans", Arial, sans-serif !important;
}

.bnd-mgv__article-content :where(h1, h2, h3, h4, h5, h6),
.bnd-mgv__article-content :where(h1, h2, h3, h4, h5, h6) * {
  font-family: "MuseoSlab", "Museo Slab", Georgia, serif !important;
  font-weight: 500 !important;
}

.bnd-mgv__article-content > :first-child {
  margin-top: 0 !important;
}

.bnd-mgv__article-content > :last-child {
  margin-bottom: 0 !important;
}

.bnd-mgv__article-content p {
  margin: 0 0 1em !important;
}

.bnd-mgv__article-content strong,
.bnd-mgv__article-content b {
  font-weight: 700 !important;
}

.bnd-mgv__article-content em,
.bnd-mgv__article-content i {
  font-style: italic !important;
}

.bnd-mgv__article-content a,
.bnd-mgv__article-content a:visited,
.bnd-mgv__article-content a:hover,
.bnd-mgv__article-content a:focus {
  color: inherit !important;
  font-family: inherit !important;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.bnd-mgv__article-content ul,
.bnd-mgv__article-content ol {
  display: block !important;
  margin: 0 0 1em !important;
  padding-left: 1.6em !important;
  list-style-position: outside !important;
}

.bnd-mgv__article-content ul {
  list-style-type: disc !important;
}

.bnd-mgv__article-content ol {
  list-style-type: decimal !important;
}

.bnd-mgv__article-content ul > li,
.bnd-mgv__article-content ol > li {
  display: list-item !important;
  margin: 0.35em 0 !important;
  padding: 0 !important;
  list-style-type: inherit !important;
}

.bnd-mgv__article-content li[style*="list-style-type: none"],
.bnd-mgv__article-content li[style*="list-style-type:none"] {
  list-style-type: none !important;
}

.bnd-mgv__article-content li > ul,
.bnd-mgv__article-content li > ol {
  margin-top: 0.35em !important;
  margin-bottom: 0.35em !important;
}

.bnd-mgv__article-content :where(h1, h2, h3, h4, h5, h6) {
  margin: 1.4em 0 0.55em !important;
  color: var(--bnd-mgv-black);
  line-height: 1.25 !important;
}

.bnd-mgv__article-content h1 {
  font-size: 28px !important;
}

.bnd-mgv__article-content h2 {
  font-size: 24px !important;
}

.bnd-mgv__article-content h3 {
  font-size: 21px !important;
}

.bnd-mgv__article-content h4,
.bnd-mgv__article-content h5,
.bnd-mgv__article-content h6 {
  font-size: 18px !important;
}

.bnd-mgv__article-content blockquote {
  margin: 0 0 1em !important;
  padding: 0.25em 0 0.25em 1.25em !important;
  border: 0 !important;
  border-left: 3px solid var(--bnd-mgv-border) !important;
}

.bnd-mgv__article-content blockquote > :last-child {
  margin-bottom: 0 !important;
}

.bnd-mgv__article-content :where(img, svg, video, canvas) {
  max-width: 100% !important;
  height: auto;
}

.bnd-mgv__article-content svg.e-font-icon-svg.e-fas-circle {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px;
  max-width: 5px !important;
  flex: 0 0 5px;
}

.bnd-mgv__article-content iframe {
  max-width: 100% !important;
}

.bnd-mgv__article-content figure {
  max-width: 100% !important;
  margin: 0 0 1em !important;
}

.bnd-mgv__article-content figcaption {
  margin-top: 0.5em;
  color: var(--bnd-mgv-muted);
  font-size: 14px;
  line-height: 1.45;
}

.bnd-mgv__article-content table {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1em !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  table-layout: auto;
}

.bnd-mgv__article-content :where(th, td) {
  padding: 10px 12px !important;
  border: 1px solid var(--bnd-mgv-border) !important;
  vertical-align: top !important;
  text-align: left;
}

.bnd-mgv__article-content th {
  font-weight: 700 !important;
}

.bnd-mgv__article-content :where(code, kbd, samp, pre) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
}

.bnd-mgv__article-content code {
  font-size: 0.92em;
}

.bnd-mgv__article-content pre {
  max-width: 100%;
  margin: 0 0 1em !important;
  padding: 14px;
  overflow-x: auto;
  background: var(--bnd-mgv-page-bg);
  border-radius: 4px;
  white-space: pre-wrap;
}

.bnd-mgv__article-content dl {
  margin: 0 0 1em;
  padding: 0;
}

.bnd-mgv__article-content dt {
  font-weight: 700 !important;
}

.bnd-mgv__article-content dd {
  margin: 0 0 0.75em 1.5em !important;
}

.bnd-mgv__article-content hr {
  height: 0;
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid var(--bnd-mgv-border);
}

.bnd-mgv__noscript {
  margin-top: 32px;
}

.bnd-mgv-admin-message {
  padding: 16px;
  border: 1px solid var(--bnd-mgv-border);
  border-radius: 8px;
  background: var(--bnd-mgv-white);
  color: var(--bnd-mgv-text);
}

/* Keep the existing desktop navigation behavior on tablets. */
@media (max-width: 1024px) and (min-width: 768px) {
  .bnd-mgv {
    padding: 48px 24px 72px;
  }

  .bnd-mgv__nav,
  .bnd-mgv__nav--columns-1,
  .bnd-mgv__nav--columns-2,
  .bnd-mgv__nav--columns-3 {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Dedicated mobile drill-down interface based on the supplied mobile design. */
@media (max-width: 767px) {
  .bnd-mgv {
    max-width: none;
    padding: 48px 16px 56px;
    background: var(--bnd-mgv-page-bg);
  }

  .bnd-mgv__title {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.2;
    text-align: center;
  }

  .bnd-mgv__nav {
    display: none !important;
  }

  .bnd-mgv__mobile {
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: 16px;
    margin: 0 0 16px;
  }

  .bnd-mgv__mobile-backbar {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: stretch;
    overflow: hidden;
    background: var(--bnd-mgv-white);
    border: 1px solid var(--bnd-mgv-border);
    border-radius: 8px;
  }

  .bnd-mgv__mobile-backbar[hidden] {
    display: none !important;
  }

  .bnd-mgv .bnd-mgv__mobile-back {
    display: inline-flex;
    min-width: 103px;
    min-height: 52px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 14px 16px;
    border: 0 !important;
    border-right: 1px solid var(--bnd-mgv-border) !important;
    border-radius: 0 !important;
    background: var(--bnd-mgv-active-bg) !important;
    box-shadow: none !important;
    color: var(--bnd-mgv-active) !important;
    font-family: "Museosans", "Museo Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .bnd-mgv__mobile-back-icon {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
  }

  .bnd-mgv__mobile-current {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    padding: 14px 16px;
    color: var(--bnd-mgv-black);
    font-family: "Museosans", "Museo Sans", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .bnd-mgv__mobile-list {
    width: 100%;
    min-width: 0;
  }

  .bnd-mgv .bnd-mgv__mobile-item {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 15px 16px;
    border: 0 !important;
    border-top: 1px solid var(--bnd-mgv-border) !important;
    border-radius: 0 !important;
    background: var(--bnd-mgv-white) !important;
    box-shadow: none !important;
    color: var(--bnd-mgv-text) !important;
    font-family: "Museosans", "Museo Sans", Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    text-transform: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .bnd-mgv .bnd-mgv__mobile-item:first-child {
    border-top: 0 !important;
  }

  .bnd-mgv .bnd-mgv__mobile-item.has-children::after {
    flex: 0 0 auto;
    color: var(--bnd-mgv-muted);
    content: "›";
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
  }

  .bnd-mgv .bnd-mgv__mobile-item.is-active {
    background: var(--bnd-mgv-active-bg) !important;
    color: var(--bnd-mgv-active) !important;
  }

  .bnd-mgv .bnd-mgv__mobile-item:disabled {
    cursor: default;
    opacity: 1;
  }

  .bnd-mgv__mobile-item-label {
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    font: inherit;
    overflow-wrap: anywhere;
  }



  /* Mobile navigation intentionally has no hover styling. Reset theme/page-builder button hover rules. */
  .bnd-mgv .bnd-mgv__mobile-item:hover {
    border: 0 !important;
    border-top: 1px solid var(--bnd-mgv-border) !important;
    border-radius: 0 !important;
    background: var(--bnd-mgv-white) !important;
    box-shadow: none !important;
    color: var(--bnd-mgv-text) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
  }

  .bnd-mgv .bnd-mgv__mobile-item:first-child:hover {
    border-top: 0 !important;
  }

  .bnd-mgv .bnd-mgv__mobile-item.is-active:hover {
    background: var(--bnd-mgv-active-bg) !important;
    color: var(--bnd-mgv-active) !important;
  }

  .bnd-mgv .bnd-mgv__mobile-back:hover {
    border: 0 !important;
    border-right: 1px solid var(--bnd-mgv-border) !important;
    border-radius: 0 !important;
    background: var(--bnd-mgv-active-bg) !important;
    box-shadow: none !important;
    color: var(--bnd-mgv-active) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    transform: none !important;
    filter: none !important;
  }

  .bnd-mgv__article {
    min-height: 0;
    margin-top: 0;
    padding: 24px;
  }

  .bnd-mgv__article-content table {
    font-size: 14px;
  }

  .bnd-mgv__article-content :where(th, td) {
    padding: 8px !important;
  }
}
