/**
 * BirdsBuzz theme styles, v1.1.
 * Magazine style: white canvas, black pill nav, slanted ribbon section
 * badges, rounded cards, centered footer. Original implementation.
 */

/* ============ Tokens ============ */
:root {
	--bb-bg: #ffffff;
	--bb-soft: #f7f8fc;
	--bb-ink: #101018;
	--bb-text: #1e1e2a;
	--bb-muted: #6d7280;
	--bb-line: #ececf3;
	--bb-pink: #f75085;
	--bb-blue: #4f7fff;
	--bb-purple: #7b6cff;
	--bb-orange: #ff7448;
	--bb-green: #34c77b;
	--bb-radius: 20px;
	--bb-shadow: 0 12px 32px rgba(18, 18, 40, 0.09);
	--bb-shadow-sm: 0 6px 18px rgba(18, 18, 40, 0.07);
	--bb-font-head: "Nunito", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--bb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============ Base ============ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bb-bg);
	color: var(--bb-text);
	font-family: var(--bb-font-body);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bb-font-head);
	font-weight: 800;
	line-height: 1.25;
	color: var(--bb-ink);
	margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: var(--bb-blue); text-decoration: none; }
a:hover { color: var(--bb-pink); }

img { max-width: 100%; height: auto; display: block; }

