/**
 * Bhinnobritto — components.css
 * Section heads, story cards, homepage blocks, single-post furniture, widgets,
 * comments, pagination. Depends on the tokens declared in main.css.
 */

/* ------------------------------------------------------------------ *
 * 1. Section head
 * ------------------------------------------------------------------ */
.bb-section {
	padding-block: var(--bb-section-space);
}

.bb-section + .bb-section {
	padding-top: 0;
}

.bb-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bb-line);
}

.bb-section__title {
	margin: 0;
	font-size: 1.32em;
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.3;
}

.bb-section__title > span,
.bb-section__title > a > span {
	position: relative;
	display: inline-block;
	padding-bottom: 10px;
}
.bb-section__title > span,
.bb-section__title > a > span {
	padding-inline-start: 14px;
	padding-bottom: 0;
}

.bb-section__title > span::before,
.bb-section__title > a > span::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 50%;
	width: 4px;
	height: 24px;
	transform: translateY(-50%);
	border-radius: 999px;
	background: var(--bb-primary);
}
.bb-section__more {
	flex: none;
	font-size: .9em;
	font-weight: 600;
	color: var(--bb-muted);
	white-space: nowrap;
}

.bb-section__more:hover { color: var(--bb-link); }

/* ------------------------------------------------------------------ *
 * 2. Card — shared skin
 * ------------------------------------------------------------------ */
.bb-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--bb-bg);
	transition: box-shadow var(--bb-motion-fast) var(--bb-ease), transform var(--bb-transition), opacity var(--bb-transition);
}

.bb-card:hover {
	transform: translateY(-2px);
}

.bb-card__title a {
	transition: color var(--bb-transition);
}

.bb-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--bb-radius-lg);
	background: var(--bb-bg-alt);
	aspect-ratio: 16 / 9;
}

.bb-card__media img,
.bb-card__media .bb-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 360ms cubic-bezier(.4, 0, .2, 1);
}

.bb-card__media .bb-thumb-placeholder {
	display: grid;
	place-items: center;
	color: var(--bb-ink);
}

.bb-card__media .bb-thumb-placeholder svg {
	width: 46%;
	height: auto;
}

.bb-card:hover .bb-card__media img { transform: scale(1.045); }

/* The brand slate stands in for a missing photograph. It is a logo, so the
   shared hover zoom reads as a glitch rather than as life. The object-fit is
   repeated because bb_thumbnail() is also called outside .bb-card__media, in
   widget and related-story rails. */
.bb-thumb-img--brand { object-fit: cover; }
.bb-card:hover .bb-thumb-img--brand { transform: none; }

.bb-card__flags {
	position: absolute;
	inset-inline-start: 8px;
	top: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	max-width: calc(100% - 16px);
}

.bb-card__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	transition: transform var(--bb-transition);
}

.bb-card:hover .bb-card__play { transform: scale(1.08); }

.bb-card__dur {
	position: absolute;
	inset-inline-end: 8px;
	bottom: 8px;
	padding: 2px 7px;
	border-radius: var(--bb-radius-sm);
	background: rgba(16, 19, 24, .82);
	color: #fff;
	font-size: .74em;
	font-weight: 600;
	line-height: 1.7;
}

.bb-card__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding-top: 11px;
	min-width: 0;
}

.bb-card__cat {
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .01em;
}

.bb-card__cat a { color: var(--bb-primary-dark); }
.bb-card__cat a:hover { color: var(--bb-ink); }

.bb-card__title {
	margin: 0;
	font-size: 1.06em;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: -.005em;
}

.bb-card__title a { display: block; }
.bb-card__title a:hover { color: var(--bb-link); }

.bb-card__excerpt {
	margin: 0;
	color: var(--bb-muted);
	font-size: .93em;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-card__tldr {
	margin: 0;
	padding-inline-start: 0;
	list-style: none;
	color: var(--bb-muted);
	font-size: .94em;
	line-height: 1.65;
}

.bb-card__tldr li {
	position: relative;
	padding-inline-start: 18px;
	margin-bottom: 4px;
}

.bb-card__tldr li::before {
	content: "";
	position: absolute;
	inset-inline-start: 2px;
	top: .62em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--bb-primary);
}

/* Meta line */
.bb-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	color: var(--bb-faint);
	font-size: .82em;
	line-height: 1.6;
}

.bb-meta a { color: var(--bb-muted); font-weight: 600; }
.bb-meta a:hover { color: var(--bb-link); }
.bb-byline { font-weight: 600; color: var(--bb-muted); }

/* bb_byline() prints the reporter (or a link to the author) and an optional
   dateline side by side. The dateline is the city a story was filed from, so it
   is set apart the way a print byline sets it apart — a bullet and a lighter
   weight, not a second sentence. */
.bb-author {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.bb-author:hover,
.bb-author:focus-visible { color: var(--bb-link); }

.bb-dateline {
	color: var(--bb-faint);
	font-weight: 500;
	text-transform: none;
}

.bb-dateline::before {
	content: "•";
	padding-inline: 5px 4px;
	color: var(--bb-line);
}

.bb-views,
.bb-readtime,
span.bb-comments { white-space: nowrap; }

/* ------------------------------------------------------------------ *
 * 3. Card variants
 * ------------------------------------------------------------------ */

/* hero — the homepage lead */
.bb-card--hero .bb-card__media {
	border-radius: var(--bb-radius-xxl);
}

.bb-card--hero .bb-card__body {
	padding-top: 18px;
	gap: 9px;
}

.bb-card--hero .bb-card__title {
	font-size: clamp(1.55rem, 2.6vw, 2.55rem);
	line-height: 1.24;
	letter-spacing: -.025em;
}

.bb-card--hero .bb-card__cat { font-size: .84em; }

/* wide — feature slot inside category sections */
.bb-card--wide .bb-card__title { font-size: 1.24em; }

/* grid — the workhorse */
.bb-card--grid .bb-card__title { font-size: 1.02em; }

/* list — image beside the text */
.bb-card--list {
	flex-direction: row;
	gap: 14px;
	align-items: flex-start;
}
.bb-card--list {
	padding-block: 14px;
	border-bottom: 1px solid var(--bb-line-soft);
}

.bb-card--list:first-child {
	padding-top: 0;
}

.bb-card--list:last-child {
	border-bottom: 0;
}
.bb-card--list .bb-card__media {
	flex: 0 0 148px;
	width: 148px;
	border-radius: var(--bb-radius-sm);
}

.bb-card--list .bb-card__body {
	padding-top: 0;
	gap: 5px;
}

.bb-card--list .bb-card__title { font-size: 1em; }
.bb-card--list .bb-card__excerpt { -webkit-line-clamp: 2; }

/* compact — the “latest” rail */
.bb-hero-block__rail {
    padding: 18px;
    border: 1px solid var(--bb-line);
    border-radius: var(--bb-radius-xl);
    background: var(--bb-bg-alt);
}

.bb-rail__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.bb-card--compact {
    flex-direction: row;
    gap: 11px;
    align-items: flex-start;
    padding: 12px 12px;
    border: 1px solid var(--bb-line-soft);
    border-radius: 12px;
    background: var(--bb-bg);
}

.bb-card--compact:last-child {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bb-line-soft);
}

.bb-card--compact .bb-card__media {
    flex: 0 0 84px;
    width: 84px;
    border-radius: 8px;
}

.bb-card--compact .bb-card__flags {
    display: none;
}

