/* Central type scale. Never target icon pseudo-elements, gallery controls or
 * the approved product card hierarchy. Each scope can be disabled separately. */
body.lsd-design {
  --lsd-type-body: var(--lsd-body-size);
  --lsd-type-lead: var(--lsd-lead-size);
  --lsd-type-widget: var(--lsd-widget-size);
  --lsd-type-widget-heading: var(--lsd-widget-heading);
  --lsd-type-nav: var(--lsd-nav-size);
  --lsd-type-h1: var(--lsd-h1-size);
  --lsd-type-h2: var(--lsd-h2-size);
  --lsd-type-h3: var(--lsd-h3-size);
  --lsd-type-h4: var(--lsd-h4-size);
  --lsd-type-h5: var(--lsd-h5-size);
  --lsd-type-h6: var(--lsd-h6-size);
}
body.lsd-type-content-enabled #primary {
  font-family: var(--lsd-font);
  font-size: var(--lsd-type-body);
  line-height: var(--lsd-body-line);
}
body.lsd-type-content-enabled #primary :is(.entry-content, .entry-summary:not(.summary), .page-description, .term-description, .woocommerce-Tabs-panel) :is(p, li, dt, dd, td, th):not(.lsd-card *):not(#ls-bf *) {
  font-family: var(--lsd-font) !important;
  font-size: var(--lsd-type-body) !important;
  line-height: var(--lsd-body-line) !important;
}
body.lsd-type-content-enabled #primary :is(.entry-content, .entry-summary:not(.summary), .page-description, .term-description, .woocommerce-Tabs-panel) p:not(.lsd-card *):not(#ls-bf *) {
  margin-top: 0;
  margin-bottom: var(--lsd-paragraph-gap);
  text-align: start;
}
body.lsd-type-content-enabled #primary .entry-content :is(p.has-large-font-size, p.lsd-lead):not(.lsd-card *):not(#ls-bf *) {
  font-size: var(--lsd-type-lead) !important;
  font-weight: 400;
}
body.lsd-type-content-enabled #primary :is(h1,h2,h3,h4,h5,h6):not(.lsd-card *):not(.product_title):not(.woocommerce-loop-category__title):not(#ls-bf *) {
  font-family: var(--lsd-font) !important;
  font-weight: var(--lsd-heading-weight) !important;
  line-height: var(--lsd-heading-line) !important;
  letter-spacing: normal;
  overflow-wrap: break-word;
}
body.lsd-type-content-enabled #primary h1:not(.lsd-card *):not(.product_title):not(#ls-bf *) { font-size: var(--lsd-type-h1) !important; }
body.lsd-type-content-enabled #primary h2:not(.lsd-card *):not(.woocommerce-loop-category__title):not(#ls-bf *) { font-size: var(--lsd-type-h2) !important; }
body.lsd-type-content-enabled #primary h3:not(.lsd-card *):not(#ls-bf *) { font-size: var(--lsd-type-h3) !important; }
body.lsd-type-content-enabled #primary h4:not(.lsd-card *):not(#ls-bf *) { font-size: var(--lsd-type-h4) !important; }
body.lsd-type-content-enabled #primary h5:not(.lsd-card *):not(#ls-bf *) { font-size: var(--lsd-type-h5) !important; }
body.lsd-type-content-enabled #primary h6:not(.lsd-card *):not(#ls-bf *) { font-size: var(--lsd-type-h6) !important; }
body.lsd-type-content-enabled #primary .entry-content :is(h1,h2,h3,h4,h5,h6):not(.lsd-card *):not(#ls-bf *) {
  margin-top: var(--lsd-heading-gap) !important;
  margin-bottom: 16px;
}
/* Limit single-post reading width; align with breadcrumbs and post navigation. */
body.single-post.lsd-type-content-enabled.lsd-reading-width #primary article > :is(.entry-header, .entry-content, .entry-footer) {
  max-width: var(--lsd-reading-width);
  margin-inline: 0;
  float: none;
  width: 100%;
  box-sizing: border-box;
}
body.lsd-type-content-enabled #primary :is(.entry-meta, .cat-links, .tags-links, .posted-on, .byline, figcaption, .wp-caption-text) {
  font-family: var(--lsd-font) !important;
  font-size: var(--lsd-meta-size) !important;
  line-height: 1.5;
  font-weight: 400;
}
body.lsd-type-content-enabled #primary .entry-content a:not(.lsd-card *):not(.button):not(.wp-element-button):not(.wp-block-button__link):not(:has(img)):not(#ls-bf *) {
  text-decoration: underline;
  text-underline-offset: .15em;
}
body.lsd-type-widgets-enabled :is(#secondary, .site-footer),
body.lsd-type-widgets-enabled :is(#secondary, .site-footer) :is(p,li,a,label):not(.social *):not([class*="fa-"]):not(.lsd-card *) {
  font-family: var(--lsd-font);
  font-size: var(--lsd-type-widget);
  line-height: var(--lsd-body-line);
}
body.lsd-type-widgets-enabled :is(#secondary, .site-footer) :is(li,a):not(.lsd-card *) { font-weight: 400; }
body.lsd-type-widgets-enabled :is(#secondary, .site-footer) :is(h1,h2,h3,h4,h5,h6,.widget-title,.widgettitle) {
  font-family: var(--lsd-font) !important;
  font-size: var(--lsd-type-widget-heading) !important;
  font-weight: var(--lsd-heading-weight) !important;
  line-height: var(--lsd-heading-line);
}
body.lsd-type-forms-enabled #page :is(input,select,textarea,button,.button,.wp-element-button,.wp-block-button__link):not(.lsd-card *):not(.dropdown-toggle):not(.woocommerce-product-gallery__trigger):not(.flex-direction-nav *) {
  font-family: var(--lsd-font);
  font-size: var(--lsd-form-size);
  line-height: 1.5;
}
body.lsd-type-forms-enabled #page :is(button,.button,.wp-element-button,.wp-block-button__link):not(.lsd-card *):not(.dropdown-toggle) { font-weight: 600; }
@media (max-width: 767px) {
  body.lsd-design {
    --lsd-type-body: var(--lsd-body-mobile);
    --lsd-type-lead: var(--lsd-lead-mobile);
    --lsd-type-widget: var(--lsd-widget-mobile);
    --lsd-type-widget-heading: var(--lsd-widget-heading-mobile);
    --lsd-type-nav: var(--lsd-nav-mobile);
    --lsd-type-h1: var(--lsd-h1-mobile);
    --lsd-type-h2: var(--lsd-h2-mobile);
    --lsd-type-h3: var(--lsd-h3-mobile);
    --lsd-type-h4: var(--lsd-h4-mobile);
    --lsd-type-h5: var(--lsd-h5-mobile);
    --lsd-type-h6: var(--lsd-h6-mobile);
  }
}

/* Block flow adds 24px between recent-post entries. Use the same continuous
 * line rhythm as the category links in the text widget below. */
body.lsd-type-widgets-enabled #secondary :is(.widget_recent_entries ul, .wp-block-latest-posts:not(.is-grid)) {
  row-gap: 0;
}
body.lsd-type-widgets-enabled #secondary :is(.widget_recent_entries li, .wp-block-latest-posts:not(.is-grid) > li) {
  margin-block: 0 !important;
  padding-block: 0;
  line-height: var(--lsd-body-line);
}
/* Notices can be siblings of #primary, or inserted by WooCommerce after AJAX.
 * Cover their native roots without replacing messages, roles or icon fonts. */
