/* Liwwadders Extra: automatisch afgesplitst uit liwwadders-layout.css. */
@media (max-width: 689.98px) {
  .lwd-dossier-intro {
    padding-right: 13px;
    padding-left: 13px;
  }
  .lwd-dossier-page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .lwd-dossier-page-grid .lwd-dossier-page-heading {
    margin-bottom: 14px;
  }
  .lwd-dossier-year-label {
    margin-bottom: 7px !important;
  }
  .lwd-dossier-lead-title {
    font-size: var(--lwd-card-title-size);
  }
  .lwd-dossier-year-links a {
    font-size: calc(var(--lwd-card-title-size) - 2px);
    line-height: 1.35;
  }
  body:is(.category,.tag,.search) .entry-card .entry-title,
  body.category .lwd-category .lwd-post h2 {
    font-size: calc(var(--lwd-card-title-size) - 1px) !important;
    line-height: 1.35;
  }
  body.home #main .wp-block-cover .wp-block-post-title {
    font-size: var(--lwd-card-title-size) !important;
  }
}
/* De twee carrouseladvertenties gebruiken in iedere zijbalk dezelfde verhouding. */
body #sidebar .lwd-home-ad[data-lwd-home-ad-group="sidebar"] {
  box-sizing: border-box;
  width: 90% !important;
  max-width: 90% !important;
  margin-inline: auto !important;
}

body #sidebar .lwd-home-ad[data-lwd-home-ad-group="sidebar"] :is(a, img) {
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  body:is(.category, .tag, .search, .single-post) #main > .ct-container {
    row-gap: 24px !important;
  }

  body.home #main > .ct-container {
    row-gap: var(--lwd-home-section-gap) !important;
  }

  body #sidebar .lwd-home-ad[data-lwd-home-ad-group="sidebar"] {
    width: 90% !important;
    max-width: 90% !important;
    margin: 28px auto !important;
  }

  body.single-post .ct-related-posts > .ct-module-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.65 !important;
  }

  body.single-post .related-entry-title,
  body.single-post .related-entry-title a {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.75 !important;
  }

  body.single-post .entry-tags,
  body.single-post .entry-tags-items {
    justify-content: flex-start !important;
    text-align: left !important;
  }

  body.single-post .entry-tags-items a {
    text-align: left !important;
  }

  body:is(.category,.tag,.search) .lwd-mobile-category-heading {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 24px;
    padding: 0 0 16px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border-bottom: 1px solid var(--lwd-line);
    text-align: left;
  }

  body:is(.category,.tag,.search) .lwd-mobile-category-heading h1 {
    margin: 0;
    color: var(--lwd-ink);
    font-family: var(--lwd-heading-font);
    font-size: var(--lwd-section-title-size);
    font-weight: var(--lwd-heading-weight);
    line-height: 1.15;
    letter-spacing: var(--lwd-heading-tracking);
  }
}

.lwd-mobile-category-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 690px) {
  body.tag .lwd-mobile-category-heading {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 24px;
    padding: 0 0 16px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
    border-bottom: 1px solid var(--lwd-line);
    text-align: left;
  }

  body.tag .lwd-mobile-category-heading h1 {
    margin: 0;
    color: var(--lwd-ink);
    font-family: var(--lwd-heading-font);
    font-size: var(--lwd-section-title-size);
    font-weight: var(--lwd-heading-weight);
    line-height: 1.15;
    letter-spacing: var(--lwd-heading-tracking);
  }
}

/* Liwwadders extra maintained overrides. */
:root {
    --lwd-link-blue: var(--theme-palette-color-4, #4099ff);
}

/* Preserve Spectra/UAG responsive visibility after the block plugin is disabled. */
@media (min-width: 1025px) {
    .uag-hide-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .uag-hide-tab {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .uag-hide-mob {
        display: none !important;
    }
}

@media (max-width: 689.98px) {
    .lwd-home-ad {
        width: calc(100% - 28px) !important;
        max-width: calc(100% - 28px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body #sidebar :is(
      .lwd-sidebar-ad-wrap,
      .lwd-regiolinks-banner,
      .lwd-sidebar-newsletter,
      .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts),
      .lwd-sidebar-switch-ad,
      .lwd-post-donation
    ) {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Match sidebar advertisements to the 14px-inset homepage headline width. */
    body #sidebar .lwd-home-ad[data-lwd-home-ad-group="sidebar"] {
        width: calc(100% - 18px) !important;
        max-width: calc(100% - 18px) !important;
    }
}

/* Eén vast paginaritme, onafhankelijk van oude thema- en blokmarges. */
body #header {
  margin-bottom: 0 !important;
}

body #main > .ct-container {
  padding-top: var(--lwd-home-start-gap) !important;
}

