/* =============================================================
   BLOG 2 — magazine layout w/ hero (1+3) + sidebar, Revision-style
   Prefix: .b2-
   ============================================================= */

.b2-page {
	--b2-shadow-soft: 0 5px 20px rgba(24, 24, 27, 0.08);
	--b2-shadow-card: 0 5px 25px rgba(24, 24, 27, 0.10);
	--b2-shadow-hover: 0 12px 32px rgba(24, 24, 27, 0.12);
	--b2-radius: 14px;
	--b2-radius-sm: 10px;
	--b2-pill-bg: rgba(255, 255, 255, 0.22);
	--b2-pill-blur: blur(12px);
	color: var(--text);
	font-family: var(--font-base, "Plus Jakarta Sans"), sans-serif;
}

.b2-container {
	width: 100%;
	max-width: 1296px;
	margin: 0 auto;
	padding-right: 24px;
	padding-left: 24px;
}

@media (max-width: 991.98px) {
	.b2-container { padding-right: 16px; padding-left: 16px; }
}

/* ===== HERO (1 featured + 3 side list) ============================= */
/* Override base.css `section { padding: 96px 0 }` — but ONLY on the top-level
   hero/trending sections, NOT on sidebar `.b2-widget` sections (which keep their
   own 28px padding from below). */
.b2-page > .b2-hero,
.b2-page > .b2-trending,
.b2-page > .b2-pagehead {
	padding: 0;
}

.b2-hero {
	margin-top: 40px;
	margin-bottom: 56px;
}

.b2-hero-grid {
	display: grid;
	grid-template-columns: 1fr;
	padding-bottom: 56px;
	border-bottom: 1px solid var(--border-dark);
	gap: 40px;
}

@media (min-width: 1100px) {
	.b2-hero-grid {
		grid-template-columns: minmax(0, 60%) minmax(0, 40%);
		column-gap: 40px;
	}
}

/* Featured (large left card) */
.b2-feat {
	position: relative;
	display: flex;
	flex-direction: column;
}

.b2-feat-link {
	position: absolute;
	inset: 0;
	z-index: 5;
}

.b2-feat-thumb {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: var(--b2-radius);
	background: var(--bg-light-3);
}

.b2-feat-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: 50% 50%;
	will-change: transform;
	animation: b2-ken-burns 24s linear infinite alternate;
}

@keyframes b2-ken-burns {
	0%   { transform: scale(1.05) translate3d(0, 0, 0); }
	100% { transform: scale(1.12) translate3d(-2%, -1.5%, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.b2-feat-thumb img { animation: none; }
}

.b2-feat-overlay {
	position: absolute;
	top: 20px;
	left: 20px;
	right: 20px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	z-index: 2;
}

.b2-feat-body {
	position: relative;
	z-index: 3;
	margin: -28px 28px 0;
	padding: 36px 40px 40px;
	background: #fff;
	border-radius: var(--b2-radius);
	box-shadow: var(--b2-shadow-card);
}

@media (max-width: 575.98px) {
	.b2-feat-body { margin: -20px 16px 0; padding: 28px 22px 28px; }
}

.b2-feat-title {
	margin: 14px 0 0;
	font-size: clamp(26px, 3vw, 38px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--text);
	transition: color 0.2s;
}

.b2-feat:hover .b2-feat-title { color: var(--violet); }

.b2-feat-subtitle {
	margin: 14px 0 0;
	font-size: 17px;
	line-height: 1.55;
	color: var(--text-light);
}

/* Side list (3 stacked) */
.b2-side {
	display: grid;
	gap: 24px;
}

.b2-side-item {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 160px;
	gap: 18px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border-dark);
}

.b2-side-item:last-child { padding-bottom: 0; border-bottom: 0; }

.b2-side-link { position: absolute; inset: 0; z-index: 5; }

.b2-side-body {
	display: flex;
	flex-direction: column;
}

.b2-side-title {
	margin: 10px 0 6px;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--text);
	transition: color 0.2s;
}

