/*
 * Deliberate divergences from the source site.
 *
 * Everything else on this site is a byte-faithful snapshot of the original
 * markup and stylesheets. Anything in this file is an intentional change, so
 * keep it small, keep it commented, and expect scripts/visual-diff.mjs to
 * report the affected pages as differing from the reference.
 */

/* --------------------------------------------------------------------------
 * Partner logo strip — uniform tiles and uniform logo sizing
 *
 * The source logos have very different aspect ratios (NHSAA and Desert
 * International are square at 1728x1720; the rest are wide banners at
 * 1728x576), so the carousel rendered them at wildly different sizes —
 * 131x130 next to 201x67.
 *
 * Two rules are needed, not one: pin the card to a fixed height so every tile
 * matches, then give the logo a fixed box inside it and let object-fit scale
 * each one without distortion. Fixing only the image leaves the cards
 * themselves uneven, because they size to their content.
 *
 * Specificity note: these use real class selectors rather than :where() —
 * Divi's own rules would otherwise win, since :where() contributes nothing.
 * ----------------------------------------------------------------------- */

.dica_divi_carousel_1 .dica-item,
.dica_divi_carousel_1 .dica-image-container {
  height: 166px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dica_divi_carousel_1 .dica-image-container a.image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 18px;
  box-sizing: border-box;
}

.dica_divi_carousel_1 img.dica-item-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: center;
}

/* ---------------------------------------------------------------------------
 * Header search — hidden.
 *
 * Divi's search is a GET to /?s=… answered by WordPress. The static clone has
 * no search backend, so submitting it would just reload the homepage. The icon
 * and the slide-down form are hidden instead. ID selectors, loaded last, win
 * over Divi's own `#et_top_search { display: block }` without !important.
 * ----------------------------------------------------------------------- */

#et_top_search,
.et_search_outer {
  display: none;
}
