/* JDM brand typography. Only font families change; layout and icon fonts are preserved. */
:root,
.editor-styles-wrapper {
  --jdm-font-heading: "myriad-pro", "Myriad Pro", sans-serif;
  --jdm-font-content: "minion-pro", "Minion Pro", serif;
  --wp--preset--font-family--heading: var(--jdm-font-heading);
  --wp--preset--font-family--body: var(--jdm-font-content);
}
body:not(.wp-admin),
.wp-site-blocks,
.editor-styles-wrapper,
body.enclave-desktop-mode,
#ef-app[id="ef-app"],
dialog.enclave-installer-dialog {
  font-family: var(--jdm-font-content);
}
/* Explicit content blocks override legacy page and form typography. */
:where(.wp-site-blocks, .editor-styles-wrapper) :is(p, li, dd, blockquote, figcaption, td, input, select, textarea),
#ef-app[id="ef-app"] :is(p, dd, td, input, select, textarea, .ef-part-copy, .ef-stock),
dialog.enclave-installer-dialog p {
  font-family: var(--jdm-font-content) !important;
}
/* Headings and navigation/controls use the matching sans family. */
:where(.wp-site-blocks, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6, button, .wp-element-button, .wp-block-button__link, .wp-block-navigation, .wp-block-navigation-item, .wp-block-site-title),
.jdm-header .wp-block-navigation,
#ef-app[id="ef-app"] :is(h1, h2, h3, h4, h5, h6, button, label, dt, th, legend, summary, .ef-brand, .ef-eyebrow, .ef-sku, .enclave-download-actions),
#ef-app[id="ef-app"] .ef-actions > :is(a, span),
#ef-app[id="ef-app"] #ef-detail-body > a,
#ef-app[id="ef-app"] .ef-build-documents a,
.enclave-live-status,
dialog.enclave-installer-dialog :is(h2, button, a.enclave-installer-download) {
  font-family: var(--jdm-font-heading) !important;
}
/* Preserve existing preset-based blocks and stop old inline font choices persisting. */
.has-body-font-family { font-family: var(--jdm-font-content) !important; }
.has-heading-font-family { font-family: var(--jdm-font-heading) !important; }
