/* Terry, October 5: package-area alignment only, on the four listed golf
   routes. Desktop changes stay outside the approved mobile Story layout. */
@media (min-width: 801px) and (min-height: 501px), (min-width: 951px) {
  /* Fill the exact remaining region from the existing pink rule to the
     footer. Center the intact package + confirmation as one content group. */
  .pilot-page.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }

  .pilot-page.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-editorial-field > :is(h2, .package-intro, .package-ledger) {
    flex: 0 0 auto;
  }

  .pilot-page.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .terry-package-summary {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    justify-content: center;
    border-top: .12cqw solid #ff8eac;
    margin-top: .5cqw;
    padding-block: 1cqw;
  }

  .pilot-page.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .package-investment {
    align-items: center;
    padding: 0;
    margin: 0;
    border-top: 0;
    flex: 0 0 auto;
  }

  /* The old ledger consumed the CTA's reserved bottom space. Reclaim only
     inter-section whitespace; retain every inclusion and existing type size. */
  .pilot-page.deck-presidents.jason-final.pc-terry-sept10.terry-sept23.ryder-2029 #slide-3 .package-ledger {
    gap: .15cqw;
    flex-shrink: 1;
    min-height: 0;
  }

  .pilot-page.deck-presidents.jason-final.pc-terry-sept10.terry-sept23.ryder-2029 #slide-3 .package-ledger article {
    padding-block: .45cqw;
  }

  .pilot-page.deck-presidents.jason-final.pc-terry-sept10.terry-sept23.ryder-2029 #slide-3 .package-investment {
    flex-shrink: 0;
    margin-bottom: 0;
    align-items: center;
  }
}

/* Preserve the pink rule's original short-desktop spacing. */
@media (min-width: 951px) and (max-height: 760px) {
  .pilot-page.deck-presidents.jason-final.deck-usopen.terry-sept23 #slide-3 .terry-package-summary {
    margin-top: .35cqw;
  }
}

/* The wrapper has no layout box on phones; retain the existing direct-child
   Story order and styles exactly. */
@media (max-width: 800px), (max-width: 950px) and (max-height: 500px) {
  .pilot-page.deck-usopen #slide-3 .terry-package-summary { display: contents; }
}
