/* ============================================================
   Brandcoves — Article Archive
   Clean & modern editorial layout — Instrument Serif
   (Instrument Serif loaded via brandcoves.css globally)
   ============================================================ */

/* ── Page wrapper ────────────────────────────────────────── */
.bc-dispatch {
	padding-bottom: 96px;
}

/* ── Masthead ─────────────────────────────────────────────── */
.bc-dispatch-masthead {
	border-top: none;
	padding: 52px 0 0;
}

.bc-dispatch-masthead__top {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 36px;
}

/* Hide newspaper chrome — date and stats not needed */
.bc-dispatch-masthead__date,
.bc-dispatch-masthead__stats { display: none; }

.bc-dispatch-masthead__title-block {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bc-dispatch-masthead__overline {
	display: block;
	font-family: var(--bc-font-body);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bc-accent);
	margin-bottom: 0;
}

.bc-dispatch-masthead__name {
	display: block;
	font-family: var(--bc-font-editorial);
	font-size: clamp(2.25rem, 5.5vw, 3.75rem);
	font-weight: 800;
	font-style: normal;
	letter-spacing: -0.04em;
	color: var(--bc-ink);
	line-height: 1.0;
}

/* Remove double rule — use a single subtle border via section spacing */
.bc-dispatch-masthead__rule,
.bc-dispatch-masthead__rule--thin { display: none; }

/* ── Category nav ─────────────────────────────────────────── */
.bc-dispatch-nav {
	border-bottom: 1px solid rgba(26,22,20,0.1);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.bc-dispatch-nav::-webkit-scrollbar { display: none; }

.bc-dispatch-nav__inner {
	display: flex;
	gap: 6px;
	padding: 0 0 18px;
	white-space: nowrap;
}

.bc-dispatch-nav__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--bc-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bc-ink-light);
	text-decoration: none;
	padding: 7px 16px;
	border-radius: 100px;
	border: 1.5px solid rgba(26,22,20,0.14);
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.bc-dispatch-nav__item:hover {
	background: #fff;
	border-color: var(--bc-ink);
	color: var(--bc-ink);
}
.bc-dispatch-nav__item.is-active {
	background: var(--bc-ink);
	border-color: var(--bc-ink);
	color: var(--bc-cream);
}

.bc-dispatch-nav__count {
	font-size: 0.5625rem;
	font-weight: 400;
	opacity: 0.55;
	letter-spacing: 0;
}

/* ── Guides hero (shared with homepage — styles in brandcoves.css) ── */

/* ── Section layout ───────────────────────────────────────── */
.bc-dispatch-section {
	margin-top: 64px;
}

.bc-dispatch-section__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 0;
	border-bottom: none;
	margin-bottom: 20px;
}

.bc-dispatch-section__title {
	font-family: var(--bc-font-editorial);
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 800;
	font-style: normal;
	letter-spacing: -0.03em;
	color: var(--bc-ink);
	text-transform: none;
	display: flex;
	align-items: center;
	gap: 10px;
}

.bc-dispatch-section__title::before {
	content: '';
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bc-dispatch-accent, var(--bc-accent));
	flex-shrink: 0;
}

.bc-dispatch-section__see-all {
	font-family: var(--bc-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bc-muted);
	text-decoration: none;
	border-bottom: 1.5px solid rgba(26,22,20,0.2);
	padding-bottom: 2px;
	flex-shrink: 0;
	transition: color 0.2s, border-color 0.2s;
}
.bc-dispatch-section__see-all::after { content: ' →'; }
.bc-dispatch-section__see-all:hover { color: var(--bc-ink); border-color: var(--bc-ink); }

/* Featured + list grid (type sections with a lead + sidebar) */
.bc-dispatch-section__featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	border: none;
	border-top: none;
}
@media (min-width: 768px) {
	.bc-dispatch-section__featured { grid-template-columns: 1.5fr 1fr; gap: 20px; }
}

.bc-dispatch-section__featured-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: none;
}

/* 3-column grid for other types */
.bc-dispatch-grid { border: none; border-top: none; }

.bc-dispatch-grid--3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px)  { .bc-dispatch-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .bc-dispatch-grid--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* Filtered archive header */
.bc-dispatch-filtered-header {
	padding: 52px 0 36px;
	border-bottom: none;
}

.bc-dispatch-filtered-header__overline {
	font-family: var(--bc-font-body);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--bc-dispatch-accent, var(--bc-accent));
	margin-bottom: 12px;
}

.bc-dispatch-filtered-header__title {
	font-family: var(--bc-font-editorial);
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 800;
	font-style: normal;
	color: var(--bc-ink);
	line-height: 1.1;
	letter-spacing: -0.04em;
	margin-bottom: 10px;
}

.bc-dispatch-filtered-header__desc {
	font-size: 0.9375rem;
	color: var(--bc-muted);
	line-height: 1.6;
}

.bc-dispatch-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	border: none;
	border-top: none;
}

/* ── Base card ────────────────────────────────────────────── */
.bc-card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.07);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bc-card:hover {
	background: #fff;
	box-shadow: 0 3px 6px rgba(0,0,0,0.07), 0 12px 32px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}

