/* ═══════════════════════════════════════════════════════════
   JD BRANDS — All brands page (same look as the glossary)
═══════════════════════════════════════════════════════════ */

.jdb-brands {
	width: 100%;
}

/* ── Letter panel ───────────────────────────────────────── */

.jdb-letters {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 40px;
}

.jdb-letter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 4px;
	border-radius: 4px;
	border: 1px solid #eff1f1;
	background: none;
	font-family: var(--jd-font-body);
	font-size: 14px;
	font-weight: 500;
	color: #222;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.jdb-letter:hover:not(:disabled) {
	border-color: var(--jd-color-accent);
	color: var(--jd-color-accent);
}

.jdb-letter--empty,
.jdb-letter:disabled {
	color: #ccc;
	border-color: #f0f0f0;
	cursor: default;
}

/* ── Letter group heading ───────────────────────────────── */

.jdb-letter-anchor {
	display: flex;
	align-items: center;
	margin: 40px 0 16px;
}

.jdb-letter-anchor:first-child {
	margin-top: 0;
}

.jdb-letter-heading {
	font-family: var(--jd-font-heading);
	font-size: 28px;
	font-weight: 700;
	color: var(--jd-color-accent);
	line-height: 1;
}

/* ── Brand card ─────────────────────────────────────────── */

.jdb-brand-card {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 20px 0;
	border-bottom: 1px solid #eff1f1;
	cursor: pointer;
}

.jdb-brand-card:hover {
	border-bottom-color: var(--jd-color-accent);
}

.jdb-brand-card-body {
	min-width: 0;
}

.jdb-brand-title {
	display: inline-block;
	font-family: var(--jd-font-heading);
	font-size: 20px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
	text-decoration: none;
	margin-bottom: 6px;
}

.jdb-brand-card:hover .jdb-brand-title,
.jdb-brand-title:focus {
	color: var(--jd-color-accent);
}

/* Country, year — accent label like the glossary category */
.jdb-brand-meta {
	font-family: var(--jd-font-body);
	font-size: 13px;
	font-weight: 600;
	color: var(--jd-color-accent);
	margin-bottom: 8px;
	letter-spacing: 0.03em;
}

.jdb-brand-line {
	font-family: var(--jd-font-body);
	font-size: 15px;
	color: #333;
	line-height: 1.6;
}

.jdb-brand-label {
	color: #888;
	font-style: italic;
	margin-right: 4px;
}

.jdb-empty {
	color: #999;
	font-style: italic;
	margin-top: 40px;
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 768px) {
	.jdb-letters {
		gap: 3px;
	}

	.jdb-letter {
		min-width: 32px;
		height: 32px;
		font-size: 13px;
	}

	.jdb-brand-title {
		font-size: 18px;
	}
}
