/* Enlarged supporting typography for readability across the site. */

/* Slider photographs are displayed with their original colour and brightness. */
.fm-hero-with-slider::before {
  background: none;
}

/* Large headings must retain enough horizontal and vertical breathing room for
   Cyrillic glyphs. The original display settings used negative tracking and
   sub-unit line heights, which can make letters and adjacent lines overlap. */
.fm-brand-mark,
.fm-hero h1,
.fm-hero h1 em,
.fm-site h2,
.fm-inner-main .com-content-category-blog > h1,
.fm-inner-main .com-content-category-blog__item .page-header h2,
.fm-supplier-categories .com-content-category-blog > .page-header h1,
.fm-supplier-categories .com-content-article > .page-header h1,
.fm-supplier-categories .com-content-article > .page-header h2,
.fm-solution-hero h1,
.fm-error h1,
.fm-home-signoff {
  letter-spacing: normal;
}

.fm-hero h1 { line-height: 0.98; }
.fm-hero h1 em { line-height: 1.06; }
.fm-site h2 { line-height: 1.08; }
.fm-inner-main .com-content-category-blog > h1,
.fm-supplier-categories .com-content-category-blog > .page-header h1,
.fm-supplier-categories .com-content-article > .page-header h1 { line-height: 1.08; }
.fm-solution-hero h1,
.fm-error h1 { line-height: 1.02; }

/* CSP-safe JCE font and size choices for category descriptions and materials. */
.fm-inner-main-category .category-desc,
.fm-inner-main .item-page {
  font-family: var(--fm-sans);
}

/* Keep editorial headings separate from the oversized decorative section
   headings used by the template. JCE may save text-align inline, therefore
   the alignment reset intentionally uses !important. */
.fm-inner-main-category .category-desc h2,
.fm-inner-main .item-page .com-content-article__body h2 {
  max-width: none;
  margin: 2.4rem 0 1rem;
  font: 600 clamp(28px, 2.6vw, 40px)/1.18 var(--fm-serif);
  letter-spacing: normal;
  text-align: left !important;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
}

.fm-inner-main-category .category-desc h3,
.fm-inner-main .item-page .com-content-article__body h3 {
  max-width: none;
  margin: 1.8rem 0 0.8rem;
  font: 600 clamp(21px, 1.8vw, 28px)/1.28 var(--fm-serif);
  letter-spacing: normal;
  text-align: left !important;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
}

.fm-inner-main-category .category-desc h4,
.fm-inner-main .item-page .com-content-article__body h4 {
  max-width: none;
  margin: 1.5rem 0 0.7rem;
  font: 600 clamp(18px, 1.4vw, 22px)/1.35 var(--fm-serif);
  letter-spacing: 0;
  text-align: left !important;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: normal;
}

.fm-inner-main-category .category-desc > h2:first-child,
.fm-inner-main .item-page .com-content-article__body > h2:first-child {
  margin-top: 0;
}

