/* ==================== Tablet and Desktop Layouts ==================== */

/* Large phones and portrait tablets */
@media (min-width: 600px) {
  .bottom-nav {
    width: 100%;
  }

  .sidebar {
    width: min(42vw, 22rem);
  }

  .settings-page,
  .info-page {
    padding: 2rem;
  }

  .onboarding-panel {
    width: min(100%, 38rem);
  }
}

/* iPad-sized tablets and compact laptops */
@media (min-width: 768px) {
  .content-scroll {
    flex: 1 0 auto;
  }

  .page-view {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 2rem 2.5rem 7rem;
  }

  #home-view .stats,
  #home-view .widget-card,
  #home-view .participation-layout {
    width: calc(100% - 3rem);
    margin-inline: auto;
  }

  .bottom-nav {
    width: 100%;
    min-height: 4rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: 0;
  }

  .bottom-nav .nav-item {
    flex-direction: row;
    gap: 0.5rem;
    min-width: 6rem;
  }

  .bottom-nav .nav-label {
    font-size: 0.78rem;
  }

  .fab-add {
    width: 3rem;
    height: 3rem;
  }

  .settings-page,
  .info-page {
    padding: 2.5rem;
  }

  .settings-page > .settings-section,
  .settings-page > details.settings-section {
    max-width: none;
    margin-inline: 0;
  }

  .full-page-header {
    max-width: none;
    margin-inline: 0;
  }

  .info-page > .info-hero,
  .info-page > .support-methods,
  .info-page > .about-points,
  .info-page > .info-note {
    max-width: none;
    margin-inline: 0;
  }
}

/* Wide tablets and desktop */
@media (min-width: 1024px) {
  .page-view {
    max-width: none;
    padding: 2.5rem 3rem 7rem;
  }

  #home-view .stats,
  #home-view .widget-card,
  #home-view .participation-layout {
    width: calc(100% - 4rem);
  }

  .records-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .records-summary,
  .report-summary,
  .report-controls,
  .report-grid,
  .report-records,
  .territory-panel {
    max-width: none;
    margin-inline: auto;
  }

  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav {
    width: 100%;
    bottom: 1rem;
  }
}

/* Spacious desktop work area */
@media (min-width: 1440px) {
  .page-view {
    max-width: none;
  }

  #home-view .stats,
  #home-view .widget-card,
  #home-view .participation-layout {
    width: calc(100% - 5rem);
  }

  .records-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
