/* Both layouts use the same content. The existing type scale layer also has
   priority over the historical mobile grid and size overrides. */
@media screen and (max-width: 960px) {
  @layer type-scale {
    .home-hero .hero-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      gap: 16px 12px !important;
      max-width: max(600px, 84vw) !important;
    }
    .home-hero .hero-heading { grid-area: 1 / 1 / auto / -1 !important; }
    #desktop-home-actions { display: contents !important; }
    .home-hero .home-hero-photo {
      grid-area: 2 / 1 / auto / -1 !important;
      justify-self: center !important;
      width: min(240px, 100%) !important;
      height: auto !important;
      inset: auto !important;
      margin-inline: auto !important;
      aspect-ratio: 920 / 1200;
    }
    .home-hero .home-hero-pair-stage { height: 100% !important; }
    #desktop-home-actions .lede {
      grid-row: 3 !important;
      justify-self: center !important;
      min-width: 0 !important;
      width: 100% !important;
      max-width: 26ch !important;
    }
    #desktop-home-actions .btn {
      display: block !important;
      grid-row: 4 !important;
      padding: 10px 12px !important;
      min-height: 64px !important;
      box-shadow: 0 3px 6px rgb(18 52 68 / 15%) !important;
      filter: none !important;
    }
    #desktop-home-trust { grid-area: 5 / 1 / auto / -1 !important; }
    .home-hero .boarding-service-title span { white-space: normal !important; }
    #desktop-home-actions .hero-service-name { font-size: var(--type-card) !important; }
    #desktop-home-actions .lede strong { font-size: var(--type-body) !important; }
    #main .home-services .home-services-heading { font-size: var(--type-section) !important; }
    @media (max-width: 480px) {
      #desktop-home-actions .btn { grid-row: 2 !important; }
      .home-hero .home-hero-photo { grid-row: 3 !important; }
      #desktop-home-actions .lede { grid-row: 4 !important; }
    }
  }
  .home-booking-service { display: block; }
  #main .home-family-line > [data-family-underline] {
    max-width: 100%;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
  #main .home-family-line .home-family-chalk { display: none; }
  #main .home-services .home-service-cards .card-img { display: block; }
}
