body.glowlab-body {
  font-family: var(--gl-font-body);
  font-size: var(--gl-fs-body);
  font-weight: var(--gl-fw-body);
  line-height: var(--gl-lh-body);
  color: var(--gl-color-ink);
  background-color: var(--gl-color-white);
  background-image: repeating-linear-gradient(
    to right,
    rgba(17, 61, 52, 0.06) 0,
    rgba(17, 61, 52, 0.06) 1px,
    transparent 1px,
    transparent 25%
  );
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gl-font-display);
  color: var(--gl-color-ink);
}

h1, .glowlab-page-title {
  font-weight: var(--gl-fw-h1);
  font-size: var(--gl-fs-h1-inner-m);
  line-height: 1.2;
}

h2 {
  font-family: var(--gl-font-ui);
  font-size: var(--gl-fs-h2-m);
  font-weight: var(--gl-fw-h2);
  line-height: var(--gl-lh-h2-m);
  letter-spacing: var(--gl-ls-h2-d);
  text-transform: uppercase;
}

h3 {
  font-family: var(--gl-font-ui);
  font-size: var(--gl-fs-h3);
  font-weight: var(--gl-fw-h3);
}

@media (min-width: 768px) {
  h1, .glowlab-page-title {
    font-size: var(--gl-fs-h1-inner-d);
    line-height: 1.15;
  }
  h2 {
    font-size: var(--gl-fs-h2-d);
    line-height: var(--gl-lh-h2-d);
  }
}

.glowlab-header__title {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 500;
  margin: 0;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--gl-color-green);
  outline-offset: 3px;
}

/* ==========================================================================
   Heading scale (design fix 2026-09-28)
   Inner pages: page H1 (41px / 28px) > section & in-content H2 (32px / 22px)
   > H3 (22px / 19px) > H4 (18px). The front page keeps its large display H2s.
   ========================================================================== */
:root {
  --gl-fs-h2-inner-d: 2rem;
  --gl-fs-h2-inner-m: 1.375rem;
  --gl-fs-h3-inner-d: 1.375rem;
  --gl-fs-h3-inner-m: 1.2rem;
  --gl-fs-h4-inner: 1.125rem;
}

.glowlab-prose h2,
body:not(.home) h2.glowlab-block__title,
body:not(.home) .glowlab-widget__title,
body:not(.home) .glowlab-cat-whatis__title,
body:not(.home) h2.glowlab-cat-prices__title,
body:not(.home) h2.glowlab-section__title,
.glowlab-packages__reviews > h2,
.glowlab-packages__book > h2 {
  font-size: var(--gl-fs-h2-inner-m);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.glowlab-prose h3,
.glowlab-block__body h3 {
  font-size: var(--gl-fs-h3-inner-m);
  line-height: 1.3;
}
.glowlab-prose h4,
.glowlab-block__body h4 {
  font-size: var(--gl-fs-h4-inner);
  line-height: 1.35;
}

/* In-content rhythm: space above each heading, tight gap to its own text. */
.glowlab-prose h2 { margin: 2.25rem 0 0.75rem; }
.glowlab-prose h3,
.glowlab-block__body h3 { margin: 1.75rem 0 0.5rem; }
.glowlab-prose h4,
.glowlab-block__body h4 { margin: 1.5rem 0 0.5rem; }
.glowlab-prose > :first-child,
.glowlab-block__body > :first-child { margin-top: 0; }

/* Page H1 rendered by a text block (e.g. Privacy Policy) matches the other page titles. */
body:not(.home) h1.glowlab-block__title {
  font-family: var(--gl-font-display);
  font-size: var(--gl-fs-h1-inner-m);
  font-weight: var(--gl-fw-h1);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

/* Front page: the specialists widget title matches the other section titles. */
.home .glowlab-widget--specialists .glowlab-widget__title {
  font-family: var(--gl-font-ui);
  font-size: 1.75rem;
  font-weight: var(--gl-fw-h2);
  line-height: 1.2;
  letter-spacing: var(--gl-ls-h2-d);
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .glowlab-prose h2,
  body:not(.home) h2.glowlab-block__title,
  body:not(.home) .glowlab-widget__title,
  body:not(.home) .glowlab-cat-whatis__title,
  body:not(.home) h2.glowlab-cat-prices__title,
  body:not(.home) h2.glowlab-section__title,
  .glowlab-packages__reviews > h2,
  .glowlab-packages__book > h2 {
    font-size: var(--gl-fs-h2-inner-d);
    line-height: 1.15;
  }
  .glowlab-prose h3,
  .glowlab-block__body h3 { font-size: var(--gl-fs-h3-inner-d); }
  body:not(.home) h1.glowlab-block__title { font-size: var(--gl-fs-h1-inner-d); line-height: 1.15; }
  .home .glowlab-widget--specialists .glowlab-widget__title {
    font-size: var(--gl-fs-h2-d);
    line-height: var(--gl-lh-h2-d);
  }
}

/* Before/after slider caption (design fix 2026-09-28) */
.glowlab-compare__caption {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--gl-color-ink);
  opacity: 0.75;
}
figure.glowlab-compare { padding: 0; }
/* Slider inside a service/category media column: both halves get the identical box and crop,
   so the before/after photos stay in register (the featured-image 4:5 crop must not apply here). */
.glowlab-compare.glowlab-compare--media .glowlab-ba--slider img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ba-ar, auto);
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 0;
}
.glowlab-compare.glowlab-compare--media .glowlab-ba--slider .glowlab-ba__before img {
  height: 100%;
  max-width: none;
}

