.choices__list--dropdown, .choices__list[aria-expanded] {
    color:black;
}
.choices input[type=search] {
    background: none;
    padding:0;
}
.choices__item.choices__item--selectable {
    color:black;
}

/* Intro block CSS crop: the YOOtheme image() helper owns the inner <img>, so
   force it to fill the cropped wrapper. The wrapper carries object-fit /
   object-position (set in introblock.php only when an editor chooses a crop
   mode), and this rule makes that crop take visual effect. Scoped to
   .vad-intro-crop so non-cropped intro images are untouched. */
.vad-intro-crop > img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Article Section text measure — matches the THEME's approach exactly.
   The theme constrains article text at the CHILD level
   (`.vad-content-section .uk-panel p,h2,…{ max-width:90% / 66.667% @960px; margin:auto }`),
   leaving the panel full width. The native block's RichText emits BARE text
   (no <p>), so the theme rule misses it — so we wrap the body in
   `.vad-article-text` and apply the SAME child-level measure to that wrapper
   (and the title). The panel itself gets NO width constraint, so there is no
   compounding (the earlier panel-66% × child-66% ≈ 44% bug). */
.vad-content-section .uk-panel.vad-article-panel > .vad-article-text,
.vad-content-section .uk-panel.vad-article-panel > .title-wrapper {
    display: block;           /* .title-wrapper is a <span>; needs block for max-width/margin to apply */
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}
@media (min-width: 960px) {
    .vad-content-section .uk-panel.vad-article-panel > .vad-article-text,
    .vad-content-section .uk-panel.vad-article-panel > .title-wrapper {
        max-width: 66.667%;
    }
}
/* The wrapper carries the measure; release the theme's child-level constraint on
   the inner elements so they don't compound (the theme's `.uk-panel p{max-width:
   66.667%}` would otherwise shrink the <p> to 66% OF the already-2/3 wrapper ≈
   44%). The theme selector is high-specificity, so use !important to release the
   inner elements to fill the wrapper. */
.vad-article-panel .vad-article-text > p,
.vad-article-panel .vad-article-text > ul,
.vad-article-panel .vad-article-text > ol,
.vad-article-panel .vad-article-text > h2,
.vad-article-panel .vad-article-text > h3,
.vad-article-panel .vad-article-text > h4,
.vad-article-panel .vad-article-text > h5,
.vad-article-panel .vad-article-text > h6,
.vad-article-panel .title-wrapper > h2,
.vad-article-panel .title-wrapper > h3,
.vad-article-panel .title-wrapper > h4 {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* The panel is the positioning context for the side-panel (aside): the aside is
   pinned to the TOP of THIS articlecontent block (not the section), in the side
   gutter. position:relative also establishes a block-formatting context, so it
   ALSO contains the floated image (a tall image would otherwise overflow and the
   grey background would only wrap the text). One rule does both jobs. */
.vad-article-panel {
    position: relative;
}

/* Side panel ("Zijpaneel") — a small card in the side gutter, pinned to the
   block top, left or right per the Uitlijning setting. The body text keeps its
   centred 66.667% measure, leaving a 16.67% gutter on each side; the card lives
   in that gutter. Width caps just under the gutter so it never crosses into the
   text column. ≥960px only — see the mobile fallback below. */
/* Scoped under .vad-content-section .vad-article-panel to out-specify the theme's
   high-specificity `.single-post .tm-main … .uk-card` chain (which otherwise
   forces the card to position:relative + a fixed px width, dropping it into the
   text flow). */
@media (min-width: 960px) {
    .vad-content-section .vad-article-panel .vad-article-aside {
        position: absolute;
        top: 0;
        /* Narrower than the 16.67% gutter, pinned to the panel's OUTER edge, so a
           clear gap opens between the centred text and the card. */
        width: 14%;
        box-sizing: border-box;
        margin: 0;
    }
    .vad-content-section .vad-article-panel .vad-article-aside--left  { left: 0; right: auto; }
    .vad-content-section .vad-article-panel .vad-article-aside--right { right: 0; left: auto; }
}
/* Tighten + left-align the card title: the theme's heading rule adds a 20px
   bottom margin, an auto/2x side margin and centres it — collapse all of that so
   the h5 sits snug and left-aligned like the card body. Not in the @media block
   (applies at every width); side margins need the !important to beat the theme's
   more-specific heading rule that only sets margin-right. */
.vad-content-section .vad-article-panel .vad-article-aside h5 {
    margin: 0 0 0.4rem !important;
    padding: 0;
    text-align: left;
}
/* Mobile (<960px): no gutter (text is 90%) — the card stacks full-width in flow
   instead of being pinned. */
@media (max-width: 959px) {
    .vad-content-section .vad-article-panel .vad-article-aside {
        position: static;
        width: auto;
        margin: 1.5rem 0 0;
    }
}

/* Image mode (matches the vad.be reference EXACTLY — same mechanism as the
   theme's figure.alignleft): the panel is full width; the image is a direct child
   that FLOATS at the panel (=container) edge with no negative margins; the
   centred 66.7% text elements (handled by the base rule above) WRAP around it.
   No grid, no magic pixel/percent offsets — float position is just margin:0 on
   the outer edge. The image's chosen width comes from the inline style. */
@media (min-width: 960px) {
    .vad-article-panel--img-left > .vad-block-img {
        float: left;
        margin: 0 25px 1rem 0;   /* outer edge flush to panel; gap on text side */
    }
    .vad-article-panel--img-right > .vad-block-img {
        float: right;
        margin: 0 0 1rem 25px;
    }
}

.vad-block-img {
    height: auto;
    max-width: 100%;
}

/* Mobile (<960px): no room to float beside narrow text — image full width,
   stacked above. */
@media (max-width: 959px) {
    .vad-block-img {
        display: block;
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0 0 1rem 0 !important;
    }
}


/* Article Content video — responsive 16:9 embed (iframe or self-hosted). */
.vad-article-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.vad-article-video > iframe,
.vad-article-video > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Accordion title surface.

   YOOtheme Pro 4 compiled these three declarations onto `.uk-accordion-title`
   from the Customizer's Accordion style settings. Pro 5 restructured the
   component behind the `.uk-accordion-default` modifier and dropped the
   background, padding and font-weight LESS variables — its accordion.less now
   exposes only gap, font-size, line-height, color and hover-color. No
   Customizer field holds these any more, so the site stylesheet owns them.
   Values reproduce the Pro 4 output. */
.uk-accordion-default .uk-accordion-title {
    padding: 10px 25px;
    background: #f4f6f7;
    font-weight: 700;
}