.bc-card__type {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: var(--bc-font-body);
	font-size: 0.5rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bc-dispatch-accent, var(--bc-accent));
	margin-bottom: 8px;
}
.bc-card__type::before {
	content: '';
	display: inline-block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

.bc-card__headline {
	font-family: var(--bc-font-editorial);
	font-weight: 700;
	font-style: normal;
	color: var(--bc-ink);
	line-height: 1.22;
	margin-bottom: 10px;
	letter-spacing: -0.03em;
	transition: color 0.2s;
}
.bc-card:hover .bc-card__headline { color: var(--bc-accent); }

.bc-card__excerpt {
	font-family: var(--bc-font-body);
	font-size: 0.875rem;
	color: var(--bc-muted);
	line-height: 1.6;
	margin-bottom: 12px;
}

.bc-card__meta {
	font-family: var(--bc-font-body);
	font-size: 0.6875rem;
	color: var(--bc-muted);
	letter-spacing: 0;
	text-transform: none;
}

/* ── Lead card ─────────────────────────────────────────────── */
.bc-card--lead {
	padding: 28px 26px 26px;
	border-left: none;
	height: 100%;
	justify-content: flex-start;
}

.bc-card--lead .bc-card__headline {
	font-size: clamp(1.375rem, 2.5vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	margin-bottom: 14px;
}

.bc-card--lead .bc-card__excerpt { font-size: 0.9375rem; }

.bc-card--lead .bc-card__meta {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(26,22,20,0.08);
}

/* ── Secondary card ────────────────────────────────────────── */
.bc-card--secondary {
	padding: 18px 20px 20px;
	border-bottom: none;
	flex: 1;
	justify-content: flex-start;
}
.bc-card--secondary .bc-card__headline {
	font-size: 1rem;
	margin-bottom: 6px;
}

/* ── Featured card (section with lead + list) ──────────────── */
.bc-card--featured {
	padding: 26px 26px 22px;
	border-left: none;
	height: 100%;
}
.bc-card--featured .bc-card__headline {
	font-size: clamp(1.125rem, 2vw, 1.5rem);
	font-weight: 800;
	margin-bottom: 12px;
}
.bc-card--featured .bc-card__meta {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(26,22,20,0.08);
}

/* ── List card ─────────────────────────────────────────────── */
.bc-card--list {
	flex-direction: row;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px;
	border-bottom: none;
}
.bc-card--list__main { flex: 1; min-width: 0; }
.bc-card--list .bc-card__headline {
	font-size: 0.9375rem;
	margin-bottom: 4px;
}
.bc-card--list .bc-card__excerpt {
	font-size: 0.8125rem;
	margin-bottom: 0;
}
.bc-card--list .bc-card__meta {
	flex-shrink: 0;
	padding-top: 0;
}

/* ── Grid card ─────────────────────────────────────────────── */
.bc-card--grid {
	padding: 0;
	border-right: none;
	border-bottom: none;
}

/* Coloured accent bar at top */
.bc-card--grid::before {
	content: '';
	display: block;
	height: 3px;
	background: var(--bc-dispatch-accent, var(--bc-accent));
	flex-shrink: 0;
}

.bc-card--grid .bc-card__type,
.bc-card--grid .bc-card__headline,
.bc-card--grid .bc-card__excerpt,
.bc-card--grid .bc-card__meta { padding-left: 20px; padding-right: 20px; }

.bc-card--grid .bc-card__type { padding-top: 18px; }

.bc-card--grid .bc-card__headline {
	font-size: 1.0625rem;
	margin-bottom: 10px;
	flex: 1;
}
.bc-card--grid .bc-card__excerpt {
	font-size: 0.8125rem;
	flex: 0;
}
.bc-card--grid .bc-card__meta {
	margin-top: auto;
	padding-top: 14px;
	padding-bottom: 20px;
	border-top: 1px solid rgba(26,22,20,0.08);
	margin-top: 12px;
}

/* ── Empty state ───────────────────────────────────────────── */
.bc-dispatch-empty {
	padding: 80px 0;
	text-align: center;
}
.bc-dispatch-empty__title {
	font-family: var(--bc-font-editorial);
	font-size: 1.5rem;
	font-weight: 800;
	font-style: normal;
	letter-spacing: -0.03em;
	color: var(--bc-ink);
	margin-bottom: 10px;
}
.bc-dispatch-empty__text {
	font-size: 0.9375rem;
	color: var(--bc-muted);
}

/* ── Pagination ────────────────────────────────────────────── */
.bc-dispatch-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 40px 0;
}
.bc-dispatch-pagination a,
.bc-dispatch-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	font-family: var(--bc-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 4px;
	border: 1.5px solid rgba(26,22,20,0.15);
	color: var(--bc-ink-light);
	transition: all 0.2s ease;
}
.bc-dispatch-pagination a:hover {
	border-color: var(--bc-ink);
	color: var(--bc-ink);
	background: #fff;
}
.bc-dispatch-pagination .current {
	background: var(--bc-ink);
	border-color: var(--bc-ink);
	color: var(--bc-cream);
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 599px) {
	.bc-dispatch-masthead { padding-top: 36px; }
	.bc-dispatch-masthead__top { padding-bottom: 24px; }
	.bc-card--list { flex-direction: column; gap: 6px; }
	.bc-card--list .bc-card__meta { padding-top: 0; }
	.bc-dispatch-section { margin-top: 48px; }
	.bc-dispatch-section__featured { gap: 12px; }
	.bc-dispatch-section__featured-list { gap: 12px; }
	.bc-dispatch-grid--3 { gap: 12px; }
	.bc-dispatch-list { gap: 12px; }
}
