/* ═══════════════════════════════════════════════════════════
   CBASCO Haika — News Content
   Variants:
   - default      → اخبار شرکت
   - newsletter   → خبرنامه‌ها (هر دو) + ویژه‌نامه‌ها
   - photo        → گزارش تصویری
   - video        → گزارش ویدیویی
   - special      → ویژه‌نامه (single only, large editorial)
═══════════════════════════════════════════════════════════ */

/* ───── ARCHIVE HEROES ───── */
.cbn-archive-hero,
.cbn-tax-hero {
	position: relative;
	padding: 5rem 1.5rem 3.5rem;
	text-align: center;
	overflow: hidden;
	border-bottom: 1px solid var(--cb-border);
}
.cbn-archive-hero-mesh {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(ellipse 70% 60% at 50% 50%, rgba(80,140,200,.18), transparent 70%),
		radial-gradient(ellipse 35% 30% at 18% 80%, rgba(60,110,180,.10), transparent 60%);
}
.cbn-archive-hero-grid {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(130,180,220,.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(130,180,220,.08) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
	-webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.cbn-tax-hero {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--cb-acc, #6aaecc) 10%, transparent) 0%, transparent 80%),
		var(--cb-bg);
}
.cbn-tax-icon {
	font-size: 3rem;
	margin-bottom: .5rem;
}
.cbn-archive-title {
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 900;
	line-height: 1.2;
	margin-bottom: 1rem;
	color: var(--cb-text);
	background: linear-gradient(135deg, #ddeef8 20%, var(--cb-steel, #6aaecc) 60%, #c0d8ee 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.cbn-archive-title em {
	font-style: normal;
	background: linear-gradient(90deg, var(--cb-steel, #6aaecc), var(--cb-steel-l, #a0d0e8));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.cbn-archive-lead {
	max-width: 660px;
	margin: 0 auto;
	color: var(--cb-text-body);
	font-size: .98rem;
	line-height: 2;
	font-weight: 300;
}
.cbn-back-to-all {
	display: inline-block;
	margin-top: 1.4rem;
	color: var(--cb-muted);
	font-size: .82rem;
	transition: color var(--cb-tr-fast);
}
.cbn-back-to-all:hover { color: var(--cb-steel); }

/* ───── FILTERS (single row, horizontally scrollable) ───── */
.cbn-filters {
	background: var(--cb-bg-2);
	border-bottom: 1px solid var(--cb-border);
	position: relative;
}
.cbn-filters::before,
.cbn-filters::after {
	content: '';
	position: absolute;
	top: 0; bottom: 0;
	width: 40px;
	pointer-events: none;
	z-index: 2;
}
.cbn-filters::before {
	right: 0;
	background: linear-gradient(270deg, var(--cb-bg-2), transparent);
}
.cbn-filters::after {
	left: 0;
	background: linear-gradient(90deg, var(--cb-bg-2), transparent);
}
.cbn-filters-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	gap: .5rem;
	padding: 1rem var(--cb-pad);
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
	justify-content: center; /* center on wide screens; scrolls on narrow */
	-webkit-overflow-scrolling: touch;
}
@media (max-width: 700px) {
	.cbn-filters-inner { justify-content: flex-start; }
}
.cbn-filters-inner::-webkit-scrollbar { display: none; }

.cbn-filter {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: transparent;
	border: 1px solid var(--cb-border);
	color: var(--cb-muted);
	padding: .5rem 1rem;
	border-radius: 100px;
	font-family: inherit;
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	transition: color var(--cb-tr-fast), border-color var(--cb-tr-fast), background var(--cb-tr-fast);
	white-space: nowrap;
	flex-shrink: 0;
	scroll-snap-align: start;
}
.cbn-filter:hover {
	color: var(--cb-text);
	border-color: var(--cb-border-hover);
}
.cbn-filter.is-active {
	background: var(--cb-acc, var(--cb-steel));
	border-color: var(--cb-acc, var(--cb-steel));
	color: var(--cb-bg, #0d1117);
	box-shadow: 0 6px 20px color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 30%, transparent);
}
.cbn-filter-icon { font-size: .95rem; }

/* ───── ARCHIVE WRAP ───── */
.cbn-archive-wrap { padding: 3rem 0 5rem; }

/* ───── POOLS (used on archive pages and front-page sections) ───── */
.cbf-news-pools .cbf-news-pool { display: none; }
.cbf-news-pools .cbf-news-pool.is-active { display: block; }

/* ───── GRID ───── */
.cbn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.6rem;
}
.cbn-grid__item {
	display: flex; /* allow card to fill */
}
.cbn-grid__item > article { width: 100%; }

/* Layout variants for taxonomy archives */
.cbn-layout-shelf {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.4rem;
}
.cbn-layout-mosaic {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.2rem;
}
.cbn-layout-videos {
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 1.4rem;
}
/* ── Spotlight layout: editorial bookshelf for ویژه‌نامه ── */
.cbn-layout-spotlight {
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 1.8rem;
	position: relative;
	padding: 1rem 0 .5rem;
}
.cbn-layout-spotlight .cbn-card--special {
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 6%, transparent) 0%, transparent 40%),
		var(--cb-bg-2);
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 22%, var(--cb-border));
	box-shadow: 0 4px 18px rgba(0,0,0,.16);
	transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.cbn-layout-spotlight .cbn-card--special:hover {
	transform: translateY(-6px) rotate(-.25deg);
	border-color: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 45%, transparent);
	box-shadow:
		0 22px 56px rgba(0,0,0,.36),
		0 0 36px color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 14%, transparent);
}
.cbn-layout-spotlight .cbn-card--special::before {
	content: '';
	position: absolute;
	right: 0; top: 0; bottom: 0;
	width: 4px;
	background: linear-gradient(180deg,
		color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 75%, transparent) 0%,
		color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 25%, transparent) 100%);
	border-radius: 0 var(--cb-r-md) var(--cb-r-md) 0;
	z-index: 2;
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__media {
	aspect-ratio: 3 / 4;
	background: var(--cb-bg-3);
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__img {
	object-fit: cover;
	object-position: top center;
	filter: grayscale(8%) brightness(1.02);
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__media::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(8,12,20,.78) 100%);
	pointer-events: none;
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__body {
	padding: 1.05rem 1.1rem 1.1rem;
	gap: .55rem;
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__title {
	font-size: 1.05rem;
	line-height: 1.55;
	font-weight: 800;
	-webkit-line-clamp: 2;
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__excerpt {
	font-size: .82rem;
	-webkit-line-clamp: 2;
}
.cbn-layout-spotlight .cbn-card--special .cbn-card__media-badge {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 90%, transparent),
		color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 60%, transparent));
	color: #fff;
	font-weight: 800;
	letter-spacing: .04em;
	box-shadow: 0 4px 14px rgba(0,0,0,.32);
}