.bb-card--compact .bb-card__body {
    padding-top: 0;
    gap: 4px;
}

.bb-card--compact .bb-card__title {
    font-size: .95em;
    line-height: 1.5;
    font-weight: 600;
}

/* video — grid card with a permanent play affordance */
.bb-card--video .bb-card__media { border-radius: var(--bb-radius); }
.bb-card--video .bb-card__title { font-size: 1em; }

/* rank — most-read list */
.bb-card--rank {
	flex-direction: row;
	gap: 12px;
	align-items: flex-start;
}

.bb-card--rank .bb-card__media {
	order: 2;
	flex: 0 0 78px;
	width: 78px;
	border-radius: var(--bb-radius-sm);
}

.bb-card--rank .bb-card__flags { display: none; }

.bb-card--rank .bb-card__body {
	order: 1;
	flex-direction: row;
	align-items: flex-start;
	gap: 12px;
	padding-top: 0;
	flex: 1 1 auto;
}

.bb-card--rank .bb-card__title {
	font-size: .98em;
	font-weight: 600;
	line-height: 1.55;
}

.bb-rank {
	flex: none;
	font-family: var(--bb-font-head);
	font-size: 1.6em;
	font-weight: 800;
	line-height: 1;
	color: var(--bb-primary);
	-webkit-text-stroke: 1px rgba(217, 159, 10, .45);
}

.bb-ranklist {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: bb-rank;
}

.bb-ranklist > li {
	padding-block: 13px;
	border-bottom: 1px solid var(--bb-line-soft);
}

.bb-ranklist > li:first-child { padding-top: 0; }

.bb-ranklist > li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * 4. Hero block
 * ------------------------------------------------------------------ */
.bb-hero-block { padding-top: 24px; }

.bb-hero-block__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(250px, .9fr) minmax(220px, .65fr);
	gap: clamp(20px, 2.4vw, 34px);
	align-items: start;
}

.bb-hero-block__side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bb-hero-block__side .bb-card--list .bb-card__media {
	flex: 0 0 112px;
	width: 112px;
}

.bb-hero-block__rail {
	padding: 18px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-xl);
	background: var(--bb-bg-alt);
}

.bb-hero-block__rail .bb-section__title {
	font-size: 1.05em;
	margin-bottom: 16px;
}

.bb-rail__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 14px;
}

/* --- Composition: overlay ---------------------------------------------
 * One full-width lead with the headline written over the photograph, then a
 * four-across row of secondary stories. Two children only, so a single
 * column plus an inner grid is enough — no rail.
 * These selectors carry two classes on purpose: responsive.css sets
 * .bb-hero-block__grid on its own and loads later, so a one-class rule here
 * would lose the cascade.
 * ------------------------------------------------------------------ */
.bb-hero-block--overlay .bb-hero-block__grid { grid-template-columns: minmax(0, 1fr); }

.bb-hero-block--overlay .bb-hero-block__side {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--bb-gap);
}

/* --- Composition: list -----------------------------------------------
 * Lead on the reading side, a long numbered “latest” column beside it. This
 * composition drops the rail thumbnails on purpose: eight headlines in a
 * third of the container read as a newspaper index, and the numbers do the
 * scanning work the pictures would otherwise do.
 * ------------------------------------------------------------------ */
.bb-hero-block--list .bb-hero-block__grid {
	grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
}

.bb-hero-block--list .bb-rail__list {
    counter-reset: bb-hero-rail;
    gap: 8px;
}

.bb-hero-block--list .bb-rail__list .bb-card--compact {
    display: grid;
    grid-template-columns: 1.9em minmax(0, 1fr);
    gap: 10px;
    align-items: start;

    padding: 12px 10px;
    border: 1px solid var(--bb-line-soft);
    border-radius: 12px;
    background: var(--bb-bg);
}

.bb-hero-block--list .bb-rail__list .bb-card--compact:first-child {
    padding-top: 12px;
}
.bb-hero-block--list .bb-rail__list .bb-card--compact:last-child {
    padding-bottom: 12px;
}
.bb-hero-block--list .bb-rail__list .bb-card__media { display: none; }

/* The number is generated, not printed, so it never reaches the accessibility
   tree or the reading order — the headline link stays the only content. */
.bb-hero-block--list .bb-rail__list .bb-card--compact::before {
	counter-increment: bb-hero-rail;
	content: counter(bb-hero-rail, decimal);
	font-family: var(--bb-font-head);
	font-size: 1.05em;
	font-weight: 800;
	line-height: 1.45;
	color: var(--bb-primary-dark);
}

/* Bangla numerals, to match what bb_num() prints everywhere else. */
:lang(bn) .bb-hero-block--list .bb-rail__list .bb-card--compact::before {
	content: counter(bb-hero-rail, bengali);
}

/* --- The overlay lead card ------------------------------------------- */
.bb-card--overlay {
	position: relative;
	border-radius: var(--bb-radius-lg);
	overflow: hidden;
	isolation: isolate;
}

.bb-card--overlay .bb-card__media {
	border-radius: 0;
	aspect-ratio: 21 / 9;
}

/* A scrim rather than a flat tint: the headline needs contrast at the bottom
   without dulling the whole photograph. */
.bb-card--overlay .bb-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(6, 8, 12, .92) 0%, rgba(6, 8, 12, .72) 34%, rgba(6, 8, 12, .12) 66%, rgba(6, 8, 12, 0) 100%);
	pointer-events: none;
}

/* The scrim is generated last, so anything else layered on the photograph has
   to be lifted above it explicitly. */
.bb-card--overlay .bb-card__flags,
.bb-card--overlay .bb-card__play,
.bb-card--overlay .bb-card__dur { z-index: 2; }

.bb-card--overlay .bb-card__body {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 1;
	padding: 22px clamp(16px, 3vw, 34px);
	gap: 10px;
	color: #fff;
}

.bb-card--overlay .bb-card__title {
	font-size: clamp(1.45em, 1.05em + 1.5vw, 2.4em);
	line-height: 1.24;
	letter-spacing: -.022em;
	text-wrap: balance;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
}

