/*
 * Shared frontend overrides that should stay out of generated Oxygen CSS.
 * Build article styling from reusable classes and template structure instead
 * of Oxygen-generated IDs so it stays global and maintainable.
 */

body.single-post article.ct-div-block {
  --bbm-article-red: #ff1100;
  --bbm-article-gray: #dedede;
}

body.single-post article.ct-div-block > .ct-code-block:first-child {
  margin-top: 5rem !important;
  margin-bottom: 1.75rem !important;
}

body.single-post article.ct-div-block > .ct-code-block:first-child .teaser_parent_category {
  display: inline-block;
  font-family: "acumin-pro", sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-transform: uppercase;
}

body.single-post article.ct-div-block > h1.ct-headline {
  font-size: 360% !important;
  line-height: 0.92 !important;
  margin-bottom: 20px !important;
}

body.single-post article.ct-div-block > h1.ct-headline .bbm-article-headline-ending {
  display: inline-block;
  white-space: nowrap;
}

body.single-post article.ct-div-block > h1.ct-headline .bbm-article-headline-terminal {
  color: var(--bbm-article-red);
  display: inline;
  font: inherit;
  line-height: 1;
}

body.single-post article.ct-div-block .subline_in_single {
  color: var(--bbm-article-red);
  font-family: "acumin-pro", sans-serif;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.15;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-transform: uppercase;
}

body.single-post article.ct-div-block .subline_in_single span {
  color: inherit;
  display: inline-block;
  font: inherit;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  text-transform: inherit;
}

body.single-post article.ct-div-block .ct-inner-content > p.is-style-bbm-article-subhead,
body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-subhead,
body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-subhead-auto {
  color: #111111;
  display: block;
  font-family: "acumin-pro", sans-serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.28;
  margin-top: 0 !important;
  margin-bottom: calc(2rem + 75px) !important;
  text-transform: none;
}

body.single-post article.ct-div-block .ct-inner-content > p.is-style-bbm-article-column-title,
body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-column-title {
  color: var(--bbm-article-red);
  display: block;
  font-family: "acumin-pro", sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1.15;
  margin-top: 0 !important;
  margin-bottom: 1.5em !important;
  text-transform: uppercase;
}

body.single-post article.ct-div-block .subline_in_single span:empty {
  display: none !important;
}

body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-lead {
  display: flow-root;
  margin-bottom: 1.25em !important;
  text-indent: 0 !important;
}

body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-lead::first-letter {
  color: var(--bbm-article-red);
  float: left;
  font-family: "acumin-pro", sans-serif;
  font-size: 3.45em;
  font-style: normal;
  font-weight: 400;
  line-height: 0.78;
  margin: 0.08em 0.12em 0 0;
  padding-top: 0;
}

body.single-post article.ct-div-block .ct-inner-content > p.has-large-font-size,
body.single-post article.ct-div-block .ct-inner-content > h2,
body.single-post article.ct-div-block .ct-inner-content > h3 {
  font-family: "acumin-pro", sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.88;
  margin-top: 3.25rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

body.single-post article.ct-div-block .ct-inner-content > p.has-large-font-size {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

body.single-post article.ct-div-block .ct-inner-content > p.has-large-font-size strong,
body.single-post article.ct-div-block .ct-inner-content > h2 strong,
body.single-post article.ct-div-block .ct-inner-content > h3 strong {
  font: inherit;
}

body.single-post article.ct-div-block .ct-inner-content blockquote,
body.single-post article.ct-div-block .ct-inner-content .wp-block-quote {
  border-left: 1px solid var(--bbm-article-gray);
  margin: 3rem 0;
  padding: 0 0 0 1.35rem;
}

body.single-post article.ct-div-block .ct-inner-content blockquote p,
body.single-post article.ct-div-block .ct-inner-content .wp-block-quote p {
  font-family: "acumin-pro", sans-serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.32;
  margin-bottom: 0;
}

body.single-post article.ct-div-block .ct-inner-content .wp-block-quote cite,
body.single-post article.ct-div-block .ct-inner-content blockquote cite {
  display: block;
  font-family: "acumin-pro", sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 400;
  margin-top: 0.85rem;
}

@media (max-width: 767px) {
  body.single-post article.ct-div-block {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }

  body.single-post article.ct-div-block > h1.ct-headline {
    box-sizing: border-box;
    font-size: 288% !important;
    max-width: 100%;
    width: 100%;
    white-space: normal;
  }

  body.single-post article.ct-div-block > h1.ct-headline > .ct-span {
    display: block;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
  }

  body.single-post article.ct-div-block .ct-inner-content > p.is-style-bbm-article-subhead,
  body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-subhead,
  body.single-post article.ct-div-block .ct-inner-content > p.bbm-article-subhead-auto {
    font-size: 1.55rem;
  }

  body.single-post article.ct-div-block .ct-inner-content > p.has-large-font-size,
  body.single-post article.ct-div-block .ct-inner-content > h2,
  body.single-post article.ct-div-block .ct-inner-content > h3 {
    font-size: 2.45rem;
  }

  body.single-post article.ct-div-block .ct-inner-content blockquote,
  body.single-post article.ct-div-block .ct-inner-content .wp-block-quote {
    margin: 2.75rem 0;
    padding-left: 1.15rem;
  }

  body.single-post article.ct-div-block .ct-inner-content blockquote p,
  body.single-post article.ct-div-block .ct-inner-content .wp-block-quote p {
    font-size: 1.75rem;
    line-height: 1.28;
  }
}
