/* ==========================================================================
   BBI - Page content extras (0.5.2).

   WordPress Pages built straight from content (e.g. the glossary, WP page
   280) get no title and no styling for the Zap's .bbi-cta/.bbi-at-a-glance
   markup, because both only ever shipped scoped to the Theme Builder "Post"
   template's .bbi-post__content wrapper (bbi-post.css) — Pages have no
   equivalent template. This file gives Pages their own H1 (added via
   bbi_child_add_page_title_h1() in functions.php, only when the page's own
   content has no <h1> of its own already) and the same CTA/at-a-glance
   treatment, scoped to .page so it never touches post styling.

   Deliberately NOT a blanket typography pass over existing pages' body
   copy, which already carries its own Divi module styling — only the two
   gaps named above.

   Uses the :root tokens in bbi-hero.css (--bbi-black/white/muted/orange/font).
   Enqueued on pages only (functions.php).
   ========================================================================== */

.bbi-page__title {
	font-family: var(--bbi-font);
	font-weight: 800;
	color: var(--bbi-black);
	font-size: clamp(30px, 4.2vw, 48px);
	line-height: 1.1;
	letter-spacing: -.01em;
	margin: 0 0 .6em;
}

.page .entry-content .bbi-cta {
	background-color: var(--bbi-orange)!important;
	color: var(--bbi-black)!important;
	border-radius: 4px;
	padding: clamp(24px, 3vw, 36px);
	margin: 2em 0!important;
}

.page .entry-content .bbi-cta p {
	color: var(--bbi-black)!important;
	padding-bottom: .6em!important;
}

.page .entry-content .bbi-cta p:last-of-type {
	padding-bottom: 0!important;
}

.page .entry-content .bbi-cta strong {
	font-weight: 800;
}

.page .entry-content .bbi-cta__button {
	display: inline-block;
	margin-top: .6em;
	padding: .85em 1.6em;
	background-color: var(--bbi-black)!important;
	color: var(--bbi-white)!important;
	font-weight: 700;
	text-decoration: none!important;
	border-radius: 2px;
}

.page .entry-content .bbi-cta__button:hover {
	opacity: .82;
}

.page .entry-content ol.bbi-at-a-glance {
	list-style: none;
	counter-reset: bbi-glance;
	padding: 0!important;
	margin: 1.6em 0!important;
	border: 1px solid rgba(5, 5, 5, 0.12);
	border-radius: 4px;
	overflow: hidden;
}

.page .entry-content ol.bbi-at-a-glance li {
	counter-increment: bbi-glance;
	position: relative;
	padding: .75em 1.2em .75em 3.2em!important;
	border-bottom: 1px solid rgba(5, 5, 5, 0.12);
}

.page .entry-content ol.bbi-at-a-glance li:last-child {
	border-bottom: none;
}

.page .entry-content ol.bbi-at-a-glance li::before {
	content: counter(bbi-glance);
	position: absolute;
	left: 1.1em;
	top: .78em;
	width: 1.5em;
	height: 1.5em;
	border-radius: 50%;
	background-color: var(--bbi-orange);
	color: var(--bbi-white);
	font-size: .78em;
	font-weight: 700;
	line-height: 1.5em;
	text-align: center;
}

.page .entry-content ol.bbi-at-a-glance strong {
	font-weight: 800;
}
