/*
 * Shared public type scale. Role hooks are server-rendered; component selectors
 * cover forms/validation/confirmations also created after the first response.
 * Only size and line-height are standardized; existing font families, weights,
 * colors, spacing, visibility and display-statistic artwork remain authored.
 */
:root {
  --lmc-type-support:14px;
  --lmc-type-body:16px;
  --lmc-type-lead:18px;
  --lmc-type-card:24px;
  --lmc-type-section:40px;
  --lmc-type-page:56px;
  --lmc-leading-support:1.5;
  --lmc-leading-body:1.5;
  --lmc-leading-lead:1.6;
  --lmc-leading-card:1.3;
  --lmc-leading-section:1.2;
  --lmc-leading-page:1.1;
}
@media (max-width:1023px) {
  :root { --lmc-type-section:32px; --lmc-type-page:40px; }
}
@media (max-width:767px) {
  :root { --lmc-type-card:20px; --lmc-type-section:28px; --lmc-type-page:32px; }
}

/* The inert ID in :not supplies enough specificity for the calculator's scoped
 * reset and late Elementor atomic !important rules, without changing their order.
 * No universal descendant reset: each normal-flow text fragment has its own hook.
 */
:root:root:root [data-lmc-type]:not([data-lmc-type="display"]):not(#lmc-type-priority) {
  font-size:var(--lmc-role-size) !important;
  line-height:var(--lmc-role-leading) !important;
}
[data-lmc-type="support"] { --lmc-role-size:var(--lmc-type-support); --lmc-role-leading:var(--lmc-leading-support); }
[data-lmc-type="body"], [data-lmc-type="action"] { --lmc-role-size:var(--lmc-type-body); --lmc-role-leading:var(--lmc-leading-body); }
[data-lmc-type="lead"] { --lmc-role-size:var(--lmc-type-lead); --lmc-role-leading:var(--lmc-leading-lead); }
[data-lmc-type="card"], [data-lmc-type="contact"] { --lmc-role-size:var(--lmc-type-card); --lmc-role-leading:var(--lmc-leading-card); }
[data-lmc-type="section"] { --lmc-role-size:var(--lmc-type-section); --lmc-role-leading:var(--lmc-leading-section); }
[data-lmc-type="page"] { --lmc-role-size:var(--lmc-type-page); --lmc-role-leading:var(--lmc-leading-page); }

/* One contact value weight for both phone and email, including inline fragments.
 * min-width and anywhere allow an unbroken address to wrap in a narrow flex card.
 * No truncation, viewport/text-length shrinking, or changes to the card's grid. */
:root:root:root [data-lmc-type="contact"]:not(#lmc-type-priority) {
  font-weight:600 !important;
  min-width:0; max-width:100%;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  text-overflow:clip !important;
}

/* Form states have semantic classes rather than Elementor classes. Use the
 * same tokens for initial markup, AJAX errors, summaries and confirmation UI. */
:root:root:root :is(.lmc-lf,.lmc-lead-form,.lmc-contact-form,.lmc-guide-form,.lmc-calc):not(#lmc-type-priority)
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select,textarea,.nf-choice-option,.nf-ticket-address,.nf-next strong,.nf-ref-copy,.lmc-lf-option,.lmc-lf-radio) {
  font-size:var(--lmc-type-body) !important; line-height:var(--lmc-leading-body) !important;
}
:root:root:root :is(.lmc-lf,.lmc-lead-form,.lmc-contact-form,.lmc-guide-form,.lmc-calc):not(#lmc-type-priority)
  :where(label,legend,.gfield_description,.gfield_validation_message,.gform_validation_errors,.gform_validation_errors h2,.gfield_required,.lmc-lf-eyebrow,.lmc-lf-badge,.lmc-lf-legend,.lmc-lf-summary,.lmc-lf-summary-note,.lmc-lf-terms-summary-title,.lmc-lf-terms-summary-note,.lmc-lf-hint,.lmc-lf-error,.lmc-lf-server-error,.lmc-lf-addr-attribution,.lmc-lf-addr-options li,.nf-label,.nf-form-hint,.nf-field-hint,.nf-field-error,.nf-sheet-kicker,.nf-rail li,.nf-adorn,.nf-deal-desc,.nf-flow-review dt,.nf-response,.nf-ticket-type,.nf-next li,.nf-receipt-list dt,.nf-receipt-list dd span,.nf-receipt-foot,.nf-side-label,.nf-side-hint,.nf-ref code,.nf-tray-note,.nf-caution-guide,.nf-google-attribution) {
  font-size:var(--lmc-type-support) !important; line-height:var(--lmc-leading-support) !important;
}
:root:root:root .lmc-calc:not(#lmc-type-priority) :is(.nf-rail li,.nf-next li)::before {
  font-size:var(--lmc-type-support) !important; line-height:var(--lmc-leading-support) !important;
}
:root:root:root :is(.lmc-lf-h2,.lmc-lf-continue h2,.lmc-guide-done-title,.nf-sheet-title,.nf-section-title):not(#lmc-type-priority) {
  font-size:var(--lmc-type-card) !important; line-height:var(--lmc-leading-card) !important;
}
:root:root:root .lmc-calc:not(#lmc-type-priority) :is(.nf-legend,.nf-dealtype-q,.nf-deal-name,.nf-entity-heading,.nf-next-title,.nf-receipt-lede) {
  font-size:var(--lmc-type-lead) !important; line-height:var(--lmc-leading-lead) !important;
}
:root:root:root :is(.nf-flow-review dd,.nf-receipt-list dd,.nf-contact a,.lmc-guide-done-text,.lmc-lf-continue p):not(#lmc-type-priority) {
  font-size:var(--lmc-type-body) !important; line-height:var(--lmc-leading-body) !important;
}
/* These components are enhanced client-side too, so their descendants must
 * inherit the role even when the initial HTML parser never sees them. */
:root:root:root :is(.lmc-lf-option-title,.lmc-lf-option-desc,.nf-response p,.lmc-lf-consent span,.nf-consent span):not(#lmc-type-priority) {
  font-size:inherit !important; line-height:inherit !important;
}
/* Choice labels are interactive values, not supporting field labels. */
:root:root:root :is(.lmc-lf,.lmc-calc):not(#lmc-type-priority)
  :is(label.lmc-lf-option,label.lmc-lf-radio,label.nf-choice-option) {
  font-size:var(--lmc-type-body) !important; line-height:var(--lmc-leading-body) !important;
}
/* Enhancement-created navigation/map labels use these existing semantic hooks. */
:root:root:root .lmc-mnav-link:not(#lmc-type-priority) {
  font-size:var(--lmc-type-body) !important; line-height:var(--lmc-leading-body) !important;
}
:root:root:root [data-lmc-map-label]:not(#lmc-type-priority) {
  font-size:var(--lmc-type-support) !important; line-height:var(--lmc-leading-support) !important;
}
