/* ============================================================
   CarTroubleshoot — global readable typography
   This layer is intentionally loaded AFTER page-specific CSS.
   The account panel already has its own approved typography scale.
   ============================================================ */

body:not(.account-panel-page) {
  font-size: 16px;
  line-height: 1.85;
}

/* ---------- Global chrome ---------- */

body:not(.account-panel-page) #main-nav a {
  font-size: 14px;
}

body:not(.account-panel-page) .header-search input {
  font-size: 13.5px;
}

body:not(.account-panel-page) .header-auth a {
  font-size: 13.5px;
  font-weight: 750;
}

body:not(.account-panel-page) .footer-brand p {
  font-size: 14.5px;
}

body:not(.account-panel-page) .footer-links a,
body:not(.account-panel-page) .footer-bottom a {
  font-size: 13.5px;
}

body:not(.account-panel-page) .footer-bottom {
  font-size: 13px;
}

body:not(.account-panel-page) :where(
  .form-card,
  .card,
  .notice,
  .message
) {
  font-size: 15px;
}

body:not(.account-panel-page) :where(
  input,
  textarea,
  select
) {
  font-size: 15px;
  line-height: 1.7;
}

body:not(.account-panel-page) :where(
  .button,
  button[type="submit"]
) {
  font-size: 14px;
  font-weight: 750;
}

/* ---------- Home ---------- */

body.home-page .hero-eyebrow,
body.home-page .section-kicker {
  font-size: 13px;
}

body.home-page .hero-lead {
  font-size: 16px;
  line-height: 2;
}

body.home-page .hero-meta span {
  font-size: 12.5px;
}

body.home-page .cta-primary,
body.home-page .cta-secondary {
  font-size: 14px;
  font-weight: 750;
}

body.home-page .hero-proof strong,
body.home-page .trust-item strong {
  font-size: 13.5px;
}

body.home-page .hero-proof span,
body.home-page .trust-item small {
  font-size: 12px;
}

body.home-page .home-anchor-nav a,
body.home-page .text-link {
  font-size: 13.5px;
}

body.home-page .section-head p,
body.home-page .learning-copy > p,
body.home-page .app-copy p {
  font-size: 15px;
  line-height: 1.95;
}

body.home-page .course-level,
body.home-page .course-sale,
body.home-page .course-category-line {
  font-size: 12px;
}

body.home-page .course-card-body h3 {
  font-size: 16px;
}

body.home-page .course-card-body > p {
  font-size: 13.5px;
  line-height: 1.9;
}

body.home-page .course-card-meta,
body.home-page .course-teacher-row {
  font-size: 12px;
}

body.home-page .course-card-price del {
  font-size: 11.5px;
}

body.home-page .course-card-price strong {
  font-size: 14.5px;
}

body.home-page .course-card-cta {
  font-size: 13px;
  font-weight: 750;
}

body.home-page .category-card p,
body.home-page .teacher-card p,
body.home-page .article-body p {
  font-size: 13.5px;
  line-height: 1.85;
}

body.home-page .learning-steps strong {
  font-size: 13.5px;
}

body.home-page .learning-steps small,
body.home-page .teacher-stats,
body.home-page .article-date,
body.home-page .app-points span {
  font-size: 12px;
}

body.home-page .article-cover span,
body.home-page .teacher-label {
  font-size: 12px;
}

/* ---------- Course catalog ---------- */

body.course-catalog-page .catalog-breadcrumbs {
  font-size: 13px;
}

body.course-catalog-page .catalog-hero-copy > p {
  font-size: 15.5px;
}

body.course-catalog-page .catalog-search input {
  font-size: 14px;
}

body.course-catalog-page .catalog-search button {
  font-size: 14px;
  font-weight: 800;
}

body.course-catalog-page .topic-label,
body.course-catalog-page .catalog-topic-scroller a {
  font-size: 12.5px;
}

body.course-catalog-page .catalog-heading-row p {
  font-size: 14.5px;
}

body.course-catalog-page .catalog-category-tabs a {
  font-size: 13px;
  font-weight: 750;
}