.bb-card--overlay .bb-card__title a { color: #fff; }
.bb-card--overlay .bb-card__title a:hover,
.bb-card--overlay .bb-card__title a:focus-visible { color: var(--bb-primary); }

/* .bb-meta and .bb-badge are both tuned for a white page, so they need
   overriding once they sit on a photograph. */
.bb-card--overlay .bb-meta,
.bb-card--overlay .bb-meta a,
.bb-card--overlay .bb-meta time { color: rgba(255, 255, 255, .82); }

.bb-card--overlay .bb-meta a:hover { color: var(--bb-primary); }

.bb-card--overlay .bb-card__cat .bb-badge {
	background: var(--bb-primary);
	color: var(--bb-on-primary);
}

/* ------------------------------------------------------------------ *
 * 5. Category sections
 * ------------------------------------------------------------------ */
.bb-catsection__grid {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: start;
}

.bb-catsection__rest {
	display: grid;
	gap: var(--bb-gap);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* When the section renders list cards they read better stacked full width. */
.bb-catsection__rest .bb-card--list { grid-column: 1 / -1; }

.bb-catsection__rest .bb-card--list + .bb-card--list {
	padding-top: 16px;
	border-top: 1px solid var(--bb-line-soft);
}

/* ------------------------------------------------------------------ *
 * 6. Video / reels strip
 * ------------------------------------------------------------------ */
.bb-videos {
	margin-block: 14px;
	padding-block: 30px;
	background: var(--bb-bg-deep);
	color: rgba(255, 255, 255, .82);
}

.bb-videos .bb-section__head--invert {
	border-bottom-color: rgba(255, 255, 255, .14);
}

.bb-videos .bb-section__title { color: #fff; }
.bb-videos .bb-section__more { color: rgba(255, 255, 255, .7); }
.bb-videos .bb-section__more:hover { color: var(--bb-primary); }

.bb-videos__grid {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	align-items: start;
}

.bb-videos__poster {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: var(--bb-radius);
	aspect-ratio: 16 / 9;
}

.bb-videos__poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-videos__title {
	margin: 14px 0 0;
	font-size: 1.24em;
	line-height: 1.42;
}

.bb-videos__title a { color: #fff; }
.bb-videos__title a:hover { color: var(--bb-primary); }

.bb-videos__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 460px;
	overflow-y: auto;
	padding-inline-end: 4px;
}

.bb-videos .bb-card { background: transparent; }
.bb-videos .bb-card__title a { color: rgba(255, 255, 255, .92); }
.bb-videos .bb-card__title a:hover { color: var(--bb-primary); }
.bb-videos .bb-card--compact { border-bottom-color: rgba(255, 255, 255, .1); }
.bb-videos .bb-meta { color: rgba(255, 255, 255, .5); }

/* ------------------------------------------------------------------ *
 * 7. Most read + opinion + fact list
 * ------------------------------------------------------------------ */
.bb-mostread__grid {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: minmax(0, 1fr) 330px;
	align-items: start;
}

.bb-mostread__grid--nosidebar { grid-template-columns: minmax(0, 1fr); }

.bb-mostread .bb-section__head + .bb-ranklist { margin-bottom: 26px; }

.bb-opinion__grid {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: start;
}

.bb-opinion__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bb-oped {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--bb-line-soft);
}

.bb-oped:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bb-oped__avatar { flex: none; }

.bb-oped__avatar img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--bb-primary-soft);
}

.bb-oped__body { min-width: 0; }

.bb-oped__title {
	margin: 0 0 4px;
	font-size: 1.04em;
	line-height: 1.45;
}

.bb-oped__author {
	margin: 0 0 5px;
	color: var(--bb-primary-dark);
	font-size: .84em;
	font-weight: 700;
}

.bb-oped__excerpt {
	margin: 0;
	color: var(--bb-muted);
	font-size: .92em;
	line-height: 1.7;
}

.bb-opinion__col--fact {
	padding: 18px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-lg);
	background: var(--bb-bg-alt);
}

.bb-factlist {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.bb-factitem {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--bb-line);
}

.bb-factitem:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.bb-factitem__title {
	margin: 6px 0 4px;
	font-size: 1em;
	line-height: 1.5;
}

.bb-factitem__claim {
	margin: 0;
	color: var(--bb-muted);
	font-size: .9em;
	line-height: 1.65;
}

/* Verdict pill — shared by the fact rail, the factbox and archive cards. */
.bb-verdict {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: .78em;
	font-weight: 700;
	line-height: 1.7;
	border: 1px solid transparent;
}

.bb-verdict--true {
	background: rgba(18, 140, 90, .1);
	border-color: rgba(18, 140, 90, .38);
	color: #0e7049;
}

.bb-verdict--mixed {
	background: rgba(217, 159, 10, .14);
	border-color: rgba(217, 159, 10, .42);
	color: #97700a;
}

.bb-verdict--false {
	background: rgba(215, 38, 61, .1);
	border-color: rgba(215, 38, 61, .38);
	color: #b21e31;
}

/* ------------------------------------------------------------------ *
 * 8. Social strip
 * ------------------------------------------------------------------ */
.bb-socialstrip__grid {
	display: grid;
	gap: var(--bb-gap-lg);
	grid-template-columns: 500px minmax(0, 1fr);
	align-items: start;
}

.bb-socialstrip__page {
	width: 380px;
	max-width: 100%;
	margin-inline: auto;
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg-alt);
	min-height: 700px;
}

/* উচ্চতা CSS-এ না থাকলে iframe নিজে থেকে ছোট হয়ে যায় এবং ফেসবুকের পোস্টগুলো
   বক্সের নিচে চাপা পড়ে — তাই height স্পষ্ট করে বসানো হলো। */
.bb-socialstrip__page iframe {
	display: block;
	width: 100%;
	height: 700px;
	border: 0;
}

.bb-socialstrip__posts {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.bb-socialstrip__posts .bb-card--list + .bb-card--list {
	padding-top: 18px;
	border-top: 1px solid var(--bb-line-soft);
}

.bb-socialstrip__follow {
	padding: 26px;
	border: 1px dashed var(--bb-line);
	border-radius: var(--bb-radius-lg);
	background: var(--bb-primary-soft);
	text-align: center;
}

.bb-socialstrip__follow p {
	margin-bottom: 14px;
	font-weight: 600;
}

.bb-social--lg {
	justify-content: center;
	gap: 10px;
}

.bb-social--lg .bb-social__link {
	width: 44px;
	height: 44px;
	background: var(--bb-bg);
	box-shadow: var(--bb-shadow-sm);
}

.bb-social--lg .bb-social__link:hover {
	background: var(--bb-ink);
	color: #fff;
}

.bb-social--lg .bb-social__link svg {
	width: 20px;
	height: 20px;
}

/* ------------------------------------------------------------------ *
 * 9. Embeds (fixed ratio, lazy iframes)
 * ------------------------------------------------------------------ */
.bb-embed {
	position: relative;
	overflow: hidden;
	border-radius: var(--bb-radius);
	background: #000;
}

.bb-embed::before {
	content: "";
	display: block;
	padding-top: 56.25%;
}

.bb-embed iframe,
.bb-embed video,
.bb-embed embed,
.bb-embed object {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bb-embed--social {
	background: var(--bb-bg-alt);
	border: 1px solid var(--bb-line);
}

.bb-embed--social::before { padding-top: 118%; }

/* WordPress core embed wrapper gets the same treatment inside prose. */
.bb-prose .wp-block-embed__wrapper iframe,
.bb-prose iframe {
	width: 100%;
	border-radius: var(--bb-radius);
}

/* ------------------------------------------------------------------ *
 * 10. Load more + pagination
 * ------------------------------------------------------------------ */
.bb-loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 26px;
}

.bb-loadmore { min-width: 190px; justify-content: center; }

.bb-pagination-wrap { margin-top: 22px; }

.bb-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-pagination a,
.bb-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: 12px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg);
	font-weight: 600;
	font-size: .92em;
	transition: background var(--bb-transition), border-color var(--bb-transition), color var(--bb-transition);
}

.bb-pagination a:hover {
	background: var(--bb-primary-soft);
	border-color: var(--bb-primary);
	color: var(--bb-ink);
}

.bb-pagination .current {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: var(--bb-on-primary);
}

.bb-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: var(--bb-faint);
}

/* ------------------------------------------------------------------ *
 * 11. Breadcrumbs, archive heads, chips
 * ------------------------------------------------------------------ */
.bb-breadcrumb {
	margin-bottom: 16px;
	font-size: .84em;
	color: var(--bb-faint);
}

.bb-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.bb-breadcrumb__item a { color: var(--bb-muted); }
.bb-breadcrumb__item a:hover { color: var(--bb-link); }
.bb-breadcrumb__item [aria-current="page"] {
	color: var(--bb-ink);
	font-weight: 600;
}
.bb-breadcrumb__sep { color: var(--bb-line); }

