/* PE-Class v1.16.38 — iPad home card header title-line alignment
 * Scope: authenticated Home dashboard on iPad only.
 * Right-side count/action/semester elements occupy the same grid row as each H2 title.
 */
@media (min-width: 720px) and (max-width: 1366px) {
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 10px !important;
    row-gap: 7px !important;
    align-items: center !important;
  }

  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header > div,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header > div,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header > div,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header > div {
    display: contents !important;
  }

  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header small,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header small,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header small,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header small {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-bottom: 0 !important;
  }

  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header h2,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSchedulePane > header h2,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header h2,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSportsCard > header h2 {
    grid-column: 1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    align-self: center !important;
  }

  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeScheduleCount,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeScheduleCount,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp #homeUpcomingAll,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp #homeUpcomingAll,
  html.pe87Ipad:not(.pe87FoldWide) body.homeDashboardApp .homeSportsTerm,
  html.pe87IpadRuntime:not(.pe87FoldWide) body.homeDashboardApp .homeSportsTerm {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: center !important;
    justify-self: end !important;
    margin: 0 !important;
    transform: none !important;
  }
}