body.course-catalog-page .sidebar-head a {
  font-size: 12.5px;
}

body.course-catalog-page .filter-group-title {
  font-size: 14px;
}

body.course-catalog-page .filter-option {
  font-size: 13px;
}

body.course-catalog-page .filter-option small,
body.course-catalog-page .filter-sort-group select {
  font-size: 12px;
}

body.course-catalog-page .catalog-filter-submit {
  font-size: 13.5px;
  font-weight: 800;
}

body.course-catalog-page .active-filter-bar {
  font-size: 12.5px;
}

body.course-catalog-page .course-level-badge,
body.course-catalog-page .course-offer-badge,
body.course-catalog-page .catalog-course-category {
  font-size: 11.5px;
}

body.course-catalog-page .catalog-course-body h3 {
  font-size: 15.5px;
}

body.course-catalog-page .catalog-course-body > p {
  font-size: 13.5px;
}

body.course-catalog-page .catalog-course-meta {
  font-size: 10px;
}

body.course-catalog-page .catalog-course-price del {
  font-size: 11px;
}

body.course-catalog-page .catalog-course-price strong {
  font-size: 14px;
}

body.course-catalog-page .course-teacher {
  font-size: 11.5px;
}

body.course-catalog-page .catalog-course-cta {
  font-size: 13px;
  font-weight: 750;
}

/* ---------- Course detail ---------- */

body.course-detail-page .course-detail-breadcrumb {
  font-size: 13px;
}

body.course-detail-page .course-detail-badge {
  font-size: 12.5px;
}

body.course-detail-page .course-detail-lead,
body.course-detail-page .course-detail-description {
  font-size: 15.5px;
  line-height: 2;
}

body.course-detail-page .course-detail-stats > span {
  font-size: 13px;
}

body.course-detail-page :where(
  .course-detail-primary-action,
  .course-detail-secondary-action,
  .course-detail-outline-action
) {
  font-size: 14px;
  font-weight: 750;
}

body.course-detail-page .course-detail-access-note,
body.course-detail-page .course-detail-teacher-inline small,
body.course-detail-page .course-detail-teacher-card__profile small {
  font-size: 12.5px;
}

body.course-detail-page .course-detail-preview-overlay strong {
  font-size: 14px;
}

body.course-detail-page .course-detail-preview-overlay small {
  font-size: 12px;
}

body.course-detail-page .course-detail-benefits strong {
  font-size: 13px;
}

body.course-detail-page .course-detail-benefits small {
  font-size: 11.5px;
}

body.course-detail-page .course-detail-tabs a {
  font-size: 14px;
}

body.course-detail-page .course-detail-panel__heading span:not(.course-detail-panel__icon),
body.course-detail-page .course-detail-panel__heading--between > small {
  font-size: 12.5px;
}

body.course-detail-page .course-section summary {
  font-size: 14.5px;
}

body.course-detail-page .course-section__number,
body.course-detail-page .course-section__meta {
  font-size: 12px;
}

body.course-detail-page .course-session-row {
  font-size: 13.5px;
}

body.course-detail-page .course-session-row__free,
body.course-detail-page .course-session-row__duration {
  font-size: 11.5px;
}

body.course-detail-page .course-download-item strong {
  font-size: 13.5px;
}

body.course-detail-page .course-download-item small {
  font-size: 12px;
}

body.course-detail-page .course-detail-text-action {
  font-size: 13px;
}

body.course-detail-page .course-review-card header strong,
body.course-detail-page .course-review-login-box strong {
  font-size: 14px;
}

body.course-detail-page .course-review-card header small,
body.course-detail-page .course-review-rating,
body.course-detail-page .course-review-login-box p,
body.course-detail-page .course-review-login-box > a {
  font-size: 12.5px;
}

body.course-detail-page .course-review-card p {
  font-size: 14px;
  line-height: 1.9;
}

body.course-detail-page .course-review-comment-field textarea {
  font-size: 15px;
}

body.course-detail-page .course-review-inline-status,
body.course-detail-page .course-review-submit {
  font-size: 13.5px;
}