.bb-container {
	width: 100%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.bb-sr {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.bb-skip {
	position: absolute;
	left: 12px; top: -60px;
	background: var(--bb-ink);
	color: #fff;
	padding: 10px 16px;
	border-radius: 10px;
	z-index: 200;
	transition: top 0.2s ease;
}
.bb-skip:focus { top: 12px; color: #fff; }

/* ============ Buttons ============ */
.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 15px;
	padding: 13px 30px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.bb-btn:hover { transform: translateY(-2px); }
.bb-btn-primary { background: var(--bb-blue); color: #fff; box-shadow: 0 8px 20px rgba(79, 127, 255, 0.35); }
.bb-btn-primary:hover { color: #fff; background: #3d6bf0; }
.bb-btn-lg { padding: 15px 38px; font-size: 16px; }
.bb-btn-outline { background: transparent; border-color: var(--bb-line); color: var(--bb-text); }
.bb-btn-outline:hover { border-color: var(--bb-pink); color: var(--bb-pink); }

.bb-textlink {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--bb-blue);
}
.bb-textlink svg { width: 16px; height: 16px; }
.bb-textlink:hover { color: var(--bb-pink); }

.bb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 0;
	background: var(--bb-soft);
	color: var(--bb-text);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}
.bb-icon-btn:hover { background: var(--bb-line); transform: translateY(-1px); }
.bb-icon-btn svg { width: 20px; height: 20px; }

/* ============ Slanted badges ============ */
.bb-badge {
	display: inline-block;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--bb-blue);
	padding: 7px 16px;
	border-radius: 6px;
	transform: skewX(-12deg);
	box-shadow: 0 4px 10px rgba(18, 18, 40, 0.18);
	white-space: nowrap;
}
.bb-badge.is-pink { background: linear-gradient(135deg, #ff6fa0, var(--bb-pink)); }
.bb-badge.is-blue { background: linear-gradient(135deg, #6a94ff, var(--bb-blue)); }
.bb-badge.is-purple { background: linear-gradient(135deg, #9488ff, var(--bb-purple)); }
.bb-badge.is-orange { background: linear-gradient(135deg, #ff9a5c, var(--bb-orange)); }
.bb-badge.is-green { background: linear-gradient(135deg, #5ad894, var(--bb-green)); }

/* ============ Header ============ */
.bb-header { background: var(--bb-bg); }

.bb-toprow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 22px;
	padding-bottom: 18px;
}
.bb-toprow-social { display: flex; gap: 10px; flex: 1; }
.bb-toprow-spacer { flex: 1; }
.bb-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--bb-soft);
	color: var(--bb-text);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.bb-social-link:hover { transform: translateY(-2px); background: var(--bb-pink); color: #fff; }
.bb-social-link svg { width: 16px; height: 16px; }

.bb-brand-center { text-align: center; flex: 1; }
.bb-brand-link { display: inline-flex; align-items: center; gap: 12px; }
.bb-wordmark, .bb-wordmark-text {
	font-family: var(--bb-font-head);
	font-weight: 900;
	font-size: 34px;
	color: var(--bb-blue);
	letter-spacing: -0.02em;
}
.bb-tagline {
	display: block;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--bb-ink);
	margin-top: 2px;
}
.bb-birdmark { width: 46px; height: 46px; flex: none; }

.bb-toprow-right { display: flex; align-items: center; gap: 10px; flex: 1; justify-content: flex-end; }

/* Header social: plain dark glyphs like the reference */
.bb-toprow-social .bb-social-link {
	background: transparent;
	width: auto;
	height: auto;
	padding: 5px;
	color: var(--bb-ink);
	border-radius: 0;
}
.bb-toprow-social .bb-social-link:hover { background: transparent; color: var(--bb-pink); transform: translateY(-2px); }
.bb-toprow-social .bb-social-link svg { width: 19px; height: 19px; }

/* Day/night pill switch */
.bb-dark-switch {
	position: relative;
	width: 54px;
	height: 30px;
	border-radius: 999px;
	background: #e9e9f0;
	border: 0;
	cursor: pointer;
	padding: 0;
	flex: none;
	transition: background 0.2s ease;
}
.bb-switch-knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #f0a12e;
	transition: left 0.2s ease;
}
.bb-switch-knob svg { width: 15px; height: 15px; }
.bb-dark .bb-dark-switch { background: #3d3d52; }
.bb-dark .bb-switch-knob { left: 27px; color: var(--bb-blue); }
.bb-dark-icon-sun { display: inline-flex; }
.bb-dark-icon-moon { display: none; }
.bb-dark .bb-dark-icon-sun { display: none; }
.bb-dark .bb-dark-icon-moon { display: inline-flex; }
.bb-menu-toggle { display: none; }

/* Default site logo */
.bb-default-logo { height: 64px; width: auto; }
.bb-brand-link .custom-logo { height: 64px; width: auto; }
/* Keep the dark wordmark readable in dark mode. */
.bb-dark .bb-brand-link { background: #ffffff; border-radius: 16px; padding: 8px 18px; }

/* Black pill nav */
.bb-pillnav-wrap { padding-bottom: 26px; }
.bb-pillnav {
	background: var(--bb-ink);
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px 8px 28px;
	box-shadow: 0 12px 28px rgba(16, 16, 24, 0.25);
}
.bb-header-sticky .bb-pillnav-wrap { position: sticky; top: 12px; z-index: 90; }
.bb-nav { flex: 1; }
.bb-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.bb-menu a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #fff;
	font-family: var(--bb-font-head);
	font-weight: 700;
	font-size: 15.5px;
	padding: 10px 14px;
	border-radius: 999px;
	position: relative;
	white-space: nowrap;
}
.bb-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.bb-menu .bb-menu-home-icon { width: 26px; height: 26px; flex: none; }
.menu-item-home > a { padding: 10px 16px; justify-content: center; }
.bb-menu .current-menu-item > a::after,
.bb-menu .current-menu-ancestor > a::after,
.bb-menu .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 5px;
	height: 3px;
	border-radius: 3px;
	background: var(--bb-blue);
}
.bb-menu .menu-item-has-children { position: relative; }
.bb-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	min-width: 210px;
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--bb-shadow);
	list-style: none;
	margin: 6px 0 0;
	padding: 8px;
	z-index: 95;
}
.bb-menu .menu-item-has-children:hover > .sub-menu,
.bb-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.bb-menu .sub-menu a { color: var(--bb-text); display: flex; width: 100%; border-radius: 10px; }
.bb-menu .sub-menu a:hover { background: var(--bb-soft); color: var(--bb-pink); }
.bb-menu svg { width: 14px; height: 14px; }

.bb-pillnav .bb-search-toggle { background: transparent; color: #fff; }
.bb-pillnav .bb-search-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.bb-pillnav .bb-dark-switch { margin-left: 10px; }

/* Search overlay */
.bb-search-overlay {
	position: fixed; inset: 0;
	background: rgba(12, 12, 20, 0.72);
	backdrop-filter: blur(6px);
	z-index: 300;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 20px;
}
.bb-search-overlay[hidden] { display: none; }
.bb-search-box {
	background: #fff;
	border-radius: 22px;
	padding: 34px;
	width: 100%;
	max-width: 620px;
	position: relative;
	box-shadow: var(--bb-shadow);
}
.bb-search-close { position: absolute; top: 14px; right: 14px; }
.bb-searchform { display: flex; gap: 10px; }
.bb-searchform-input {
	flex: 1;
	border: 2px solid var(--bb-line);
	border-radius: 999px;
	padding: 13px 22px;
	font-size: 16px;
	font-family: var(--bb-font-body);
}
.bb-searchform-input:focus { outline: none; border-color: var(--bb-blue); }
.bb-searchform-btn {
	border: 0; cursor: pointer;
	background: var(--bb-pink); color: #fff;
	border-radius: 999px;
	padding: 13px 28px;
	font-family: var(--bb-font-head);
	font-weight: 800;
}

/* Mobile drawer */
.bb-drawer[hidden] { display: none; }
.bb-drawer { position: fixed; inset: 0; z-index: 300; }
.bb-drawer-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 20, 0.6); }
.bb-drawer-panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(360px, 88vw);
	background: #fff;
	padding: 22px;
	overflow-y: auto;
	border-radius: 22px 0 0 22px;
}
.bb-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.bb-drawer-menu { list-style: none; margin: 0 0 18px; padding: 0; }
.bb-drawer-menu a {
	display: block;
	padding: 12px 6px;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 17px;
	color: var(--bb-text);
	border-bottom: 1px solid var(--bb-line);
}
.bb-drawer-menu .sub-menu { list-style: none; padding-left: 14px; }

/* ============ Hero slider ============ */
.bb-hero { position: relative; margin-bottom: -70px; }
.bb-hero-track { position: relative; display: grid; }
.bb-slide {
	position: relative;
	grid-area: 1 / 1;
	border-radius: 26px;
	overflow: hidden;
	min-height: 560px;
	box-shadow: var(--bb-shadow);
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.bb-slide.is-active {
	visibility: visible;
	opacity: 1;
	z-index: 2;
	transition: opacity 0.5s ease;
}
.bb-slide-bg { position: absolute; inset: 0; }
.bb-slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.bb-slide-shade {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(10, 10, 22, 0.78) 0%, rgba(10, 10, 22, 0.25) 55%, rgba(10, 10, 22, 0.05) 100%);
}
.bb-slide-content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 8%;
	color: #fff;
}
.bb-slide-badge { margin-bottom: 22px; }
.bb-slide-title {
	font-size: clamp(30px, 4.6vw, 54px);
	font-weight: 900;
	color: #fff;
	max-width: 900px;
	margin-bottom: 16px;
	letter-spacing: -0.01em;
}
.bb-slide-title a { color: #fff; }
.bb-slide-title a:hover { color: #fff; }
.bb-slide-excerpt {
	max-width: 680px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16.5px;
	margin-bottom: 26px;
}
.bb-slide-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.bb-hero-prev, .bb-hero-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px; height: 52px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.65);
	background: rgba(12, 12, 22, 0.25);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease;
	z-index: 5;
}
.bb-hero-prev:hover, .bb-hero-next:hover { background: var(--bb-pink); border-color: var(--bb-pink); transform: translateY(-50%) scale(1.06); }
.bb-hero-prev { left: 26px; }
.bb-hero-next { right: 26px; }
.bb-hero-prev svg, .bb-hero-next svg { width: 22px; height: 22px; }

.bb-hero-dots {
	position: absolute;
	bottom: 96px;
	left: 0; right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 5;
}
.bb-hero-dots button {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.45);
	cursor: pointer;
	padding: 0;
	transition: background 0.15s ease, transform 0.15s ease;
}
.bb-hero-dots button.is-active { background: #fff; transform: scale(1.25); }

/* ============ Overlapping feature cards ============ */
.bb-cards-overlap { position: relative; z-index: 6; margin-top: -70px; }
.bb-feature-cards { align-items: stretch; }
.bb-fcard {
	background: #fff;
	border-radius: var(--bb-radius);
	box-shadow: var(--bb-shadow);
	padding: 34px 28px 30px;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bb-fcard:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(18, 18, 40, 0.13); }
.bb-fcard-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px; height: 76px;
	border-radius: 50%;
	color: #fff;
	margin-bottom: 18px;
	box-shadow: 0 8px 18px rgba(18, 18, 40, 0.16);
}
.bb-fcard-icon svg { width: 36px; height: 36px; }
.bb-fcard-icon.is-green { background: linear-gradient(135deg, #5ad894, var(--bb-green)); }
.bb-fcard-icon.is-blue { background: linear-gradient(135deg, #6a94ff, var(--bb-blue)); }
.bb-fcard-icon.is-pink { background: linear-gradient(135deg, #ff6fa0, var(--bb-pink)); }
.bb-fcard-icon.is-purple { background: linear-gradient(135deg, #9488ff, var(--bb-purple)); }
.bb-fcard-icon.is-orange { background: linear-gradient(135deg, #ff9a5c, var(--bb-orange)); }
.bb-fcard-title { font-size: 21px; margin-bottom: 8px; }
.bb-fcard-text { color: var(--bb-muted); font-size: 14.5px; margin-bottom: 14px; }

/* ============ Sections ============ */
.bb-section { padding: 64px 0; }
.bb-section-soft { background: var(--bb-soft); }

.bb-sec-head { text-align: center; margin-bottom: 40px; }
.bb-ribbon {
	display: inline-block;
	font-family: var(--bb-font-head);
	font-weight: 900;
	font-size: clamp(24px, 3vw, 34px);
	color: #fff;
	padding: 10px 38px;
	border-radius: 10px;
	transform: skewX(-12deg);
	box-shadow: 0 10px 24px rgba(18, 18, 40, 0.16);
	margin-bottom: 12px;
}
.bb-ribbon > span { display: inline-block; transform: skewX(12deg); }
.bb-ribbon.is-pink { background: linear-gradient(135deg, #ff6fa0, var(--bb-pink)); }
.bb-ribbon.is-blue { background: linear-gradient(135deg, #6a94ff, var(--bb-blue)); }
.bb-ribbon.is-purple { background: linear-gradient(135deg, #9488ff, var(--bb-purple)); }
.bb-ribbon.is-orange { background: linear-gradient(135deg, #ff9a5c, var(--bb-orange)); }
.bb-ribbon.is-green { background: linear-gradient(135deg, #5ad894, var(--bb-green)); }
.bb-sec-sub { color: var(--bb-muted); font-size: 16px; margin: 0; }

.bb-section-foot { text-align: center; margin-top: 38px; }
.bb-showmore {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 15px;
	color: var(--bb-muted);
	border: 2px solid var(--bb-line);
	background: #fff;
	border-radius: 999px;
	padding: 12px 44px;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
a.bb-showmore:hover, button.bb-showmore:hover { border-color: var(--bb-pink); color: var(--bb-pink); transform: translateY(-2px); }

/* Grids */
.bb-grid { display: grid; gap: 28px; }
.bb-grid-2 { grid-template-columns: repeat(2, 1fr); }
.bb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bb-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Article cards ============ */
.bb-card {
	background: #fff;
	border-radius: var(--bb-radius);
	overflow: hidden;
	box-shadow: var(--bb-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}
.bb-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; z-index: 3;
	background: linear-gradient(90deg, var(--bb-pink), var(--bb-purple), var(--bb-blue));
	opacity: 0; transition: opacity 0.25s ease;
	border-radius: var(--bb-radius) var(--bb-radius) 0 0;
}
.bb-card:hover::before { opacity: 1; }
.bb-card:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow); }
.bb-card-title a { transition: color 0.18s ease; }
.bb-card-title a:hover { color: var(--bb-blue); }
.bb-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.bb-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.bb-card:hover .bb-card-media img { transform: scale(1.06); }
.bb-card-media .bb-badge { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.bb-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.bb-card-title { font-size: 20px; margin-bottom: 10px; }
.bb-card-title a { color: var(--bb-ink); }
.bb-card-title a:hover { color: var(--bb-pink); }
.bb-card-meta { font-size: 13.5px; color: var(--bb-muted); margin-bottom: 12px; }
.bb-card-meta a { color: var(--bb-text); font-weight: 600; }
.bb-card-meta a:hover { color: var(--bb-pink); }
.bb-dot { margin: 0 6px; color: var(--bb-line); }
.bb-dots { border: 0; border-top: 2px dotted var(--bb-line); margin: 0 0 12px; }
.bb-card-excerpt { color: var(--bb-muted); font-size: 14.5px; margin: 0; }

/* Overlay feature card */
.bb-feature {
	position: relative;
	border-radius: var(--bb-radius);
	overflow: hidden;
	min-height: 480px;
	display: flex;
	align-items: flex-end;
	box-shadow: var(--bb-shadow);
}
.bb-feature-media { position: absolute; inset: 0; }
.bb-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.bb-feature::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(8, 8, 18, 0.85) 0%, rgba(8, 8, 18, 0.25) 60%, rgba(8, 8, 18, 0) 100%);
}
.bb-feature-body { position: relative; z-index: 2; padding: 34px; color: #fff; }
.bb-feature-body .bb-badge { margin-bottom: 16px; }
.bb-feature-title { font-size: clamp(24px, 3vw, 36px); font-weight: 900; color: #fff; margin-bottom: 12px; }
.bb-feature-title a { color: #fff; }
.bb-feature-excerpt { color: rgba(255, 255, 255, 0.82); font-size: 15px; margin-bottom: 16px; max-width: 640px; }
.bb-feature .bb-card-meta { color: rgba(255, 255, 255, 0.75); }
.bb-feature .bb-card-meta a { color: #fff; }
.bb-feature .bb-textlink { color: #fff; }
.bb-feature .bb-textlink:hover { color: #ffd3e2; }

/* Editorial layout: big overlay + side rows */
.bb-editorial { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.bb-editorial-side { display: flex; flex-direction: column; gap: 20px; }

/* Compact rows */
.bb-row { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--bb-shadow-sm); transition: transform 0.15s ease; }
.bb-row:hover { transform: translateX(4px); }
.bb-row-media { flex: none; width: 108px; height: 108px; border-radius: 12px; overflow: hidden; position: relative; }
.bb-row-media img { width: 100%; height: 100%; object-fit: cover; }
.bb-row-body { min-width: 0; }
.bb-row-body .bb-badge { font-size: 10.5px; padding: 5px 12px; margin-bottom: 8px; }
.bb-row-title { font-size: 16.5px; margin: 0 0 6px; }
.bb-row-title a { color: var(--bb-ink); }
.bb-row-title a:hover { color: var(--bb-pink); }
.bb-row-date { font-size: 13px; color: var(--bb-muted); }

/* Species cards */
.bb-species-grid { align-items: stretch; }
.bb-species-card {
	background: #fff;
	border-radius: var(--bb-radius);
	overflow: hidden;
	box-shadow: var(--bb-shadow-sm);
	text-align: center;
	padding-bottom: 24px;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bb-species-card:hover { transform: translateY(-6px); box-shadow: var(--bb-shadow); }
.bb-species-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.bb-species-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.bb-species-card:hover .bb-species-media img { transform: scale(1.06); }
.bb-species-name { display: block; font-family: var(--bb-font-head); font-weight: 800; font-size: 19px; color: var(--bb-ink); margin: 18px 18px 6px; }
.bb-species-count {
	display: inline-flex; align-items: center;
	margin: 0 18px 8px; padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #9488ff, var(--bb-purple));
	color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: 0.4px;
	box-shadow: 0 6px 14px rgba(130, 110, 255, 0.35);
}
.bb-species-desc { display: block; color: var(--bb-muted); font-size: 14px; margin: 0 18px; }

/* Backyard + migration layouts */
.bb-backyard { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.bb-backyard-grid { align-content: start; }
.bb-migration { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.bb-migration-side { display: flex; flex-direction: column; gap: 20px; }

/* ============ Promo banner ============ */
.bb-promo {
	border-radius: 26px;
	background: linear-gradient(120deg, #1fb6a6 0%, #2f9de0 60%, #4f7fff 100%);
	padding: 46px 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	box-shadow: var(--bb-shadow);
	position: relative;
	overflow: hidden;
}
.bb-promo::before {
	content: "";
	position: absolute;
	width: 340px; height: 340px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	right: -90px; top: -110px;
}
.bb-promo::after {
	content: "";
	position: absolute;
	width: 200px; height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	left: 32%; bottom: -120px;
}
.bb-promo-text { position: relative; z-index: 2; color: #fff; }
.bb-promo-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: #fff; margin-bottom: 8px; }
.bb-promo-sub { color: rgba(255, 255, 255, 0.88); font-size: 16px; margin: 0; max-width: 560px; }
.bb-promo-cta {
	position: relative; z-index: 2; flex: none;
	background: var(--bb-orange);
	color: #fff;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 16px;
	padding: 15px 38px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
	transition: transform 0.15s ease, background 0.15s ease;
}
.bb-promo-cta:hover { color: #fff; background: #f2632f; transform: translateY(-2px); }

/* ============ Footer ============ */
/* Honeypot field: invisible to humans, visible to bots. */
.bb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.bb-footer {
	background: #101018;
	color: #c9c9d8;
	padding: 64px 0 0;
	margin-top: 20px;
}
.bb-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 48px;
	padding-bottom: 52px;
}
.bb-footer-brand { display: inline-block; margin-bottom: 18px; }
.bb-footer-brand img,
.bb-footer-brand .custom-logo { max-height: 52px; width: auto; }
.bb-footer-about { font-size: 14.5px; line-height: 1.7; color: #a9a9bd; margin: 0 0 22px; max-width: 340px; }
.bb-footer-heading {
	color: #fff;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	margin-bottom: 22px;
}
.bb-footer-links { list-style: none; margin: 0; padding: 0; }
.bb-footer-links li { margin-bottom: 13px; }
.bb-footer-links a { color: #c9c9d8; font-size: 14.5px; font-weight: 500; }
.bb-footer-links a:hover { color: var(--bb-pink); }

.bb-footer-social { display: flex; gap: 10px; margin-bottom: 26px; }
.bb-footer-social .bb-social-link { width: 40px; height: 40px; }
.bb-footer-social .bb-social-link svg { width: 18px; height: 18px; }
.bb-social-link.is-facebook { background: #3b5998; color: #fff; }
.bb-social-link.is-twitter { background: #1da1f2; color: #fff; }
.bb-social-link.is-youtube { background: #e52d27; color: #fff; }
.bb-social-link.is-instagram { background: #c13584; color: #fff; }
.bb-social-link.is-pinterest { background: #bd081c; color: #fff; }
.bb-social-link.is-rss { background: var(--bb-orange); color: #fff; }
.bb-footer-social .bb-social-link:hover { transform: translateY(-3px); filter: brightness(1.08); }

.bb-subscribe-pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	color: #101018;
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 15px;
	padding: 14px 34px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.bb-subscribe-pill:hover { color: #fff; background: var(--bb-pink); transform: translateY(-2px); }
.bb-subscribe-pill svg { width: 18px; height: 18px; }

.bb-copyright {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding: 22px 0;
}
.bb-copyright-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	flex-wrap: wrap;
}
.bb-copyright-text { font-size: 13.5px; color: #8f8fa3; }
.bb-legal-menu {
	display: flex;
	align-items: center;
	gap: 6px 24px;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: nowrap;
}
.bb-legal-menu a {
	font-size: 13.5px;
	font-weight: 600;
	color: #c9c9d8;
	white-space: nowrap;
}
.bb-legal-menu a:hover { color: #fff; }

/* Back to top */
.bb-back-top {
	position: fixed;
	right: 26px; bottom: 26px;
	width: 52px; height: 52px;
	border-radius: 14px;
	border: 0;
	background: var(--bb-ink);
	color: #fff;
	cursor: pointer;
	z-index: 120;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(16, 16, 24, 0.3);
	transition: background 0.15s ease, transform 0.15s ease;
}
.bb-back-top[hidden] { display: none; }
.bb-back-top:hover { background: var(--bb-pink); transform: translateY(-3px); }
.bb-back-top svg { width: 22px; height: 22px; transform: rotate(-90deg); }

/* ============ Single post ============ */
.bb-article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; padding: 40px 0 70px; }
.bb-article-col { min-width: 0; }
.bb-has-sidebar .bb-article-col { }
.bb-breadcrumbs { font-size: 13.5px; color: var(--bb-muted); margin-bottom: 18px; }
.bb-breadcrumbs a { color: var(--bb-muted); font-weight: 600; }
.bb-breadcrumbs a:hover { color: var(--bb-pink); }
.bb-crumb-sep { margin: 0 8px; color: var(--bb-line); }

.bb-article-head { margin-bottom: 24px; }
.bb-article-head .bb-badge { margin-bottom: 16px; }
.bb-article-title { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.01em; margin-bottom: 10px; }
.bb-article-subtitle { font-size: 18px; color: var(--bb-muted); margin-bottom: 18px; }

.bb-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--bb-muted); margin-bottom: 26px; }
.bb-meta-item { display: inline-flex; align-items: center; gap: 8px; }
.bb-meta-item svg { width: 16px; height: 16px; }
.bb-meta-author { font-weight: 700; color: var(--bb-text); }
.bb-meta-avatar { width: 34px; height: 34px; border-radius: 50%; }

.bb-article-featured { margin: 12px 0 38px; border-radius: 18px; overflow: hidden; box-shadow: var(--bb-shadow-sm); }
.bb-article-featured img { width: 100%; height: auto; display: block; }
.bb-entry-content { font-size: 17px; }
.bb-entry-content h2 { font-size: 28px; margin-top: 2.2em; }
.bb-entry-content h3 { font-size: 22px; margin-top: 1.8em; }
.bb-entry-content img { border-radius: 18px; }
.bb-entry-content blockquote {
	border-left: 5px solid var(--bb-pink);
	background: var(--bb-soft);
	border-radius: 0 16px 16px 0;
	padding: 22px 26px;
	margin: 1.8em 0;
	font-size: 19px;
	font-weight: 600;
}
.bb-entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.bb-entry-content th, .bb-entry-content td { border: 1px solid var(--bb-line); padding: 10px 14px; text-align: left; }
.bb-entry-content th { background: var(--bb-soft); font-family: var(--bb-font-head); }

/* Slanted category ribbon (article header) */
.bb-badge-slant {
	border-radius: 3px;
	transform: skewX(-14deg);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 0.08em;
	padding: 9px 20px 9px 22px;
}
.bb-badge-slant .bb-badge-text { display: inline-block; transform: skewX(14deg); }

/* Article header meta: byline + share actions */
.bb-article-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin: 22px 0 8px;
}
.bb-byline { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bb-byline-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.bb-byline-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bb-byline-name { font-weight: 800; font-size: 15px; color: var(--bb-text); }
.bb-byline-name:hover { color: var(--bb-pink); }
.bb-byline-sep { color: var(--bb-line); }
.bb-save-btn {
	display: inline-flex; align-items: center; gap: 7px;
	border: 0; background: none; cursor: pointer;
	font-size: 14px; font-weight: 700; color: var(--bb-text);
	padding: 4px 2px;
}
.bb-save-btn svg { width: 17px; height: 17px; }
.bb-save-btn:hover { color: var(--bb-pink); }
.bb-save-btn.is-saved { color: var(--bb-pink); }
.bb-save-btn.is-saved svg { fill: currentColor; }
.bb-byline-updated { font-size: 13.5px; color: var(--bb-muted); margin-top: 3px; }
.bb-article-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bb-actions-label { font-size: 14px; color: var(--bb-muted); margin-right: 2px; }
.bb-action-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%;
	border: 0; background: none; cursor: pointer; color: var(--bb-text);
	transition: transform 0.15s ease, color 0.15s ease;
}
.bb-action-btn:hover { transform: translateY(-2px); color: var(--bb-pink); }
.bb-action-btn svg { width: 19px; height: 19px; }
.bb-actions-reading { font-size: 14px; color: var(--bb-muted); margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--bb-line); }
@media (max-width: 640px) {
	.bb-article-meta { align-items: flex-start; flex-direction: column; }
}

/* TOC: native Contents box */
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
.bb-entry-content h2[id], .bb-entry-content h3[id] { scroll-margin-top: 96px; }
.bb-toc {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 14px;
	padding: 24px 28px;
	margin: 1.8em 0;
	box-shadow: var(--bb-shadow-sm);
}
.bb-toc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.bb-toc-book { color: var(--bb-blue); display: inline-flex; }
.bb-toc-book svg { width: 24px; height: 24px; }
.bb-toc-title { font-family: var(--bb-font-head); font-weight: 800; font-size: 21px; color: var(--bb-text); }
.bb-toc-toggle {
	margin-left: auto; border: 0; background: none; cursor: pointer;
	color: var(--bb-text); display: inline-flex; padding: 6px;
}
.bb-toc-toggle svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.bb-toc-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.bb-toc-list {
	list-style: none; margin: 0; padding: 0;
	counter-reset: bb-toc;
	columns: 2; column-gap: 44px;
}
.bb-toc-list li {
	display: flex; align-items: flex-start; gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--bb-soft);
	break-inside: avoid;
	counter-increment: bb-toc;
}
.bb-toc-list li::before {
	content: counter(bb-toc);
	flex: none;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--bb-ink); color: #fff;
	font-size: 13px; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center;
	margin-top: 1px;
}
.bb-toc-list a { color: var(--bb-text); font-weight: 700; font-size: 15.5px; line-height: 1.45; }
.bb-toc-list a:hover { color: var(--bb-pink); text-decoration: underline; }
.bb-toc-h3 a { font-size: 14.5px; font-weight: 600; }
@media (max-width: 640px) {
	.bb-toc-list { columns: 1; }
	.bb-toc { padding: 20px; }
}

/* Article images: always centered, never side-aligned. */
.bb-entry-content .wp-block-image { text-align: center; }
.bb-entry-content .wp-block-image img { margin-left: auto; margin-right: auto; }
.bb-entry-content figure.alignleft,
.bb-entry-content figure.alignright,
.bb-entry-content .wp-block-image.alignleft,
.bb-entry-content .wp-block-image.alignright,
.bb-entry-content img.alignleft,
.bb-entry-content img.alignright {
	float: none;
	display: block;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* More Read: mid-article suggestion box (compact strip) */
.bb-more-read {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, #ff5e8a 0%, #a855f7 55%, #4f7fff 100%);
	border-radius: 18px;
	padding: 18px 20px;
	margin: 1.8em 0;
	box-shadow: 0 14px 34px rgba(168, 85, 247, 0.28);
}
.bb-more-read::before,
.bb-more-read::after {
	content: ""; position: absolute; border-radius: 50%;
	background: rgba(255, 255, 255, 0.14); pointer-events: none;
}
.bb-more-read::before { width: 140px; height: 140px; top: -50px; right: -40px; }
.bb-more-read::after { width: 100px; height: 100px; bottom: -45px; left: -30px; }
.bb-more-read-head {
	position: relative; z-index: 1;
	display: flex; align-items: center; justify-content: center; gap: 10px;
	margin-bottom: 14px;
}
.bb-more-read-title {
	display: flex; align-items: center; gap: 8px;
	font-family: var(--bb-font-head); font-weight: 900; font-size: 19px;
	color: #fff; margin: 0; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.bb-more-read-icon {
	display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.4);
	align-items: center; justify-content: center; flex: none;
}
.bb-more-read-icon svg { width: 16px; height: 16px; color: #fff; }
.bb-more-read-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bb-more-read-item {
	display: flex; align-items: center; gap: 12px;
	background: #fff; border-radius: 12px; padding: 10px 12px;
	box-shadow: 0 8px 20px rgba(16, 16, 24, 0.18);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	min-width: 0;
}
.bb-more-read-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(16, 16, 24, 0.24);
}
.bb-more-read-thumb {
	flex: none; width: 64px; height: 64px;
	border-radius: 8px; overflow: hidden; background: var(--bb-soft);
}
.bb-more-read-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.bb-more-read-item:hover .bb-more-read-thumb img { transform: scale(1.08); }
.bb-more-read-body { display: block; padding: 0; min-width: 0; }
.bb-more-read-item-title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-family: var(--bb-font-head); font-weight: 800;
	font-size: 13px; line-height: 1.35; color: var(--bb-text); margin-bottom: 4px;
}
.bb-more-read-link {
	display: inline-flex; align-items: center; gap: 4px;
	font-weight: 800; font-size: 11px; color: var(--bb-pink);
	text-transform: uppercase; letter-spacing: 0.06em;
}
.bb-more-read-link svg { width: 12px; height: 12px; transition: transform 0.2s ease; }
.bb-more-read-item:hover .bb-more-read-link svg { transform: translateX(4px); }
@media (max-width: 640px) {
	.bb-more-read-grid { grid-template-columns: 1fr; }
	.bb-more-read { padding: 16px; }
}

/* Share */
.bb-share { display: flex; align-items: center; gap: 14px; margin: 38px 0; flex-wrap: wrap; }
.bb-share-label { font-family: var(--bb-font-head); font-weight: 800; font-size: 17px; margin-right: 4px; }
.bb-share-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.bb-share-btn {
	position: relative;
	overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	color: #fff; border: 0; cursor: pointer;
	box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 10px 20px rgba(0, 0, 0, 0.20);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}
.bb-share-btn::after {
	content: "";
	position: absolute; top: 0; left: -90%;
	width: 55%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	transform: skewX(-20deg);
	transition: left 0.55s ease;
	pointer-events: none;
}
.bb-share-btn:hover { transform: translateY(-3px); filter: brightness(1.07); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.18), 0 16px 26px rgba(0, 0, 0, 0.22); }
.bb-share-btn:hover::after { left: 140%; }
.bb-share-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.18); }
.bb-share-btn svg { width: 20px; height: 20px; position: relative; }
.bb-share-btn.is-facebook { background: #1877f2; }
.bb-share-btn.is-x { background: #141414; }
.bb-share-btn.is-pinterest { background: #e60023; }
.bb-share-btn.is-whatsapp { background: #25d366; }
.bb-share-btn.is-mail { background: #5b5b6e; }
.bb-share-btn.is-copy { background: var(--bb-blue); }
.bb-share-btn.is-native { background: var(--bb-ink); }
.bb-share-copy-msg { font-size: 13px; color: var(--bb-green); font-weight: 600; }

/* Author box */
.bb-author-box {
	display: flex; gap: 28px; align-items: center;
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 22px;
	padding: 32px 34px;
	margin: 12px 0 46px;
	box-shadow: var(--bb-shadow-sm);
}
.bb-author-avatar { flex: none; }
.bb-author-ring {
	display: inline-block;
	padding: 5px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--bb-pink) 0%, var(--bb-purple, #8b5cf6) 55%, var(--bb-blue) 100%);
	box-shadow: 0 10px 26px rgba(247, 80, 133, 0.28);
}
.bb-author-ring img {
	width: 104px; height: 104px;
	border-radius: 50%;
	display: block;
	border: 4px solid #fff;
	object-fit: cover;
}
.bb-author-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bb-pink); margin-bottom: 6px; display: block; }
.bb-author-name { font-size: 27px; letter-spacing: -0.3px; margin-bottom: 8px; }
.bb-author-name a { color: var(--bb-ink); }
.bb-author-name a:hover { color: var(--bb-pink); }
.bb-author-bio { color: #454a58; font-size: 16px; line-height: 1.8; margin: 0 0 18px; max-width: 640px; }
.bb-author-more {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--bb-ink); color: #fff;
	font-weight: 800; font-size: 14px;
	padding: 11px 22px; border-radius: 999px;
	transition: transform 0.15s ease, background 0.15s ease;
}
.bb-author-more:hover { background: var(--bb-pink); color: #fff; transform: translateY(-2px); }
.bb-author-more svg { width: 16px; height: 16px; }
.bb-author-main { flex: 1; min-width: 0; }
.bb-author-side {
	flex: none; text-align: center;
	background: linear-gradient(135deg, #fff7f0 0%, #fdf2f8 100%);
	border: 1px solid var(--bb-line); border-radius: 18px;
	padding: 26px 36px;
	box-shadow: 0 10px 24px rgba(16, 16, 24, 0.07);
}
.bb-author-count {
	display: block; font-family: var(--bb-font-head); font-weight: 900;
	font-size: 44px; line-height: 1; color: var(--bb-pink);
}
.bb-author-count-label {
	display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase;
	letter-spacing: 1.4px; color: var(--bb-muted); margin-top: 10px;
}
@media (max-width: 720px) {
	.bb-author-box { flex-wrap: wrap; }
	.bb-author-side { width: 100%; }
}
@media (max-width: 640px) {
	.bb-author-box { flex-direction: column; text-align: center; padding: 28px 22px; }
	.bb-author-bio { margin-left: auto; margin-right: auto; }
}

/* Related */
.bb-related { margin: 0 0 50px; }
.bb-related .bb-section-title, .bb-related h2 { font-size: 26px; margin-bottom: 24px; }

/* Tags */
.bb-article-tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 30px 0; }
.bb-tags-label { font-family: var(--bb-font-head); font-weight: 800; }
.bb-article-tags a {
	background: var(--bb-soft);
	border-radius: 999px;
	padding: 7px 16px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bb-text);
}
.bb-article-tags a:hover { background: var(--bb-pink); color: #fff; }

/* ============ Archives / pages ============ */
.bb-archive-head { text-align: center; padding: 52px 0 14px; position: relative; }
.bb-archive-head::after {
	content: ""; display: block; width: 92px; height: 5px; margin: 18px auto 0;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--bb-pink), var(--bb-purple), var(--bb-blue));
	box-shadow: 0 6px 16px rgba(120, 100, 255, 0.35);
}
.bb-archive-kicker {
	display: inline-flex; align-items: center;
	padding: 7px 18px; margin-bottom: 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #6a94ff, var(--bb-blue));
	color: #fff;
	font-family: var(--bb-font-head); font-weight: 800; font-size: 12px;
	letter-spacing: 2.5px; text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(64, 110, 255, 0.35);
}
.bb-archive-title { font-size: clamp(30px, 4vw, 42px); font-weight: 900; margin-bottom: 8px; }
.bb-archive-count {
	display: inline-flex; align-items: center; gap: 6px;
	margin-top: 12px; padding: 6px 16px;
	border-radius: 999px;
	background: var(--bb-soft);
	color: var(--bb-muted);
	font-size: 13px; font-weight: 700;
}
.bb-archive-desc { color: var(--bb-muted); max-width: 640px; margin: 0 auto; }
.bb-page-head { padding: 46px 0 10px; text-align: center; }
.bb-page-title { font-size: clamp(30px, 4vw, 42px); font-weight: 900; }
.bb-page-narrow { max-width: 820px; margin: 0 auto; }
.bb-page-featured { border-radius: 24px; overflow: hidden; margin: 26px 0 34px; }
.bb-page-links { margin: 30px 0; font-weight: 700; }

.bb-pagination { display: flex; justify-content: center; margin: 48px 0 74px; }
.bb-pagination ul.page-numbers { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center; align-items: center; }
.bb-pagination li { margin: 0; }
.bb-pagination a.page-numbers,
.bb-pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 48px; height: 48px; padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	border: 2px solid var(--bb-line);
	color: var(--bb-text);
	font-family: var(--bb-font-head); font-weight: 800; font-size: 15px;
	box-shadow: var(--bb-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.bb-pagination a.page-numbers:hover {
	transform: translateY(-3px);
	box-shadow: var(--bb-shadow);
	border-color: var(--bb-blue);
	color: var(--bb-blue);
}
.bb-pagination span.current {
	background: linear-gradient(135deg, #6a94ff, var(--bb-blue));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 12px 26px rgba(64, 110, 255, 0.38);
	transform: scale(1.08);
}
.bb-pagination span.dots { border: none; background: transparent; box-shadow: none; min-width: 28px; padding: 0; color: var(--bb-muted); }
.bb-pagination a.prev,
.bb-pagination a.next {
	background: var(--bb-ink);
	border-color: var(--bb-ink);
	color: #fff;
	padding: 0 24px;
}
.bb-pagination a.prev:hover,
.bb-pagination a.next:hover {
	color: #fff;
	border-color: transparent;
	background: linear-gradient(135deg, #ff6fa0, var(--bb-pink));
}
.bb-dark .bb-pagination a.page-numbers,
.bb-dark .bb-pagination span.page-numbers { background: #1b1b26; border-color: var(--bb-line); color: #ececf4; }
.bb-dark .bb-pagination a.page-numbers:hover { color: #6a94ff; border-color: #6a94ff; }

/* 404 */
.bb-404 { text-align: center; padding: 90px 0; }
.bb-404-mark { font-size: 90px; margin-bottom: 10px; }
.bb-404-title { font-size: 40px; font-weight: 900; }
.bb-404-text { color: var(--bb-muted); margin-bottom: 8px; }
.bb-404-sub { color: var(--bb-muted); margin-bottom: 26px; }
.bb-404-search { max-width: 480px; margin: 0 auto; }

/* Nothing found */
.bb-none { text-align: center; padding: 70px 0; }
.bb-none-title { font-size: 30px; font-weight: 900; }

/* Search */
.bb-search-count { color: var(--bb-muted); text-align: center; margin-bottom: 30px; }
.bb-search-again { max-width: 520px; margin: 0 auto 60px; }

/* ============ Sidebar / widgets ============ */
.bb-sidebar { display: flex; flex-direction: column; gap: 28px; }
.bb-widget { background: var(--bb-soft); border-radius: var(--bb-radius); padding: 26px; }
.bb-widget-title { font-size: 18px; margin-bottom: 16px; }
.bb-widget ul { list-style: none; margin: 0; padding: 0; }
.bb-widget li { padding: 8px 0; border-bottom: 1px solid var(--bb-line); font-size: 14.5px; }
.bb-widget li:last-child { border-bottom: 0; }
.bb-widget a { color: var(--bb-text); font-weight: 600; }
.bb-widget a:hover { color: var(--bb-pink); }

/* ============ Comments ============ */
.bb-comments {
	background: #fff;
	border: 1px solid var(--bb-line);
	border-radius: 22px;
	padding: 38px 40px;
	margin: 0 0 64px;
	box-shadow: var(--bb-shadow-sm);
}
.bb-comments-title { font-size: 24px; margin-bottom: 26px; display: flex; align-items: center; gap: 10px; }
.bb-comments-ico { display: inline-flex; color: var(--bb-ink); }
.bb-comments-ico svg { width: 26px; height: 26px; }
.bb-comment-list { list-style: none; margin: 0 0 34px; padding: 0; }
.bb-comment { margin-bottom: 20px; }
.bb-comment-body {
	display: flex; gap: 16px;
	background: var(--bb-soft);
	border-radius: 18px;
	padding: 20px 24px;
}
.bb-comment-avatar { flex: none; }
.bb-comment-avatar img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; box-shadow: var(--bb-shadow-sm); }
.bb-comment-main { flex: 1; min-width: 0; }
.bb-comment-meta { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; flex-wrap: wrap; }
.bb-comment-author { font-family: var(--bb-font-head); font-weight: 800; }
.bb-comment-date { font-size: 13px; color: var(--bb-muted); }
.bb-comment-text { font-size: 15px; }
.bb-comment-text p:last-child { margin-bottom: 0; }
.bb-comment-reply { margin-top: 10px; }
.bb-comment-reply a {
	display: inline-block; font-size: 13.5px; font-weight: 800;
	background: #fff; border: 1px solid var(--bb-line); border-radius: 999px;
	padding: 7px 18px; color: var(--bb-text);
}
.bb-comment-reply a:hover { background: var(--bb-ink); border-color: var(--bb-ink); color: #fff; }
.bb-comment-moderation { font-size: 13px; color: var(--bb-orange); }
.bb-comment .children { list-style: none; padding-left: 34px; margin-top: 18px; }
.bb-comments-closed { color: var(--bb-muted); }
.comment-notes { font-size: 13.5px; color: var(--bb-muted); margin-bottom: 18px; }
.comment-respond .comment-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.comment-form-comment { grid-column: 1 / -1; margin-bottom: 2px; }
.comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: 2px; }
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
	width: 100%;
	border: 0;
	background: var(--bb-soft);
	border-radius: 12px;
	padding: 16px 18px;
	font-size: 15px;
	font-family: var(--bb-font-body);
	color: var(--bb-text);
	transition: box-shadow 0.15s ease, background 0.15s ease;
}
.comment-form-comment textarea { min-height: 150px; resize: vertical; }
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
	outline: none;
	background: #fff;
	box-shadow: 0 0 0 2px var(--bb-blue);
}
.comment-form-cookies-consent { grid-column: 1 / -1; font-size: 13.5px; color: var(--bb-muted); display: flex; gap: 8px; align-items: flex-start; }
.form-submit { grid-column: 1 / -1; margin: 6px 0 0; }
.bb-comment-submit {
	border-radius: 12px !important;
	padding: 15px 44px !important;
	font-size: 15px !important;
}
@media (max-width: 640px) {
	.bb-comments { padding: 26px 20px; }
	.comment-respond .comment-form { grid-template-columns: 1fr; }
	.bb-comment .children { padding-left: 18px; }
}

/* Contact / about */
.bb-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 20px 0 70px; }
.bb-contact-form input, .bb-contact-form textarea {
	width: 100%;
	border: 2px solid var(--bb-line);
	border-radius: 14px;
	padding: 13px 18px;
	font-size: 15px;
	font-family: var(--bb-font-body);
	margin-bottom: 14px;
}
.bb-contact-form input:focus, .bb-contact-form textarea:focus { outline: none; border-color: var(--bb-blue); }
.bb-form-errors { color: #d33; font-weight: 600; margin-bottom: 14px; }
.bb-form-ok { color: var(--bb-green); font-weight: 600; margin-bottom: 14px; }
.bb-about-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Term image picker (admin) */
.bb-term-image-preview img { border-radius: 12px; max-width: 220px; }

/* ============ Dark mode ============ */
.bb-dark { --bb-bg: #121218; --bb-soft: #1b1b26; --bb-text: #ececf4; --bb-muted: #9aa0b4; --bb-line: #2a2a3a; }
.bb-dark body, body.bb-dark { background: var(--bb-bg); color: var(--bb-text); }
.bb-dark h1, .bb-dark h2, .bb-dark h3, .bb-dark h4, .bb-dark h5, .bb-dark h6 { color: #f4f4fa; }
.bb-dark .bb-header { background: var(--bb-bg); }
.bb-dark .bb-fcard, .bb-dark .bb-card, .bb-dark .bb-row, .bb-dark .bb-species-card { background: #1b1b26; }
.bb-dark .bb-card-title a, .bb-dark .bb-row-title a, .bb-dark .bb-species-name { color: #f4f4fa; }
.bb-dark .bb-search-box, .bb-dark .bb-drawer-panel { background: #1b1b26; }
.bb-dark .bb-searchform-input { background: #121218; color: #f4f4fa; border-color: var(--bb-line); }
.bb-dark .bb-tagline { color: #f4f4fa; }
.bb-dark .bb-menu .sub-menu { background: #1b1b26; }
.bb-dark .bb-menu .sub-menu a { color: #ececf4; }
.bb-dark .bb-toc, .bb-dark .bb-author-box, .bb-dark .bb-widget, .bb-dark .bb-comment-body { background: #1b1b26; }
.bb-dark .bb-author-bio { color: #c9cdd6; }
.bb-dark .bb-author-side { background: linear-gradient(135deg, #26222e 0%, #241f2b 100%); }
.bb-dark .bb-slide-title, .bb-dark .bb-feature-title { color: #fff; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
	.bb-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.bb-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.bb-editorial, .bb-backyard, .bb-migration { grid-template-columns: 1fr; }
	.bb-article-layout { grid-template-columns: 1fr; }
	.bb-contact { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
	.bb-toprow-spacer { display: none; }
	.bb-toprow { flex-wrap: wrap; }
	.bb-brand-center { order: -1; flex: 1 1 100%; }
	.bb-menu-toggle { display: inline-flex; }
	.bb-pillnav-wrap { display: none; }
	.bb-slide { min-height: 480px; }
	.bb-hero-prev { left: 12px; }
	.bb-hero-next { right: 12px; }
	.bb-promo { flex-direction: column; text-align: center; padding: 38px 28px; }
	.bb-cards-overlap { margin-top: -50px; }
	.bb-footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 640px) {
	.bb-grid-2, .bb-grid-3, .bb-grid-4 { grid-template-columns: 1fr; }
	.bb-section { padding: 48px 0; }
	.bb-slide { min-height: 440px; border-radius: 20px; }
	.bb-slide-content { padding: 40px 10%; }
	.bb-hero-dots { bottom: 70px; }
	.bb-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.bb-copyright-inner { flex-direction: column; justify-content: center; text-align: center; }
	.bb-legal-menu { flex-wrap: wrap; justify-content: center; }
}

/* Wordmark accent */
.bb-wordmark-text span { color: var(--bb-pink); }
.bb-brand-center .bb-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.bb-footer-brand .bb-wordmark { display: inline-flex; align-items: center; gap: 12px; }
.bb-drawer-head .bb-wordmark { display: inline-flex; align-items: center; gap: 10px; }

/* Header social icons: plain dark glyphs (override the footer color fills) */
.bb-toprow-social .bb-social-link.is-facebook,
.bb-toprow-social .bb-social-link.is-twitter,
.bb-toprow-social .bb-social-link.is-youtube,
.bb-toprow-social .bb-social-link.is-instagram,
.bb-toprow-social .bb-social-link.is-pinterest,
.bb-toprow-social .bb-social-link.is-rss,
.bb-toprow-social .bb-social-link.is-x {
	background: transparent;
	color: var(--bb-ink);
	width: auto;
	height: auto;
	padding: 5px;
	border-radius: 0;
}
.bb-toprow-social .bb-social-link:hover { background: transparent; color: var(--bb-pink); }

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--bb-blue);
	outline-offset: 2px;
	border-radius: 6px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

/* Scannable article content: airy paragraphs, styled lists */
.bb-entry-content p { margin-bottom: 1.3em; }
.bb-entry-content ul, .bb-entry-content ol { margin: 0 0 1.6em; padding: 0; }
.bb-entry-content ul { list-style: none; }
.bb-entry-content ul > li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 0.7em;
}
.bb-entry-content ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.62em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bb-pink);
}
.bb-entry-content ol { list-style: none; counter-reset: bb-ol; }
.bb-entry-content ol > li {
	position: relative;
	padding-left: 44px;
	margin-bottom: 0.8em;
	counter-increment: bb-ol;
}
.bb-entry-content ol > li::before {
	content: counter(bb-ol);
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--bb-soft);
	color: var(--bb-blue);
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.bb-entry-content li > ul, .bb-entry-content li > ol { margin-top: 0.7em; margin-bottom: 0; }

/* Prev/next article navigation (internal linking) */
.post-navigation { margin: 6px 0 44px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
	display: block;
	background: var(--bb-soft);
	border-radius: 16px;
	padding: 20px 24px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover { transform: translateY(-3px); box-shadow: var(--bb-shadow-sm); }
.post-navigation .nav-next { text-align: right; }
.bb-pn-label {
	display: block;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--bb-pink);
	margin-bottom: 6px;
}
.bb-pn-title {
	font-family: var(--bb-font-head);
	font-weight: 800;
	font-size: 17px;
	color: var(--bb-ink);
	line-height: 1.4;
}
@media (max-width: 640px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
}