/* Decorative editorial header above the spotlight grid */
.cbn-spotlight-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 1.4rem 1.5rem;
	margin-bottom: 1.5rem;
	background:
		linear-gradient(135deg, color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 14%, transparent), transparent 70%),
		var(--cb-bg-2);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-r-md);
	position: relative;
	overflow: hidden;
}
.cbn-spotlight-intro::before {
	content: '';
	position: absolute;
	left: -40px; top: -40px;
	width: 220px; height: 220px;
	background: radial-gradient(circle, color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 24%, transparent), transparent 70%);
	pointer-events: none;
}
.cbn-spotlight-intro__icon {
	font-size: 2.4rem;
	width: 64px; height: 64px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 18%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 32%, transparent);
	flex-shrink: 0;
	position: relative;
}
.cbn-spotlight-intro__text {
	flex: 1;
	min-width: 200px;
	position: relative;
}
.cbn-spotlight-intro__title {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--cb-text);
	margin-bottom: .25rem;
}
.cbn-spotlight-intro__sub {
	font-size: .82rem;
	color: var(--cb-text-body);
	line-height: 1.85;
	font-weight: 300;
}
.cbn-spotlight-intro__count {
	font-size: .78rem;
	color: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 80%, var(--cb-text));
	background: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 28%, transparent);
	padding: .35rem .9rem;
	border-radius: 100px;
	font-weight: 700;
	position: relative;
}
@media (max-width: 768px) {
	.cbn-layout-spotlight {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
		gap: 1rem;
	}
	.cbn-spotlight-intro { padding: 1.1rem; gap: 1rem; }
	.cbn-spotlight-intro__icon { width: 52px; height: 52px; font-size: 1.8rem; }
	.cbn-spotlight-intro__title { font-size: .96rem; }
	.cbn-spotlight-intro__sub { font-size: .76rem; }
}
@media (max-width: 480px) {
	.cbn-layout-spotlight {
		grid-template-columns: 1fr 1fr !important;
		gap: .7rem;
	}
	.cbn-layout-spotlight .cbn-card--special .cbn-card__body { padding: .7rem .7rem .8rem; }
	.cbn-layout-spotlight .cbn-card--special .cbn-card__title { font-size: .85rem; line-height: 1.5; }
	.cbn-layout-spotlight .cbn-card--special .cbn-card__excerpt { display: none; }
	.cbn-layout-spotlight .cbn-card__issue-badges { gap: 4px; margin: 3px 0 5px; }
	.cbn-layout-spotlight .cbn-card__issue-badge {
		font-size: .62rem;
		padding: 1px 6px;
		gap: 2px;
	}
	.cbn-layout-spotlight .cbn-card__meta { font-size: .7rem; }
	.cbn-layout-spotlight .cbn-card--special .cbn-card__actions { flex-direction: column; gap: .35rem; align-items: stretch; }
	.cbn-layout-spotlight .cbn-card--special .cbn-card__more,
	.cbn-layout-spotlight .cbn-card--special .cbn-card__btn-pdf-mini {
		font-size: .72rem;
		padding: .45rem .5rem;
		justify-content: center;
	}
}

