/* TeachMe Now - desktop & large screens (the app stays a centred column, never stretched edge to edge) */
@media (min-width: 900px) {
  :root { --nav-h: 68px; }
  .topbar { padding-left: max(24px, calc((100vw - 1100px) / 2)); padding-right: max(24px, calc((100vw - 1100px) / 2)); }
  .page { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 28px; padding-right: 28px; }
  #page-support { max-width: 760px; }
  .bottom-nav { left: 50%; right: auto; width: 560px; transform: translateX(-50%); border: 1px solid var(--glass-border); border-bottom: none; border-radius: 22px 22px 0 0; }
  .stats-grid { grid-template-columns: 2fr 1fr 1fr; }
  .stats-grid .stat-card:first-child, .stats-grid .grade-banner { grid-column: auto; }
  .quick-actions { max-width: 640px; }
  .courses-grid { grid-template-columns: repeat(4, 1fr); }
  .scroll-x { scroll-snap-type: none; }
  .modal { margin-bottom: 8vh; border-radius: 28px; }
  .modal-overlay { align-items: center; }
  .toast-container { top: 84px; }

  /* landing */
  .landing-topbar { padding-left: max(28px, calc((100vw - 1100px) / 2)); padding-right: max(28px, calc((100vw - 1100px) / 2)); }
  .hero { padding-top: 130px; }
  .hero-title { font-size: 3.8rem; }
  .hero-desc { font-size: 1.1rem; max-width: 640px; }
  .hero-tile { width: 76px; height: 76px; }
  .hero-tile svg { width: 36px; height: 36px; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .grades-section, .features-section { max-width: 1100px; }
  .grade-cards-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

  /* auth + signup */
  #auth-screen { padding-top: 36px; }
  .auth-card { max-width: 460px; }
  .su-inner { max-width: 460px; }
  .year-grid { max-height: 46vh; max-width: 460px; }
  .su-q { font-size: 1.7rem; }
}
@media (min-width: 1400px) { .page { max-width: 1240px; } .courses-grid { grid-template-columns: repeat(5, 1fr); } }
