/* Hero layout only: shared tracks, normal document flow and intrinsic height. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.hero > .hero-layout,
.hero > #searchForm {
  width: min(100%, 1360px);
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero > .hero-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  height: auto;
}

.hero-layout > *,
.hero .assistant-callout > div,
.hero #searchForm > * {
  min-width: 0;
}

.hero .hero-content {
  height: auto;
}

.hero > #searchForm {
  position: static;
  inset: auto;
  transform: none;
  height: auto;
  overflow: visible;
  grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(150px, 1fr)) minmax(112px, .65fr);
}

.hero #searchForm .search-intro,
.hero #searchForm label,
.hero #searchForm > button {
  grid-column: auto;
}

.hero #searchForm :is(input, select, button) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero .hero-media {
  height: auto;
  min-width: 0;
  overflow: visible;
}

.hero .hero-media > picture,
.hero .hero-media > picture > img,
.hero .hero-media::after {
  border-radius: inherit;
}

.hero .hero-media-label {
  position: relative;
  inset: auto;
  display: table;
  width: fit-content;
  max-width: calc(100% - 44px);
  margin: auto 22px 22px auto;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.hero .hero-media {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .hero > .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero > #searchForm {
    grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(112px, .65fr);
  }

  .hero #searchForm .search-intro {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .hero > #searchForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero .hero-media-label {
    max-width: calc(100% - 24px);
    margin: auto 12px 12px auto;
  }
}

@media (max-width: 560px) {
  .hero > #searchForm {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero #searchForm > * {
    grid-column: 1 / -1;
  }
}