/* Filter animation: hide items not matching */
.cbn-grid__item.is-hidden {
	display: none;
}

/* ═══════════════════════════════════════════════════════════
   CARDS — UNIFIED: every variant has the same dimensions.
   Only the media area and the actions row vary by type.
═══════════════════════════════════════════════════════════ */
.cbn-card {
	background: var(--cb-bg-2);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-r-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color .3s, transform .3s, box-shadow .3s;
	height: 100%; /* fill the grid cell */
}
.cbn-card::after {
	content: '';
	position: absolute; top: 0; right: 0; left: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--cb-acc, var(--cb-steel)), transparent);
	transform: scaleX(0);
	transition: transform .4s ease;
}
.cbn-card:hover {
	border-color: var(--cb-border-hover);
	transform: translateY(-4px);
	box-shadow: 0 16px 50px rgba(0,0,0,.32),
	            0 0 24px color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 10%, transparent);
}
.cbn-card:hover::after { transform: scaleX(1); }

/* MEDIA — UNIFORM aspect ratio for ALL variants (image standardized) */
.cbn-card__media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: var(--cb-bg-3);
	flex-shrink: 0;
}
.cbn-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;      /* crop to fit, no distortion */
	object-position: center;
	transition: transform .5s ease, filter .4s ease;
	filter: grayscale(15%);
}
.cbn-card:hover .cbn-card__img {
	transform: scale(1.04);
	filter: grayscale(0%);
}
.cbn-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3rem;
	color: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 40%, transparent);
	background: linear-gradient(135deg, var(--cb-bg-3), var(--cb-bg-4));
}
.cbn-card__type-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	background: rgba(13,17,23,.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 40%, transparent);
	color: var(--cb-acc, var(--cb-steel));
	padding: .25rem .7rem;
	border-radius: 100px;
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .04em;
	max-width: calc(100% - 24px);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	z-index: 3;
}

/* BODY — same height for all variants */
.cbn-card__body {
	padding: 1.2rem 1.3rem 1.3rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .6rem;
}
.cbn-card__meta {
	display: flex; gap: .7rem; align-items: center;
	font-size: .72rem; color: var(--cb-muted);
	margin: 0;
}

/* Title: clamp to 2 lines */
.cbn-card__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: calc(1em * 1.55 * 2); /* reserve 2 lines */
}
.cbn-card__title a {
	color: var(--cb-highlight);
	background-image: linear-gradient(transparent calc(100% - 1px), transparent 0);
	background-size: 0 100%;
	background-repeat: no-repeat;
	transition: color var(--cb-tr-fast);
}
.cbn-card__title a:hover { color: var(--cb-acc, var(--cb-steel)); }

/* Excerpt: clamp to 3 lines with ellipsis */
.cbn-card__excerpt {
	font-size: .82rem;
	color: var(--cb-muted);
	line-height: 1.85;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
}