body.home #main > .ct-container,
body.lwd-dossier-page #main > .ct-container {
  row-gap: var(--lwd-home-section-gap) !important;
}

body #sidebar .ct-sidebar {
  margin-top: 0 !important;
}

body #sidebar .ct-sidebar > .ct-widget {
  margin: 0 0 var(--lwd-sidebar-gap) !important;
}

body #sidebar .ct-sidebar > .ct-widget:last-child {
  margin-bottom: 0 !important;
}

body #sidebar .ct-widget > :is(
  .lwd-sidebar-ad-wrap,
  .lwd-sidebar-promo,
  .lwd-home-ad,
  .lwd-banner-combination,
  .lwd-regiolinks-banner
) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body #sidebar .ct-widget > p:empty {
  display: none !important;
}

/* Alle advertentie- en promotiebanners gebruiken dezelfde buitenbreedte in de zijbalk. */
body #sidebar :is(
  .lwd-sidebar-ad-wrap,
  .lwd-regiolinks-banner,
  .lwd-sidebar-newsletter,
  .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts),
  .lwd-sidebar-switch-ad
) {
    box-sizing: border-box;
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Geneste inhoud vult eenmaal de 90%-container; voorkom een onbedoelde breedte van 81%. */
body #sidebar .lwd-sidebar-ad-wrap > .lwd-sidebar-pel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

@media (max-width: 689.98px) {
  body #sidebar :is(
    .lwd-sidebar-ad-wrap,
    .lwd-regiolinks-banner,
    .lwd-sidebar-newsletter,
    .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts),
    .lwd-sidebar-switch-ad,
    .lwd-post-donation
  ) {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }

  body #sidebar .lwd-home-ad[data-lwd-home-ad-group="sidebar"] {
    width: calc(100% - 18px) !important;
    max-width: calc(100% - 18px) !important;
  }
}

/*
 * Static WordPress sidebar blocks used as an emergency fallback. The plugin
 * stylesheet disappears when Liwwadders Extra is disabled, revealing them.
 */
#sidebar .liw-slot-sidebar-hide {
    display: none !important;
}


/* Externe media: standaard privacyvriendelijk en pas laden na een keuze. */
.lwd-external-media {
    box-sizing: border-box;
    width: 100%;
    min-height: 180px;
    margin: 1.25rem 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #b9b9b9;
    border-radius: 6px;
    background: #f3f3f3;
    color: #242124;
    text-align: center;
}

.lwd-external-media--donorbox { min-height: 240px; }
.lwd-external-media p { margin: 0; }
.lwd-external-media-title { font-size: 1.05em; }
.lwd-external-media-actions,
.lwd-privacy-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.lwd-external-media button,
.lwd-privacy-dialog button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--theme-palette-color-4, #2474b5);
    border-radius: 4px;
    background: var(--theme-palette-color-4, #2474b5);
    color: #fff;
    font: 600 15px/1.2 var(--lwd-body-font);
    cursor: pointer;
}