.b2-side-item:hover .b2-side-title { color: var(--violet); }

.b2-side-excerpt {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--text-light);
}

.b2-side-thumb {
	position: relative;
	aspect-ratio: 1/1;
	overflow: hidden;
	border-radius: var(--b2-radius-sm);
	background: var(--bg-light-3);
}

.b2-side-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s;
}

.b2-side-item:hover .b2-side-thumb img { transform: scale(1.04); }

@media (max-width: 575.98px) {
	.b2-side-item { grid-template-columns: 1fr; }
	.b2-side-thumb { aspect-ratio: 16/9; order: -1; }
}

/* ===== META & PILLS ================================================ */
.b2-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 13px;
	color: var(--text-light);
}

/* Author chip in card/hero meta: tiny round avatar + name, sits as one flex item. */
.b2-meta-author {
	color: var(--violet);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.b2-meta-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	flex-shrink: 0;
	overflow: hidden;
}

img.b2-meta-avatar { object-fit: cover; }

.b2-meta-date { color: var(--text-light); }

.b2-meta-on {
	margin-right: 4px;
	opacity: 0.65;
}

.b2-readtime {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--b2-pill-bg);
	backdrop-filter: var(--b2-pill-blur);
	-webkit-backdrop-filter: var(--b2-pill-blur);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

.b2-readtime::before {
	content: "";
	width: 12px;
	height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center/contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>") center/contain no-repeat;
}

.b2-readtime--small {
	position: absolute;
	bottom: 8px;
	right: 8px;
	font-size: 11px;
	padding: 4px 9px;
	opacity: 0;
	transition: opacity 0.2s;
}

.b2-side-item:hover .b2-readtime--small,
.b2-card:hover .b2-readtime--small { opacity: 1; }

/* Category pills (inside posts) */
.b2-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.b2-cats li { display: inline-flex; }

.b2-cats a {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

/* On overlay (over image) — frosted glass */
.b2-cats--overlay a,
.b2-cats--overlay-solid a {
	background: var(--b2-pill-bg);
	backdrop-filter: var(--b2-pill-blur);
	-webkit-backdrop-filter: var(--b2-pill-blur);
	color: #fff;
}

.b2-cats--overlay a:hover,
.b2-cats--overlay-solid a:hover { background: rgba(255, 255, 255, 0.32); }

/* Inline (under text in side list) — matches the .eyebrow pill style. */
.b2-cats--inline {
	margin-top: 12px;
}

.b2-cats--inline a {
	padding: 4px 10px;
	min-width: 110px;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	background: rgba(124, 58, 237, 0.12);
	color: var(--violet-light);
	border: 1px solid rgba(124, 58, 237, 0.25);
}

.b2-cats--inline a:hover {
	background: rgba(124, 58, 237, 0.2);
	border-color: rgba(124, 58, 237, 0.4);
}

/* ===== TRENDING TOPICS pills ====================================== */
.b2-trending {
	margin-bottom: 64px;
	text-align: center;
}

.b2-trending-h2 {
	margin: 0 0 28px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text-light);
	text-transform: none;
}

/* Segmented control — mirrors the filter tabs on app.cyberyozh.com.
   Neutral zinc palette: inactive = zinc-100, hover = zinc-200,
   active = zinc-900 (var(--text)), active hover = zinc-700.
   Segments butt together with a 4px gap; only the group's outer
   corners are rounded (first-child left, last-child right). */
.b2-trending-wrap {
	display: flex;
	justify-content: safe center;
	gap: 4px;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;          /* Firefox */
	padding-bottom: 4px;            /* room for the active :active shadow */
}
.b2-trending-wrap::-webkit-scrollbar { display: none; }  /* WebKit */

.b2-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 24px;
	background: #f4f4f5;            /* zinc-100 */
	color: var(--text);            /* zinc-900 */
	border-radius: 0;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.b2-cat-pill:first-child { border-radius: 12px 0 0 12px; }
