/* Keep the two delivery cards legible even while the primary stylesheet loads. */
main > div > section:first-child h1 {
  font-family: Manrope, Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.08 !important;
  text-rendering: geometricPrecision;
}

main > div > section:first-child p {
  font-family: Manrope, Arial, sans-serif !important;
}

/* Desktop hero uses the same horizontal container as the sections below it. */
@media (min-width: 1024px) {
  main > div > section:first-child > div {
    grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.22fr) !important;
    justify-content: stretch !important;
  }

  main > div > section:first-child > div > div:last-child > div {
    max-width: none !important;
  }
}

/* Mobile prioritises the interactive delivery map, then shows the two campaigns. */
@media (max-width: 1023px) {
  main > div > section:first-child > div {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 12px !important;
  }

  main > div > section:first-child > div > div:first-child {
    order: 2 !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  main > div > section:first-child > div > div:last-child {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  main > div > section:first-child > div > div:last-child > div {
    max-width: none !important;
  }

  main > div > section:first-child h1 {
    font-size: clamp(16px, 4.7vw, 24px) !important;
  }

  main > div > section:first-child > div > div:first-child p {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  main > div > section:first-child > div > div:first-child a span {
    padding: 8px 10px !important;
    font-size: 10px !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  main > div > section:first-child > div > div:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