/* Actions row — pinned at the bottom for uniform alignment */
.cbn-card__actions {
	display: flex;
	gap: .5rem;
	margin-top: auto;
	padding-top: .5rem;
}
.cbn-card__actions .cbn-card__btn,
.cbn-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	padding: .55rem .9rem;
	border-radius: 100px;
	font-size: .78rem;
	font-weight: 700;
	transition: all var(--cb-tr-fast);
	white-space: nowrap;
}
.cbn-card__more {
	background: rgba(255,255,255,.04);
	border: 1px solid var(--cb-border);
	color: var(--cb-text);
	flex: 1;
}
.cbn-card__more:hover {
	background: var(--cb-acc, var(--cb-steel));
	border-color: var(--cb-acc, var(--cb-steel));
	color: var(--cb-bg, #0d1117);
	gap: .6rem;
}
.cbn-card__more svg { transition: transform var(--cb-tr-fast); }
.cbn-card__more:hover svg { transform: translateX(-2px); }

/* PDF button shared (newsletter + special) */
.cbn-card__btn-pdf-mini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .35rem;
	padding: .55rem .9rem;
	border-radius: 100px;
	font-size: .76rem;
	font-weight: 700;
	background: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 18%, transparent);
	color: var(--cb-acc, var(--cb-steel));
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 40%, transparent);
	transition: all var(--cb-tr-fast);
}
.cbn-card__btn-pdf-mini:hover {
	background: var(--cb-acc, var(--cb-steel));
	color: var(--cb-bg, #0d1117);
}

/* PDF badge on media */
.cbn-card__media-badge {
	position: absolute;
	bottom: 12px;
	right: 12px;
	background: rgba(13,17,23,.88);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: var(--cb-acc, #fff);
	padding: .25rem .55rem;
	border-radius: 4px;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .04em;
	z-index: 2;
	border: 1px solid color-mix(in srgb, var(--cb-acc, white) 35%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   VARIANT-SPECIFIC TWEAKS (media area + actions only)
═══════════════════════════════════════════════════════════ */

/* NEWSLETTER — only diff: PDF badge on media + issue-number ribbon */
.cbn-card__issue-ribbon {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--cb-acc);
	color: var(--cb-bg, #0d1117);
	border-radius: 4px;
	padding: .3rem .55rem;
	display: flex;
	align-items: baseline;
	gap: .3rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(0,0,0,.3);
	z-index: 3;
}
.cbn-card__issue-ribbon small { font-size: .58rem; opacity: .85; font-weight: 600; }
.cbn-card__issue-ribbon strong { font-size: 1rem; }
.cbn-card__issue-date-meta {
	font-size: .72rem;
	color: var(--cb-acc, var(--cb-steel));
	font-weight: 600;
}

/* PHOTO — photo-count badge + collage hint (multi-image stack) */
.cbn-card__photo-count {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: rgba(13,17,23,.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	color: #fff;
	padding: .3rem .6rem;
	border-radius: 100px;
	font-size: .7rem;
	font-weight: 700;
	z-index: 2;
	border: 1px solid color-mix(in srgb, var(--cb-acc) 40%, transparent);
}
.cbn-card__photo-strip {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	display: flex;
	gap: 4px;
	padding: 4px;
	background: linear-gradient(180deg, transparent, rgba(13,17,23,.95));
	z-index: 2;
	pointer-events: none;
}
.cbn-card__photo-strip img {
	flex: 1;
	height: 38px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid rgba(255,255,255,.18);
	opacity: .85;
}

/* VIDEO — centered play icon + duration */
.cbn-card__play {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 60px; height: 60px;
	border-radius: 50%;
	background: rgba(13,17,23,.7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1.5px solid color-mix(in srgb, var(--cb-acc) 60%, transparent);
	color: var(--cb-acc);
	display: flex; align-items: center; justify-content: center;
	transition: all var(--cb-tr-fast);
	z-index: 2;
	pointer-events: none;
}
.cbn-card--video:hover .cbn-card__play {
	transform: translate(-50%, -50%) scale(1.12);
	background: var(--cb-acc);
	color: var(--cb-bg, #0d1117);
	border-color: var(--cb-acc);
}
.cbn-card__duration {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(13,17,23,.9);
	color: #fff;
	padding: .25rem .55rem;
	border-radius: 4px;
	font-size: .7rem;
	font-weight: 700;
	z-index: 2;
}

/* SPECIAL — only diff: gold/teal tint on media + small "ویژه" tag */
.cbn-card--special .cbn-card__type-pill::after {
	content: '★';
	margin-right: 4px;
	color: color-mix(in srgb, var(--cb-acc) 80%, white);
}
.cbn-card--special .cbn-card__img {
	filter: grayscale(10%) brightness(.95) saturate(1.1);
}
.cbn-card--special:hover .cbn-card__img {
	filter: grayscale(0%) brightness(1.02) saturate(1.15);
}

/* ═══════════════════════════════════════════════════════════
   SINGLE PAGES
═══════════════════════════════════════════════════════════ */
.cbn-single {
	max-width: 940px;
	margin: 0 auto;
	padding: 3rem 0;
}
.cbn-single__header { margin-bottom: 2rem; }
.cbn-single__header--centered { text-align: center; }
.cbn-single__type-link {
	display: inline-block;
	background: color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc, var(--cb-steel)) 32%, transparent);
	color: var(--cb-acc, var(--cb-steel));
	padding: .35rem 1rem;
	border-radius: 100px;
	font-size: .72rem;
	font-weight: 700;
	margin-bottom: 1rem;
	transition: all var(--cb-tr-fast);
}
.cbn-single__type-link:hover {
	background: var(--cb-acc, var(--cb-steel));
	color: var(--cb-bg, #0d1117);
}
.cbn-single__type-link--lg {
	font-size: .85rem;
	padding: .5rem 1.4rem;
}
.cbn-single__title {
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	font-weight: 900;
	line-height: 1.25;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #ddeef8, var(--cb-steel, #6aaecc));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}
.cbn-single__meta {
	display: inline-flex;
	gap: .7rem;
	align-items: center;
	color: var(--cb-muted);
	font-size: .82rem;
}
.cbn-single__hero {
	margin: 0 0 2.5rem;
	border-radius: var(--cb-r-lg);
	overflow: hidden;
	border: 1px solid var(--cb-border);
}
.cbn-single__hero img { width: 100%; height: auto; display: block; }
.cbn-single__content { font-size: 1rem; line-height: 2.1; color: var(--cb-text-body); }

/* ───── NEWSLETTER SINGLE ───── */
.cbn-single__issue-meta {
	font-size: .9rem;
	color: var(--cb-text-2);
	font-weight: 600;
}
.cbn-newsletter-grid {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2.5rem;
	align-items: start;
	margin-top: 2rem;
}
.cbn-newsletter-cover {
	position: sticky;
	top: 90px;
}
.cbn-newsletter-cover img {
	width: 100%;
	border-radius: var(--cb-r-md);
	box-shadow: 0 18px 50px rgba(0,0,0,.4),
	            0 0 30px color-mix(in srgb, var(--cb-acc) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 24%, transparent);
}
.cbn-newsletter-cover-ph {
	width: 100%;
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 4rem;
	background: linear-gradient(135deg, var(--cb-bg-3), var(--cb-bg-4));
	border-radius: var(--cb-r-md);
	color: color-mix(in srgb, var(--cb-acc) 70%, transparent);
}
.cbn-newsletter-download {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	margin-top: 1rem;
	padding: .8rem 1.2rem;
	background: var(--cb-acc);
	color: var(--cb-bg, #0d1117) !important;
	border-radius: 100px;
	font-weight: 700;
	font-size: .9rem;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: all var(--cb-tr-fast);
}
.cbn-newsletter-download:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--cb-acc) 40%, transparent);
}
.cbn-newsletter-download--alt {
	background: transparent;
	color: var(--cb-acc) !important;
	border: 1px solid color-mix(in srgb, var(--cb-acc) 40%, transparent);
	margin-top: .5rem;
}
.cbn-newsletter-download--alt:hover {
	background: color-mix(in srgb, var(--cb-acc) 20%, transparent);
	box-shadow: none;
}
.cbn-newsletter-pdf-embed {
	margin-top: 2.5rem;
	background: linear-gradient(180deg, var(--cb-bg-2), var(--cb-bg-3));
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-r-md);
	padding: 1.4rem;
}
.cbn-newsletter-pdf-embed h3 {
	font-size: 1rem;
	color: var(--cb-acc);
	margin: 0;
}
.cbn-newsletter-pdf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--cb-border);
}
.cbn-newsletter-pdf-head-actions { display: flex; gap: 8px; }
.cbn-newsletter-pdf-headbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: rgba(100, 170, 210, .12);
	border: 1px solid rgba(100, 170, 210, .3);
	color: var(--cb-acc);
	border-radius: 8px;
	font-size: .78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all .25s ease;
	font-family: inherit;
}
.cbn-newsletter-pdf-headbtn:hover {
	background: rgba(100, 170, 210, .22);
	border-color: var(--cb-acc);
	color: var(--cb-text);
}
.cbn-newsletter-pdf-frame {
	width: 100%;
	background: #fff;
	border-radius: var(--cb-r-sm);
	overflow: hidden;
	box-shadow: 0 14px 38px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.cbn-newsletter-pdf-frame object,
.cbn-newsletter-pdf-frame iframe {
	width: 100%;
	height: min(90vh, 1100px);
	min-height: 700px;
	border: 0;
	display: block;
}
.cbn-newsletter-pdf-embed--lg .cbn-newsletter-pdf-frame {
	margin-bottom: 12px;
}
.cbn-newsletter-pdf-hint {
	margin: 12px 0 0;
	font-size: .8rem;
	color: var(--cb-muted);
	text-align: center;
	padding: 8px 12px;
	background: rgba(100, 170, 210, .04);
	border-radius: var(--cb-r-sm);
}

/* ── Special-issue badges & view button ── */
.cbn-special-badges,
.cbn-special-pdf-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0;
	justify-content: center;
}
.cbn-special-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: color-mix(in srgb, var(--cb-acc) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 32%, transparent);
	color: var(--cb-acc);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.cbn-special-badge--date {
	background: color-mix(in srgb, var(--cb-acc) 6%, rgba(255,255,255,.04));
}
.cbn-special-badge--type {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--cb-acc) 32%, transparent),
		color-mix(in srgb, var(--cb-acc) 18%, transparent));
	border-color: color-mix(in srgb, var(--cb-acc) 50%, transparent);
	color: #fff;
	font-weight: 800;
}
.cbn-special-badge--pdf {
	background: rgba(255,255,255,.06);
	border-color: rgba(255,255,255,.18);
	color: #e9eef5;
	letter-spacing: .04em;
}
/* Header row variant — its own line, separated visually from the type-link / meta */
.cbn-special-badges--header {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 18px auto 10px;
	padding: 12px 16px;
	max-width: max-content;
	background: rgba(13, 17, 23, .35);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 22%, transparent);
	border-radius: 999px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