body.course-detail-page .course-detail-purchase-list li,
body.course-detail-page .course-detail-support-card p {
  font-size: 13px;
}

body.course-detail-page .course-related-card small,
body.course-detail-page .course-related-card em {
  font-size: 12px;
}

body.course-detail-page .course-related-card strong {
  font-size: 13.5px;
}

/* ---------- Teachers ---------- */

body.teachers-page .teachers-eyebrow,
body.teachers-page .teachers-kicker {
  font-size: 13px;
}

body.teachers-page .teachers-hero__copy > p {
  font-size: 15.5px;
  line-height: 2;
}

body.teachers-page .teachers-primary-button,
body.teachers-page .teachers-profile-button,
body.teachers-page .teachers-join-card__button {
  font-size: 14px;
  font-weight: 750;
}

body.teachers-page .teachers-hero__community-copy,
body.teachers-page .teachers-hero__experience-note {
  font-size: 13px;
}

body.teachers-page .teachers-hero__brand-note {
  font-size: 12px;
}

body.teachers-page .teachers-featured-badge {
  font-size: 12px;
}

body.teachers-page .teachers-featured-card__headline,
body.teachers-page .teachers-featured-card__bio {
  font-size: 13.5px;
  line-height: 1.85;
}

body.teachers-page .teachers-specialty-list span {
  font-size: 11.5px;
}

body.teachers-page .teachers-stat-box span {
  font-size: 12px;
}

body.teachers-page .teachers-directory__heading p,
body.teachers-page .teachers-search input,
body.teachers-page .teachers-filter-chip {
  font-size: 13px;
}

body.teachers-page .teacher-card-v2__content h3 {
  font-size: 15.5px;
}

body.teachers-page .teacher-card-v2__headline {
  font-size: 12.5px;
}

body.teachers-page .teacher-card-v2__tags span {
  font-size: 11px;
}

body.teachers-page .teacher-card-v2__meta {
  font-size: 11.5px;
}

body.teachers-page .teacher-card-v2__button {
  font-size: 13px;
  font-weight: 750;
}

body.teacher-detail-page .teacher-profile-breadcrumb {
  font-size: 13px;
}

body.teacher-detail-page .teacher-profile-hero__bio {
  font-size: 14.5px;
  line-height: 1.95;
}

body.teacher-detail-page .teacher-profile-stats span,
body.teacher-detail-page .teacher-course-card__meta,
body.teacher-detail-page .teacher-course-card__category {
  font-size: 12px;
}

body.teacher-detail-page .teacher-profile-section-heading > a {
  font-size: 13px;
}

body.teacher-detail-page .teacher-profile-other-card h3 {
  font-size: 15px;
}

body.teacher-detail-page .teacher-profile-other-card p {
  font-size: 12.5px;
}

/* ---------- Articles ---------- */

body.articles-page .articles-page-hero__eyebrow,
body.articles-page .articles-featured-card__badge,
body.articles-page .articles-category-chip {
  font-size: 12.5px;
}

body.articles-page .articles-page-hero p {
  font-size: 15.5px;
  line-height: 2;
}

body.articles-page .articles-page-hero__stats span {
  font-size: 12px;
}

body.articles-page .articles-featured-card__content > p {
  font-size: 14px;
}

body.articles-page .articles-featured-card__meta,
body.articles-page .articles-search input,
body.articles-page .articles-sidebar-categories nav > a {
  font-size: 13px;
}

body.articles-page .articles-featured-card__button,
body.articles-page .articles-clear-filter {
  font-size: 13px;
  font-weight: 750;
}

body.articles-page .articles-popular__item strong {
  font-size: 13.5px;
}

body.articles-page .articles-popular__item small {
  font-size: 11.5px;
}

body.articles-page .articles-content__head p {
  font-size: 13px;
}

body.articles-page .article-list-card__media > span {
  font-size: 11.5px;
}

body.articles-page .article-list-card__body h3 {
  font-size: 16px;
}

body.articles-page .article-list-card__body p {
  font-size: 13.5px;
  line-height: 1.9;
}

body.articles-page .article-list-card__meta {
  font-size: 12px;
}