.bb-archive__head {
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--bb-line);
}

.bb-archive__title {
	margin: 0 0 6px;
	font-size: clamp(1.5em, 1.2em + .9vw, 2.1em);
	letter-spacing: -.02em;
}

.bb-archive__title--cat span { color: var(--bb-primary-dark); }

.bb-archive__desc {
	max-width: 67ch;
	margin: 8px 0 0;
	color: var(--bb-muted);
	font-size: .96em;
}

.bb-archive__count {
	display: block;
	color: var(--bb-faint);
	font-size: .86em;
	font-weight: 600;
}

.bb-archive__search { margin-top: 16px; max-width: 520px; }

.bb-subcats,
.bb-chipnav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	padding: 0;
	list-style: none;
}

.bb-subcats .bb-chip,
.bb-chipnav .bb-chip {
	font-size: .84em;
	padding: 6px 14px;
}

.bb-catlead { margin-bottom: var(--bb-gap-lg); }

.bb-catlist,
.bb-widget ul.bb-catlist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-catlist li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 8px;
	border-bottom: 1px solid var(--bb-line-soft);
	font-weight: 600;
	font-size: .95em;
}

.bb-catlist li:last-child { border-bottom: 0; }
.bb-catlist li a { flex: 1 1 auto; }
.bb-catlist li:hover a { color: var(--bb-link); }

/* ------------------------------------------------------------------ *
 * 12. Single — head, figure, bar
 * ------------------------------------------------------------------ */
.bb-single__head { margin-bottom: 18px; }

.bb-single__head--center { text-align: center; }

.bb-single__flags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.bb-single__flags:empty { display: none; }

.bb-single__kicker {
	margin-bottom: 8px;
	font-size: .88em;
	font-weight: 700;
}

.bb-single__kicker a { color: var(--bb-primary-dark); }
.bb-single__kicker a:hover { color: var(--bb-ink); }

.bb-single__title {
	margin: 0 0 12px;
	font-size: clamp(1.72em, 1.25em + 1.7vw, 2.62em);
	font-weight: 800;
	line-height: 1.26;
	letter-spacing: -.024em;
}

.bb-single__standfirst {
	max-width: var(--bb-max-prose);
	margin: 0 0 14px;
	color: var(--bb-muted);
	font-size: 1.1em;
	line-height: 1.7;
	font-weight: 500;
}

.bb-single__head--center .bb-single__standfirst { margin-inline: auto; }

.bb-single__updated {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	padding: 3px 10px;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-primary-soft);
	color: #97700a;
	font-size: .8em;
	font-weight: 600;
}

.bb-single__figure {
	margin: 0 0 18px;
	border-radius: var(--bb-radius-lg);
	overflow: hidden;
	background: var(--bb-bg-alt);
}

.bb-single__image {
	width: 100%;
	height: auto;
}

.bb-single__caption {
	padding: 9px 14px;
	background: var(--bb-bg-alt);
	color: var(--bb-muted);
	font-size: .85em;
	line-height: 1.6;
}

.bb-single__player { margin-bottom: 16px; }

.bb-single__duration {
	display: inline-block;
	margin-bottom: 12px;
	color: var(--bb-muted);
	font-size: .86em;
	font-weight: 600;
}

.bb-single__srclink {
	display: inline-flex;
	margin-bottom: 18px;
	font-weight: 600;
	font-size: .92em;
	color: var(--bb-link);
}

.bb-single__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding-block: 14px;
	margin-bottom: 18px;
	border-top: 1px solid var(--bb-line);
	border-bottom: 1px solid var(--bb-line);
}

.bb-single__bar--center { justify-content: center; }
.bb-single__bar:empty { display: none; }

/* ------------------------------------------------------------------ *
 * 13. Prose (article body)
 * ------------------------------------------------------------------ */
.bb-prose {
	max-width: var(--bb-max-prose);
	font-size: 1.06em;
	line-height: var(--bb-lh-body);
}

.bb-prose--wide { max-width: none; }

.bb-prose > * + * { margin-top: 1.15em; }

.bb-prose p { margin: 0; }

.bb-prose h2,
.bb-prose h3,
.bb-prose h4 {
	margin: 1.7em 0 .55em;
	letter-spacing: -.015em;
}

.bb-prose h2 { font-size: 1.42em; }
.bb-prose h3 { font-size: 1.2em; }
.bb-prose h4 { font-size: 1.06em; }

.bb-prose a {
	color: var(--bb-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.bb-prose a:hover { text-decoration-thickness: 2px; }

.bb-prose ul,
.bb-prose ol { padding-inline-start: 1.4em; }

.bb-prose li + li { margin-top: .4em; }

.bb-prose img,
.bb-prose figure img { border-radius: var(--bb-radius); }

.bb-prose figure { margin: 1.6em 0; }

.bb-prose figcaption {
	margin-top: 7px;
	color: var(--bb-muted);
	font-size: .86em;
	line-height: 1.6;
}

.bb-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-inline-start: 4px solid var(--bb-primary);
	font-size: 1.1em;
	font-weight: 500;
	color: var(--bb-ink);
}

.bb-prose blockquote p:last-child { margin-bottom: 0; }

.bb-prose pre {
	padding: 16px;
	border-radius: var(--bb-radius);
	background: var(--bb-bg-deep);
	color: #e8eaee;
	overflow-x: auto;
	font-size: .9em;
	line-height: 1.7;
}

.bb-prose code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--bb-bg-alt);
	font-size: .92em;
}

.bb-prose pre code {
	padding: 0;
	background: none;
}

.bb-prose table { font-size: .95em; }
.bb-prose th { background: var(--bb-bg-alt); font-weight: 700; }

.bb-prose .wp-caption { max-width: 100%; }
.bb-prose .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.bb-prose .alignright { float: right; margin: .4em 0 1em 1.4em; }
.bb-prose .aligncenter { margin-inline: auto; }

.bb-prose .wp-block-pullquote,
.bb-prose .bb-highlight {
	padding: 20px 22px;
	border: 0;
	border-radius: var(--bb-radius);
	background: var(--bb-primary-soft);
	font-size: 1.06em;
	font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * 14. TL;DR — the direct-answer matrix
 * ------------------------------------------------------------------ */
.bb-tldr {
	margin-bottom: 22px;
	padding: 18px 20px;
	border: 1px solid rgba(250, 191, 36, .55);
	border-inline-start: 4px solid var(--bb-primary);
	border-radius: var(--bb-radius);
	background: var(--bb-primary-soft);
}

.bb-tldr__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.bb-tldr__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 1.06em;
	font-weight: 800;
	letter-spacing: -.005em;
	color: #7a5a05;
}

.bb-tldr__updated {
	color: #97700a;
	font-size: .8em;
	font-weight: 600;
}

.bb-tldr__list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.02em;
	line-height: 1.75;
}

.bb-tldr__list li {
	position: relative;
	padding-inline-start: 22px;
	margin-bottom: 7px;
	font-weight: 500;
}

.bb-tldr__list li:last-child { margin-bottom: 0; }

.bb-tldr__list li::before {
	content: "";
	position: absolute;
	inset-inline-start: 4px;
	top: .68em;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bb-primary-dark);
}

.bb-tldr__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed rgba(217, 159, 10, .5);
}

