/* Main-site type scale. Loaded after page styles, including the blog. */
body.ed-native {
  --ed-text-size: 16px;
  --ed-text-leading: 1.5625; /* 25px at 16px; scales with enlarged text. */
  --ed-small-size: 14px;
  --ed-small-leading: 1.5;
  font-size: var(--ed-text-size);
  line-height: var(--ed-text-leading);
}

/* Prose shares one measure in introductions, cards, lists and articles. */
body.ed-native #main,
body.ed-native #main :is(p, ul, ol, li, dl, dt, dd, blockquote),
body.ed-native #main :is(.ee-prose, .el-prose, .eg-blog-card, .eg-blog-note,
  .eg-blog-warning, .eg-blog-success, .eg-blog-formula, .eg-blog-lead,
  .buying-media-bottom, .assessment-formula, .ec-requisites-data) {
  font-size: var(--ed-text-size);
  line-height: var(--ed-text-leading);
}
body.ed-native #main :is(p, li, dt, dd, blockquote) :is(strong, b, em) {
  line-height: inherit;
}
body.ed-native #main.ee-reading-page {
  --ee-reading-size: var(--ed-text-size);
  --ee-reading-leading: var(--ed-text-leading);
}

/* Preserve the responsive heading sizes, with a predictable vertical rhythm. */
body.ed-native #main h1 { line-height: 1.18; }
body.ed-native #main h2 { line-height: 1.25; }
body.ed-native #main h3,
body.ed-native #main .eg-blog-card-title { line-height: 1.3; }
body.ed-native #main :is(h4, h5, h6) { line-height: 1.4; }
body.ed-native #main :is(.faq-list, .eg-blog-faq) summary {
  font-size: var(--ed-text-size);
  line-height: var(--ed-text-leading);
}

/* Supporting labels remain smaller than the main reading text. */
body.ed-native #main :is(.hero-price-context, .price-foot p, .calculator-footnote,
  .buying-calculation-equation, .calc-rate, .address-detail, .part-source,
  .part-offer-note, .part-docs-note, .part-condition-note, .part-estimate-note,
  .catalog-process-note, .catalog-item-specs, .ee-small, .ec-phone-caption,
  .ec-form-note, .ec-status, .form-preview-note, .eg-blog-sources p,
  .eg-blog-sources li, figcaption) {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native #main :is(.eyebrow, .eg-blog-eyebrow, .ee-eyebrow) {
  font-size: 11px;
  line-height: 1.5;
}
body.ed-native #main :is(.breadcrumbs, .breadcrumbs li, .part-breadcrumbs,
  .part-breadcrumbs li, .price-stamp, .catalog-snapshot) {
  font-size: 12px;
  line-height: 1.5;
}
body.ed-native #main :is(.ee-meta, .ee-publication-dates, .ee-author-link,
  .ee-card-meta, .ee-toc-title, .ee-toc-count) { line-height: 1.5; }
body.ed-native #main :is(.hero-benefits, .hero-benefits li, .page-nav,
  .part-section-nav nav, .catalog-sidebar nav, .catalog-sidebar nav li,
  .ee-toc-links, .ee-toc-links a) {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native #main .ee-mobile-toc > summary {
  font-size: var(--ed-small-size);
  line-height: 1.5;
}
body.ed-native #main .ee-mobile-toc > summary::after {
  font-size: 20px;
  line-height: 1;
}
body.ed-native #main .eg-blog-faq summary::after { line-height: 1; }

/* Data is readable without inflating large prices or calculator results. */
body.ed-native #main :is(table, td),
body.ed-native #main .buying-price-table [data-select-probe] {
  font-size: var(--ed-text-size);
  line-height: var(--ed-text-leading);
}
body.ed-native #main th {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native #main :is(td, th) small,
body.ed-native #main :is(.history-data td, .history-data th) {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native #main :is(.hero-metal-price strong, .price-detail strong,
  .part-price strong, .calc-result output, .history-summary strong,
  .catalog-card-price strong, .radio-result-price strong) { line-height: 1.25; }

/* Forms and controls retain their touch-target heights. */
body.ed-native :is(#main, dialog) :is(label, legend),
body.ed-native :is(#main, dialog) :is(.consent, .ec-consent, .eglf-consent) {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native :is(#main, dialog) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea) {
  font-size: var(--ed-text-size);
  line-height: var(--ed-text-leading);
}
body.ed-native :is(#main, dialog) :is(.button, button[type=submit]) {
  font-size: 15px;
  line-height: 1.5;
}
body.ed-native :is(#main, dialog) :is(.text-link, .text-button,
  .customer-toggle button, .history-periods button, .catalog-groups button,
  .catalog-details, .part-presets button) {
  font-size: var(--ed-small-size);
  line-height: var(--ed-small-leading);
}
body.ed-native dialog { font-size: var(--ed-text-size); line-height: var(--ed-text-leading); }
body.ed-native dialog[class] p { font-size: var(--ed-text-size); line-height: var(--ed-text-leading); }
body.ed-native dialog :is(h2, h3) { line-height: 1.25; }
body.ed-native dialog :is(.form-preview-note, .consent) { font-size: 14px; line-height: 1.5; }
body.ed-native .estimate-dialog .contact-hint { font-size: 14px; line-height: 1.5; }

/* Native site chrome uses the same compact supporting-text rhythm. */
body.ed-native #header :is(.menu, .menu a, .ct-button),
body.ed-native #offcanvas :is(.menu, .menu a),
body.ed-native #footer :is(nav, nav a, .footer-directions, .footer-directions a) {
  line-height: 1.5;
}
body.ed-native #footer :is(.footer-bottom, .footer-bottom p, .footer-bottom div) {
  font-size: 13px;
  line-height: 1.5;
}
