/* Homepage-only refinements. Existing blue/red palettes and story selection stay intact. */
@layer liwwadders-homepage-readability {
  body.home #main .liw-home-five-tile:first-child h2 {
    font-size: clamp(24px, 1.8vw, 28px) !important;
    line-height: 1.25 !important; font-weight: 700 !important;
  }
  body.home #main .liw-home-five-tile:not(:first-child) h2 {
    font-size: clamp(17px, 1.25vw, 19px) !important;
    line-height: 1.25 !important; font-weight: 700 !important;
  }
  body.home #main .wp-block-cover :is(.wp-block-post-title, .wp-block-post-title a) {
    font-size: 19px !important; font-weight: 700 !important; line-height: 1.25 !important;
  }
  body.home #main .wp-block-query:not(:has(.wp-block-cover)) :is(.wp-block-post-title, .wp-block-post-title a) {
    font-size: 18px !important; font-weight: 700 !important; line-height: 1.35 !important;
  }
  body.home #sidebar .lwd-sidebar-latest-posts a {
    font-size: 16px !important; line-height: 1.35 !important;
  }
  body.home :is(.lwd-sidebar-newsletter, .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts)) {
    height: auto !important; max-height: none !important;
  }
  body.home :is(.lwd-sidebar-newsletter, .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts)) .lwd-sidebar-kicker,
  body.home .lwd-regiolinks-banner-head > strong,
  body.home .lwd-sidebar-latest-posts > .lwd-sidebar-kicker {
    font-size: 14px !important; font-weight: 700 !important; line-height: 1.3 !important;
  }
  body.home :is(.lwd-sidebar-newsletter, .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts)) p:not(.lwd-promo-title) {
    font-size: 16px !important; line-height: 1.45 !important;
  }
  body.home :is(.lwd-sidebar-newsletter, .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts)) .lwd-promo-title,
  body.home .lwd-regiolinks-banner-head > span {
    font-size: 20px !important; font-weight: 700 !important; line-height: 1.25 !important;
  }
  body.home :is(.lwd-sidebar-newsletter, .lwd-sidebar-subscription:not(.lwd-sidebar-latest-posts)) .lwd-sidebar-button {
    font-size: 16px !important; font-weight: 700 !important; line-height: 1.25 !important;
    width: 100% !important; min-height: 44px !important;
  }
  body.home .lwd-sidebar-switch-ad :is(.lwd-switch-variant > span, .lwd-corona-label) {
    font-size: 20px !important; font-weight: 700 !important; line-height: 1.25 !important;
  }
  body.home #footer :is(p, p a, .ct-footer-copyright) {
    font-family: Arial, sans-serif !important; font-size: 15px !important; line-height: 1.5 !important;
  }
  @media (max-width: 689.98px) {
    body.home #main .wp-block-query:not(:has(.wp-block-cover)) :is(.wp-block-post-title, .wp-block-post-title a) {
      font-size: 17px !important;
    }
  }
}

/* Desktop list typography lives here alongside its tablet/mobile values. */
@layer liwwadders-homepage-readability {
 @media(min-width:1000px){
  body.home #main .wp-block-query:not(:has(.wp-block-cover)) :is(.wp-block-post-title,.wp-block-post-title a) {
   font-size:17px!important;line-height:1.3!important;
  }
 }
}

/* Alternating mobile section logos. */
@layer liwwadders-homepage-readability {
 @media(max-width:999.98px){
  /* Six section tiles are paired in three rows; the left column is Actueel,
     Politiek, Cultuur. Decorative logos never cover the clickable title. */
  body.home #main .wp-block-cover figure.liw-tile-logo-mobile-only {display:none!important;}
  /* A normal-flow logo reserves its own row. The card may grow for long titles
     and enlarged browser text instead of clipping or overlapping the metadata. */
  body.home #main .entry-content > .wp-block-columns > .wp-block-column:first-child .wp-block-cover {
   container-type:inline-size;aspect-ratio:auto!important;
  }
  body.home #main .entry-content > .wp-block-columns > .wp-block-column:first-child .wp-block-cover > .wp-block-cover__inner-container {
   position:relative!important;inset:auto!important;min-height:75cqw!important;
   align-self:stretch!important;
  }
  body.home #main .entry-content > .wp-block-columns > .wp-block-column:first-child .wp-block-cover > .wp-block-cover__inner-container::before {
   content:"";display:block;position:static;order:0;flex:none;width:100%;aspect-ratio:3188 / 642;
   margin:0 0 8px;
   background:url("/wp-content/uploads/Liwwadders-shadow-1024x206.png") center / contain no-repeat;
   pointer-events:none;
  }
 }
}
