/*
 * Brands page styles.
 *
 * Loaded only on the Brands template. Shared chrome (page hero, crumbs, stats)
 * lives in site.css, which always loads first.
 *
 * Three deliberate departures from the design concept:
 *   - .jump parks below the sticky header. In the design both the header and
 *     the jump bar were `position: sticky; top: 0`, so the header (z-index 90)
 *     covered the jump bar (z-index 50) and none of the chips were clickable.
 *   - .bcat scroll-margin accounts for the header AND the jump bar, so an
 *     anchor jump does not land under them.
 *   - .bgrid columns are minmax(0, 1fr) and long names can wrap, so a brand
 *     like "Bodycology / Body Fantasy" cannot widen the grid past the viewport.
 */

.jump {
	background: var(--white);
	border-bottom: 1px solid var(--slate-border);
	position: sticky;
	top: var(--head-h, 129px);
	z-index: 50;
}

.jump .wrap {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding-top: 12px;
	padding-bottom: 12px;
}

.jump a {
	font-size: .85rem;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--slate-border);
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}

.jump a:hover,
.jump a:focus-visible {
	background: var(--navy);
	color: var(--white);
	border-color: var(--navy);
}

.bcat {
	padding: 3rem 0;
	border-bottom: 1px solid var(--slate-border);
	scroll-margin-top: calc(var(--head-h, 129px) + 72px);
}

.bcat:last-of-type { border-bottom: 0; }

.bcat-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}

.bcat-head h2 {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 1.6rem;
	letter-spacing: -.02em;
}

.bcat-head .n {
	font-size: .85rem;
	color: var(--gray-text);
	background: var(--slate-bg);
	padding: 3px 12px;
	border-radius: 999px;
}

.bgrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--white);
	border: 1px solid var(--slate-border);
	border-radius: var(--r-md);
	padding: 1.1rem 1.25rem;
	font-family: 'Syne', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	min-width: 0;
	overflow-wrap: anywhere;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.brand:hover,
.brand:focus-visible {
	border-color: var(--amber);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.brand svg {
	color: var(--amber-dark);
	opacity: .35;
	transition: opacity .2s;
	flex-shrink: 0;
}

.brand:hover svg,
.brand:focus-visible svg { opacity: 1; }

.partner {
	background: var(--navy);
	color: var(--white);
	border-radius: var(--r-lg);
	padding: 3rem;
	margin: 1rem 0 4.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.partner h2 {
	font-family: 'Syne', sans-serif;
	font-weight: 800;
	font-size: 1.7rem;
	margin-bottom: .4rem;
}

.partner p { color: var(--gray-light); }

@media (max-width: 1000px) { .bgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
	.bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.partner { padding: 2rem; }
}
