:root {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-synthesis: none;
}

body,
.app-shell,
.public-landing,
#learnerApp,
.page-content {
  font-size: 18px;
  line-height: 1.7;
}

:where(.app-shell, .public-landing, #learnerApp) :where(
  p, a, button, input, select, textarea, label, summary, th, td, li,
  b, strong, .nav-item, .installed-item, .breadcrumbs, .eyebrow,
  .side-label, .company-copy, .user-card, .form-label, .field-label,
  .empty-state, .status-badge, .app-card-title
) {
  font-size: 17px !important;
  line-height: 1.6;
}

:where(.app-shell, .public-landing, #learnerApp) :where(
  small, .muted, .form-hint, .field-hint, .helper-text, .caption,
  .company-copy small, .user-card small, .breadcrumbs, .eyebrow,
  .side-label, .home-work-empty
) {
  font-size: 15px !important;
  line-height: 1.6;
}

/* Keep compact helper copy readable too; tiny 9–12px rules in app widgets
   otherwise defeat the shared accessible type scale. */
:where(.app-shell, .public-landing, #learnerApp) :where(
  .app-card-copy small, .breadcrumbs, .eyebrow, .side-label,
  .company-copy small, .user-card small, .activity-row time,
  .activity-row p, .tip-kicker, .tip-card p, .form-error,
  .module-copy small, .module-loading, .module-error,
  .role-pill, .role-select, .member-remove, .member-app-access,
  .member-permissions-hint, .empty-state p, footer
) {
  font-size: 15px !important;
  line-height: 1.6;
}

:where(.app-shell, .public-landing, #learnerApp) :where(input, textarea, select)::placeholder {
  font-size: 16px;
  opacity: 1;
}

:where(.app-shell, .public-landing, #learnerApp) :where(th, td) {
  line-height: 1.5;
}

@media (max-width: 600px) {
  body,
  .app-shell,
  .public-landing,
  #learnerApp,
  .page-content {
    font-size: 18px;
    line-height: 1.7;
  }
}

/* Keep the product's typography calm and readable; hierarchy comes from
   size, spacing, and color instead of heavy font weights. */
body,
body * {
  font-weight: 400 !important;
}