.bb-tldr__foot .bb-chip { background: rgba(255, 255, 255, .7); }

/* ------------------------------------------------------------------ *
 * 15. Share row
 * ------------------------------------------------------------------ */
.bb-share {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.bb-share__label {
	font-size: .86em;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-share__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--bb-line);
	background: var(--bb-bg);
	color: var(--bb-muted);
	transition: background var(--bb-transition), color var(--bb-transition), border-color var(--bb-transition), transform var(--bb-transition);
}

.bb-share__btn:hover {
	transform: translateY(-2px);
	color: #fff;
}

.bb-share__name { display: none; }

.bb-share__btn--facebook:hover { background: #1877f2; border-color: #1877f2; }
.bb-share__btn--x:hover { background: #0f1419; border-color: #0f1419; }
.bb-share__btn--whatsapp:hover { background: #25d366; border-color: #25d366; }
.bb-share__btn--messenger:hover { background: #0084ff; border-color: #0084ff; }
.bb-share__btn--telegram:hover { background: #229ed9; border-color: #229ed9; }
.bb-share__btn--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }
.bb-share__btn--email:hover { background: var(--bb-muted); border-color: var(--bb-muted); }
.bb-share__btn--copy:hover { background: var(--bb-ink); border-color: var(--bb-ink); }

.bb-share__btn.is-copied {
	background: var(--bb-verified);
	border-color: var(--bb-verified);
	color: #fff;
}

.bb-single__sharefoot {
	margin-block: 26px;
	padding-block: 16px;
	border-top: 1px solid var(--bb-line);
	border-bottom: 1px solid var(--bb-line);
}

/* ------------------------------------------------------------------ *
 * 16. Voice reader
 * ------------------------------------------------------------------ */
.bb-voice {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bb-voice[hidden] { display: none; }

.bb-voice__play { padding: 9px 18px; }

.bb-voice__play[aria-pressed="true"] {
	background: var(--bb-ink);
	border-color: var(--bb-ink);
	color: #fff;
}

.bb-voice__rate {
	display: inline-flex;
	align-items: center;
	width: 92px;
}

.bb-voice__rate input[type="range"] {
	width: 100%;
	accent-color: var(--bb-primary-dark);
}

.bb-voice__status {
	font-size: .82em;
	font-weight: 600;
	color: var(--bb-muted);
}

.bb-voice.is-speaking .bb-voice__status { color: var(--bb-primary-dark); }

/* The paragraph currently being spoken. */
.bb-speaking {
	background: var(--bb-primary-soft);
	box-shadow: inset 3px 0 0 var(--bb-primary);
	border-radius: 3px;
}

/* ------------------------------------------------------------------ *
 * 17. Social embed inside articles
 * ------------------------------------------------------------------ */
.bb-socialembed {
	margin: 24px 0;
	max-width: 560px;
}

.bb-socialembed__custom iframe,
.bb-socialembed__custom blockquote {
	max-width: 100%;
	margin-inline: auto;
}

.bb-socialembed__cap {
	margin-top: 8px;
	font-size: .88em;
	font-weight: 600;
}

.bb-socialembed__cap a { color: var(--bb-link); }

/* ------------------------------------------------------------------ *
 * 18. Fact box + methodology note
 * ------------------------------------------------------------------ */
.bb-factbox {
	margin-block: 24px;
	padding: 18px 20px;
	border: 1px solid var(--bb-line);
	border-inline-start: 4px solid var(--bb-muted);
	border-radius: var(--bb-radius);
	background: var(--bb-bg-alt);
}

.bb-factbox--true { border-inline-start-color: var(--bb-verified); }
.bb-factbox--mixed { border-inline-start-color: var(--bb-primary-dark); }
.bb-factbox--false { border-inline-start-color: var(--bb-breaking); }

.bb-factbox__title {
	margin: 0 0 12px;
	font-size: 1.06em;
	font-weight: 800;
}

.bb-factbox__rows {
	display: grid;
	gap: 10px;
	margin: 0;
}

.bb-factbox__row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
}

.bb-factbox__row > dt {
	font-size: .86em;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-factbox__row > dd { margin: 0; }

.bb-factbox__claim {
	font-weight: 500;
	line-height: 1.7;
}

.bb-factnote {
	margin-block: 26px;
	padding: 18px 20px;
	border-radius: var(--bb-radius);
	background: var(--bb-bg-alt);
	font-size: .95em;
}

.bb-factnote__title {
	margin: 0 0 8px;
	font-size: 1.02em;
	font-weight: 800;
}

.bb-factnote p {
	margin: 0;
	color: var(--bb-muted);
	line-height: 1.8;
}

/* ------------------------------------------------------------------ *
 * 19. FAQ (FAQPage schema mirror)
 * ------------------------------------------------------------------ */
.bb-faq { margin-block: 28px; }

.bb-faq__title {
	margin: 0 0 14px;
	font-size: 1.28em;
	font-weight: 800;
}

.bb-faq__list {
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	overflow: hidden;
}

.bb-faq__item + .bb-faq__item { border-top: 1px solid var(--bb-line); }

.bb-faq__q {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	cursor: pointer;
	font-weight: 700;
	font-size: 1.01em;
	line-height: 1.6;
	list-style: none;
	background: var(--bb-bg);
	transition: background var(--bb-transition);
}

.bb-faq__q::-webkit-details-marker { display: none; }

.bb-faq__q::after {
	content: "+";
	margin-inline-start: auto;
	flex: none;
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--bb-primary-soft);
	color: var(--bb-primary-dark);
	font-size: 1.05em;
	line-height: 1;
}

.bb-faq__item[open] .bb-faq__q { background: var(--bb-bg-alt); }
.bb-faq__item[open] .bb-faq__q::after { content: "\2212"; }

.bb-faq__q:hover { background: var(--bb-bg-alt); }

.bb-faq__a {
	padding: 2px 16px 16px;
	color: var(--bb-muted);
	line-height: 1.85;
}

.bb-faq__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ *
 * 20. Terms, post nav, page links
 * ------------------------------------------------------------------ */
.bb-single__terms {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-block: 24px;
}

.bb-terms {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
}

.bb-terms__label {
	font-size: .84em;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-terms a {
	display: inline-flex;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--bb-bg-alt);
	border: 1px solid var(--bb-line);
	font-size: .84em;
	font-weight: 600;
	transition: background var(--bb-transition), border-color var(--bb-transition);
}

.bb-terms a:hover {
	background: var(--bb-primary-soft);
	border-color: var(--bb-primary);
	color: var(--bb-ink);
}

.bb-terms--tag a::before {
	content: "#";
	margin-inline-end: 2px;
	color: var(--bb-faint);
}

.bb-linkpages {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 24px;
	font-weight: 600;
	font-size: .92em;
}

.bb-linkpages span,
.bb-linkpages a > span {
	display: inline-grid;
	place-items: center;
	min-width: 34px;
	height: 34px;
	padding-inline: 8px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
}

.bb-linkpages > span:first-child {
	border: 0;
	color: var(--bb-muted);
	min-width: 0;
}

.bb-linkpages a > span:hover {
	background: var(--bb-primary-soft);
	border-color: var(--bb-primary);
}

/* ------------------------------------------------------------------ *
 * 21. After-content widget area + previous/next post nav
 * ------------------------------------------------------------------ */
.bb-aftercontent {
	margin-block: 26px;
	display: grid;
	gap: 18px;
}

.bb-aftercontent .widget { margin: 0; }

.bb-postnav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-block: 26px;
}

.bb-postnav__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 14px 16px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg);
	transition: border-color var(--bb-transition), background var(--bb-transition), transform var(--bb-transition);
}

.bb-postnav__item:hover {
	border-color: var(--bb-primary);
	background: var(--bb-bg-alt);
	transform: translateY(-2px);
}

.bb-postnav__item--next {
	text-align: end;
	grid-column: 2;
}

.bb-postnav__label {
	font-size: .78em;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--bb-primary-dark);
	text-transform: uppercase;
}

