/*
 * Rongjing / AERECH Typography System V1.0
 * Global semantic baseline. Loaded after legacy page styles.
 * Layout, spacing, imagery, backgrounds and interaction are intentionally untouched.
 */
:root{
  --aerech-font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  --aerech-font-hero:44px;
  --aerech-font-h2:32px;
  --aerech-font-h3:21px;
  --aerech-font-card-title:16px;
  --aerech-font-body:14px;
  --aerech-font-table:13px;
  --aerech-font-faq:16px;
  --aerech-font-caption:12px;
  --aerech-font-footer:13px;
  --aerech-line-heading:1.12;
  --aerech-line-body:1.7;
  --aerech-text-heading:#10233e;
  --aerech-text-body:#51627a;
}

html,body,button,input,textarea,select,table{font-family:var(--aerech-font-family)}
body{font-size:var(--aerech-font-body);line-height:var(--aerech-line-body)}

/* Homepage hero and final product-detail names remain approved exceptions. */
body:not(.home):not(.single-aerech_series) main h1{
  font-size:var(--aerech-font-hero)!important;
  font-weight:800!important;
  line-height:1.06!important;
}

/* Ordinary section titles; card headings are reset below. */
main h2,
main .section-title{
  font-size:var(--aerech-font-h2)!important;
  font-weight:800!important;
  line-height:var(--aerech-line-heading)!important;
}

main h3{
  font-size:var(--aerech-font-h3)!important;
  font-weight:700!important;
  line-height:1.25!important;
}

/* Cards use one compact title scale regardless of their legacy template. */
main article h2,main article h3,
main [class*="card"] h2,main [class*="card"] h3,
main [class*="tile"] h2,main [class*="tile"] h3{
  font-size:var(--aerech-font-card-title)!important;
  font-weight:700!important;
  line-height:1.35!important;
}

/* Body copy is kept readable without changing component geometry. */
body:not(.home) main p,
body:not(.home) main li{
  font-size:var(--aerech-font-body)!important;
  font-weight:400!important;
  line-height:var(--aerech-line-body)!important;
}

/* Product-detail hero descriptions are intentionally one step stronger. */
.aerech-detail-view__hero-copy>p{
  font-size:16px!important;
  font-weight:600!important;
  line-height:1.65!important;
}

/* Tables and technical data. */
main table,main table th,main table td{
  font-family:var(--aerech-font-family);
  font-size:var(--aerech-font-table)!important;
  line-height:1.55!important;
}
main table th{font-weight:700!important}
main table td{font-weight:400!important}

/* FAQ/question controls. */
main details summary,
main [class*="faq"] summary,
main [class*="faq"] button{
  font-family:var(--aerech-font-family);
  font-size:var(--aerech-font-faq)!important;
  font-weight:700!important;
  line-height:1.5!important;
}

/* Captions, metadata and labels remain secondary but never microscopic. */
main .eyebrow,main figcaption,main caption,
main [class*="caption"],main [class*="meta-label"],
main [class*="breadcrumb"],main .kicker{
  font-size:var(--aerech-font-caption)!important;
  line-height:1.5!important;
}

/* Forms inherit the same body scale. */
main form label{font-size:14px!important;font-weight:700!important;line-height:1.45!important}
main form input,main form textarea,main form select{font-size:15px!important;line-height:1.55!important}
main form button{font-size:14px!important;font-weight:700!important}
main form [class*="help"],main form [class*="privacy"],main form .submit-row p{font-size:12px!important;line-height:1.6!important}

/* Footer remains compact but readable. */
footer,footer p,footer a,footer li{font-size:var(--aerech-font-footer)!important;line-height:1.8!important}
footer h4{font-size:12px!important;font-weight:700!important;line-height:1.5!important}
footer .footer-bottom,footer [class*="copyright"],footer [class*="legal"]{font-size:12px!important;line-height:1.65!important}

@media(max-width:767px){
  :root{
    --aerech-font-hero:34px;
    --aerech-font-h2:26px;
    --aerech-font-h3:19px;
    --aerech-font-card-title:16px;
    --aerech-font-body:14px;
    --aerech-font-table:13px;
    --aerech-font-faq:15px;
    --aerech-font-caption:12px;
    --aerech-font-footer:12px;
  }
  body:not(.home):not(.single-aerech_series) main h1{line-height:1.08!important}
  body:not(.home) main p,body:not(.home) main li{font-size:14px!important;line-height:1.7!important}
  main form input,main form textarea,main form select{font-size:16px!important}
}
