/* WLINGO 2.2.1 — mobile type scale. Loaded after themes.css and layouts.css.
   No desktop changes; no changes to pedagogical components or application state. */
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.5; }
  h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; overflow-wrap: break-word; }
  h1 { font-size: clamp(31px, 8.5vw, 43px); }
  h2 { font-size: clamp(25px, 6.5vw, 32px); }
  h3 { font-size: clamp(20px, 5.2vw, 25px); }
  .hero { padding-top: 24px; }
  .hero-title { max-width: 100%; }
  .hero-copy > p { font-size: 15px; line-height: 1.5; }
  .section { padding-block: 27px; }
  .section-head { margin-bottom: 14px; }
  .panel, .card { padding: 17px; }
  .card p, .muted, .dashboard-welcome p { line-height: 1.5; }
  .extra-card h3 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
  .extra-card { min-height: 160px; }
  .teacher-choice h3, .dashboard-teachers h3 { font-size: 21px; }
  .metric { font-size: 34px; line-height: 1.1; }
  .week strong { font-size: 20px; line-height: 1.2; }
  .stage-head h2 { font-size: 25px; }
  .context-item strong { font-size: 14px; }
  .dashboard-welcome { padding: 19px; gap: 14px; }
  .dashboard-welcome h1 { font-size: clamp(28px, 7.5vw, 39px); line-height: 1.12; }
  .dashboard-lesson-card { padding: 19px; gap: 14px; }
  .dashboard-lesson-card h2 { font-size: clamp(23px, 6vw, 29px); line-height: 1.16; }
  .dashboard-section-head { margin: 24px 0 12px; }
  .dashboard-section-head h2 { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.17; }
  .dashboard-metrics strong { font-size: 27px; line-height: 1.1; }
  .dashboard-teachers article { padding: 17px; }
  .dash-action-card, .dash-extra { padding: 14px; }
  .dash-action-card strong { font-size: 15px; line-height: 1.3; }
  .dashboard-top strong { font-size: 16px; }
  .dashboard-sidebar { padding-bottom: max(5px, env(safe-area-inset-bottom)); height: calc(69px + env(safe-area-inset-bottom)); }
  .dashboard-main { padding-bottom: calc(79px + env(safe-area-inset-bottom)); }
  .dashboard-sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dashboard-sidebar nav button { min-width: 0; min-height: 52px; padding: 4px 1px; flex-direction: column; gap: 1px; text-align: center; }
  .dashboard-sidebar nav button:nth-child(n+5) { display: none; }
  .dashboard-sidebar nav button.dashboard-more { display: flex; }
  .dashboard-sidebar nav button span { display: block; font-size: 10px; font-weight: 700; line-height: 1.1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dashboard-sidebar nav i { width: auto; font-size: 19px; line-height: 1.2; }
  .dashboard-sidebar nav button:focus-visible { outline-offset: -3px; }
  input, select, textarea { font-size: 16px; } /* iOS: avoid focus zoom */
}
/* Hidden on desktop and tablets with a sidebar. */
@media (min-width: 769px) { .dashboard-sidebar nav .dashboard-more { display: none; } }
@media (max-width: 390px) {
  .shell { padding-inline: 13px; }
  .dashboard-page { padding-top: 16px; }
  .dashboard-welcome, .dashboard-lesson-card { padding: 15px; }
  .dashboard-skill-grid, .dashboard-extra-grid { gap: 9px; }
  .dashboard-metrics article { padding: 12px; }
  .dashboard-teachers h3 { font-size: 20px; }
  .dashboard-status .quiet { padding-inline: 7px; }
}
@media (min-width: 360px) and (max-width: 390px) {
  .dashboard-skill-grid, .dashboard-extra-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dash-action-card strong { font-size: 14px; }
  .dash-extra { min-height: 140px; }
  .dash-extra small { font-size: 12px; }
}
@media (max-width: 359px) {
  h1 { font-size: 29px; }
  h2 { font-size: 24px; }
  .dashboard-welcome h1 { font-size: 27px; }
  .dashboard-lesson-card h2 { font-size: 23px; }
}