.bb-postnav__title {
	font-weight: 700;
	line-height: 1.55;
	color: var(--bb-ink);
}

/* ------------------------------------------------------------------ *
 * 22. Author box (single) + author archive hero
 * ------------------------------------------------------------------ */
.bb-authorbox {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	margin-block: 28px;
	padding: 20px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg-alt);
}

.bb-authorbox__avatar img,
.bb-authorhero__avatar img {
	width: 100%;
	height: auto;
	border-radius: 50%;
	border: 3px solid var(--bb-bg);
	box-shadow: var(--bb-shadow-sm);
}

.bb-authorbox__name {
	margin: 0 0 6px;
	font-size: 1.1em;
	font-weight: 800;
}

.bb-authorbox__bio {
	margin: 0 0 8px;
	color: var(--bb-muted);
	font-size: .95em;
	line-height: 1.8;
}

.bb-authorbox__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: .88em;
	font-weight: 700;
}

.bb-authorbox__links a { color: var(--bb-primary-dark); }
.bb-authorbox__links a:hover { text-decoration: underline; }

.bb-authorhero {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	margin-bottom: 26px;
	padding: 24px;
	border-radius: var(--bb-radius-lg);
	background:
		linear-gradient(120deg, var(--bb-primary-soft), var(--bb-bg-alt));
	border: 1px solid var(--bb-line);
}

.bb-authorhero__name {
	margin: 0 0 6px;
	font-size: clamp(1.4em, 1.2em + .7vw, 1.85em);
	font-weight: 800;
	line-height: 1.35;
}

.bb-authorhero__bio {
	margin: 0 0 8px;
	max-width: 70ch;
	color: var(--bb-muted);
	line-height: 1.8;
}

.bb-authorhero__stats {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	font-size: .88em;
	font-weight: 600;
	color: var(--bb-muted);
}

.bb-authorhero__stats strong {
	color: var(--bb-ink);
	font-weight: 800;
}

/* ------------------------------------------------------------------ *
 * 23. Related news
 * ------------------------------------------------------------------ */
.bb-related { margin-block: 32px; }

/* ------------------------------------------------------------------ *
 * 24. Sidebar + widgets
 * `.widget` / `.widget-title` come from register_sidebar() in inc/setup.php;
 * `.bb-widget` / `.bb-widget__title` come from the sidebar.php fallback.
 * ------------------------------------------------------------------ */
.bb-sidebar {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.bb-sidebar--sticky {
	position: sticky;
	top: 104px;
	align-self: start;
	max-height: none;
	overflow: visible;
	overscroll-behavior: auto;
	padding-inline-end: 0;
}
.bb-sidebar--no-scroll {
  max-height: none;
  overflow-y: visible;
}

body.admin-bar .bb-sidebar--sticky { top: 128px; }

.bb-sidebar .widget,
.bb-sidebar .bb-widget {
	margin: 0;
	padding: 18px 0;
	border: 0;
	border-top: 1px solid var(--bb-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.bb-sidebar .widget:first-child,
.bb-sidebar .bb-widget:first-child {
	padding-top: 0;
	border-top: 0;
}

.widget-title,
.bb-widget__title {
	position: relative;
	margin: 0 0 14px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--bb-line);
	font-size: 1.02em;
	font-weight: 800;
	line-height: 1.4;
}

.widget-title::after,
.bb-widget__title::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -2px;
	width: 54px;
	height: 2px;
	background: var(--bb-primary);
}

.widget-title > span { display: inline-block; }

.bb-sidebar .widget ul,
.bb-sidebar .bb-widget ul,
.bb-sidebar .widget ol,
.bb-sidebar .bb-widget ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-sidebar .widget select,
.bb-sidebar .widget input[type="text"],
.bb-sidebar .widget input[type="search"] {
	width: 100%;
	max-width: 100%;
}

.bb-sidebar .widget p:last-child { margin-bottom: 0; }

/* Core WP list widgets (categories, archives, recent posts, nav menu). */
.bb-sidebar .widget li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--bb-line);
	font-weight: 600;
	font-size: .95em;
	line-height: 1.6;
}

.bb-sidebar .widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.bb-sidebar .widget li a:hover { color: var(--bb-primary-dark); }
.bb-sidebar .widget li ul { padding-inline-start: 14px; }

/* BB_Widget_Posts — news list with optional thumbnail and ranking. */
.bb-widget-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	counter-reset: bbwidget;
}

/* Flexbox rather than grid so the optional thumbnail and rank badge can be
   present or absent without needing :has() support. */
.bb-widget-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 0 0 12px;
	border-bottom: 1px dashed var(--bb-line);
}

.bb-widget-item:last-child { border-bottom: 0; padding-bottom: 0; }

.bb-widget-thumb {
	flex: 0 0 84px;
	width: 84px;
	overflow: hidden;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg-alt);
}

.bb-widget-thumb img {
	display: block;
	width: 100%;
	height: 58px;
	object-fit: cover;
	transition: transform var(--bb-transition);
}

.bb-widget-item:hover .bb-widget-thumb img { transform: scale(1.06); }

