/* WLM 2026 – normalisatie van paginabouwer-uitvoer (Elementor, WPBakery, Colibri, Spectra/UAGB, Gutenberg).
   Alleen binnen .entry-content; layout (kolommen, afbeeldingen, breedtes) blijft van de bouwer. */

/* 1. Elementor-kit variabelen omleiden naar het thema */
.entry-content{
 --e-global-typography-primary-font-family:var(--font);--e-global-typography-secondary-font-family:var(--font);
 --e-global-typography-text-font-family:var(--font);--e-global-typography-accent-font-family:var(--font);
 --e-global-typography-primary-font-weight:700;--e-global-typography-text-font-weight:400;
 --e-global-color-primary:var(--ink);--e-global-color-secondary:var(--ink);--e-global-color-text:var(--ink);--e-global-color-accent:var(--water);
 --square-body-size:1.0625rem;--square-body-style:normal;--square-body-letter-spacing:0;--square-body-text-transform:none;--square-body-text-decoration:none;
 font-family:var(--font);color:var(--ink)}

/* 2. Lettertype overal forceren (ook inline style="font-family:Roboto") */
.entry-content :is(p,li,span,strong,b,em,i,a,td,th,div,blockquote,figcaption,label,button,input,select,textarea,h1,h2,h3,h4,h5,h6),
.entry-content [style*="font-family"]{font-family:var(--font)!important}
.entry-content [class*="fa-"],.entry-content [class^="eicon"],.entry-content [class*=" eicon"],.entry-content .dashicons,.entry-content [class*="socicon"],.entry-content [class*="genericon"],.entry-content .mdi,.entry-content [class*="icon-"]{font-family:revert!important}
.entry-content :is(p,li,td,span)[style*="font-size"]:not(h1 *,h2 *,h3 *,h4 *,h5 *,h6 *){font-size:inherit!important}
.entry-content [style*="color: #333"],.entry-content [style*="color:#333"],.entry-content [style*="color: rgb(51"]{color:inherit!important}
.entry-content p,.entry-content li,.entry-content .elementor-widget-text-editor,.entry-content .wpb_text_column{font-size:1.0625rem;line-height:1.65;color:var(--ink)}

/* 3. Koppen */
.entry-content :is(h1,h2,h3,h4,h5,h6),
.entry-content .elementor-heading-title,
.entry-content .vc_custom_heading,
.entry-content .uagb-heading-text,
.entry-content [class*="colibri"] :is(h1,h2,h3,h4,h5,h6){
 font-family:var(--font)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.02em!important;
 line-height:1.1!important;color:var(--ink)!important;text-align:left;margin:2rem 0 .75rem!important;font-style:normal!important}
.entry-content :is(h1,h2,h3,h4,h5,h6):first-child,.entry-content .elementor-widget:first-child .elementor-heading-title{margin-top:0!important}
.entry-content h1,.entry-content h1.elementor-heading-title{font-size:clamp(2rem,4vw,2.75rem)!important}
.entry-content h2,.entry-content h2.elementor-heading-title{font-size:clamp(1.625rem,3vw,2.125rem)!important}
.entry-content h3,.entry-content h3.elementor-heading-title{font-size:1.375rem!important}
.entry-content h4,.entry-content h4.elementor-heading-title{font-size:1.125rem!important}
.entry-content :is(h5,h6){font-size:1rem!important}
.entry-content :is(h1,h2,h3,h4,h5,h6) :is(span,strong,b,em,font){color:inherit!important;font-size:inherit!important;font-weight:inherit!important;font-family:inherit!important}
/* gecentreerde Elementor-koppen links uitlijnen, behalve als de sectie zelf expres gecentreerd is in kolommen */
.entry-content .elementor-widget-heading,.entry-content .elementor-widget-heading .elementor-heading-title{text-align:left!important}

