/**
 * Light brands page — hero + glass brand cards.
 * Boss palette scoped to body.lk-light-brands-archive (aligned with category).
 */

body.lk-light-brands-archive {
	--lk-brands-h1: #0f172a;
	--lk-brands-h2: #1e293b;
	--lk-brands-text: #334155;
	--lk-brands-muted: #64748b;
	--lk-brands-accent: #0f4c81;
	--lk-brands-accent-hover: #0a3a61;
	--lk-brands-on-accent: #ffffff;
	--lk-brands-page-bg: #eaf4ff;
	--lk-brands-soft: #f3f4f6;
	--lk-brands-line: #d8dde3;
	--lk-brands-shadow: 0 10px 28px rgba(15, 76, 129, 0.12);
	--lk-brands-shadow-soft: 0 4px 14px rgba(15, 76, 129, 0.1);

	/* Shared light chrome tokens */
	--lk-lpt-bg: var(--lk-brands-page-bg);
	--lk-lpt-surface: #ffffff;
	--lk-lpt-ink: var(--lk-brands-h1);
	--lk-lpt-muted: var(--lk-brands-muted);
	--lk-lpt-line: var(--lk-brands-line);
	--lk-lpt-accent: var(--lk-brands-accent);
	--lk-lpt-accent-2: var(--lk-brands-accent-hover);

	background: var(--lk-brands-page-bg);
	color: var(--lk-brands-text);
}

body.lk-light-brands-archive .lk-lpt-main {
	background:
		radial-gradient(900px 320px at 100% -5%, rgba(15, 76, 129, 0.12), transparent 58%),
		radial-gradient(700px 280px at 0% 0%, rgba(15, 76, 129, 0.07), transparent 55%),
		var(--lk-brands-page-bg);
}

body.lk-light-brands-archive .lk-lpt-breadcrumb,
body.lk-light-brands-archive .lk-breadcrumb {
	color: var(--lk-brands-muted);
}

body.lk-light-brands-archive .lk-lpt-breadcrumb a,
body.lk-light-brands-archive .lk-breadcrumb a {
	color: var(--lk-brands-accent);
}

body.lk-light-brands-archive .lk-lpt-breadcrumb a:hover,
body.lk-light-brands-archive .lk-breadcrumb a:hover {
	color: var(--lk-brands-accent-hover);
}

.lk-brands-page {
	padding-bottom: 2.75rem;
}

.lk-brands-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	width: 100%;
	margin: 0 0 1.75rem;
	padding: 2rem 1.25rem;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid rgba(15, 76, 129, 0.14);
	background: #fff;
	box-shadow: var(--lk-brands-shadow-soft, 0 4px 14px rgba(15, 76, 129, 0.1));
}

.lk-brands-hero__title {
	position: relative;
	z-index: 1;
	margin: 0;
	text-align: center;
	font-size: clamp(1.75rem, 4vw, 2.6rem);
	font-weight: 800;
	line-height: 1.35;
	color: var(--lk-brands-h1, #0f172a);
	letter-spacing: -0.02em;
}

.lk-brands-grid-wrap {
	width: 100%;
}

.lk-brands-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lk-brands-grid__item {
	display: flex;
	min-height: 100%;
}

.lk-brand-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100%;
	overflow: hidden;
	isolation: isolate;
	border-radius: 16px;
	background: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.95);
	box-shadow:
		0 14px 32px rgba(15, 76, 129, 0.1),
		0 4px 10px rgba(15, 76, 129, 0.06),
		inset 0 1px 1px rgba(255, 255, 255, 1),
		inset 0 -1px 3px rgba(15, 23, 42, 0.04);
	-webkit-backdrop-filter: blur(22px) saturate(1.65);
	backdrop-filter: blur(22px) saturate(1.65);
	transition:
		transform 0.22s ease,
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}

.lk-brand-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: none;
	pointer-events: none;
	z-index: 1;
}

.lk-brand-card::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: none;
	pointer-events: none;
	z-index: 1;
	mix-blend-mode: overlay;
}

.lk-brand-card:hover {
	transform: translateY(-4px);
	border-color: #fff;
	box-shadow:
		0 20px 42px rgba(15, 76, 129, 0.14),
		0 8px 18px rgba(15, 23, 42, 0.08),
		inset 0 1px 1px rgba(255, 255, 255, 1);
}

.lk-brand-card__media {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 132px;
	padding: 1.15rem 1.25rem;
	text-decoration: none;
	background: #fff;
	border-bottom: 1px solid rgba(15, 76, 129, 0.06);
}

.lk-brand-card__media img {
	display: block;
	max-width: 100%;
	max-height: 88px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.lk-brand-card:hover .lk-brand-card__media img {
	transform: scale(1.04);
}

.lk-brand-card__placeholder {
	display: block;
	width: 72px;
	height: 44px;
	border-radius: 12px;
	background: linear-gradient(135deg, #d8dde3, #eaf4ff);
}

.lk-brand-card__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.55rem;
	padding: 1rem 1.05rem 1.05rem;
	min-width: 0;
}

.lk-brand-card__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.45;
	letter-spacing: 0.01em;
}

.lk-brand-card__title a {
	color: var(--lk-brands-h1, #0f172a);
	text-decoration: none;
}

.lk-brand-card__title a:hover {
	color: var(--lk-brands-accent, #0f4c81);
}

.lk-brand-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--lk-brands-muted, #64748b);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.lk-brand-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	width: 100%;
	margin-top: auto;
	min-height: 2.2rem;
	padding: 0.45rem 1rem;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--lk-brands-h1, #0f172a);
	text-decoration: none;
	white-space: nowrap;
	border: 1px solid rgba(15, 76, 129, 0.16);
	border-radius: 10px;
	background: #fff;
	box-shadow: none;
	transition:
		background 0.18s ease,
		color 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.15s ease;
}

.lk-brand-card__more:hover,
.lk-brand-card__more:focus-visible {
	color: var(--lk-brands-on-accent, #fff);
	background: var(--lk-brands-accent, #0f4c81);
	border-color: var(--lk-brands-accent, #0f4c81);
	box-shadow: 0 8px 18px rgba(15, 76, 129, 0.22);
	transform: translateY(-1px);
	outline: none;
}

.lk-brands-empty {
	margin: 1rem 0 0;
	text-align: center;
	color: var(--lk-brands-muted, #64748b);
}

@media (max-width: 900px) {
	.lk-brands-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.lk-brands-hero {
		min-height: 180px;
		border-radius: 18px;
	}
}

@media (max-width: 560px) {
	.lk-brands-grid {
		grid-template-columns: 1fr;
	}

	.lk-brand-card__media {
		min-height: 118px;
	}
}
