/*
 * The look of headings whose level changed (WEB-50, decision 109), loaded after the theme. The
 * theme styles headings by tag, so a heading given another level, or none, gets here the rules its
 * old tag had in its place. One block per component; each is measured equal to live.
 */

/* Footer column titles and the company name, h4 before: `footer div[class^=col] div ul li h4`. */
footer div[class^=col] div ul li .ex-footer-title {
  font-family: "Barlow Semi Condensed", "Roboto Condensed", "Arial", "Helvetica", "sans-serif";
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--bs-heading-color);
  margin: 0;
}

/*
 * Sidebar card titles on posts and support articles (LatestPosts), h4 before: `.box h3, .box h4`
 * and its 767px query. As h2, `.box.grayBox h2` would uppercase them.
 */
.box.grayBox h2.ex-sidebar-title {
  font-size: 1.25rem;
  line-height: 1.5rem;
  text-transform: none;
}
@media (max-width: 767px) {
  .box.grayBox h2.ex-sidebar-title {
    font-size: 1rem;
  }
}

/*
 * A support article's related-articles title, h4 before: `body.single-ht_kb .c-single-kb-post h4`
 * and `.box h4`. As h2 the article's h2 rule would make it 23 to 27px, and `.box.grayBox h2` uppercase.
 */
body.single-ht_kb .c-single-kb-post .box.grayBox h2.ex-related-title {
  font-size: 18px;
  line-height: 1.5rem;
  text-transform: none;
}

/* An empty title, printed as a heading before, keeps the heading's margin: `h1`–`h4 { margin-bottom: .5rem }`. */
.ex-h-empty {
  margin-bottom: .5rem;
}

/*
 * Section titles that were `section.block h3` (2rem, 700, line 100%): the photo-right image-text
 * block, the video-text block, the features block, a testimonial's lead, the blog index's cards.
 */
section.block h2.ex-h-image-text,
section.block h2.ex-h-video-text,
section.block h2.ex-h-testimonial,
section.block h2.ex-h-features,
section.block h2.ex-h-blog-card,
.blogBox h2.ex-h-blog-card {
  font-size: 2rem;
  font-weight: 700;
  line-height: 100%;
}
/* Inside a lifted box the theme shrinks an h3 to 1rem on phones: `section.block .overTop h3`. */
@media (max-width: 767px) {
  section.block .overTop h2.ex-h-image-text,
  section.block .overTop h2.ex-h-video-text,
  section.block .overTop h2.ex-h-testimonial,
  section.block .overTop h2.ex-h-selected-post {
    font-size: 1rem !important;
  }
}

/* A blog card's title link, h3 before: `.blogBox h3 a`, `.blogBox:hover h3 a`. */
.blogBox h2.ex-h-blog-card a {
  text-decoration: none;
  transition: color 200ms ease-in-out;
}
.blogBox:hover h2.ex-h-blog-card a {
  color: #4D29F1;
}

/*
 * `section.block h2 span` colours a span purple; in an h3 it took the heading's colour, unless its
 * class made it purple anyway (`.red`, `.color-purple`).
 */
section.block h2.ex-h-image-text span:not(.red):not(.color-purple),
section.block h2.ex-h-video-text span:not(.red):not(.color-purple),
section.block h2.ex-h-testimonial span:not(.red):not(.color-purple),
section.block h2.ex-h-features span:not(.red):not(.color-purple),
section.block h2.ex-h-blog-card span:not(.red):not(.color-purple),
section.block h2.ex-h-slider-image-text span:not(.red):not(.color-purple),
section.block h2.ex-h-selected-post span:not(.red):not(.color-purple),
section.block h2.ex-h-office span:not(.red):not(.color-purple),
section.block h2.ex-h-person span:not(.red):not(.color-purple),
section.block h2.ex-h-course span:not(.red):not(.color-purple) {
  color: inherit;
}