@media (max-width: 600px) {
	.cbn-special-badges--header {
		padding: 10px 12px;
		gap: 6px;
		border-radius: 16px;
	}
	.cbn-special-badges--header .cbn-special-badge {
		font-size: .74rem;
		padding: 4px 10px;
	}
}
.cbn-special-pdf-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}
.cbn-special-pdf-btn--view {
	background: linear-gradient(135deg, var(--cb-acc), color-mix(in srgb, var(--cb-acc) 60%, #fff 30%));
	color: var(--cb-bg, #0d1117);
	border: 0;
	font-family: inherit;
}
.cbn-special-pdf-btn--view:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 26px color-mix(in srgb, var(--cb-acc) 35%, transparent);
	color: var(--cb-bg, #0d1117);
}
.cbn-special-pdf-btn--dl {
	background: rgba(255,255,255,.04);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 32%, transparent);
	color: var(--cb-text);
}

/* ── Card issue badges (special) ── */
.cbn-card__issue-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 8px;
}
.cbn-card__issue-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	background: color-mix(in srgb, var(--cb-acc) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 28%, transparent);
	color: var(--cb-acc);
	border-radius: 100px;
	font-size: .72rem;
	font-weight: 700;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* ── On-media variant — positions over the image, like the PDF badge ── */
.cbn-card__issue-badges--media {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: auto;
	margin: 0;
	z-index: 2;
	max-width: calc(100% - 80px); /* leave room for PDF badge on bottom-right */
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 5px;
	pointer-events: none;
}
.cbn-card__issue-badges--media .cbn-card__issue-badge {
	background: rgba(13,17,23,.85);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 50%, transparent);
	color: #fff;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .02em;
	padding: 3px 9px;
	box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.cbn-card__issue-badges--media .cbn-card__issue-badge--num {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--cb-acc) 75%, rgba(13,17,23,.85)),
		color-mix(in srgb, var(--cb-acc) 45%, rgba(13,17,23,.85)));
	color: #fff;
	border-color: color-mix(in srgb, var(--cb-acc) 70%, transparent);
}
@media (max-width: 480px) {
	.cbn-card__issue-badge { font-size: .68rem; padding: 2px 8px; }
	.cbn-card__issue-badges--media { bottom: 8px; left: 8px; gap: 4px; }
	.cbn-card__issue-badges--media .cbn-card__issue-badge { font-size: .62rem; padding: 2px 7px; }
}