.b2-cat-pill:last-child  { border-radius: 0 12px 12px 0; }

/* Hover (inactive) — one shade darker, NO vertical shift. */
.b2-cat-pill:hover { background: #e4e4e7; }   /* zinc-200 */

/* Active — brand violet + white. Hover mirrors .btn-primary (#7c3aed → #8b4af2). */
.b2-cat-pill.is-active {
	background: var(--violet);     /* #7c3aed */
	color: #fff;
}
.b2-cat-pill.is-active:hover  { background: #8b4af2; }  /* btn-primary hover */
.b2-cat-pill.is-active:active { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3); }

.b2-cat-pill.is-active .b2-cat-pill-title { color: #fff; }

/* Icon — inline glyph inheriting the segment's text color (no chip bg). */
.b2-cat-pill-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.b2-cat-pill-icon svg { width: 16px; height: 16px; }

.b2-cat-pill-title {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.005em;
}

/* ===== MAIN CONTENT + SIDEBAR ===================================== */
.b2-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	padding-bottom: 80px;
}

@media (min-width: 1100px) {
	.b2-content { grid-template-columns: minmax(0, 1fr) 370px; column-gap: 48px; }
}

/* ===== MAIN swap target ============================================= */
.b2-main {
	position: relative;
	min-height: 200px;
}

/* ===== SKELETON GRID (rendered during fetch, replaced on response) === */
.b2-skel-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.b2-skel-grid { grid-template-columns: repeat(2, 1fr); }
}

.b2-skel-card {
	display: flex;
	flex-direction: column;
}

.b2-skel {
	background: linear-gradient(90deg,
		rgba(0, 0, 0, 0.06) 0%,
		rgba(0, 0, 0, 0.12) 50%,
		rgba(0, 0, 0, 0.06) 100%);
	background-size: 200% 100%;
	border-radius: 6px;
	animation: b2-shimmer 1.4s linear infinite;
}

@keyframes b2-shimmer {
	0%   { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.b2-skel-thumb {
	aspect-ratio: 16 / 9;
	border-radius: var(--b2-radius);
	margin-bottom: 18px;
}

.b2-skel-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.b2-skel-line { height: 12px; }
.b2-skel-line--meta   { width: 45%; height: 10px; margin-bottom: 4px; }
.b2-skel-line--title  { height: 18px; }
.b2-skel-line--text   { height: 12px; }
.b2-skel-line--short  { width: 70%; }
.b2-skel-line--button {
	width: 120px;
	height: 36px;
	border-radius: 999px;
	margin-top: 8px;
}

/* Reduced motion — hold the bars static. */
@media (prefers-reduced-motion: reduce) {
	.b2-skel { animation: none; background: rgba(0, 0, 0, 0.08); }
}

/* ===== MAIN grid (2-col cards) =================================== */
.b2-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

@media (min-width: 768px) {
	.b2-grid { grid-template-columns: repeat(2, 1fr); }
}

.b2-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.b2-card-link { position: absolute; inset: 0; z-index: 5; }

.b2-card-thumb {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: var(--b2-radius);
	background: var(--bg-light-3);
	margin-bottom: 18px;
}

.b2-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transform-origin: center center;
	transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.b2-card:hover .b2-card-thumb img { transform: scale(1.06); }

.b2-card-overlay {
	position: absolute;
	top: 16px;
	left: 16px;
	right: 16px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
	z-index: 2;
}

/* Overlay-solid variant: white-on-dark gradient, slightly different */
.b2-cats--overlay-solid a {
	background: rgba(0, 0, 0, 0.45);
}

.b2-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.b2-card-title {
	margin: 12px 0 10px;
	font-size: 22px;
	line-height: 1.22;
	letter-spacing: -0.015em;
	color: var(--text);
	transition: color 0.2s;
}

.b2-card:hover .b2-card-title { color: var(--violet); }

.b2-card-excerpt {
	margin: 0 0 18px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-light);
	flex: 1;
}

/* Card uses shared .uc-link pill. The card overlay (.b2-card-link) eats
   pointer events, so .uc-link:hover never fires on its own — mirror the
   exact .uc-link:hover look here, triggered by the parent card. */
.b2-card .uc-link { align-self: flex-start; }
.b2-card .uc-link svg { transition: transform 0.25s ease; }

.b2-card:hover .uc-link {
	background: var(--text-dark);
	border-color: var(--text-dark);
	color: #fff;
}

.b2-card:hover .uc-link svg { transform: translateX(3px); }

/* Empty state (no posts match filter) */
.b2-empty {
	padding: 80px 24px;
	text-align: center;
	color: var(--text-light);
	background: var(--bg-light-2);
	border-radius: var(--b2-radius);
}

.b2-empty p { margin: 0; font-size: 15px; }

/* ===== PAGINATION (uses WP's .page-numbers classes via paginate_links) === */
.b2-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 56px;
}