body.article-detail-page .article-breadcrumb {
  font-size: 13px;
}

body.article-detail-page .article-detail-category {
  font-size: 12.5px;
}

body.article-detail-page .article-detail-hero__content > p,
body.article-detail-page .article-detail-meta {
  font-size: 14px;
}

body.article-detail-page .article-detail-content {
  font-size: 16px;
  line-height: 2.1;
}

body.article-detail-page .article-detail-aside__card p,
body.article-detail-page .article-detail-aside__card a,
body.article-detail-page .article-related-head > a {
  font-size: 13px;
}

/* ---------- Informational pages ---------- */

body.info-page .info-hero__copy > p,
body.info-page .about-story__content p,
body.info-page .legal-section__content,
body.info-page .faq-item__answer,
body.info-page .contact-form p {
  font-size: 15px;
  line-height: 2;
}

body.info-page .contact-method-card__copy small,
body.info-page .contact-form__help,
body.info-page .faq-side__meta span,
body.info-page .legal-section__head small,
body.info-page .info-hero__meta {
  font-size: 12.5px;
}

body.info-page .legal-sidebar__card nav a {
  font-size: 13.5px;
}

body.info-page .legal-sidebar__card nav a > span {
  font-size: 12px;
}

/* ---------- App download page ---------- */

body.app-download-page .app-page-hero__header p,
body.app-download-page .app-page-section-head p,
body.app-download-page .app-page-flow__copy > p {
  font-size: 15.5px;
}

body.app-download-page .app-page-feature-card p,
body.app-download-page .app-page-flow__steps p,
body.app-download-page .app-page-faq details p {
  font-size: 14px;
}

body.app-download-page .app-page-feature-card h3,
body.app-download-page .app-page-flow__steps strong,
body.app-download-page .app-page-faq summary {
  font-size: 15.5px;
}

/* ---------- Auth / simple forms ---------- */

body:not(.account-panel-page) .form-card h1,
body:not(.account-panel-page) .form-card h2 {
  line-height: 1.55;
}

body:not(.account-panel-page) .form-card label {
  font-size: 14px;
}

body:not(.account-panel-page) .form-card :where(
  p,
  .muted,
  .errorlist,
  small
) {
  font-size: 13.5px;
  line-height: 1.85;
}

/* ---------- Mobile balancing ---------- */

@media (max-width: 620px) {
  body:not(.account-panel-page) {
    font-size: 15px;
  }

  body:not(.account-panel-page) :where(input, textarea, select) {
    font-size: 16px;
  }

  body.course-catalog-page .catalog-hero-copy > p {
    font-size: 14.5px;
  }

  body.course-catalog-page .catalog-search input {
    font-size: 14px;
  }

  body.course-catalog-page .topic-label,
  body.course-catalog-page .catalog-topic-scroller a,
  body.course-catalog-page .catalog-category-tabs a {
    font-size: 12px;
  }

  body.course-catalog-page .course-level-badge,
  body.course-catalog-page .course-offer-badge {
    font-size: 10.5px;
  }

  body.course-catalog-page .catalog-course-category {
    font-size: 11px;
  }

  body.course-catalog-page .catalog-course-body h3 {
    font-size: 13.5px;
  }

  body.course-catalog-page .catalog-course-meta {
    font-size: 10px;
  }

  body.course-catalog-page .catalog-course-price strong {
    font-size: 12.5px;
  }

  body.course-catalog-page .catalog-course-price del,
  body.course-catalog-page .course-teacher {
    font-size: 10.5px;
  }

  body.course-catalog-page .catalog-course-cta {
    font-size: 12px;
  }

  body.home-page .hero-lead,
  body.teachers-page .teachers-hero__copy > p,
  body.articles-page .articles-page-hero p {
    font-size: 14.5px;
  }

  body.article-detail-page .article-detail-content {
    font-size: 15.5px;
  }
}

/* iOS zooms the viewport when a focused form control computes below 16px.
   Use input capability instead of viewport width so landscape phones and
   tablets receive the same stable typing experience. */
@media (hover: none) and (pointer: coarse) {
  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}
