/* Phone-only compact sizing for page heroes and common blocks.
   Loaded by the student/public layouts. Desktop is not affected.
   Selectors start with `body` so they beat each page's own stylesheet. */
@media (max-width: 640px) {
  /* ── Standard hero (.hero with __eyebrow/__title/__sub/__stats) ── */
  body .hero:not(.jr-hero) { padding: 1rem 1rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; }
  body .hero:not(.jr-hero)::before { width: 170px; height: 170px; top: -70px; right: -60px; }
  body .hero:not(.jr-hero)::after { display: none; }
  body .hero .hero__inner { gap: .7rem; }
  body .hero .hero__eyebrow { font-size: .6rem; padding: .18rem .6rem; margin-bottom: .4rem; }
  body .hero .hero__title { font-size: 1.35rem; line-height: 1.15; }
  body .hero .hero__sub { font-size: .78rem; line-height: 1.45; margin-top: .3rem; }
  body .hero .hero__row { margin-top: .8rem; gap: .7rem; }
  body .hero .hero__stats { gap: .4rem; }
  body .hero .hero__stat { padding: .4rem .65rem; border-radius: 10px; }
  body .hero .hero__stat-val { font-size: 1.05rem; }
  body .hero .hero__stat-lbl { font-size: .54rem; letter-spacing: .04em; }
  body .hero .hero__actions { gap: .45rem; }
  body .hero .btn-orange, body .hero .btn-ghost-white { padding: .5rem 1rem; font-size: .78rem; }

  /* ── Doubts hero ── */
  body .dc-hero { padding: 1rem 1.1rem; margin-bottom: 1rem; border-radius: 16px; }
  body .dc-hero h1 { font-size: 1.25rem; margin-bottom: .3rem; }
  body .dc-hero p { font-size: .8rem; line-height: 1.45; }

  /* ── Performance pages callout ── */
  body .tp-callout { padding: .8rem .9rem; gap: .7rem; margin-bottom: .9rem; }
  body .tp-callout h1 { font-size: 1.1rem; margin-bottom: .2rem; }
  body .tp-callout p { font-size: .78rem; line-height: 1.45; }
  body .tp-callout .tp-icon { font-size: 1.4rem; }

  /* ── Registered-user welcome card ── */
  body .welcome-card__body { padding: 1.1rem; }
  body .welcome-card__title { font-size: 1.3rem; }
  body .welcome-card__sub { font-size: .8rem; line-height: 1.5; }
  body .welcome-card__tick { width: 44px; height: 44px; }

  /* ── Section intros and headers ── */
  body .sec-intro { padding: .55rem .75rem; gap: .6rem; margin-bottom: .6rem; }
  body .sec-intro__icon { font-size: 1.05rem; }
  body .sec-intro__title { font-size: .78rem; }
  body .sec-intro__desc { font-size: .7rem; line-height: 1.45; }
  body .section-header { margin-bottom: .6rem; }
  body .section-title { font-size: 1rem; }
}