/* A full-width block's title after the page's H1, h1 before: `section.block h1`. */
section.block h2.ex-h-full-width {
  font-size: 3.75rem;
  line-height: 4rem;
}
@media (max-width: 767px) {
  section.block h2.ex-h-full-width {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* A slide's title in the image-text slider, h3 before: Bootstrap's h3 and `.c-fields-content h3`. */
.c-fields-content h2.ex-h-slider-image-text {
  font-size: calc(1.3rem + .6vw);
  line-height: 1.2;
  margin-bottom: 24px;
}
@media (min-width: 1200px) {
  .c-fields-content h2.ex-h-slider-image-text {
    font-size: 1.75rem;
  }
}

/* A features block's group titles, h4 before: `.box.pinkBox h4`. */
.box.pinkBox h3.ex-h-features-group {
  color: #4D29F1;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5rem;
}

/*
 * Number cards in a section with no title, h3 before: `section.block.numberCards .numberCard div.in h3`,
 * over the card's big number, and white on hover.
 */
section.block.numberCards .numberCard div.in h2.ex-h-number-card {
  z-index: 2;
  position: relative;
  color: #4D29F1;
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 90%;
  letter-spacing: .025rem;
  margin-bottom: .5rem;
  transition: all .2s ease-in-out;
}
section.block.numberCards .numberCard:hover > div h2.ex-h-number-card {
  color: #ffffff;
}

/*
 * Office and person names on the contact page, h4 before: `.box h4`, 1rem on phones. The people
 * stand in a hero section, whose `section.block.hero h2` is 4rem.
 */
section.block .box h2.ex-h-office,
section.block .box h2.ex-h-person {
  font-size: 1.25rem;
  line-height: 1.5rem;
  letter-spacing: normal;
}
@media (max-width: 767px) {
  section.block .box h2.ex-h-office,
  section.block .box h2.ex-h-person {
    font-size: 1rem;
  }
}

/* A price row's title and its price (no heading now), both h3 before: `.box .priceRow h3`. */
.box .priceRow h2.ex-h-price-row,
.box .priceRow p.ex-h-price {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .box .priceRow h2.ex-h-price-row,
  .box .priceRow p.ex-h-price {
    line-height: 1.5rem;
  }
}

/* A price's highlighted words: `.box .priceRow h3 span`. */
.box .priceRow h2.ex-h-price-row span,
.box .priceRow p.ex-h-price span {
  color: #4D29F1;
}

/* Selected posts' labels, h3 before: `.slideLabels div.slideLabel h3`. */
.slideLabels div.slideLabel h2.ex-h-selected-post {
  margin: 0;
}

/* Past courses' card titles, h4 before: `.box.videoBox h4` over `.c-course-item h4`. */
.box.videoBox h2.ex-h-course {
  font-size: 1.5625rem;
  font-weight: 700;
  line-height: 2rem;
  text-transform: none;
  margin-bottom: 1rem;
}

/* Advantage cards in a grid with no title, h3 before: `.title-visually-h4` and `section.block h3`'s weight. */
section.block h2.ex-h-advantage {
  font-weight: 700;
}

/*
 * A hero video's caption, h3 before: `.box.videoBox h3` (purple, -0.015rem), and on phones
 * `section.block.hero h3`'s -0.014rem.
 */
section.block .box.videoBox .desc h2.ex-h-hero-video {
  color: #4D29F1;
  letter-spacing: -0.015rem;
}
@media (max-width: 767px) {
  section.block.hero .box.videoBox .desc h2.ex-h-hero-video {
    letter-spacing: -0.014rem;
  }
}

/*
 * Finland's, Norway's and Sweden's older markup. Section titles were h3 before:
 * `section.block h3` (2rem, 700, line-height 100%).
 */
section.block h2.ex-h-adv-title,
section.block h2.ex-h-videos-title,
section.block h2.ex-h-kb-title,
section.block h2.ex-h-logos,
section.block h2.ex-h-interfaces,
section.block h2.ex-h-faq-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 100%;
}
section.block h2.ex-h-adv-title span:not(.red):not(.color-purple),
section.block h2.ex-h-videos-title span:not(.red):not(.color-purple),
section.block h2.ex-h-kb-title span:not(.red):not(.color-purple),
section.block h2.ex-h-logos span:not(.red):not(.color-purple),
section.block h2.ex-h-interfaces span:not(.red):not(.color-purple),
section.block h2.ex-h-faq-title span:not(.red):not(.color-purple) {
  color: inherit;
}

/* An advantages grid's subtitle, h4 before: Bootstrap's h4 and the theme's weight 800. */
section.block .ex-h-adv-sub {
  font-size: calc(1.275rem + 0.3vw);
  font-weight: 800;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  section.block .ex-h-adv-sub {
    font-size: 1.5rem;
  }
}

/* An advantages card's title, h4 before: `.box h4`, 1rem on phones. */
section.block .box .ex-h-adv-card {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5rem;
  text-transform: none;
}
@media (max-width: 767px) {
  section.block .box .ex-h-adv-card {
    font-size: 1rem;
  }
}

/* A support hub's topic, h4 before: `.masonry div[class^=col] .box h4` and `.box.withIcon h4`. */
.masonry div[class^=col] .box .ex-h-kb-topic-old {
  color: #4D29F1;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-transform: uppercase;
  padding-right: 3rem;
}
@media (max-width: 767px) {
  .masonry div[class^=col] .box .ex-h-kb-topic-old {
    margin-top: 0.3rem;
    padding-right: 2rem;
  }
}

/*
 * FAQ questions. The older markup's were h2 (Bootstrap's h2, the theme's weight 800) and are h3
 * under the FAQ's title; the November markup's were h3 (`section.block h3`) and are h2 without one.
 */
section.block .accordion .ex-h-faq-q {
  font-size: calc(1.325rem + 0.9vw);
  font-weight: 800;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  section.block .accordion .ex-h-faq-q {
    font-size: 2rem;
  }
}
section.block .accordion .ex-h-faq-q-nov {
  font-size: 2rem;
  font-weight: 700;
  line-height: 100%;
}

/*
 * The support search, drawn by its script: the result count was h3 (`section.block h3`), each hit's
 * title h4 (Bootstrap's h4, weight 800).
 */
section.block h2.ex-h-kb-count {
  font-size: 2rem;
  font-weight: 700;
  line-height: 100%;
}
section.block .ex-h-kb-hit {
  font-size: calc(1.275rem + 0.3vw);
  font-weight: 800;
  line-height: 1.2;
}
@media (min-width: 1200px) {
  section.block .ex-h-kb-hit {
    font-size: 1.5rem;
  }
}
