/* Small-screen usability refinements shared by the landing page and dashboard. */
.mobile-menu-auth {
  display: none;
}

.mobile-menu-signup {
  display: none;
}

@media (max-width: 650px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .header-actions .text-button {
    display: none;
  }

  .mobile-menu-auth {
    display: block;
    align-self: stretch;
    border: 1px solid #e8e2ef;
    border-radius: 9px;
    background: transparent;
    color: var(--ink, #251d35);
    padding: 10px 12px;
    text-align: left;
    font: 600 12px var(--font, sans-serif);
  }

  .mobile-menu-signup {
    display: block;
    border-color: #397858;
    background: #397858;
    color: #fff;
    font-weight: 700;
  }

  .header-actions .button-small {
    display: none;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .site-header {
    gap: 8px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-name {
    white-space: nowrap;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 7px;
  }

  .menu-toggle,
  .mobile-sidebar-toggle {
    min-width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    border-radius: 9px;
  }

  .dashboard-topbar {
    min-width: 0;
    gap: 8px;
  }

  .breadcrumb {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .preview-banner {
    font-size: 8px;
    line-height: 1.35;
  }

  .today-label,
  .block-kicker {
    font-size: 8px;
  }

  .welcome-row p {
    font-size: 10px;
  }

  .focus-copy > p {
    font-size: 10px;
  }

  .focus-meta span {
    font-size: 8px;
  }

  .stat-card {
    min-width: 0;
    min-height: 108px;
    padding: 12px 9px;
  }

  .stat-label {
    max-width: 100%;
    font-size: 7px;
    line-height: 1.45;
    letter-spacing: .045em;
  }

  .stat-note {
    font-size: 7px;
  }

  .course-status {
    font-size: 7px;
  }

  .dash-course-label {
    font-size: 8px;
  }

  .dash-course-card h3 {
    font-size: 15px;
  }

  .dash-course-card > p,
  .course-progress-meta,
  .course-continue {
    font-size: 9px;
  }

  .settings-field > span,
  .settings-provider-row > span {
    font-size: 10px;
  }

  .settings-field input,
  .settings-field select {
    min-height: 42px;
    font-size: 12px;
  }

  .sat-domain-row {
    font-size: 9px;
  }

  .sat-stat-note,
  .daily-question-footnote {
    font-size: 9px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-inline: 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
  }

  .header-actions {
    gap: 4px;
  }

  .header-actions .button-small {
    padding: 8px 8px;
    font-size: 8px;
  }

  .theme-toggle {
    width: 31px;
    height: 31px;
  }

  .stats-row {
    gap: 6px;
  }

  .stat-card {
    padding-inline: 8px;
  }

  .stat-label {
    font-size: 7px;
  }

  .stat-note {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-sidebar,
  .sidebar-scrim {
    transition: none !important;
  }
}
