/* Steps 2 + 4, 5starloans type scale (owner-approved 2026-11-24): phones, tablets, desktop. Loaded by inc/type-scale.php.
   Kill switch: wp option update fsl_type_scale_disabled 1 */
/* Scale: H1 30 · H2 26 · H3 22 · H4 20 · H5 16 · H6 14 · small print 14 · labels 13 · byline 15. Phones only (<=767px).
   !important is needed: heading sizes come from the theme h2 rule, star-theme ".single-post .post .dynamic-entry-content h2",
   GenerateBlocks per-block rules and the state template (which sits outside .site-content). Header, footer and hero titles excluded. */
@media (max-width: 767px) {
  body:not(.error404) :is(h1):not(.site-footer *, .site-header *, .home-hero__title, .loc-hero__title, .blog-hero__title, .page-hero__title) { font-size: 30px !important; line-height: 1.15 !important; }
  :is(h2):not(.site-footer *, .site-header *) { font-size: 26px !important; line-height: 1.2 !important; }
  :is(h3):not(.site-footer *, .site-header *) { font-size: 22px !important; line-height: 1.25 !important; }
  :is(h4):not(.site-footer *, .site-header *) { font-size: 20px !important; line-height: 1.3 !important; }
  :is(h5):not(.site-footer *, .site-header *) { font-size: 16px !important; line-height: 1.35 !important; }
  :is(h6):not(.site-footer *, .site-header *) { font-size: 14px !important; line-height: 1.4 !important; letter-spacing: 0.04em; text-transform: uppercase; }

  /* Author / Reviewer box title (plugin sets 32px !important; state template 22px !important) */
  html body .pp-multiple-authors-boxes-wrapper.pp-multiple-authors-layout-boxed.multiple-authors-target-shortcode h2.box-header-title.widget-title,
  html body .pp-multiple-authors-boxes-wrapper h2.box-header-title.widget-title { font-size: 26px !important; }

  /* Small print: never below 14px (notes under data tables, captions, WP "small" preset, stat labels) */
  p[style*="font-size:13px"]:not(.site-footer *), p[style*="font-size:12px"]:not(.site-footer *),
  :is(div, span, a)[style*="font-size:13px"]:not(.site-footer *), :is(div, span, a)[style*="font-size: 13px"]:not(.site-footer *),
  span[style*="font-size: 10pt"]:not(.site-footer *),
  .hl96-tl-time { font-size: 14px !important; }
  /* inline 12px labels (e.g. "ITALIAN SUPERBIKE" on vehicle cards) and small tags: label size 13 */
  :is(div, span)[style*="font-size:12px"]:not(.site-footer *), .hl96-pay-tag { font-size: 13px !important; }
  :is(.has-small-font-size, figcaption, .wp-element-caption):not(.site-footer *) { font-size: 14px !important; line-height: 1.45; }
  p.gb-headline:is([class*="-5s-l"], [class*="-5smc-l"], [class*="-5sct-l"], [class*="-ls-l"]) { font-size: 14px !important; }

  /* Labels: 13px (post category tags in post lists) */
  p.gb-headline.curr_post_cat { font-size: 13px !important; }

  /* Byline / date line on general pages: 15px */
  .pp-mobile-byline__meta { font-size: 15px !important; line-height: 1.4; }
}

/* Step 4 (owner-approved 2026-11-24): desktop >=1025 H1 52 · H2 36 · H3 28 · H4 22 · H5 18 · H6 14; tablet 768-1024 H1 40 · H2 30 · H3 24 · H4 20 · H5 17 · H6 14.
   Card titles in grids (blog/category/author loops, vehicle cards) 22 desktop / 20 tablet. Body text untouched. */
@media (min-width: 1025px) {
  body:not(.error404) :is(h1):not(.site-footer *, .site-header *, .home-hero__title, .loc-hero__title, .blog-hero__title, .page-hero__title) { font-size: 52px !important; line-height: 1.1 !important; }
  :is(h2):not(.site-footer *, .site-header *) { font-size: 36px !important; line-height: 1.2 !important; }
  :is(h3):not(.site-footer *, .site-header *) { font-size: 28px !important; line-height: 1.25 !important; }
  :is(h4):not(.site-footer *, .site-header *) { font-size: 22px !important; line-height: 1.3 !important; }
  :is(h5):not(.site-footer *, .site-header *) { font-size: 18px !important; line-height: 1.35 !important; }
  :is(h6):not(.site-footer *, .site-header *) { font-size: 14px !important; line-height: 1.4 !important; letter-spacing: 0.04em; text-transform: uppercase; }
  :is(.gb-query-loop-item, .star-int-grid) :is(h2, h3) { font-size: 22px !important; line-height: 1.25 !important; }
  html body .pp-multiple-authors-boxes-wrapper.pp-multiple-authors-layout-boxed.multiple-authors-target-shortcode h2.box-header-title.widget-title,
  html body .pp-multiple-authors-boxes-wrapper h2.box-header-title.widget-title { font-size: 28px !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  body:not(.error404) :is(h1):not(.site-footer *, .site-header *, .home-hero__title, .loc-hero__title, .blog-hero__title, .page-hero__title) { font-size: 40px !important; line-height: 1.12 !important; }
  :is(h2):not(.site-footer *, .site-header *) { font-size: 30px !important; line-height: 1.2 !important; }
  :is(h3):not(.site-footer *, .site-header *) { font-size: 24px !important; line-height: 1.25 !important; }
  :is(h4):not(.site-footer *, .site-header *) { font-size: 20px !important; line-height: 1.3 !important; }
  :is(h5):not(.site-footer *, .site-header *) { font-size: 17px !important; line-height: 1.35 !important; }
  :is(h6):not(.site-footer *, .site-header *) { font-size: 14px !important; line-height: 1.4 !important; letter-spacing: 0.04em; text-transform: uppercase; }
  :is(.gb-query-loop-item, .star-int-grid) :is(h2, h3) { font-size: 20px !important; line-height: 1.25 !important; }
  html body .pp-multiple-authors-boxes-wrapper.pp-multiple-authors-layout-boxed.multiple-authors-target-shortcode h2.box-header-title.widget-title,
  html body .pp-multiple-authors-boxes-wrapper h2.box-header-title.widget-title { font-size: 24px !important; }
}

/* State pages: the October readability CSS (wp-custom-css) pins headings that carry a WP size class
   (e.g. has-medium-font-size on Indiana) with !important at higher specificity. Same scale, stronger selector.
   Remove when the October size rules leave the custom CSS (generator update, rule 10 retired). */
html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h2[class*="-font-size"] { font-size: 36px !important; line-height: 1.2 !important; }
html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h3[class*="-font-size"] { font-size: 28px !important; line-height: 1.25 !important; }
@media (min-width: 768px) and (max-width: 1024px) {
  html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h2[class*="-font-size"] { font-size: 30px !important; }
  html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h3[class*="-font-size"] { font-size: 24px !important; }
}
@media (max-width: 767px) {
  html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h2[class*="-font-size"] { font-size: 26px !important; }
  html body.tax-state :is(.gb-container-0d5b4eb2, .gb-container-7d73ab41) h3[class*="-font-size"] { font-size: 22px !important; }
}

/* Video block (component, owner 2026-11-24): space above and below every embedded video,
   all pages. Margins collapse with the neighbours' own margins, so a bigger gap stays as is. */
figure.wp-block-embed.is-type-video {
	margin-top: 24px !important;
	margin-bottom: 32px !important;
}
@media (min-width: 768px) {
	figure.wp-block-embed.is-type-video {
		margin-top: 32px !important;
		margin-bottom: 40px !important;
	}
}