body.lsd-type-content-enabled :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .woocommerce-store-notice, .wc-block-components-notice-banner, .storefront-sticky-add-to-cart) {
  font-family: var(--lsd-font) !important;
  --lsd-type-body: var(--lsd-notice-size);
  font-size: var(--lsd-notice-size) !important;
  font-weight: 400;
  line-height: var(--lsd-body-line);
}
body.lsd-type-content-enabled :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice, .woocommerce-store-notice, .wc-block-components-notice-banner) :is(p,li,a,span,strong):not([class*="fa-"]):not(.wc-block-components-notice-banner__dismiss) {
  font-family: var(--lsd-font) !important;
  font-size: inherit !important;
  line-height: inherit;
}
body.lsd-type-content-enabled :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) :is(p,li) {
  margin-block: 0;
}
body.lsd-type-content-enabled :is(.woocommerce .widget_shopping_cart_content, .storefront-sticky-add-to-cart__content) {
  font-family: var(--lsd-font);
}

/* One spacing system for single-post headers; internal chapter spacing stays. */
body.single-post.lsd-type-content-enabled #primary article.type-post > .entry-header {
  margin-bottom: var(--lsd-post-content-gap) !important;
}
body.single-post.lsd-type-content-enabled #primary article.type-post > .entry-header .entry-title {
  margin: 0 0 var(--lsd-post-title-gap) !important;
}
body.single-post.lsd-type-content-enabled #primary article.type-post > .entry-header .entry-taxonomy { margin-top: 0; }
body.single-post.lsd-type-content-enabled #primary article.type-post > .entry-content > :first-child:not(#ls-bf *) {
  margin-top: 0 !important;
}

/* Smart Slider loads its own font families on the front page, including
 * Raleway/Roboto/Fredoka. Use the same selected site font for real text layers,
 * leaving controls, icon fonts, animations and hero-layer sizing intact. */
body.home.lsd-type-content-enabled .n2-ss-slider,
body.home.lsd-type-content-enabled .n2-ss-slider :is([class*="n2-font-"], .n2-ss-text, .n2-ss-text a, .n2-ss-text p, .n2-ss-button-container a, .n2-ss-button-container a div) {
  font-family: var(--lsd-font) !important;
}
body.home.lsd-type-content-enabled #primary .n2-ss-slider :is(.n2-ss-text, .n2-ss-text a) {
  font-size: var(--lsd-type-h3) !important;
  font-weight: var(--lsd-heading-weight) !important;
  line-height: var(--lsd-heading-line) !important;
}
body.home.lsd-type-content-enabled #primary .n2-ss-slider p { font-weight: 400; }
body.home.lsd-type-content-enabled .n2-ss-slider .n2-ss-button-container :is(a,div) {
  font-size: var(--lsd-form-size) !important;
  font-weight: 600;
  line-height: 1.5;
}

/* General font setting: real text across the public page, without changing
 * the WordPress toolbar or icon fonts/pseudo-elements. Size rules stay scoped. */
body.lsd-font-enabled { font-family: var(--lsd-font); }
body.lsd-font-enabled #page :is(h1,h2,h3,h4,h5,h6,p,li,a,label,input,select,textarea,button,blockquote,figcaption,dt,dd,td,th,[class*="n2-font-"],.n2-ss-text,.n2-ss-button-container a div):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]) {
  font-family: var(--lsd-font) !important;
}
