/* ==========================================================================
   Dewsbury Rams - Uniform Fonts, Font Sizes, Line Heights & Text Spacing
   Strictly typography-only (within Themify Ultra's native Slab/Sans pack).
   No layout, grid, header/footer structural, or Builder Mosaic overrides.
   ========================================================================== */

/* 1. Uniform Body & List Typography */
body,
#content :is(p, li, td, th):not(.bookly-css-root *):not(blockquote *),
.entry-content :is(p, li):not(.bookly-css-root *):not(blockquote *) {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

#content p:not(.bookly-css-root *):not(blockquote *),
.entry-content p:not(.bookly-css-root *):not(blockquote *) {
  margin-top: 0;
  margin-bottom: 1.1em;
}

#content :is(ul, ol):not(.bookly-css-root *),
.entry-content :is(ul, ol):not(.bookly-css-root *) {
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 1.1em;
}

#pagewrap blockquote:not(.bookly-css-root *) {
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0 0 1.1em;
  padding: 0.15em 0 0.15em 0.9em;
  border-left-width: 4px;
}

#pagewrap blockquote:not(.bookly-css-root *) p {
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.6em;
}

#pagewrap blockquote:not(.bookly-css-root *) p:last-child {
  margin-bottom: 0;
}

/* 2. Uniform Heading Scale, Line Height & Spacing */
#pagewrap :is(h1, h2, h3, h4, h5, h6):not(.bookly-css-root *):not([role="dialog"] *):not(.accordion-title):not(.tbm_title),
#pagewrap :is(.entry-title, .post-title, .page-title, .widgettitle, .module-title) {
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.6em;
}

#pagewrap .module-accordion .accordion-title {
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 0;
}

#pagewrap h1:not(.bookly-css-root *),
#pagewrap .page-title,
#pagewrap .single .post-title {
  font-size: clamp(1.65rem, 2.5vw, 2.15rem);
  font-weight: 700;
}

#pagewrap h2:not(.bookly-css-root *),
#pagewrap .post-title {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
}

#pagewrap h3:not(.bookly-css-root *),
#pagewrap .widgettitle,
#pagewrap .module-title {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  font-weight: 700;
}

#pagewrap h4:not(.bookly-css-root *) {
  font-size: 1.125rem;
  font-weight: 600;
}

#pagewrap h5:not(.bookly-css-root *) {
  font-size: 1rem;
  font-weight: 600;
}

#pagewrap h6:not(.bookly-css-root *) {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 3. Uniform Menu Typography & Link Spacing (Desktop & Mobile Menu) */
#main-nav a,
#mobile-menu #main-nav a {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

#main-nav > li > a {
  padding: 8px 10px;
  margin: 2px 4px;
}

/* 4. Uniform Footer Typography */
#footerwrap #footer,
#footerwrap .footer-text {
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
}
