/* ----------------------------------------------------------
 * Importer Book — Single Hero + Extras
 * ------------------------------------------------------ */

:root {
	--bn-ink: #0f172a;
	--bn-muted: #6b7280;
	--bn-surface: #ffffff;
	--bn-surface-soft: #f9fafb;
	--bn-brand: #f59e0b; /* warm gold */
	--bn-border: #e5e7eb;
}

/* ==========================================================
 * 1) TOP CARD + HERO + SHARE
 * ======================================================= */

.single-post .inside-article {
	position: relative;
	z-index: 0;
	background: var(--bn-surface);
	border-radius: 1.5rem;
	padding: 2.4rem 2.3rem 2.4rem;
	box-shadow: 0 20px 55px rgba(15, 23, 42, 0.10);
}

/* Base: neutral shadowy glow (used when BN_SINGLE_HERO_GLOW is false) */
.single-post .inside-article::before {
	content: "";
	position: absolute;
	inset: -1.2rem -2.4rem auto -2.4rem;
	height: 420px;
	border-radius: 2rem;
	background:
		radial-gradient(145% 120% at 50% 0,
			rgba(15, 23, 42, 0.08),
			rgba(15, 23, 42, 0.00) 62%);
	opacity: 0.6;
	z-index: -1;
}

/* Entry header / title / meta stay the same */

.single-post .inside-article .entry-header {
	margin-top: 0.4rem;
	margin-bottom: 0.7rem;
}

.single-post .inside-article .entry-title {
	font-size: clamp(1.75rem, 1.5rem + 1.4vw, 2.4rem);
	line-height: 1.18;
	font-weight: 800;
	color: var(--bn-ink);
	margin-bottom: 0.45rem;
}

.single-post .inside-article .entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.8rem;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--bn-muted);
}

.single-post .inside-article .entry-meta a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dashed rgba(148, 163, 184, 0.75);
}

.single-post .inside-article .entry-meta a:hover,
.single-post .inside-article .entry-meta a:focus-visible {
	border-bottom-style: solid;
}

/* Breadcrumbs */

.single-post .inside-article #breadcrumbs,
.single-post .inside-article .rank-math-breadcrumb,
.single-post .inside-article .breadcrumb,
.single-post .inside-article .breadcrumbs {
	margin: 0.95rem 0 1.1rem;
	font-size: 0.8rem;
	color: #4b5563;
}

.single-post .inside-article #breadcrumbs a,
.single-post .inside-article .rank-math-breadcrumb a,
.single-post .inside-article .breadcrumb a,
.single-post .inside-article .breadcrumbs a {
	color: #b45309;
	text-decoration: none;
}

.single-post .inside-article #breadcrumbs a:hover,
.single-post .inside-article .rank-math-breadcrumb a:hover,
.single-post .inside-article .breadcrumb a:hover,
.single-post .inside-article .breadcrumbs a:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* -------------------------------
 * Share row (just under meta)
 * --------------------------- */

.single-post .inside-article .sharedaddy,
.single-post .inside-article .bn-share-row,
.single-post .inside-article .entry-share,
.single-post .inside-article .sd-sharing {
	margin-bottom: 1.3rem;
	border-radius: 999px;
	padding: 0.45rem 0.9rem;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(209, 213, 219, 0.9);
}

.bn-share-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.6rem;
	font-size: 0.83rem;
	color: var(--bn-muted);
}

.bn-share-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--bn-muted);
}

.bn-share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.22rem 0.75rem;
	border-radius: 999px;
	background: var(--bn-surface-soft);
	border: 1px solid rgba(209, 213, 219, 0.9);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--bn-ink);
	text-decoration: none;
}

.bn-share-link:hover,
.bn-share-link:focus-visible {
	background: #fef3c7;
	border-color: #facc15;
	color: #92400e;
}

/* Hide theme’s default inline featured image:
 * we will render our own split hero below header.
 */

.single-post .inside-article .post-image,
.single-post .inside-article .featured-image,
.single-post .inside-article > img:first-child {
	display: none !important;
}

/* -------------------------------
 * Split hero (two separate cards: image + flexible column)
 * --------------------------- */