.b2-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--b2-radius-sm);
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}

.b2-pagination .page-numbers.current {
	background: #fff;
	box-shadow: var(--b2-shadow-soft);
	margin: 0 8px;
}

.b2-pagination a.page-numbers:hover {
	color: var(--violet);
	background: rgba(124, 58, 237, 0.06);
}

.b2-pagination .page-numbers.dots { color: var(--text-light); }

.b2-pagination .page-numbers.prev,
.b2-pagination .page-numbers.next {
	font-size: 18px;
	color: var(--violet);
}

/* ===== PAGE HEADER (page 2+) ============================================ */
.b2-pagehead {
	margin: 40px 0 48px;
}

.b2-pagehead-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--violet);
	text-decoration: none;
	margin-bottom: 16px;
	transition: opacity 0.2s;
}

.b2-pagehead-back:hover { opacity: 0.7; }

.b2-pagehead-title {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 40px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--text);
}

.b2-pagehead-sub {
	margin: 0;
	font-size: 16px;
	color: var(--text-light);
}

/* ===== SIDEBAR widgets ============================================= */
.b2-sidebar { display: flex; flex-direction: column; gap: 32px; }

.b2-widget {
	background: #fff;
	padding: 28px;
	border-radius: var(--b2-radius);
	box-shadow: var(--b2-shadow-soft);
}

.b2-widget-h {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-light);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Authors widget — full contributor list, scrollable */
.b2-w-authors-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	gap: 12px;
	min-height: 22px;
}

.b2-w-authors-head .b2-widget-h {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.b2-w-authors-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--violet);
	border-radius: 6px;
	letter-spacing: 0;
}

.b2-w-authors-clear {
	display: none;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 600;
	color: var(--violet);
	background: rgba(124, 58, 237, 0.08);
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	transition: background-color 0.2s;
}

.b2-w-authors-clear:hover { background: rgba(124, 58, 237, 0.16); }

.b2-w-authors.has-active-author .b2-w-authors-clear { display: inline-flex; }

.b2-authors-list {
	list-style: none;
	margin: 0;
	padding: 0 0 12px;
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 360px;
	overflow-y: auto;
	overscroll-behavior: contain;
	/* Soft fade at the bottom hints there's more to scroll. */
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
	        mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent 100%);
	/* Firefox: native thin, hidden by default. */
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
	transition: scrollbar-color 0.25s;
}

.b2-authors-list:hover,
.b2-authors-list:focus-within {
	scrollbar-color: rgba(124, 58, 237, 0.22) transparent;
}

/* WebKit: 4px overlay-style, fades in on hover only. */
.b2-authors-list::-webkit-scrollbar { width: 4px; }
.b2-authors-list::-webkit-scrollbar-track { background: transparent; }
.b2-authors-list::-webkit-scrollbar-thumb {
	background: transparent;
	border-radius: 999px;
	transition: background-color 0.25s;
}
.b2-authors-list:hover::-webkit-scrollbar-thumb,
.b2-authors-list:focus-within::-webkit-scrollbar-thumb {
	background-color: rgba(124, 58, 237, 0.2);
}
.b2-authors-list::-webkit-scrollbar-thumb:hover {
	background-color: rgba(124, 58, 237, 0.4);
}