/* 4. Tekst, links, nadruk */
.entry-content :is(p,li,td) strong,.entry-content b{font-weight:700}
.entry-content [style*="font-weight: 400"]:is(h1,h2,h3,h4,h5,h6){font-weight:700!important}
.entry-content a:not(.btn):not([class*="button"]):not(.social-icon-link):not(.vc_btn3){color:var(--water-deep)!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.entry-content a:not(.btn):not([class*="button"]):not(.social-icon-link):hover{color:var(--water)!important}
.entry-content a :is(span,b,strong){color:inherit!important}
.entry-content ul,.entry-content ol{padding-left:1.25rem}
.entry-content li::marker{color:var(--water)}

/* 5. Knoppen */
.entry-content :is(.elementor-button,.wp-block-button__link,.vc_btn3,.vc_general.vc_btn3,.uagb-buttons-repeater,.wp-element-button,[class*="colibri"] .h-button,.ff-btn-submit,button[type=submit],input[type=submit]){
 display:inline-flex!important;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:.65rem 1.25rem!important;
 background:var(--water)!important;color:var(--paper)!important;border:0!important;border-radius:2px!important;box-shadow:none!important;
 font:600 .9375rem/1.2 var(--font)!important;text-transform:none!important;letter-spacing:0!important;text-decoration:none!important;background-image:none!important}
.entry-content :is(.elementor-button,.wp-block-button__link,.vc_btn3,.uagb-buttons-repeater,.wp-element-button,.ff-btn-submit,button[type=submit],input[type=submit]):hover{background:var(--water-deep)!important;color:var(--paper)!important}
.entry-content .elementor-button *{color:inherit!important;font:inherit!important}
.entry-content .is-style-outline .wp-block-button__link{background:transparent!important;color:var(--ink)!important;border:1px solid var(--border)!important}

/* 6. Ruimte: lege alinea's, spacers, Elementor/WPBakery-marges */
.entry-content p:empty{display:none}
.entry-content .wpb_text_column p:only-child:empty{display:none}
.entry-content .elementor-spacer-inner{height:min(var(--spacer-size,20px),2rem)!important}
.entry-content .wp-block-spacer{max-height:2.5rem}
.entry-content .vc_empty_space{max-height:2.5rem;height:auto!important;min-height:1rem}
.entry-content .elementor-section.elementor-section-boxed>.elementor-container{max-width:var(--max)}
.entry-content .elementor-widget:not(:last-child){margin-bottom:1.25rem}
.entry-content .elementor-section:not(.elementor-inner-section)+.elementor-section{margin-top:0}
.entry-content .elementor-column-gap-default>.elementor-column>.elementor-element-populated{padding:10px}
.entry-content .wpb_content_element,.entry-content .vc_row{margin-bottom:1.5rem}
.entry-content .vc_row:last-child,.entry-content .wpb_content_element:last-child{margin-bottom:0}
.entry-content > .wpb-content-wrapper > .vc_row:first-child .wpb_text_column:first-child,
.entry-content > .elementor > .elementor-section:first-child{margin-top:0;padding-top:0}

/* 7. Scheidingslijnen, accordeons/tabs, afbeeldingen */
.entry-content .vc_sep_line,.entry-content .elementor-divider-separator{border-color:var(--border)!important}
.entry-content .vc_sep_color_orange .vc_sep_line{border-color:var(--orange)!important}
.entry-content :is(.elementor-tab-title,.elementor-accordion-title,.vc_tta-panel-title){font-family:var(--font)!important;font-weight:600!important;color:var(--ink)!important}
.entry-content .elementor-tab-title.elementor-active,.entry-content .elementor-tab-title a{color:var(--water-deep)!important}
.entry-content :is(.elementor-tab-title,.elementor-tab-content,.elementor-accordion-item){border-color:var(--border)!important}
.entry-content .vc_single_image-wrapper.vc_box_border_grey{border:0;padding:0;background:none}
.entry-content :is(.elementor-widget-image,.wpb_single_image,.wp-block-image) img{border-radius:2px;height:auto}
.entry-content figcaption,.entry-content .widget-image-caption{font-size:.875rem;color:var(--muted)!important;text-align:left}

/* 8. Lege of verborgen bouwer-blokken (1.1.1)
   Oorzaak gat op /bezoek-het-waterliniemuseum/: sectie met elementor-hidden-desktop/-tablet/-mobile
   (oude prijstabel met inline height:396px) + losse spacer-secties van 50px + een lege sectie.
   Elementors eigen verbergregels kunnen ontbreken als WP Rocket "Unused CSS" per thema is gegenereerd. */
@media (min-width:1025px){.entry-content .elementor-hidden-desktop{display:none!important}}
@media (min-width:768px) and (max-width:1024px){.entry-content .elementor-hidden-tablet{display:none!important}}
@media (max-width:767px){.entry-content .elementor-hidden-mobile{display:none!important}}
.entry-content .elementor-widget-container:empty,
.entry-content .elementor-widget:has(>.elementor-widget-container:empty),
.entry-content .elementor-widget-text-editor:not(:has(img,iframe,video,table,svg)):has(>.elementor-widget-container:not(:has(*:not(br,p,span,b,strong,i,em)))):not(:has(p:not(:empty))){display:none!important}
.entry-content .elementor-section:not(:has(.elementor-widget:not(.elementor-widget-spacer))),
.entry-content .e-con:not(:has(.elementor-widget:not(.elementor-widget-spacer))){display:none!important}
.entry-content .elementor-section:has(.elementor-widget-spacer):not(:has(.elementor-widget:not(.elementor-widget-spacer))){display:block!important;height:1.5rem;overflow:hidden}
.entry-content .elementor-section:has(.elementor-widget-spacer):not(:has(.elementor-widget:not(.elementor-widget-spacer))) *{display:none!important}
.entry-content .elementor-section>.elementor-container{min-height:0!important}
.entry-content .elementor-section-height-min-height>.elementor-container,.entry-content .elementor-section-height-full>.elementor-container{min-height:min(var(--min-height,0px),60vh)!important}
.entry-content .elementor-widget-wrap:empty,.entry-content .elementor-column:not(:has(.elementor-widget)) .elementor-element-populated{padding:0!important}
.entry-content table[style*="height"],.entry-content tr[style*="height"],.entry-content td[style*="height"]{height:auto!important}
.entry-content .elementor-widget-text-editor>.elementor-widget-container>p:last-child,.entry-content .wpb_text_column p:last-child{margin-bottom:0}
