/* KU A1: main-page visual and responsive repair (2026-11-19).
   Only the homepage template. Never alter SiteHeader, catalog filters or pages.
   Existing body:has(.ku2-home) .ku2-hero-card background shorthand
   prevented the approved hero-city image from rendering.
*/
@media (min-width: 771px) {
  body:has(.ku2-home) .ku2-home .ku2-hero-card {
    background-color: #102b50 !important;
    background-image:
      linear-gradient(90deg, rgba(6,31,70,.93) 0%, rgba(6,37,79,.87) 35%, rgba(5,43,86,.42) 66%, rgba(6,44,88,.13) 100%),
      url('/hero-city.webp') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }
}
/* Two cramped columns at 771-1080px put three news stories in a 270px rail.
   Give the hero its full width, then show news as a readable section.
*/
@media (min-width: 771px) and (max-width: 1080px) {
  body:has(.ku2-home) .ku2-home .ku2-lead {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 14px !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-card {
    min-height: 255px !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-copy {
    max-width: 70% !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-card h1 {
    font-size: clamp(29px, 3.3vw, 37px) !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form {
    max-width: 820px !important;
    width: 100% !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form .finder {
    display: flex !important;
    flex-wrap: wrap;
    align-items: end;
    gap: 9px;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form .finder .fields {
    flex: 1 1 550px;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form .finder .btn {
    margin-top: 0 !important;
    flex: 0 0 auto;
  }
  body:has(.ku2-home) .ku2-home .ku2-changes-list {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-change {
    min-width: 0;
    min-height: 82px;
    border-right: 1px solid #e2e8f1;
    border-bottom: 0;
    padding: 12px 14px;
  }
  body:has(.ku2-home) .ku2-home .ku2-change:last-child {
    border-right: 0;
  }
  body:has(.ku2-home) .ku2-home .ku2-change-text b {
    overflow-wrap: break-word;
    line-height: 1.35;
  }
  body:has(.ku2-home) .ku2-home .ku2-all-news {
    border-top: 1px solid #e2e8f1;
  }
}
/* Tablet: let the inputs breathe without an unnecessary horizontal cut. */
@media (min-width: 771px) and (max-width: 870px) {
  body:has(.ku2-home) .ku2-home .ku2-hero-copy {
    max-width: 75% !important;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form .finder .fields {
    flex-basis: 100%;
  }
  body:has(.ku2-home) .ku2-home .ku2-hero-form .finder .btn {
    min-height: 42px;
    margin-top: 0 !important;
  }
}
