/*
 * Tyre Range page. The card itself is shared with the homepage (home.css
 * .hl-pattern-card) — this file only adds the page shell, the filter bar and
 * the grid.
 *
 * Not designed in the bundle; derived from the HILO tokens in base.css.
 */

.hl-range__hero {
	position: relative;
	padding: clamp(40px, 5vw, 64px) 0 clamp(28px, 3vw, 40px);
	border-bottom: 1px solid var(--hl-line-2);
	background:
		radial-gradient(900px 300px at 12% 120%, rgba(224, 31, 19, 0.16), transparent 70%),
		var(--hl-black);
	overflow: hidden;
}

/* Same 60px cyan grid as the homepage hero, so the two read as one site. */
.hl-range__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(var(--hl-cyan-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--hl-cyan-grid) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: linear-gradient(180deg, #000, transparent);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent);
}
.hl-range__hero > * { position: relative; }

.hl-range__heading {
	margin: 18px 0 0;
	font: 700 clamp(32px, 4.4vw, 56px)/1 var(--hl-font-head);
	text-transform: uppercase;
	letter-spacing: -0.01em;
}

.hl-range__subline {
	margin: 16px 0 0;
	max-width: 620px;
	font: 400 16px/1.65 var(--hl-font-body);
	color: var(--hl-body);
	text-wrap: pretty;
}

/* ---------------------------------------------------------------------
   Filter bar
   --------------------------------------------------------------------- */
.hl-filters {
	padding: clamp(24px, 3vw, 36px) 0 0;
}

.hl-filters__row {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 12px 0;
	border-bottom: 1px solid var(--hl-line);
}

.hl-filters__label {
	flex: none;
	min-width: 70px;
	font: 500 10px/1.8 var(--hl-font-mono);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hl-mono);
}

.hl-filters__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.hl-pill {
	--hl-pill-accent: var(--hl-cyan);
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--hl-line-2);
	border-radius: var(--hl-radius-btn);
	background: var(--hl-surface);
	color: var(--hl-body);
	text-decoration: none;
	font: 600 12px/1 var(--hl-font-head);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: border-color 0.15s, color 0.15s;
}
.hl-pill:hover {
	border-color: var(--hl-pill-accent);
	color: var(--hl-text);
}

/* The active pill is tinted with its own category accent, so the colour on
   the filter bar matches the colour on that category's homepage card. */
.hl-pill.is-active {
	border-color: var(--hl-pill-accent);
	color: var(--hl-pill-accent);
	background: color-mix(in srgb, var(--hl-pill-accent) 12%, transparent);
}

.hl-pill--sm {
	padding: 7px 13px;
	font-size: 11px;
	font-family: var(--hl-font-mono);
	font-weight: 500;
	letter-spacing: 0.12em;
}

.hl-filters__count {
	margin: 18px 0 0;
	font: 500 11px/1 var(--hl-font-mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-mono);
}
.hl-filters__count strong { color: var(--hl-cyan); font-weight: 500; }

/* ---------------------------------------------------------------------
   Results
   --------------------------------------------------------------------- */
.hl-range__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 26px 0 clamp(56px, 7vw, 88px);
}

.hl-pattern-card__sizes {
	display: block;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--hl-line);
	font: 500 10px/1 var(--hl-font-mono);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--hl-cyan);
}

.hl-range__empty {
	margin: 40px 0 clamp(56px, 7vw, 88px);
	font: 400 16px/1.6 var(--hl-font-body);
	color: var(--hl-body);
}

@media (max-width: 1100px) {
	.hl-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
	.hl-range__grid { grid-template-columns: minmax(0, 1fr); }

	/* Stacked, because a 70px label column plus wrapping pills leaves the
	   pills about 200px wide on a phone. */
	.hl-filters__row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
}
