/* A235: shared UI typography. Load before any other author layer.
 * Earlier layers win for !important declarations; legacy flat rules use them.
 * Only typography is changed. Code, icon glyphs and rich-text editing are exempt. */
@layer velora-typography {
  :root {
    --velora-font-ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --velora-font-code: ui-monospace, SFMono-Regular, Consolas, monospace;
    --velora-weight-title: 800;
    --velora-weight-heading: 700;
    --velora-weight-control: 600;
    --flat-font: var(--velora-font-ui) !important;
    --v-font: var(--velora-font-ui) !important;
    --ui-body-font: var(--velora-font-ui) !important;
    --nova-font: var(--velora-font-ui) !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body) {
    font-family: var(--velora-font-ui) !important;
    font-weight: 400 !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(*):not(:where(svg, svg *, math, math *, i, .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .material-icons, .material-symbols-outlined, [data-icon-font], [data-icon-font] *, code, pre, kbd, samp, .code, [data-code], [data-record-id], pre *, code *, .code *, [data-code] *, [contenteditable], [contenteditable] *, .jodit-container, .jodit-container *, .velora-jodit-source-only textarea, [data-cms-source], [data-rich-html-source])) {
    font-family: var(--velora-font-ui) !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(code, pre, kbd, samp, .code, [data-code], [data-record-id], pre *, code *, .code *, [data-code] *, .velora-jodit-source-only textarea, [data-cms-source], [data-rich-html-source]) {
    font-family: var(--velora-font-code) !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(h1, .page-title, .hero-title, .control-title, .admin-page-title, [role="heading"][aria-level="1"]):not(:where([contenteditable] *, .jodit-container *)) {
    font-weight: var(--velora-weight-title) !important;
    letter-spacing: -.02em !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(h2, h3, h4, h5, h6, [role="heading"]:not([aria-level="1"]), .card-title, .section-title, .panel-title, .news-title, .product-title, .offer-title, .widget-title, .pumpkin-theme-menu-title, .admin-a83-nav-title > span, .admin-setting-finder-title strong):not(:where([contenteditable] *, .jodit-container *)) {
    font-weight: var(--velora-weight-heading) !important;
    letter-spacing: -.01em !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(button, .primary-btn, .ghost-btn, .velora-btn, [role="button"]):not(:where([contenteditable] *, .jodit-container *)) {
    font-weight: var(--velora-weight-control) !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(.primary-btn, .velora-btn, button[type="submit"]):not(:where([contenteditable] *, .jodit-container *)) {
    font-weight: var(--velora-weight-heading) !important;
  }
  :where(body.public-body, body.admin-modern, body.admin-body, body.admin-login-body)
    :where(h1,h2,h3,h4,h5,h6,.page-title,.hero-title,.card-title,.section-title,.panel-title,.news-title,.product-title,.offer-title) > :where(a,span,strong,b):not(:where([contenteditable] *, .jodit-container *)) {
    font-weight: inherit !important;
  }
}