.bb-widget-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bb-widget-title {
	font-weight: 700;
	font-size: .96em;
	line-height: 1.55;
	color: var(--bb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bb-widget-title:hover { color: var(--bb-primary-dark); }

.bb-widget-meta {
	font-size: .78em;
	color: var(--bb-faint);
	font-weight: 600;
}

.bb-widget-list--ranked .bb-widget-item > .bb-rank {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	display: grid;
	place-items: center;
	border-radius: 6px;
	background: var(--bb-primary);
	color: var(--bb-on-primary);
	font-size: .82em;
	font-weight: 800;
	line-height: 1;
	position: static;
}

.bb-widget-list--ranked .bb-widget-item:nth-child(n + 4) > .bb-rank {
	background: var(--bb-bg-alt);
	color: var(--bb-muted);
	border: 1px solid var(--bb-line);
}

/* BB_Widget_Social — stacked brand buttons. */
.bb-social-list {
	display: grid;
	gap: 8px;
}

.bb-social-list li { padding: 0 !important; border: 0 !important; }

.bb-sociallink {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg-alt);
	font-size: .9em;
	font-weight: 700;
	color: var(--bb-ink);
	transition: background var(--bb-transition), color var(--bb-transition), border-color var(--bb-transition), transform var(--bb-transition);
}

.bb-sociallink svg {
	width: 18px;
	height: 18px;
	flex: none;
	fill: currentColor;
}

.bb-sociallink:hover {
	transform: translateX(2px);
	color: #fff;
	border-color: transparent;
}

.bb-sociallink--facebook:hover  { background: #1877f2; }
.bb-sociallink--youtube:hover   { background: #ff0000; }
.bb-sociallink--instagram:hover { background: #c13584; }
.bb-sociallink--x:hover         { background: #0f1419; }
.bb-sociallink--tiktok:hover    { background: #010101; }
.bb-sociallink--linkedin:hover  { background: #0a66c2; }
.bb-sociallink--whatsapp:hover  { background: #25d366; }
.bb-sociallink--telegram:hover  { background: #229ed9; }

/* BB_Widget_FB — page plugin iframe. */
.bb-fb-embed {
	overflow: hidden;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg-alt);
	min-height: 200px;
}

.bb-fb-embed iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

/* Ad slot inside a sidebar column should not double up on padding. */
.bb-sidebar .bb-ad { margin: 0; }

/* ------------------------------------------------------------------ *
 * 25. Comments
 * `.bb-comments` is also a meta-line span, so the section rules are
 * scoped through #comments to keep the two apart.
 * ------------------------------------------------------------------ */
#comments.bb-comments {
	margin-top: 34px;
	padding-top: 26px;
	border-top: 3px solid var(--bb-line);
}

.bb-comments__title {
	margin: 0 0 18px;
	font-size: 1.3em;
	font-weight: 800;
}

.bb-comments__title span { color: var(--bb-primary-dark); }

.bb-comments__closed {
	padding: 12px 16px;
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg-alt);
	color: var(--bb-muted);
	font-weight: 600;
}

.bb-commentlist,
.bb-commentlist .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-commentlist > li { margin-bottom: 14px; }
.bb-commentlist .children { margin-top: 14px; padding-inline-start: 20px; border-inline-start: 2px solid var(--bb-line); }

.bb-commentlist .comment-body {
	padding: 16px 18px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg);
}

.bb-commentlist .comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-bottom: 10px;
	font-size: .86em;
}

.bb-commentlist .comment-author {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 700;
}

.bb-commentlist .avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: none;
}

.bb-commentlist .says { display: none; }
.bb-commentlist .comment-metadata,
.bb-commentlist .comment-metadata a { color: var(--bb-faint); font-weight: 600; }

.bb-commentlist .comment-content { line-height: 1.85; }
.bb-commentlist .comment-content p:last-child { margin-bottom: 0; }

.bb-commentlist .comment-awaiting-moderation {
	width: 100%;
	margin: 0;
	color: var(--bb-primary-dark);
	font-weight: 700;
	font-size: .84em;
}

.bb-commentlist .reply { margin-top: 10px; }

.bb-commentlist .comment-reply-link {
	display: inline-flex;
	padding: 4px 12px;
	border: 1px solid var(--bb-line);
	border-radius: 999px;
	font-size: .82em;
	font-weight: 700;
}

.bb-commentlist .comment-reply-link:hover {
	background: var(--bb-primary);
	border-color: var(--bb-primary);
	color: var(--bb-on-primary);
}

.bb-commentlist .bypostauthor > .comment-body { border-inline-start: 3px solid var(--bb-primary); }

.bb-commentform {
	margin-top: 24px;
	padding: 20px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius);
	background: var(--bb-bg-alt);
}

.bb-commentform .comment-reply-title {
	margin: 0 0 6px;
	font-size: 1.12em;
	font-weight: 800;
}

.bb-commentform__note {
	margin: 0 0 14px;
	font-size: .86em;
	color: var(--bb-muted);
}

.bb-commentform__row,
.bb-commentform .comment-form-author,
.bb-commentform .comment-form-email,
.bb-commentform .comment-form-url {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 12px;
}

.bb-commentform label {
	font-size: .87em;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-commentform input[type="text"],
.bb-commentform input[type="email"],
.bb-commentform input[type="url"],
.bb-commentform textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg);
	color: var(--bb-ink);
	font: inherit;
	font-size: .95em;
}

.bb-commentform input:focus,
.bb-commentform textarea:focus {
	outline: 2px solid var(--bb-primary);
	outline-offset: 1px;
	border-color: var(--bb-primary);
}

.bb-commentform textarea { resize: vertical; min-height: 120px; }
.bb-commentform .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.bb-commentform .comment-form-cookies-consent label { font-weight: 600; color: var(--bb-ink); }
.bb-commentform .form-submit { margin: 0; }

/* ------------------------------------------------------------------ *
 * 26. Empty states — no results and 404
 * ------------------------------------------------------------------ */
.bb-noresults {
	padding: 30px 24px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-lg);
	background: var(--bb-bg-alt);
	text-align: center;
}

.bb-noresults__title {
	margin: 0 0 8px;
	font-size: clamp(1.2em, 1.05em + .6vw, 1.6em);
	font-weight: 800;
}

.bb-noresults__text {
	margin: 0 auto 16px;
	max-width: 62ch;
	color: var(--bb-muted);
	line-height: 1.85;
}

.bb-noresults__search {
	max-width: 460px;
	margin: 0 auto 26px;
}

.bb-noresults__sub {
	margin: 0 0 14px;
	padding-top: 22px;
	border-top: 1px solid var(--bb-line);
	font-size: 1.05em;
	font-weight: 800;
	text-align: start;
}

.bb-noresults .bb-grid { text-align: start; }

.bb-404 { padding-block: 26px 44px; }

.bb-404__head {
	max-width: 660px;
	margin: 0 auto 40px;
	text-align: center;
}

.bb-404__code {
	margin: 0;
	font-size: clamp(4rem, 3rem + 9vw, 8.5rem);
	font-weight: 900;
	line-height: .95;
	letter-spacing: -.03em;
	color: var(--bb-primary);
	opacity: .85;
}

/* Outlined numerals only where the stroke property actually exists, so the
   digits never end up invisible in an older in-app browser. */
@supports (-webkit-text-stroke: 3px red) {
	.bb-404__code {
		color: transparent;
		-webkit-text-stroke: 3px var(--bb-primary);
	}
}

.bb-404__title {
	margin: 6px 0 10px;
	font-size: clamp(1.4em, 1.2em + 1vw, 2.05em);
	font-weight: 800;
}

.bb-404__text {
	margin: 0 0 20px;
	color: var(--bb-muted);
	line-height: 1.85;
}

.bb-404__search { max-width: 460px; margin: 0 auto 18px; }
.bb-404__actions { margin: 0; }
.bb-404__cats { margin-bottom: 36px; }
.bb-404__cats .bb-chipnav { justify-content: center; }

/* ------------------------------------------------------------------ *
 * 27. Photo story — lead image and gallery grid
 * ------------------------------------------------------------------ */
.bb-photolead {
	margin: 0 0 22px;
	border-radius: var(--bb-radius);
	overflow: hidden;
	background: var(--bb-bg-deep);
}

.bb-photolead__img {
	display: block;
	width: 100%;
	height: auto;
}

.bb-photogrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
	margin-block: 26px;
}

.bb-photogrid__item {
	margin: 0;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
	overflow: hidden;
	background: var(--bb-bg);
}

.bb-photogrid__item img {
	display: block;
	width: 100%;
	height: 168px;
	object-fit: cover;
	transition: transform var(--bb-transition);
}

.bb-photogrid__item:hover img { transform: scale(1.05); }

.bb-photogrid__item figcaption {
	padding: 8px 11px 10px;
	font-size: .84em;
	line-height: 1.65;
	color: var(--bb-muted);
}

/* ------------------------------------------------------------------ *
 * 28. Live blog
 * Editors write each update as an h3 inside the content, so the timeline
 * is drawn from the heading itself — no extra markup to remember.
 * ------------------------------------------------------------------ */
.bb-live__stamp {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--bb-primary-soft);
	color: var(--bb-primary-dark);
	font-size: .84em;
	font-weight: 700;
}

