/* Tablet and desktop geometry only. The approved phone layouts and visual treatments stay
   in their existing stylesheets. One centred track prevents summaries spanning
   the viewport while the photographic cards remain in a narrow column. */
@media (min-width: 600px) {
  html body main.app {
    width: 800px !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  html body main.app > :is(#today, #recovery, #mental, #active, #rebuild).page {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  html body main.app > #today.page > .today-v3-body {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 20px !important;
    box-sizing: border-box !important;
  }

  html body #today.page .today-home-card-stack {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 0 !important;
    margin-inline: 0 !important;
  }

  html body #today.page .today-home-card-stack > .today-home-unified-card {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
  }

  html body #recovery.page :is(.recovery-urgent-grid, .recovery-hub) {
    width: calc(100% - 40px) !important;
    margin-inline: auto !important;
  }

  html body #recovery.page :is(.recovery-support-card, .recovery-hub-card) {
    width: 100% !important;
    max-width: none !important;
  }

  html body #mental.page .mental-approved-home {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 20px !important;
  }

  html body #mental.page :is(.mental-quiet-top, .mental-needs-grid) {
    width: 100% !important;
    margin-inline: 0 !important;
  }

  html body #mental.page :is(.mental-quiet-reset, .mental-quiet-card),
  html body #mental.page .mental-needs-grid > .mental-photo-card {
    width: 100% !important;
    max-width: none !important;
  }

  html body #rebuild.page .rebuild-v2-more > .rebuild-area,
  html body #rebuild.page .rebuild-v2-more > .rebuild-area-list > .rebuild-area {
    width: 100% !important;
    max-width: none !important;
  }

  /* Size heroes against the same content track as cards, never the viewport.
     Nested Mental / Active roots already sit inside the 20px page padding. */
  html body main.app > #today.page > .today-v3-hero,
  html body main.app > #recovery.page > .recoveryTop,
  html body main.app > #rebuild.page > .rebuild-v3-hero {
    width: calc(100% - 40px) !important;
    max-width: 760px !important;
    margin-inline: auto !important;
  }

  html body main.app > #mental.page .mental-quiet-hero,
  html body main.app > #active.page .active-kinetic-home > .active-approved-top {
    width: 100% !important;
    max-width: 760px !important;
  }

  html body main.app > #active.page .active-approved-home.active-kinetic-home {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 20px !important;
  }

  html body main.app > #today.page > .today-v3-hero,
  html body main.app > #recovery.page > .recoveryTop,
  html body main.app > #mental.page .mental-quiet-hero,
  html body main.app > #active.page .active-kinetic-home > .active-approved-top,
  html body main.app > #rebuild.page > .rebuild-v3-hero {
    height: 300px !important;
    min-height: 300px !important;
  }

  html body main.app > #rebuild.page > :is(.rebuild-v3-intro, .rebuild-work-card) {
    width: calc(100% - 40px) !important;
    margin-inline: auto !important;
  }

  html body main.app > #rebuild.page > .rebuild-v2-more {
    padding-inline: 20px !important;
  }

  html body .nav {
    width: min(760px, 100%) !important;
  }
}