/* ── Cross-reference button (photo ↔ video) ── */
.cbn-cross-ref-row {
	display: flex;
	justify-content: center;
	margin-top: 14px;
}
.cbn-cross-ref-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: linear-gradient(135deg, rgba(120, 104, 200, .14), rgba(120, 104, 200, .04));
	border: 1px solid rgba(120, 104, 200, .35);
	color: #a89cd8;
	border-radius: 100px;
	font-size: .85rem;
	font-weight: 700;
	text-decoration: none;
	transition: all .25s ease;
}
.cbn-cross-ref-btn--to-video {
	background: linear-gradient(135deg, rgba(0, 184, 212, .14), rgba(0, 184, 212, .04));
	border-color: rgba(0, 184, 212, .35);
	color: #58d0e6;
}
.cbn-cross-ref-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(120, 104, 200, .22);
}
.cbn-cross-ref-btn--to-video:hover {
	box-shadow: 0 10px 24px rgba(0, 184, 212, .22);
}
.cbn-card__btn-cross {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	background: rgba(120, 104, 200, .12);
	border: 1px solid rgba(120, 104, 200, .3);
	color: #a89cd8;
	border-radius: 100px;
	font-size: .72rem;
	font-weight: 700;
	text-decoration: none;
	transition: all .2s ease;
	white-space: nowrap;
}
.cbn-card__btn-cross:hover {
	background: rgba(120, 104, 200, .22);
	color: #c8baee;
	transform: translateY(-1px);
}

/* ───── PHOTO GALLERY ───── */
.cbn-photo-intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }

.cbn-photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: .7rem;
	margin: 2rem 0;
}
.cbn-photo-tile {
	position: relative;
	border-radius: var(--cb-r-sm);
	overflow: hidden;
	cursor: zoom-in;
	background: var(--cb-bg-3);
	border: 1px solid var(--cb-border);
	padding: 0;
	transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
	aspect-ratio: 4 / 3;  /* uniform tile shape regardless of source image */
	display: block;
}
.cbn-photo-tile:hover {
	border-color: var(--cb-border-hover);
	box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.cbn-photo-tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;     /* crops to fill tile uniformly */
	object-position: center;
	display: block;
	transition: transform .5s ease, filter .3s ease;
}
.cbn-photo-tile:hover { transform: scale(1.01); }
.cbn-photo-tile:hover img { transform: scale(1.05); filter: brightness(1.05); }
.cbn-photo-cap {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: .6rem .8rem;
	background: linear-gradient(180deg, transparent, rgba(13,17,23,.92));
	color: #fff;
	font-size: .76rem;
	text-align: right;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s, transform .3s;
}
.cbn-photo-tile:hover .cbn-photo-cap {
	opacity: 1;
	transform: translateY(0);
}

/* Lightbox */
.cbn-lb {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(4,7,12,.96);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.cbn-lb.is-active { display: flex; }
.cbn-lb-figure { margin: 0; max-width: 92vw; max-height: 84vh; }
.cbn-lb-figure img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: var(--cb-r-sm);
	display: block;
	margin: 0 auto;
}
.cbn-lb-figure figcaption {
	margin-top: 1rem;
	text-align: center;
	color: rgba(255,255,255,.82);
	font-size: .88rem;
}
.cbn-lb-close, .cbn-lb-btn {
	position: fixed;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.2);
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	transition: background var(--cb-tr-fast);
	z-index: 100001;
}
.cbn-lb-close { top: 1rem; left: 1rem; width: 44px; height: 44px; }
.cbn-lb-btn { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 28px; line-height: 1; font-family: inherit; }
.cbn-lb-prev { right: 1.2rem; }
.cbn-lb-next { left: 1.2rem; }
.cbn-lb-close:hover, .cbn-lb-btn:hover { background: rgba(255,255,255,.2); }
.cbn-lb-counter {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	color: rgba(255,255,255,.6);
	font-size: .82rem;
	z-index: 100001;
}