.bb-liveblog {
	position: relative;
	padding-inline-start: 26px;
}

.bb-liveblog::before {
	content: "";
	position: absolute;
	inset-inline-start: 5px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--bb-line);
}

.bb-liveblog > h2,
.bb-liveblog > h3 {
	position: relative;
	margin-top: 26px;
	scroll-margin-top: 92px;
}

.bb-liveblog > h2:first-child,
.bb-liveblog > h3:first-child { margin-top: 0; }

.bb-liveblog > h2::before,
.bb-liveblog > h3::before {
	content: "";
	position: absolute;
	inset-inline-start: -26px;
	top: .45em;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--bb-primary);
	box-shadow: 0 0 0 3px var(--bb-bg), 0 0 0 5px var(--bb-primary-soft);
}

.bb-liveblog > h2:first-of-type::before,
.bb-liveblog > h3:first-of-type::before { background: var(--bb-live); }

.bb-live__note {
	margin: 18px 0 0;
	padding: 11px 15px;
	border: 1px dashed var(--bb-line);
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg-alt);
	color: var(--bb-muted);
	font-size: .88em;
	font-weight: 600;
	text-align: center;
}

.bb-single--live .bb-single__title { padding-inline-start: 0; }

/* ------------------------------------------------------------------ *
 * 29. Static pages
 * ------------------------------------------------------------------ */
/* template-fullwidth.php drops the sidebar entirely. Prose still needs a
   measure, so the body is centred at a readable width instead of being let
   run the full 1240px — a 120-character line is unreadable at any font size.
   The featured image and any alignwide block keep the full container. */
.bb-page--wide .bb-page__head,
.bb-page--wide .bb-page__body { max-width: 820px; margin-inline: auto; }
.bb-page--wide .bb-page__title { font-size: clamp(28px, 4vw, 42px); }

.bb-page__head { margin-bottom: 18px; }

.bb-page__title {
	margin: 0;
	font-size: clamp(1.55em, 1.25em + 1.3vw, 2.3em);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.01em;
}

.bb-page__figure {
	margin: 0 0 20px;
	border-radius: var(--bb-radius);
	overflow: hidden;
}

.bb-page__figure img { display: block; width: 100%; height: auto; }
.bb-page__body { margin-bottom: 8px; }

/* ------------------------------------------------------------------ *
 * 30. Wrappers and section rhythm
 * `.bb-layout--sidebar-right` needs no rule of its own — it is the
 * default `.bb-columns` shape defined in main.css.
 * ------------------------------------------------------------------ */
.bb-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.bb-site > .bb-main { flex: 1 0 auto; }

.bb-single-wrap,
.bb-archive-wrap { padding-block: 18px 40px; }

.bb-single__body { margin-bottom: 4px; }

.bb-river { margin-top: 34px; }
.bb-photos { margin-top: 34px; }
.bb-404__latest { margin-top: 8px; }

.bb-catsection { margin-top: 34px; }
.bb-catsection__feature { min-width: 0; }

.bb-hero-block__lead { min-width: 0; }
.bb-mostread__main,
.bb-mostread__side { min-width: 0; }
.bb-opinion { margin-top: 34px; }
.bb-opinion__col { min-width: 0; }
.bb-socialstrip { margin-top: 34px; }
.bb-videos__player { min-width: 0; }
.bb-authorbox__body,
.bb-authorhero__body { min-width: 0; }

.bb-archive--author .bb-archive__head,
.bb-archive--cat .bb-archive__head,
.bb-archive--search .bb-archive__head { margin-bottom: 20px; }

/* ------------------------------------------------------------------ *
 * 31. Chrome fill-ins (loaded after main.css, so these refine it)
 * ------------------------------------------------------------------ */
.bb-topbar__left,
.bb-topbar__nav {
	display: flex;
	align-items: center;
	gap: 6px 14px;
	flex-wrap: wrap;
	min-width: 0;
}

.bb-topbar__nav ul {
	display: flex;
	align-items: center;
	gap: 6px 14px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-search-toggle svg { width: 18px; height: 18px; }

.bb-brand { display: inline-flex; align-items: center; }

.bb-searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--bb-line);
	border-radius: var(--bb-radius-sm);
	background: var(--bb-bg);
	color: var(--bb-ink);
	font: inherit;
	font-size: .95em;
}

.bb-searchform__input::placeholder { color: var(--bb-faint); }

.bb-searchform__input:focus {
	outline: 2px solid var(--bb-primary);
	outline-offset: 1px;
	border-color: var(--bb-primary);
}

.bb-thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bb-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	border-radius: 4px;
	background: var(--bb-primary-soft);
	color: var(--bb-primary-dark);
	font-size: .74em;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.7;
	text-transform: uppercase;
}

a.bb-badge:hover { background: var(--bb-primary); color: var(--bb-on-primary); }


.bb-dateline::after {
	content: "\00a0\2014";
	color: var(--bb-faint);
	font-weight: 400;
}

/* The brand block stacks: logo or title, the one-line about, then the social
   row. It has to be a column — as a row the about paragraph would sit beside
   the title instead of under it. */
.bb-footer__brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 12px;
}

.bb-footer__logo {
	display: block;
	margin-bottom: 14px;
}

/* Footer sits on --bb-bg-dark, so a logo drawn for a white masthead needs a
   ceiling on its height rather than its natural size. */
.bb-footer__logo-img {
	width: auto;
	max-width: 260px;
	max-height: 56px;
	object-fit: contain;
}

.bb-footer__col { min-width: 0; }

.bb-footer__nav ul,
.bb-footer__nav .bb-menu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .88em;
	font-weight: 600;
}

.bb-footer__cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.bb-terms--topic a {
	background: var(--bb-primary-soft);
	border-color: rgba(250, 191, 36, .55);
}

.bb-page__image { display: block; width: 100%; height: auto; }
.bb-postnav__item--prev { grid-column: 1; }
.bb-embed--16x9::before { padding-top: 56.25%; }
.bb-embed--video::before { padding-top: 56.25%; }

/* Voice reader — icon swap is driven by the [hidden] attribute that
   assets/js/voice-reader.js toggles, so no JS-only class is needed. */
.bb-voice__label {
	font-size: .82em;
	font-weight: 700;
	color: var(--bb-muted);
}

.bb-voice__icon-play,
.bb-voice__icon-pause {
	width: 15px;
	height: 15px;
	fill: currentColor;
	flex: none;
}

.bb-voice__icon-play[hidden],
.bb-voice__icon-pause[hidden] { display: none; }

.bb-voice__stop svg { width: 15px; height: 15px; }
.bb-voice__stop[hidden] { display: none; }

.bb-voice__source { display: none; }

/* Widget fallbacks rendered by sidebar.php. */
.bb-widget--ranklist .bb-ranklist { gap: 12px; }
.bb-widget--cats .bb-catlist { margin: 0; }

/* Post-type flavours of the single template — subtle accents only, so the
   reading experience stays consistent across formats. */
.bb-single--video .bb-single__title,
.bb-single--photo .bb-single__title,
.bb-single--factcheck .bb-single__title { letter-spacing: -.01em; }

.bb-submenu-toggle--deep { transform: rotate(-90deg); }
.bb-submenu-toggle--deep[aria-expanded="true"] { transform: rotate(0deg); }

.bb-single { min-width: 0; }
.bb-time { white-space: nowrap; }
