/**
 * FullSport SEO Speed 1.0.3
 * CLS / LCP only. Does not restyle typography, colors, hover or motion.
 */

/*
 * Root CLS cause on desktop: theme rule
 *   .pre-load:not(.swiper-container-initialized) { max-height: 0; }
 * collapses the home hero until Swiper boots, then the block below jumps down (~0.28).
 * Reserve the first slide's height (p-featured already uses padding-bottom: var(--feat-ratio, 60%)).
 */
body.home .post-slider.swiper-container.pre-load:not(.swiper-container-initialized) {
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
}

body.home .post-slider.swiper-container.pre-load:not(.swiper-container-initialized) .swiper-wrapper {
  height: auto !important;
  transform: none !important;
}

body.home .post-slider.swiper-container.pre-load:not(.swiper-container-initialized) .swiper-slide {
  width: 100% !important;
  flex: 0 0 100% !important;
}

body.home .post-slider.swiper-container.pre-load:not(.swiper-container-initialized) .swiper-slide:not(:first-child) {
  display: none !important;
}

/* After Swiper init the rules above no longer apply; do not fight Swiper's height. */

/* Images already have width/height attributes; keep the box stable if CSS sets height:auto. */
body.home .p-featured img.featured-img,
body.home .p-featured img {
  object-fit: cover;
}

/*
 * After H1 → H2 demotion, overlay titles already use
 * .p-overlay-1 .entry-title { font-size: … !important }.
 * This is a fallback so list/hero titles cannot shrink to --h2-fsize.
 */
h2.entry-title[data-fs-seo-h="1"] {
  font-size: var(--title-size, var(--h1-fsize));
}

/* Google Fonts already load with &display=swap. */


/* Visually hidden but available to browsers/crawlers (used for /news/ H1). */
.fsss-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