/* Numeric pagination (design fix 2026-09-28; results fix 2026-10-05) */
.navigation.pagination,
.navigation.glowlab-pagination { margin: 2rem 0 1rem; }
.navigation.pagination .nav-links,
.navigation.glowlab-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.navigation.pagination .page-numbers,
.navigation.glowlab-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(17, 61, 52, 0.25);
  border-radius: 999px;
  font-family: var(--gl-font-ui);
  font-size: 1rem;
  line-height: 1;
  color: var(--gl-color-ink);
  text-decoration: none;
  background: var(--gl-color-white);
  box-sizing: border-box;
}
.navigation.pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:focus-visible,
.navigation.glowlab-pagination a.page-numbers:hover,
.navigation.glowlab-pagination a.page-numbers:focus-visible {
  border-color: var(--gl-color-ink);
  text-decoration: none;
}
.navigation.pagination .page-numbers.current,
.navigation.glowlab-pagination .page-numbers.current {
  background: var(--gl-color-ink);
  border-color: var(--gl-color-ink);
  color: var(--gl-color-white);
}
.navigation.pagination .page-numbers.dots,
.navigation.glowlab-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
}
.navigation.pagination .prev.page-numbers,
.navigation.pagination .next.page-numbers,
.navigation.glowlab-pagination .prev.page-numbers,
.navigation.glowlab-pagination .next.page-numbers {
  min-width: auto;
  padding: 0 1rem;
}
@media (max-width: 480px) {
  .navigation.pagination .nav-links,
  .navigation.glowlab-pagination .nav-links { gap: 0.35rem; }
  .navigation.pagination .page-numbers,
  .navigation.glowlab-pagination .page-numbers {
    min-width: 2.5rem;
    height: 2.5rem;
    font-size: 0.9375rem;
  }
}

/* Card grids without orphans (design fix 2026-09-28): an incomplete last row is centred. */
@media (min-width: 768px) {
  .tax-services-categories .glowlab-grid--cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .tax-services-categories .glowlab-grid--cards > .glowlab-card-item { grid-column: span 2; }
  .tax-services-categories .glowlab-grid--cards > .glowlab-card-item:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  .tax-services-categories .glowlab-grid--cards > .glowlab-card-item:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
}
/* /services/ index: 5 category cards -> rows of 3 + 2 (desktop) or 2 + 2 + 1 (tablet), last row centred. */
@media (min-width: 1025px) {
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay > li { grid-column: span 2; }
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay > li:last-child:nth-child(3n+1) { grid-column: 3 / span 2; }
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay > li:nth-last-child(2):nth-child(3n+1) { grid-column: 2 / span 2; }
}
@media (max-width: 1024px) and (min-width: 641px) {
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay > li { grid-column: span 2; }
  .post-type-archive-services .glowlab-grid--cats.glowlab-grid--overlay > li:last-child:nth-child(2n+1) { grid-column: 2 / span 2; }
}

/* === Design fix 2026-09-28 step 9: prose list bullets + equipment treatments === */
.glowlab-prose ul:not([class]),
.glowlab-prose ol:not([class]) {
	padding-left: 1.4em;
	margin: 0 0 1.25em;
}
.glowlab-prose ul:not([class]) { list-style: disc outside; }
.glowlab-prose ol:not([class]) { list-style: decimal outside; }
.glowlab-prose ul:not([class]) > li,
.glowlab-prose ol:not([class]) > li {
	display: list-item;
	margin: 0 0 .45em;
	padding-left: .2em;
}
.glowlab-prose ul:not([class]) > li::marker { color: var(--gl-color-gold); }
.glowlab-eq__treatments + .glowlab-eq__treatments { margin-top: 0; padding-top: 0; }