.bn-hero-shell {
	margin: 0 0 1.8rem;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
	gap: 1.5rem;
	align-items: stretch; /* make both cards share the same height */
	background: transparent;
	padding: 0;
	border: 0;
	box-shadow: none;
}

/* Hero when there is no right column (desktop) */
.bn-hero-shell.bn-hero-shell--single {
	grid-template-columns: minmax(0, 1fr);
}

/* LEFT + RIGHT: base card shell */

.bn-hero-left,
.bn-hero-right {
	background: rgba(255, 255, 255, 0.98);
	border-radius: 1.3rem;
	border: 1px solid rgba(209, 213, 219, 0.9);
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* LEFT: pure image card */

.bn-hero-left {
	overflow: hidden;
	padding: 0; /* pure image card */
}

.bn-hero-left img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* fixed frame, auto ratio */
	border-radius: inherit;
}

/* RIGHT: flexible card (AdSense / banner / next post / summary) */

.bn-hero-right {
	padding: 1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

/* Next post preview card inside hero right column
 * (hero-style: wide image on top, text + meta + button below)
 */

.bn-hero-next {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	min-height: 100%; /* fill right card height */
}

/* main: stack thumb + text vertically */

.bn-hero-next-main {
	display: block;
	text-decoration: none;
	color: var(--bn-ink);
}

/* wide banner thumbnail */

.bn-hero-next-thumb {
	width: 100%;
	border-radius: 1rem;
	overflow: hidden;
	background: var(--bn-surface-soft);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
	aspect-ratio: 16 / 9; /* hero-like rectangle */
	margin-bottom: 0.75rem;
}

.bn-hero-next-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* title + meta */

.bn-hero-next-body {
	min-width: 0;
}

.bn-hero-next-title {
	font-size: 1.06rem;
	font-weight: 800;
	margin: 0 0 0.4rem;
	line-height: 1.35;
}

.bn-hero-next-title a {
	color: inherit;
	text-decoration: none;
}

.bn-hero-next-title a:hover,
.bn-hero-next-title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

/* meta pill: "Next article • 4 mins read" */

.bn-hero-next-meta {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: var(--bn-muted);
	padding: 0.22rem 0.8rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.03);
	border: 1px solid rgba(209, 213, 219, 0.7);
}

.bn-hero-next-tag {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 600;
	font-size: 0.72rem;
}

.bn-hero-next-dot {
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.95);
}

.bn-hero-next-reading {
	font-size: 0.78rem;
}

/* CTA button: sits clearly below content, anchored to bottom visually */

.bn-hero-next-btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.1rem;
	border-radius: 999px;
	border: 1px solid rgba(251, 191, 36, 0.95);
	background: #fef3c7;
	color: #92400e;
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	text-decoration: none;
	margin-top: auto; /* pushes it towards the bottom of the card */
	transition:
		background-color 140ms ease-out,
		transform 120ms ease-out,
		box-shadow 140ms ease-out,
		border-color 140ms ease-out;
}

.bn-hero-next-btn:hover,
.bn-hero-next-btn:focus-visible {
	background: #facc15;
	border-color: rgba(234, 179, 8, 1);
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.28);
	transform: translateY(-1px);
}

/* label you can use above right-card content (ad / next / summary) */

.bn-hero-right .bn-hero-ad-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--bn-muted);
	margin-bottom: 0.35rem;
}

/* remove old “shared-divider” look */

.bn-hero-shell.has-right .bn-hero-left {
	border-right: none;
}

/* Mobile tweaks for hero */

@media (max-width: 639.98px) {
	.single-post .inside-article {
		margin: 1.5rem 1rem 0;
		padding: 1.7rem 1.2rem 1.9rem;
		border-radius: 1.2rem;
	}

	.single-post .inside-article::before {
		inset: -2rem -1.2rem auto -1.2rem;
		height: 360px;
		border-radius: 1.5rem;
	}

	.bn-hero-shell {
		grid-template-columns: minmax(0, 1fr);
		margin-bottom: 1.5rem;
	}
}

/* Space below header on large screens */