/* ───── VIDEO SINGLE ───── */
.cbn-video-stage {
	margin: 0 0 2rem;
}
.cbn-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: var(--cb-r-lg);
	overflow: hidden;
	border: 1px solid var(--cb-border);
	background: #000;
	box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.cbn-video-frame iframe,
.cbn-video-frame video,
.cbn-video-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
.cbn-video-frame--placeholder img {
	object-fit: cover;
	opacity: .65;
}
.cbn-video-no-source {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.8);
	background: rgba(0,0,0,.4);
	font-size: 1rem;
}
.cbn-video-info { max-width: 820px; margin: 0 auto; }

/* ───── SPECIAL SINGLE ───── */
.cbn-single--special { max-width: 1100px; padding: 0; }
.cbn-reading-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: rgba(255,255,255,.05);
	z-index: 600;
}
.cbn-reading-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--cb-acc), color-mix(in srgb, var(--cb-acc) 50%, white));
	width: 0;
	transition: width .1s linear;
}
.cbn-special-header {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	margin-bottom: 0;
}
.cbn-special-hero {
	position: absolute; inset: 0; z-index: 1;
}
.cbn-special-hero img {
	width: 100%; height: 100%; object-fit: cover;
}
.cbn-special-hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(13,17,23,.4) 0%, rgba(13,17,23,.94) 80%);
}
.cbn-special-header-inner {
	position: relative;
	z-index: 2;
	max-width: 820px;
	margin: 0 auto;
	padding: 4rem 2rem 3rem;
	text-align: center;
}
.cbn-special-title {
	font-size: clamp(2rem, 5vw, 3.4rem) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	background: none !important;
}
.cbn-special-body {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 3rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 3rem 2rem 4rem;
}
.cbn-special-pdf {
	position: sticky;
	top: 90px;
	background: var(--cb-bg-2);
	border: 1px solid color-mix(in srgb, var(--cb-acc) 24%, transparent);
	border-radius: var(--cb-r-md);
	padding: 1.4rem;
	height: fit-content;
}
.cbn-special-pdf h4 {
	font-size: .92rem;
	color: var(--cb-acc);
	margin-bottom: 1rem;
}
.cbn-special-pdf-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .7rem 1.1rem;
	background: var(--cb-acc);
	color: var(--cb-bg, #0d1117) !important;
	border-radius: 100px;
	font-weight: 700;
	font-size: .85rem;
	transition: transform var(--cb-tr-fast), box-shadow var(--cb-tr-fast);
}
.cbn-special-pdf-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px color-mix(in srgb, var(--cb-acc) 40%, transparent);
}

/* ───── RELATED ───── */
.cbn-related {
	max-width: 1080px;
	margin: 4rem auto 0;
	padding: 0 var(--cb-pad);
	border-top: 1px solid var(--cb-border);
	padding-top: 3rem;
}

/* ───── SINGLE MAIN ───── */
.cbn-single-main { padding: 0; }
.cbn-single-main > .cbasco-wrap-wide { padding: 2rem var(--cb-pad); }

