/* Language-aware mobile layout refinements. */
.hero h1 {
  text-wrap: balance;
}

@media (max-width: 620px) {
  .hero h1 {
    width: 100%;
    max-width: 20ch;
    font-size: clamp(26px, 8.2vw, 34px);
    line-height: 1.08;
    letter-spacing: clamp(-1.15px, -0.28vw, -0.7px);
    text-wrap: balance;
  }

  html:lang(fr) .hero h1,
  html:lang(de) .hero h1 {
    max-width: 22ch;
    font-size: clamp(25px, 7.7vw, 32px);
    letter-spacing: clamp(-0.95px, -0.22vw, -0.55px);
  }

  .field-grid.dates .field > span:first-child {
    display: flex;
    align-items: flex-end;
    min-height: 2.65em;
    line-height: 1.28;
    text-wrap: balance;
  }

  .field-grid.dates .input-wrap {
    min-width: 0;
  }

  .field-grid.dates input[type="date"],
  .field-grid.dates select {
    min-width: 0;
    font-size: clamp(12px, 3.2vw, 14px);
  }
}

@media (max-width: 350px) {
  .hero h1 {
    font-size: 26px;
  }

  html:lang(fr) .hero h1,
  html:lang(de) .hero h1 {
    font-size: 24px;
  }

  .search-panel {
    padding-inline: 12px;
  }

  .field-grid.dates {
    gap: 10px 8px;
  }
}