@media (min-width: 768px) {
	.single-post .inside-article {
		margin-top: 3rem;
	}
}

/* ==========================================================
 * 1.5) ARTICLE SHELL (reading bar + TOC + side CTA + trust)
 * ======================================================= */

.bn-article-shell {
	margin-top: 1.6rem;
}

/* Reading progress (base styles – layout is refined later) */

.bn-read-progress {
	position: sticky;
	top: 0;
	z-index: 5;
	padding-bottom: 0.8rem;
	background:
		linear-gradient(to bottom,
			rgba(255, 255, 255, 0.94),
			rgba(255, 255, 255, 0.92) 60%,
			rgba(255, 255, 255, 0.00));
	backdrop-filter: blur(4px);
}

.bn-read-progress-track {
	position: relative;
	width: 100%;
	height: 0.28rem;
	border-radius: 999px;
	background: rgba(229, 231, 235, 0.9);
	overflow: hidden;
}

.bn-read-progress-bar {
	position: absolute;
	inset: 0;
	width: 0;
	border-radius: inherit;
	background: linear-gradient(90deg, #fbbf24, #f97316);
	transition: width 120ms ease-out;
}

.bn-read-progress-meta {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	margin-top: 0.35rem;
	font-size: 0.78rem;
	color: var(--bn-muted);
}

.bn-read-progress-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.1rem 0.6rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.45);
	font-size: 0.74rem;
	font-weight: 600;
}

.bn-read-progress-percent {
	font-weight: 700;
	color: #b45309;
}

/* Article layout: side column + main content */

.bn-article-grid {
	display: flex;
	flex-direction: column;
	gap: 1.8rem;
	margin-top: 1.3rem;
}

.bn-article-side {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.bn-article-main {
	min-width: 0;
}

/* Desktop: grid with sticky side */

@media (min-width: 1024px) {
	.bn-article-grid {
		display: grid;
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
		align-items: flex-start;
		gap: 2.2rem;
	}

	.bn-article-grid.bn-article-grid--no-side {
		grid-template-columns: minmax(0, 1fr);
	}

	.bn-article-side {
		position: sticky;
		top: 4.5rem;
	}
}

/* TOC card */

.bn-toc-card {
	border-radius: 1.1rem;
	border: 1px solid rgba(209, 213, 219, 0.95);
	background: rgba(255, 255, 255, 0.96);
	padding: 1rem 1.05rem 0.9rem;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.bn-toc-title {
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--bn-muted);
	margin: 0 0 0.65rem;
}

.bn-toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: bn-toc-counter;
}

.bn-toc-list li {
	counter-increment: bn-toc-counter;
	margin-bottom: 0.32rem;
}

.bn-toc-list li:last-child {
	margin-bottom: 0;
}

.bn-toc-link {
	display: inline-flex;
	align-items: baseline;
	gap: 0.3rem;
	font-size: 0.84rem;
	line-height: 1.4;
	color: var(--bn-ink);
	text-decoration: none;
	padding: 0.18rem 0.2rem;
	border-radius: 0.4rem;
}

.bn-toc-link::before {
	content: counter(bn-toc-counter) ".";
	font-size: 0.78rem;
	color: var(--bn-muted);
	min-width: 1rem;
	text-align: right;
}

.bn-toc-link:hover,
.bn-toc-link:focus-visible {
	background: rgba(254, 243, 199, 0.9);
	color: #92400e;
}

/* active section state (set by JS later) */

.bn-toc-link.is-active,
.bn-toc-link[data-bn-toc-active="true"] {
	background: rgba(251, 191, 36, 0.14);
	color: #92400e;
	box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.65);
}

.bn-toc-empty {
	margin: 0.1rem 0 0;
	font-size: 0.78rem;
	color: rgba(107, 114, 128, 0.9);
}

/* Side CTA */

