/* Mingyuan redesigned sections follow the legacy heading and reading scale. */
body:is(.myv2-desktop, .myv2-mobile) {
  --myv2-type-section: 34px;
  --myv2-type-subheading: 23px;
  --myv2-type-card: 18px;
  --myv2-type-body: 16px;
  --myv2-type-support: 14px;
  --myv2-type-action: 14px;
  --myv2-type-label: 13px;
  --myv2-type-field: 15px;
}

body.myv2-mobile {
  --myv2-type-section: 26px;
  --myv2-type-subheading: 21px;
  --myv2-type-card: 16px;
  --myv2-type-body: 15px;
  --myv2-type-support: 14px;
  --myv2-type-action: 13px;
  --myv2-type-label: 12px;
  --myv2-type-field: 16px;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-heading h2, .myv2-inner-heading h2, .myv2-inner-consult-copy h2,
  .myv2-usecase-detail-article > h2
) {
  font-size: var(--myv2-type-section);
  line-height: 1.2;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-path-copy h3, .myv2-inner-list-head h2,
  .myv2-inner-coffee-types h3, .myv2-inner-route-pair h3
) {
  font-size: var(--myv2-type-subheading);
  line-height: 1.3;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-route-label h3, .myv2-route-copy h3, .myv2-step strong,
  .myv2-inner-decision-grid h3, .myv2-inner-product h3, .myv2-inner-sidebar > h2,
  .myv2-product-related summary h3,
  .myv2-inner-process h3, .myv2-inner-consult-point h3,
  .myv2-usecase-equipment-link strong, .myv2-usecase-detail-machine h3,
  .myv2-application .myv2-app-gallery h3, .myv2-application .myv2-app-process h3,
  .myv2-application .myv2-app-cases h3
) {
  font-size: var(--myv2-type-card);
  line-height: 1.35;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-heading p, .myv2-hero p, .myv2-path-copy > p:not(.myv2-path-note),
  .myv2-inner-heading p, .myv2-inner-hero-copy > p, .myv2-inner-consult-copy > p,
  .myv2-consult-copy > p, .myv2-inquiry-panel > p,
  .myv2-application .myv2-app-cms-content, .myv2-usecase-content,
  .myv2-usecase-detail-body
) {
  font-size: var(--myv2-type-body);
  line-height: 1.65;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-route-copy p, .myv2-step p, .myv2-inner-decision-grid p,
  .myv2-inner-sidebar-help p, .myv2-inner-product dl, .myv2-product-page .myv2-product-extra-specs,
  .myv2-product-highlights, .myv2-inner-checks li, .myv2-inner-condition-strip strong,
  .myv2-product-page .myv2-guidance-copy strong, .myv2-inner-process p,
  .myv2-inner-solution-card p, .myv2-inner-coffee-types p, .myv2-inner-route-pair p,
  .myv2-inner-consult-point p, .myv2-consult-points > div,
  .myv2-usecase-card p, .myv2-usecase-detail-banner p, .myv2-usecase-detail-help p,
  .myv2-application .myv2-app-process p, .myv2-application .myv2-app-cases p,
  .myv2-application .myv2-app-faq details > div, .myv2-inner-faq details > p,
  .myv2-faq details p, .myv2-inner-table-scroll table
) {
  font-size: var(--myv2-type-support);
  line-height: 1.55;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-button, .myv2-text-link, .myv2-route-label > a, .myv2-route-links a,
  .myv2-path-tabs button, .myv2-hot .myv2-hot-tabs button,
  .myv2-inner-btn, .myv2-inner-sidebar nav > a, .myv2-inner-product-actions,
  .myv2-inner .myv2-inner-product-actions .myv2-product-catalog,
  .myv2-product-page .myv2-product-series nav > a, .myv2-product-related-content a,
  .myv2-product-page .myv2-guidance-action, .myv2-inner-link-grid a,
  .myv2-usecase-nav a, .myv2-usecase-card-actions, .myv2-usecase-detail-directory a,
  .myv2-usecase-detail-text-link, .myv2-usecase-detail-machine-actions,
  .myv2-inner-faq summary, .myv2-faq summary, .myv2-application .myv2-app-faq summary
) {
  font-size: var(--myv2-type-action);
  line-height: 1.45;
}

body:is(.myv2-desktop, .myv2-mobile) :is(
  .myv2-kicker, .myv2-inner-kicker, .myv2-inner-breadcrumb, .myv2-inner-hero-art > span,
  .myv2-inner-list-head p, .myv2-inner-condition-strip span,
  .myv2-product-page .myv2-guidance-copy > span:first-child, .myv2-inner-footnote,
  .myv2-inner-form label, .myv2-form label, .myv2-form small,
  .myv2-inquiry-panel .myv2-inner-preview-note,
  .myv2-usecase-equipment-link > span, .myv2-usecase-detail-cover figcaption,
  .myv2-usecase-detail-meta
) {
  font-size: var(--myv2-type-label);
  line-height: 1.5;
}

body:is(.myv2-desktop, .myv2-mobile) :is(.myv2-inner-form, .myv2-form) :is(input, select, textarea),
body:is(.myv2-desktop, .myv2-mobile) .myv2-inquiry-panel :is(.myv2-inner-form, .myv2-form) :is(input, select, textarea) {
  font-size: var(--myv2-type-field);
  line-height: 1.4;
}