/* ═══════════════════════════════════════════════════════════
   FRONT-PAGE RESPONSIVE COUNT
   Limits visible cards in the homepage news grid:
   - Mobile (≤ 600px)        → 2 cards
   - Tablet (601px – 980px)  → 4 cards
   - Desktop (> 980px)       → 6 cards (default)
   Applied to grids inside .cbf-news-sec / .cbf-notices-sec.
═══════════════════════════════════════════════════════════ */
.cbf-news-sec .cbn-grid__item:nth-of-type(n+7),
.cbf-notices-sec .cbn-grid__item:nth-of-type(n+7) {
	display: none;
}
@media (max-width: 980px) {
	.cbf-news-sec .cbn-grid__item:nth-of-type(n+5),
	.cbf-notices-sec .cbn-grid__item:nth-of-type(n+5) {
		display: none;
	}
}
@media (max-width: 600px) {
	.cbf-news-sec .cbn-grid__item:nth-of-type(n+3),
	.cbf-notices-sec .cbn-grid__item:nth-of-type(n+3) {
		display: none;
	}
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
	.cbn-newsletter-grid { grid-template-columns: 1fr; }
	.cbn-newsletter-cover { position: static; max-width: 280px; margin: 0 auto; }
	.cbn-newsletter-pdf-embed iframe { height: 520px; }
	.cbn-special-body { grid-template-columns: 1fr; gap: 2rem; }
	.cbn-special-pdf { position: static; }
}
@media (max-width: 600px) {
	.cbn-archive-hero, .cbn-tax-hero { padding: 3.5rem 1rem 2.5rem; }
	.cbn-grid { grid-template-columns: 1fr; gap: 1.2rem; }
	.cbn-layout-shelf, .cbn-layout-mosaic, .cbn-layout-videos { grid-template-columns: 1fr 1fr; }
	.cbn-photo-gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
	.cbn-newsletter-pdf-embed iframe { height: 360px; }
	.cbn-filters-inner { padding: .8rem 1rem; }
	.cbn-filter { padding: .4rem .8rem; font-size: .75rem; }
	.cbn-lb-btn { width: 40px; height: 40px; font-size: 22px; }
	.cbn-special-header { min-height: 320px; }
	.cbn-special-header-inner { padding: 2.5rem 1rem 2rem; }
}
@media (max-width: 380px) {
	.cbn-layout-shelf, .cbn-layout-mosaic, .cbn-layout-videos { grid-template-columns: 1fr; }
	.cbn-photo-gallery { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ARCHIVE SEARCH BOX + INFINITE-SCROLL LOADER
   (news & notice archives + taxonomy pages)
   Theme-variable driven → works in dark / light / colorful.
═══════════════════════════════════════════════════════════ */

.cbn-search {
	max-width: 620px;
	margin: 0 auto 2.4rem;
	padding: 0 1rem;
}
.cbn-search-inner {
	position: relative;
	display: flex;
	align-items: center;
	gap: .6rem;
	background: var(--cb-bg-2);
	border: 1.5px solid var(--cb-border);
	border-radius: 100px;
	padding: .2rem .5rem .2rem 1.1rem;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .10);
	transition: border-color var(--cb-tr-fast), box-shadow var(--cb-tr-fast), background var(--cb-tr-fast);
}
.cbn-search-inner:focus-within {
	border-color: var(--cb-acc, var(--cb-steel));
	box-shadow: 0 8px 26px color-mix(in srgb, var(--cb-acc, #6aaecc) 22%, transparent);
}
.cbn-search-icon {
	flex: 0 0 20px;
	display: inline-flex;
	color: var(--cb-acc, var(--cb-steel));
}
.cbn-search-icon svg { width: 20px; height: 20px; }
.cbn-search-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--cb-text);
	font-family: inherit;
	font-size: .95rem;
	font-weight: 600;
	padding: .85rem 0;
}
.cbn-search-input::placeholder { color: var(--cb-text-muted); font-weight: 500; opacity: 1; }
/* kill the native search "x" — we render our own */
.cbn-search-input::-webkit-search-decoration,
.cbn-search-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cbn-search-clear {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--cb-acc, #6aaecc) 14%, transparent);
	color: var(--cb-acc, var(--cb-steel));
	cursor: pointer;
	transition: background var(--cb-tr-fast), transform var(--cb-tr-fast);
}
.cbn-search-clear:hover { background: color-mix(in srgb, var(--cb-acc, #6aaecc) 26%, transparent); transform: rotate(90deg); }
.cbn-search-clear svg { width: 15px; height: 15px; }
.cbn-search-clear[hidden] { display: none; }

/* ── Loader host + status ── */
.cbn-loader { position: relative; }
.cbn-loader-sentinel { width: 100%; height: 1px; pointer-events: none; }
.cbn-loader-status {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 1.8rem 0 .5rem;
}

/* Three-dot bounce spinner */
.cbn-loader-spinner { display: inline-flex; gap: 7px; align-items: center; }
.cbn-loader-spinner[hidden] { display: none; }
.cbn-loader-dot {
	width: 10px; height: 10px; border-radius: 50%;
	background: var(--cb-acc, var(--cb-steel));
	animation: cbn-loader-bounce 1.2s ease-in-out infinite;
}
.cbn-loader-dot:nth-child(2) { animation-delay: .15s; }
.cbn-loader-dot:nth-child(3) { animation-delay: .30s; }
@keyframes cbn-loader-bounce {
	0%, 80%, 100% { transform: scale(.5); opacity: .4; }
	40%           { transform: scale(1);  opacity: 1; }
}

/* End-of-list divider */
.cbn-loader-end {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 420px;
	color: var(--cb-text-muted);
	font-size: .82rem;
	font-weight: 700;
}
.cbn-loader-end[hidden] { display: none; }
.cbn-loader-end-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--cb-border-hover), transparent); }

/* Empty state */
.cbn-loader-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 2.5rem 1rem;
	color: var(--cb-text-muted);
	text-align: center;
	font-size: .95rem;
	font-weight: 600;
}
.cbn-loader-empty[hidden] { display: none; }
.cbn-loader-empty svg { width: 40px; height: 40px; color: var(--cb-acc, var(--cb-steel)); opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	.cbn-loader-dot { animation: none !important; }
	.cbn-search-clear:hover { transform: none; }
}