.bn-side-cta {
	border-radius: 1.1rem;
	padding: 1rem 1.1rem 1.1rem;
	background:
		radial-gradient(140% 140% at 0 0,
			rgba(251, 191, 36, 0.26),
			rgba(15, 23, 42, 0.0) 55%),
		linear-gradient(135deg, #fef9c3, #fffbeb);
	border: 1px solid rgba(250, 204, 21, 0.8);
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

.bn-side-cta-title {
	font-size: 0.98rem;
	font-weight: 800;
	color: #92400e;
	margin: 0 0 0.45rem;
}

.bn-side-cta-text {
	font-size: 0.85rem;
	color: #4b5563;
	margin: 0 0 0.75rem;
}

.bn-side-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 1.1rem;
	border-radius: 999px;
	border: none;
	background: #f97316;
	color: #fefce8;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(248, 113, 113, 0.35);
	transition:
		background-color 140ms ease-out,
		transform 120ms ease-out,
		box-shadow 140ms ease-out;
}

.bn-side-cta-btn:hover,
.bn-side-cta-btn:focus-visible {
	background: #ea580c;
	transform: translateY(-1px);
	box-shadow: 0 16px 40px rgba(248, 113, 113, 0.5);
}

.bn-side-cta-note {
	margin: 0.5rem 0 0;
	font-size: 0.78rem;
	color: rgba(55, 65, 81, 0.95);
}

/* Trust / about block inside article */

.bn-trust-block {
	margin-top: 2.2rem;
	padding: 1.4rem 1.2rem 1.3rem;
	border-radius: 1.1rem;
	background:
		linear-gradient(to right,
			rgba(15, 23, 42, 0.02),
			rgba(15, 23, 42, 0.06));
	border: 1px solid rgba(148, 163, 184, 0.55);
}

.bn-trust-title {
	margin: 0 0 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--bn-ink);
}

.bn-trust-text {
	margin: 0 0 0.45rem;
	font-size: 0.88rem;
	color: #374151;
}

.bn-trust-disclaimer {
	margin: 0;
	font-size: 0.78rem;
	color: rgba(75, 85, 99, 0.95);
	font-style: italic;
}

/* ==========================================================
 * 2) BOTTOM SHELL
 * ======================================================= */

.bn-single-extras {
	position: relative;
	z-index: 0;
	margin-top: 3rem;
	padding: 2.4rem 1.6rem 2.8rem;
	border-radius: 1.4rem;
	background:
		radial-gradient(140% 120% at 50% 0,
			rgba(245, 158, 11, 0.20),
			rgba(15, 23, 42, 0.00) 58%),
		linear-gradient(to bottom,
			rgba(15, 23, 42, 0.02),
			rgba(15, 23, 42, 0.05));
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
	overflow: hidden;
	color: var(--bn-ink);
}

@media (min-width: 768px) {
	.bn-single-extras {
		padding: 3rem 2.4rem 3.1rem;
		margin-top: 3.5rem;
	}
}

.bn-single-extras::before {
	content: "";
	position: absolute;
	inset: -40% -20% auto -20%;
	background:
		radial-gradient(140% 100% at 50% 0,
			rgba(251, 191, 36, 0.18),
			rgba(15, 23, 42, 0.00) 60%);
	opacity: 0.8;
	z-index: -1;
}

/* Extra glow helper (orbs) */

.bn-page-glow {
	position: absolute;
	inset: auto -20% -55%;
	height: 260px;
	pointer-events: none;
	z-index: -1;
	display: flex;
	justify-content: space-between;
}

.bn-page-glow-orb {
	width: 220px;
	height: 220px;
	border-radius: 999px;
	filter: blur(6px);
	opacity: 0.55;
}

.bn-page-glow-orb--left {
	background: radial-gradient(circle at 30% 30%, rgba(251, 191, 36, 0.45), transparent 65%);
}

.bn-page-glow-orb--right {
	background: radial-gradient(circle at 70% 20%, rgba(248, 250, 252, 0.4), transparent 70%);
}

/* Prev / Next */

.bn-single-nav {
	margin-bottom: 2.4rem;
}