.fm-inner-main-category .category-desc p,
.fm-inner-main-category .category-desc li,
.fm-inner-main .item-page > p,
.fm-inner-main .item-page > ul > li,
.fm-inner-main .item-page > ol > li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.fm-inner-main-category .category-desc [style*="font-family: georgia" i],
.fm-inner-main .item-page [style*="font-family: georgia" i] { font-family: Georgia, "Times New Roman", serif; }
.fm-inner-main-category .category-desc [style*="font-family: arial" i],
.fm-inner-main .item-page [style*="font-family: arial" i] { font-family: Arial, Helvetica, sans-serif; }
.fm-inner-main-category .category-desc [style*="font-family: verdana" i],
.fm-inner-main .item-page [style*="font-family: verdana" i] { font-family: Verdana, Geneva, sans-serif; }
.fm-inner-main-category .category-desc [style*="font-family: tahoma" i],
.fm-inner-main .item-page [style*="font-family: tahoma" i] { font-family: Tahoma, Arial, sans-serif; }
.fm-inner-main-category .category-desc [style*="font-family: trebuchet" i],
.fm-inner-main .item-page [style*="font-family: trebuchet" i] { font-family: "Trebuchet MS", Arial, sans-serif; }
.fm-inner-main-category .category-desc [style*="font-family: times" i],
.fm-inner-main .item-page [style*="font-family: times" i] { font-family: "Times New Roman", Times, serif; }
.fm-inner-main-category .category-desc [style*="font-family: courier" i],
.fm-inner-main .item-page [style*="font-family: courier" i] { font-family: "Courier New", Courier, monospace; }
.fm-inner-main-category .category-desc [style*="font-size: 8pt" i],
.fm-inner-main .item-page [style*="font-size: 8pt" i] { font-size: 0.6667rem; }
.fm-inner-main-category .category-desc [style*="font-size: 10pt" i],
.fm-inner-main .item-page [style*="font-size: 10pt" i] { font-size: 0.8333rem; }
.fm-inner-main-category .category-desc [style*="font-size: 12pt" i],
.fm-inner-main .item-page [style*="font-size: 12pt" i] { font-size: 1rem; }
.fm-inner-main-category .category-desc [style*="font-size: 14pt" i],
.fm-inner-main .item-page [style*="font-size: 14pt" i] { font-size: 1.1667rem; }
.fm-inner-main-category .category-desc [style*="font-size: 18pt" i],
.fm-inner-main .item-page [style*="font-size: 18pt" i] { font-size: 1.5rem; }
.fm-inner-main-category .category-desc [style*="font-size: 24pt" i],
.fm-inner-main .item-page [style*="font-size: 24pt" i] { font-size: 2rem; }
.fm-inner-main-category .category-desc [style*="font-size: 36pt" i],
.fm-inner-main .item-page [style*="font-size: 36pt" i] { font-size: 3rem; }
.fm-eyebrow {
  font-size: 13px;
  line-height: 1.4;
}

.fm-label {
  font-size: 13px;
  line-height: 1.4;
}

body.fm-site .fm-section-head > h2.fm-label {
  margin: 0;
  color: #8b715d;
  font-family: var(--fm-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.fm-section-head > span,
.fm-content-head > p:last-child {
  font-size: 16px;
  line-height: 1.6;
}

.fm-service > span {
  font-size: 15px;
  font-weight: 700;
}

.fm-facts strong {
  min-width: 28px;
  font-size: 17px;
  line-height: 1.2;
}

.fm-facts span {
  font-size: 15px;
  line-height: 1.5;
}

.fm-process li {
  grid-template-columns: 64px 1fr;
}

.fm-process li span,
.fm-supply li span {
  font-size: 16px;
  line-height: 1;
}

.fm-partners li::before {
  width: 66px;
  font-size: 15px;
}

.fm-trust > div {
  grid-template-columns: 54px 1fr;
  gap: 16px;
}

.fm-trust strong {
  font-size: 18px;
  line-height: 1.25;
}

.fm-trust span {
  font-size: 17px;
  line-height: 1.55;
}

.fm-contact-details dt,
.fm-footer-grid b {
  font-size: 12px;
}

.fm-solution-cards article > span,
.fm-solution-stages li::before {
  font-size: 16px;
}

.fm-solution-facts dt {
  font-size: 12px;
}

@media (max-width: 900px) {
  .fm-facts > div {
    display: block;
    padding: 16px 10px 18px;
  }

  .fm-facts strong {
    display: block;
    margin-bottom: 7px;
  }

  .fm-facts span {
    display: block;
    font-size: 14px;
  }

  .fm-trust > div,
  .fm-trust > div:first-child {
    grid-template-columns: 54px 1fr;
    gap: 16px;
  }
}

@media (max-width: 540px) {
  .fm-eyebrow,
  .fm-label {
    font-size: 12px;
  }

  .fm-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .fm-section-head > span {
    display: block;
    font-size: 15px;
  }

  .fm-facts strong {
    font-size: 15px;
  }

  .fm-facts span {
    font-size: 12px;
    line-height: 1.4;
  }

  .fm-trust strong {
    font-size: 17px;
  }

  .fm-trust span {
    font-size: 16px;
  }
}
