
/* TISIAS PATCH V165
   TARGET ONLY: /ican-finals2026test

   ONLY TWO CHANGES:
   1) Remove the remaining gray gap between the full-width Countdown bar
      and the Official Finals Information/Header section.
   2) Make Official Catalogue as wide as the other major Finals cards.

   Everything else remains untouched.
*/

:root {
  --tisias-v165-card-max: 1480px;
}

/* The one-time JS gap correction writes a negative margin only to this hero. */
#tisias-v135-finals-hero-card.tisias-v165-gap-fixed {
  margin-top: var(--tisias-v165-gap-shift, 0px) !important;
}

/* Official Catalogue: match the larger major-card reading width (~1480px). */
#tisias-v135-catalogue,
#tisias-v135-catalogue.tisias-v158-catalogue {
  box-sizing: border-box !important;
  width: min(var(--tisias-v165-card-max), calc(100vw - 32px)) !important;
  max-width: var(--tisias-v165-card-max) !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Let the Catalogue use the newly available horizontal room. */
#tisias-v135-catalogue .tisias-v135-main,
#tisias-v135-catalogue.tisias-v158-catalogue .tisias-v135-main {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(390px, .9fr) minmax(0, 1.45fr) !important;
  gap: clamp(30px, 3.2vw, 62px) !important;
}

#tisias-v135-catalogue .tisias-v135-cover,
#tisias-v135-catalogue .tisias-v135-copy {
  min-width: 0 !important;
}

@media (max-width: 900px) {
  #tisias-v135-catalogue,
  #tisias-v135-catalogue.tisias-v158-catalogue {
    width: calc(100vw - 16px) !important;
    max-width: none !important;
  }

  #tisias-v135-catalogue .tisias-v135-main,
  #tisias-v135-catalogue.tisias-v158-catalogue .tisias-v135-main {
    grid-template-columns: 1fr !important;
  }
}