.bn-single-nav-wrap {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.bn-single-nav-label {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--bn-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
}

.bn-single-nav-micro {
	font-size: 0.78rem;
	font-weight: 500;
	color: rgba(55, 65, 81, 0.95);
}

.bn-single-nav-grid {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
}

@media (min-width: 640px) {
	.bn-single-nav-grid {
		flex-direction: row;
		gap: 1.1rem;
	}
}

.bn-single-nav-card {
	display: block;
	padding: 0.9rem 1.1rem;
	border-radius: 0.9rem;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(148, 163, 184, 0.3);
	text-decoration: none;
}

.bn-single-nav-dir {
	display: block;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--bn-muted);
	margin-bottom: 0.3rem;
}

.bn-single-nav-title {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bn-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bn-hover-glow {
	transition:
		box-shadow 150ms ease-out,
		transform 150ms ease-out,
		border-color 150ms ease-out,
		background-color 150ms ease-out;
}

.bn-hover-glow:hover,
.bn-hover-glow:focus-visible {
	transform: translateY(-1px);
	box-shadow:
		0 0 0 1px rgba(251, 191, 36, 0.6),
		0 15px 35px rgba(15, 23, 42, 0.35);
	border-color: rgba(251, 191, 36, 0.7);
	background: #ffffff;
}

/* ----------------------------------------------------------
 * Similar Posts
 * ------------------------------------------------------ */

.bn-rel-section {
	position: relative;
	z-index: 1;
}

.bn-rel-wrap {
	margin-top: 0.6rem;
}

.bn-rel-heading {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--bn-ink);
	margin-bottom: 1.2rem;
}

.bn-rel-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.18rem 0.55rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(15, 23, 42, 0.92);
	color: #fef3c7;
}

/* Carousel shell */

.bn-rel-carousel {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0.6rem;
}

/* Track: fixed number of columns = group size (via CSS var) */

.bn-rel-carousel-track {
	flex: 1 1 0;
	display: grid;
	grid-template-columns: repeat(var(--bn-rel-cols, 3), minmax(220px, 1fr));
	gap: 0.8rem;
	overflow: hidden;
	padding: 0.2rem 0.1rem 0.2rem 0;
}

/* On small screens, just one column (cards full width) */
@media (max-width: 639.98px) {
	.bn-rel-carousel-track {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Items: hidden by default, visible only when "is-active" */

.bn-rel-item {
	display: none;
	flex-direction: column;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 0.95rem;
	border: 1px solid rgba(148, 163, 184, 0.35);
	padding: 0.7rem 0.8rem 0.8rem;
	min-height: 100%;
}

.bn-rel-item.is-active {
	display: flex;
}

.bn-rel-item.no-thumb {
	padding-top: 0.9rem;
}

/* Thumbnails */

.bn-rel-thumb {
	display: block;
	overflow: hidden;
	border-radius: 0.75rem;
	margin-bottom: 0.55rem;
	background: var(--bn-surface-soft);
}

.bn-rel-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: inherit;
}

/* Title + meta */

.bn-rel-title {
	font-size: 0.98rem;
	font-weight: 600;
	margin: 0 0 0.35rem;
}

.bn-rel-title a {
	color: var(--bn-ink);
	text-decoration: none;
}

.bn-rel-title a:hover,
.bn-rel-title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

.bn-rel-meta {
	font-size: 0.8rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.7rem;
	color: var(--bn-muted);
	margin-top: auto;
}

.bn-rel-line {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.bn-rel-meta-dot {
	display: inline-block;
	width: 0.32rem;
	height: 0.32rem;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.95);
}

.bn-rel-text {
	white-space: normal;
}

.bn-rel-cat {
	padding: 0.08rem 0.45rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.35);
	font-size: 0.75rem;
}

/* Arrows */

.bn-rel-arrow {
	position: relative;
	align-self: center;
	flex: 0 0 auto;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 999px;
	border: 1px solid rgba(148, 163, 184, 0.4);
	background: rgba(15, 23, 42, 0.9);
	color: white;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition:
		background-color 150ms ease-out,
		transform 120ms ease-out,
		box-shadow 150ms ease-out,
		border-color 150ms ease-out;
}

.bn-rel-arrow svg {
	width: 1.2rem;
	height: 1.2rem;
}

