/* Public website typography tokens. Load after page styles.
   Important declarations intentionally prevent legacy page-specific font sizes
   and media queries from overriding this shared typography contract.
   Dashboard/phone mockups retain their illustration-scale typography. */
:root {
  --font-family-base: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-size-caption: 11px;
  --font-size-small: 12px;
  --font-size-body: 14px;
  --font-size-lead: 16px;
  --font-size-card: 20px;
  --font-size-section: 28px;
  --font-size-title: 40px;
  --font-size-metric: 32px;
  --font-size-nav: 14px;
  --font-size-button: 14px;
  --font-weight-body: 400;
  --font-weight-medium: 500;
  --font-weight-heading: 700;
  --line-height-title: 1.3;
  --line-height-heading: 1.5;
  --line-height-body: 1.8;
  --line-height-control: 1.5;
}
body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}
/* Page headings, section headings and content cards share one hierarchy. */
main h1 {
  font-size: var(--font-size-title) !important;
  font-weight: var(--font-weight-heading) !important;
  line-height: var(--line-height-title) !important;
}
main h2, dialog h2 {
  font-size: var(--font-size-section) !important;
  font-weight: var(--font-weight-heading) !important;
  line-height: var(--line-height-heading) !important;
}
main h3:where(:not(.dashboard *, .phone *)), dialog h3 {
  font-size: var(--font-size-card) !important;
  line-height: var(--line-height-heading) !important;
  font-weight: var(--font-weight-medium) !important;
}
main :where(p:not(.dashboard *, .phone *, .news-art *, .hero-signature)), dialog :where(p),
main :where(label, input, select, textarea), .news-body {
  font-size: var(--font-size-body) !important;
  line-height: var(--line-height-body) !important;
}
main :is(.hero-description, .section-description, .news-hero-description,
  .services-hero-inner > p:not(.eyebrow), .contact-hero-inner > p:not(.eyebrow),
  .page-hero > p) {
  font-size: var(--font-size-lead) !important;
}
main :is(.eyebrow, .news-eyebrow, .case-kicker, .solution-index) {
  font-size: var(--font-size-caption) !important;
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-control) !important;
}
main :is(.image-note, .client-disclaimer, .corner-note, .contact-note,
  .mission-aside, .news-count, .stats p, .team-grid p, .timeline p,
  .news-card-meta, .industry-tag, .delivery-type),
main small:not(.dashboard *, .phone *, .news-art *),
main :is(.service-tags, .feature-tags) span {
  font-size: var(--font-size-small) !important;
  line-height: var(--line-height-control) !important;
}
/* Compact labels are not section/card titles. */
main :is(.stats h3, .timeline h3, .process-steps h3, .filter-group h3) {
  font-size: var(--font-size-body) !important;
}
main :is(.stats strong, .hero-facts strong, .service-stat strong, .case-metrics b) {
  font-size: var(--font-size-metric) !important;
  line-height: var(--line-height-title) !important;
}
:is(main, dialog) :is(.button, .btn-primary, .btn-secondary, .btn-full,
  .meta-link, .text-link, .news-tabs button, .industry-button, .faq summary) {
  font-size: var(--font-size-button) !important;
  line-height: var(--line-height-control) !important;
  font-weight: var(--font-weight-medium) !important;
}
.zr-header__links a { font-size: var(--font-size-nav) !important; }
.zr-header__cta { font-size: var(--font-size-button) !important; }
:is(.site-footer, .footer) :is(p, a:not(.brand), .footer-bottom) {
  font-size: var(--font-size-small) !important;
  line-height: var(--line-height-body) !important;
}
@media (max-width:650px) {
  :root {
    --font-size-title: 32px;
    --font-size-section: 24px;
    --font-size-card: 18px;
    --font-size-lead: 14px;
    --font-size-metric: 28px;
  }
}