.b2-authors-list li:not(:last-child) {
	border-bottom: 1px solid var(--border-dark);
}

.b2-author-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 12px;
	margin: 0 -12px;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	transition: background-color 0.2s, opacity 0.2s, gap 0.3s ease,
	            padding 0.3s ease;
}

.b2-author-card:hover { background-color: rgba(124, 58, 237, 0.06); }

.b2-author-card.is-active {
	background-color: rgba(124, 58, 237, 0.1);
	box-shadow: inset 2px 0 0 var(--violet);
}

/* ===== Featured-author mode =================================
   When a filter is active, hide non-matching cards and blow up the
   chosen one into a centered "featured author" card. */
.b2-w-authors.has-active-author .b2-authors-list > li:not(:has(.b2-author-card.is-active)) {
	display: none;
}

.b2-w-authors.has-active-author .b2-authors-list {
	max-height: none;
	overflow: visible;
	padding: 0;
	-webkit-mask-image: none;
	        mask-image: none;
}

.b2-w-authors.has-active-author .b2-author-card.is-active {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 14px;
	padding: 24px 16px;
	background: transparent;
	box-shadow: none;
	margin: 0;
}

.b2-w-authors.has-active-author .b2-author-card.is-active .b2-author-avatar {
	width: 160px;
	height: 160px;
}

.b2-w-authors.has-active-author .b2-author-card.is-active .b2-author-name {
	font-size: 18px;
	color: var(--text);
}

.b2-w-authors.has-active-author .b2-author-card.is-active .b2-author-bio {
	-webkit-line-clamp: unset;
	max-width: 220px;
	margin-top: 4px;
}

.b2-w-authors.has-active-author .b2-author-card.is-active .b2-author-stats {
	justify-content: center;
	margin-top: 8px;
}

/* Smooth avatar/text scale-in. */
.b2-author-avatar { transition: width 0.3s ease, height 0.3s ease; }
.b2-author-name   { transition: font-size 0.3s ease, color 0.2s ease; }

.b2-author-card.is-active .b2-author-name { color: var(--violet); }

.b2-author-avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.b2-author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.b2-author-avatar-fallback {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.b2-author-meta {
	flex: 1;
	min-width: 0;
}

.b2-author-name {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--text);
}

.b2-author-card:hover .b2-author-name { color: var(--violet); }

.b2-author-bio {
	margin: 3px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--text-light);
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.b2-author-stats {
	display: flex;
	gap: 10px;
	margin-top: 8px;
	flex-wrap: wrap;
}

.b2-author-stat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: var(--text-light);
}

.b2-author-stat-label { opacity: 0.85; }

.b2-author-stat-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(124, 58, 237, 0.10);
	color: var(--violet);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Featured Posts slider */
.b2-w-slider {
	display: none;            /* temporarily hidden — revisit later */
	background: transparent;
	padding: 0;
	box-shadow: none;
}

.b2-w-slider .b2-widget-h { padding-left: 4px; }

.b2-slider {
	position: relative;
	overflow: hidden;
	border-radius: var(--b2-radius);
}

.b2-slider-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.b2-slider-slide {
	flex: 0 0 100%;
	position: relative;
	min-width: 0;
	aspect-ratio: 4/5;
	overflow: hidden;
}

.b2-slider-link {
	position: absolute;
	inset: 0;
	display: block;
	color: inherit;
	text-decoration: none;
}

.b2-slider-link img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b2-slider-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75) 100%);
}

.b2-slider-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 24px;
	z-index: 2;
	color: #fff;
}

.b2-slider-cat {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--b2-pill-bg);
	backdrop-filter: var(--b2-pill-blur);
	-webkit-backdrop-filter: var(--b2-pill-blur);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.b2-slider-title {
	margin: 0 0 10px;
	font-size: 18px;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: #fff;
}

.b2-slider-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	opacity: 0.85;
}