.lwd-external-media button:hover,
.lwd-external-media button:focus-visible,
.lwd-privacy-dialog button:hover,
.lwd-privacy-dialog button:focus-visible {
    background: #fff;
    color: var(--theme-palette-color-4, #2474b5);
}

.lwd-external-media .lwd-external-media-remember,
.lwd-privacy-dialog .lwd-privacy-secondary {
    border-color: #555;
    background: #fff;
    color: #242124;
}

.lwd-external-media.is-loaded {
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
}

.lwd-external-media.is-loaded iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.lwd-external-media--apple-podcasts.is-loaded,
.lwd-external-media[data-liw-src*="podcasts.apple.com"].is-loaded {
    height: 175px;
    min-height: 0;
}

.lwd-external-media--apple-podcasts.is-loaded iframe,
.lwd-external-media[data-liw-src*="podcasts.apple.com"].is-loaded iframe {
    height: 175px !important;
}

.lwd-external-media--youtube.is-loaded,
.lwd-external-media--vimeo.is-loaded {
    aspect-ratio: 16 / 9;
}

.lwd-external-media--youtube.is-loaded iframe,
.lwd-external-media--vimeo.is-loaded iframe {
    width: 100%;
    height: 100% !important;
}

.lwd-footer-privacy {
    width: 100%;
    padding: 6px 12px 14px;
    text-align: center;
}

.lwd-privacy-open {
    padding: 2px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

#footer .lwd-privacy-open,
#footer .lwd-privacy-open:hover,
#footer .lwd-privacy-open:focus,
#footer .lwd-privacy-open:active {
    color: #fff;
    text-decoration: none !important;
}

.lwd-privacy-dialog {
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: #242124;
    font-family: var(--lwd-body-font);
    box-shadow: 0 14px 45px rgba(0, 0, 0, .28);
}

.lwd-privacy-dialog::backdrop { background: rgba(0, 0, 0, .62); }
.lwd-privacy-dialog form { position: relative; padding: 26px; }
.lwd-privacy-dialog h2 {
    margin: 0 42px 18px 0;
    color: var(--lwd-ink);
    font: var(--lwd-heading-weight) var(--lwd-section-title-size)/1.15 var(--lwd-heading-font);
    letter-spacing: var(--lwd-heading-tracking);
}

.lwd-privacy-dialog p { margin: 0 0 14px; }
.lwd-privacy-dialog a,
.lwd-privacy-dialog a:visited,
.lwd-privacy-dialog a:hover,
.lwd-privacy-dialog a:focus,
.lwd-privacy-dialog a:active {
    color: var(--theme-palette-color-4, #2474b5) !important;
}
.lwd-privacy-dialog .lwd-privacy-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 40px;
    width: 40px;
    padding: 4px;
    font-size: 26px;
}
.lwd-privacy-dialog [data-liw-privacy-allow],
.lwd-privacy-dialog [data-liw-privacy-allow]:hover,
.lwd-privacy-dialog [data-liw-privacy-allow]:focus,
.lwd-privacy-dialog [data-liw-privacy-allow]:focus-visible,
.lwd-privacy-dialog [data-liw-privacy-allow]:active {
    border-color: var(--lwd-red) !important;
    background: var(--lwd-red) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.lwd-privacy-dialog .lwd-privacy-close,
.lwd-privacy-dialog .lwd-privacy-close:hover,
.lwd-privacy-dialog .lwd-privacy-close:focus,
.lwd-privacy-dialog .lwd-privacy-close:focus-visible,
.lwd-privacy-dialog .lwd-privacy-close:active,
.lwd-privacy-dialog [data-liw-privacy-block],
.lwd-privacy-dialog [data-liw-privacy-block]:hover,
.lwd-privacy-dialog [data-liw-privacy-block]:focus,
.lwd-privacy-dialog [data-liw-privacy-block]:focus-visible,
.lwd-privacy-dialog [data-liw-privacy-block]:active {
    border-color: #242124 !important;
    background: #fff !important;
    color: #242124 !important;
    text-decoration: none !important;
}
.lwd-privacy-status { font-weight: 700; }
.lwd-hcaptcha-loading { color: #555; font-size: 14px; }

/* Sitebreed mobiel ritme tussen het einde van de hoofdinhoud en de zijbalk. */
@media (max-width: 689.98px) {
    body #main > .ct-container:has(> #sidebar) { row-gap: 12px !important; }
}

@media (max-width: 600px) {
    .lwd-external-media { padding: 20px 14px; }
    .lwd-external-media-actions,
    .lwd-privacy-actions { flex-direction: column; width: 100%; }
    .lwd-external-media button,
    .lwd-privacy-dialog button:not(.lwd-privacy-close) { width: 100%; }
    .lwd-privacy-dialog form { padding: 22px 18px; }
}