.bn-rel-arrow:hover,
.bn-rel-arrow:focus-visible {
	background: #fbbf24;
	border-color: rgba(251, 191, 36, 0.9);
	box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45);
	transform: translateY(-1px);
}

/* Dots */

.bn-rel-dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	margin: 0.95rem 0 0.4rem;
}

.bn-rel-dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	border: none;
	background: rgba(148, 163, 184, 0.5);
	cursor: pointer;
	padding: 0;
}

.bn-rel-dot.is-active,
.bn-rel-dot[aria-current="true"] {
	background: #facc15;
	width: 0.7rem;
}

/* CTA */

.bn-rel-cta {
	margin-top: 0.7rem;
	font-size: 0.9rem;
	color: var(--bn-ink);
}

.bn-rel-cta a {
	color: #b45309;
	font-weight: 600;
	text-decoration: none;
}

.bn-rel-cta a:hover,
.bn-rel-cta a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

/* Mobile refinements */

@media (max-width: 639.98px) {
	.bn-single-extras {
		margin-left: -1rem;
		margin-right: -1rem;
		border-radius: 1.1rem;
	}

	.bn-rel-meta {
		flex-direction: column;
		align-items: flex-start;
	}

	.bn-read-progress {
		position: static;
		padding-bottom: 0.6rem;
	}

	.bn-article-grid {
		gap: 1.4rem;
	}

	/* Similar posts carousel: show only ONE card per "page" on mobile.
	   JS may set multiple .is-active items (group of 3),
	   so we hide any active siblings after the first. */
	.bn-rel-carousel-track .bn-rel-item.is-active + .bn-rel-item.is-active,
	.bn-rel-carousel-track .bn-rel-item.is-active + .bn-rel-item.is-active + .bn-rel-item.is-active {
		display: none;
	}
}

/* ============================================
 * Read progress — compact pill (mobile + desktop)
 * ========================================= */

/* Base for all viewports: small pill */
/* Make it sticky on mobile too so it's always visible while reading */
.single-post .bn-read-progress {
	position: sticky;
	top: 0.5rem; /* adjust if you want slightly more/less gap from top */
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	max-width: 260px;
	margin: 0 auto 1.1rem; /* centered horizontally on mobile */
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(209, 213, 219, 0.9);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

/* Progress track + fill */
.single-post .bn-read-progress-track {
	flex: 1 1 auto;
	height: 4px;
	border-radius: 999px;
	background: rgba(209, 213, 219, 0.75);
	overflow: hidden;
}

.single-post .bn-read-progress-bar,
.single-post .bn-read-progress-fill {
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #f59e0b, #f97316);
	transition: width 140ms ease-out;
}

/* Text bits */
.single-post .bn-read-progress-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #4b5563;
	white-space: nowrap;
}

/* Flatten the “3 mins read” chip */
.single-post .bn-read-progress-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	min-width: 0;
	border-radius: 999px;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	font-size: 0.76rem;
	line-height: 1.2;
	color: #4b5563;
}

.single-post .bn-read-progress-chip br {
	display: none;
}

/* Percentage text */
.single-post .bn-read-progress-percent {
	font-size: 0.76rem;
	font-weight: 600;
	color: #b45309;
	white-space: nowrap;
}

/* Desktop / wide layout:
   – stick it above TOC, right-aligned */
@media (min-width: 980px) {
	.single-post .bn-read-progress {
		position: sticky;
		top: 110px;
		margin: 0 0 1rem auto; /* push to the right above TOC */
	}

	body.admin-bar .single-post .bn-read-progress {
		top: 142px; /* 110 + 32 admin bar */
	}
}

/* ============================================
 * MOBILE HIDES (<= 767.98px)
 * ========================================= */

@media (max-width: 767.98px) {
	/* Hide hero "Up Next" right card */
	.single-post .bn-hero-right {
		display: none !important;
	}

	/* Hide reading progress pill */
	.single-post .bn-read-progress {
		display: none !important;
	}

	/* Hide entire side column (TOC + verified buyer CTA) */
	.single-post .bn-article-side {
		display: none !important;
	}

	/* Make main article flow naturally */
	.single-post .bn-article-main {
		margin-top: 0.5rem;
	}
}