.b2-slider-meta span { color: #fff; }
.b2-slider-meta time span { margin-right: 4px; opacity: 0.6; }

.b2-slider-pagination {
	position: absolute;
	bottom: 14px;
	right: 18px;
	display: flex;
	gap: 6px;
	z-index: 3;
}

.b2-slider-bullet {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: width 0.2s, background 0.2s;
}

.b2-slider-bullet.is-active {
	width: 24px;
	border-radius: 999px;
	background: #fff;
}

/* Tech Stack */
.b2-tech-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.b2-tech-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.b2-tech-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.01em;
	box-shadow: 0 4px 12px rgba(24, 24, 27, 0.12);
	overflow: hidden;
}

/* Real SVG icons inside the gradient circle.
   - --white: invert the monochrome glyph to pure white (Python/FastAPI/MCP).
   - --colored: leave the icon untouched (Playwright is multi-colour). */
.b2-tech-icon img {
	width: 26px;
	height: 26px;
	display: block;
	object-fit: contain;
}

.b2-tech-icon--white img {
	filter: brightness(0) invert(1);
}

/* Inline-SVG icons (the editable ACF rows store icons as inline <svg>, not <img>).
   Size them like the <img> icons; whiten them on a coloured/gradient chip the same
   way --white does for images, so any icon — single-glyph or full-colour logo —
   reads as a clean monochrome mark. */
.b2-tech-icon svg {
	width: 26px;
	height: 26px;
	display: block;
}

.b2-tech-icon--white svg {
	filter: brightness(0) invert(1);
}

.b2-tech-icon--colored {
	background: #ffffff !important;
	box-shadow: 0 4px 12px rgba(24, 24, 27, 0.10), inset 0 0 0 1px var(--border-dark);
}

.b2-tech-icon--colored img {
	width: 30px;
	height: auto;
}

.b2-tech-list h4 {
	margin: 0 0 3px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
}

.b2-tech-list p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-light);
}

/* Recent changelog */
/* Vertical timeline — mirrors the front-page #changelog: a faint line down
   the left with a ring node per entry; the latest one is filled + pulsing. */
.b2-changelog {
	list-style: none;
	margin: 0;
	padding: 0 0 0 20px;
	border-left: 2px solid var(--border-dark);
	display: flex;
	flex-direction: column;
	gap: 22px;
	position: relative;
}

/* Heading aligns with the entry text (2px line + 20px inset). */
.b2-w-changelog .b2-widget-h { padding-left: 22px; }

.b2-changelog li {
	position: relative;
}

/* ring node sitting on the line — one per entry */
.b2-changelog li::before {
	content: '';
	position: absolute;
	left: -28px;
	top: 6px;                    /* nodes sit on the h4 cap-center (measured) */
	width: 14px;
	height: 14px;
	box-sizing: border-box;
	border-radius: 50%;
	background: #fff;            /* matches the .b2-widget card so the ring reads as hollow */
	border: 3px solid var(--violet);
}

/* latest entry: filled + pulsing, like .changelog-entry.latest on the front page */
.b2-changelog li:first-child::before {
	background: var(--violet);
	box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22), 0 0 0 4px rgba(124, 58, 237, 0.5);
	animation: b2-changelog-dot-pulse 1.9s ease-out infinite;
}

@keyframes b2-changelog-dot-pulse {
	0%   { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22), 0 0 0 4px rgba(124, 58, 237, 0.5); }
	100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.22), 0 0 0 14px rgba(124, 58, 237, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.b2-changelog li:first-child::before { animation: none; }
}

.b2-changelog a {
	display: block;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s;
}

.b2-changelog a:hover { opacity: 0.75; }

.b2-changelog h4 {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--text);
}

.b2-changelog a:hover h4 { color: var(--violet); }

.b2-changelog p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--text-light);
}

.b2-changelog code {
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	background: var(--bg-light-2);
	padding: 1px 5px;
	border-radius: 4px;
	color: var(--violet);
}
