/* Version 131 — mobile/tablet layout polish and Events scroll isolation fix. */

@media (max-width: 900px) {
  /*
   * Keep the opening hero equal to the live mobile/tablet viewport so the
   * What We Do section never peeks into the first screen.
   */
  .hero {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: clip !important;
  }

  /*
   * Mirror the What We Do accents: dots stay nearest the title while each
   * line sits fully outside its pair of dots.
   */
  .what-title-accent--left::before {
    right: 18px !important;
    left: 0 !important;
    width: auto !important;
  }

  .what-title-accent--right::before {
    right: 0 !important;
    left: 18px !important;
    width: auto !important;
  }

  /*
   * Present Discover, Develop, and Do as one connected mobile/tablet group.
   */
  .approach-cards {
    gap: 0 !important;
  }

  .approach-card,
  .approach-card.featured {
    margin: 0 !important;
    transform: none !important;
  }

  /*
   * The Events wrapper previously became a second iPhone scroll container
   * because overflow-x:hidden implicitly changed its vertical overflow.
   */
  .events-page {
    height: auto !important;
    max-height: none !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
    overscroll-behavior-y: auto !important;
  }
}

@media (max-width: 700px) {
  /*
   * Give the Events introduction a clearer reading rhythm and use more of
   * the available first-screen height before the doors.
   */
  .events-hero-heading .section-kicker {
    margin-bottom: 8px !important;
  }

  .events-hero-heading h1 {
    margin-bottom: 10px !important;
    line-height: .95 !important;
  }

  .events-hero-heading > p:last-child {
    margin-top: 0 !important;
    line-height: 1.2 !important;
  }

  .event-doors {
    margin-top: 24px !important;
  }

  .events-portal.event-screen {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
}
