/* Load after the existing styles on the three custom public community pages. */
body:has(:is(#lc-bom-faq, #lc-review.lc-reviews, #lc-community-history)) {
  --lc-community-title-size: clamp(20.8px, 1.9vw, 26.4px);
  --lc-community-subtitle-size: 17px;
  --lc-community-body-size: 14px;
  --lc-community-field-size: 14px;
  --lc-community-meta-size: 13px;
  --lc-community-kicker-size: 12px;
}

@media (max-width: 760px) {
  body:has(:is(#lc-bom-faq, #lc-review.lc-reviews, #lc-community-history)) {
    --lc-community-title-size: 20.8px;
    --lc-community-field-size: 16px;
  }
}

body:has(:is(#lc-bom-faq, #lc-review.lc-reviews, #lc-community-history))
  .lc-community-masthead .lc-community-masthead-title {
  font-size: var(--lc-community-title-size);
}

#lc-bom-faq .lc-community-masthead-title span {
  font-size: inherit;
}

body:has(:is(#lc-bom-faq, #lc-review.lc-reviews, #lc-community-history))
  .lc-community-masthead .lc-community-masthead-copy {
  font-size: var(--lc-community-body-size);
}

body:has(:is(#lc-bom-faq, #lc-review.lc-reviews, #lc-community-history))
  .lc-community-masthead-path {
  font-size: var(--lc-community-meta-size);
}

#lc-bom-faq,
#lc-bom-faq .lf-nav-title,
#lc-bom-faq .lf-nav-links a,
#lc-bom-faq .lf-item summary,
#lc-bom-faq .lf-answer,
#lc-bom-faq .lf-refund,
#lc-bom-faq .lf-help :is(p, a) {
  font-size: var(--lc-community-body-size);
}

#lc-bom-faq .lf-category h2,
#lc-bom-faq .lf-category-group > h3,
#lc-bom-faq .lf-subcategory h4,
#lc-bom-faq .lf-help h2 {
  font-size: var(--lc-community-subtitle-size);
}

#lc-review.lc-reviews :is(
    h2, h3, h4, legend, .lr-year-title, .lr-entry summary strong
  ):not(:where(.lr-admin-wrap, .lr-admin-wrap *)) {
  font-size: var(--lc-community-subtitle-size);
}

#lc-review.lc-reviews :is(
    .flow, .panel, .field, .lr-nav, .lr-side, .lr-entry, .lr-entry-body,
    .lr-pages, .lr-tasks, .lr-story, .lr-store, .lr-record, .review-community-links
  ):not(:where(.lr-admin-wrap, .lr-admin-wrap *, :has(.lr-admin-wrap))),
#lc-review.lc-reviews :is(
    p, label, summary, button, input:is([type="button"], [type="submit"], [type="reset"]),
    .lr-nav a, .lr-side a, .lr-side strong,
    .review-community-title, .review-community-links a, .button.small,
    .lr-pages > span
  ):not(:where(.lr-admin-wrap, .lr-admin-wrap *)) {
  font-size: var(--lc-community-body-size);
}

#lc-review.lc-reviews :is(
    input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"],
      [type="color"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
    select, textarea
  ):not(:where(.lr-admin-wrap, .lr-admin-wrap *)) {
  font-size: var(--lc-community-field-size);
}

#lc-review.lc-reviews input[type="file"]:not(:where(.lr-admin-wrap *))::file-selector-button {
  font-size: var(--lc-community-body-size);
}

#lc-review.lc-reviews :is(
    .review-crumb, .review-test-note, .lr-meta, .lr-record time, .lr-tasks .muted, small
  ):not(:where(.lr-admin-wrap, .lr-admin-wrap *)) {
  font-size: var(--lc-community-meta-size);
}

#lc-community-history,
#lc-community-history :is(
    .hero-copy p:not(.eyebrow), .feature-copy p:not(.eyebrow), .feature-copy a,
    .intro-row p, .intro-row a, .hero-actions a, .history-actions button,
    .wrap > a[href^="#"],
    .year-name, .rc-desc, .record-body > p, .gallery-more > summary,
    .records-meta > summary, .records-meta > p, .records-meta dt, .records-meta dd
  ) {
  font-size: var(--lc-community-body-size);
}

#lc-community-history :is(
    #hero-heading, #gallery-heading, #feature-heading, #bom-originals-heading,
    #timeline-heading, h2, h3, h4, .year-title, .rc-title, .cut-label strong
  ),
#lc-community-history .record-body .cut-label strong {
  font-size: var(--lc-community-subtitle-size);
}

#lc-community-history :is(
    figcaption, .rc-date, .cut-label small, .cut .credit, .cut-label .credit,
    .records-meta a
  ) {
  font-size: var(--lc-community-meta-size);
}

#lc-community-history .eyebrow {
  font-size: var(--lc-community-kicker-size);
}
