/*
 * Love 40 Club - components + layout
 * Hand-written, no build step. Every value here composes the tokens in
 * tokens.css and the components listed in projects/DESIGN-SYSTEM.md.
 */

/* ---------- Reset / base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: 'Bricolage Grotesque', system-ui, sans-serif;
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
svg[aria-hidden="true"] {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
	font-family: inherit;
	color: inherit;
}

ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* ---------- Layout ---------- */

.container {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 640px) {
	.container { padding-inline: 24px; }
}

.page-main {
	padding-bottom: 96px;
}
@media (min-width: 1024px) {
	.page-main { padding-bottom: 40px; }
}

.page-content {
	padding-top: 56px;
	padding-bottom: 56px;
}
@media (min-width: 640px) {
	.page-content { padding-top: 80px; padding-bottom: 80px; }
}

.section + .section,
.section-stack > * + * {
	margin-top: 80px;
}

.narrow { max-width: 36rem; }

/* ---------- Type ---------- */

.font-mono { font-family: 'Space Mono', ui-monospace, monospace; }

.section-kicker {
	font-family: 'Space Mono', ui-monospace, monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .18em;
	color: var(--primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.section-title {
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	font-weight: 800;
	line-height: 1;
	margin-top: .35rem;
}

.page-h1 {
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.01em;
	max-width: 48rem;
}
@media (min-width: 640px) {
	.page-h1 { font-size: 72px; }
}

.hero-h1 {
	font-size: 48px;
	font-weight: 800;
	line-height: .88;
	max-width: 56rem;
}
@media (min-width: 640px) { .hero-h1 { font-size: 72px; } }
@media (min-width: 1024px) { .hero-h1 { font-size: 96px; } }

.lede {
	font-size: 18px;
	color: var(--muted-foreground);
	line-height: 1.6;
	max-width: 36rem;
}

.meta-sm { font-size: 12px; color: var(--muted-foreground); }

/* ---------- Page header / section header ---------- */

.page-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.page-header__body { min-width: 0; }
.page-header__lede { margin-top: 12px; }

.section-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.section-header__link {
	display: none;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}
@media (min-width: 640px) {
	.section-header__link { display: inline-flex; }
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
	background: var(--primary);
	color: var(--primary-foreground);
}
.btn-primary:hover { background: color-mix(in oklch, var(--primary) 90%, transparent); }

.btn-outline {
	background: var(--background);
	color: var(--foreground);
	border-color: var(--input);
}
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }

.btn-ghost {
	background: transparent;
	color: var(--foreground);
}
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }

.btn-secondary {
	background: var(--secondary);
	color: var(--secondary-foreground);
}
.btn-secondary:hover { background: color-mix(in oklch, var(--secondary) 80%, transparent); }

.btn-on-image {
	background: color-mix(in oklch, var(--court-deep) 30%, transparent);
	color: var(--cream);
	border-color: color-mix(in oklch, var(--cream) 35%, transparent);
}
.btn-on-image:hover { background: var(--cream); color: var(--court-deep); }

.btn-sm { height: 36px; padding: 0 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	background: transparent;
	border: none;
	cursor: pointer;
	color: inherit;
}
.icon-btn:hover { background: var(--accent); color: var(--accent-foreground); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Card ---------- */

.card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	height: 64px;
	border-bottom: 1px solid var(--border);
	background: color-mix(in oklch, var(--background) 95%, transparent);
	backdrop-filter: blur(8px);
}

.site-header__inner {
	height: 64px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}
.brand__mark {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
	font-family: 'Space Mono', monospace;
	font-size: 11px;
	font-weight: 700;
}
.brand__name {
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.brand__tagline {
	display: none;
	font-family: 'Space Mono', monospace;
	font-size: 8px;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
@media (min-width: 640px) { .brand__tagline { display: block; } }

.primary-nav {
	display: none;
	align-items: center;
	gap: 4px;
	justify-self: center;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }

.primary-nav a {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted-foreground);
	transition: color .15s ease, background-color .15s ease;
}
.primary-nav a:hover { color: var(--foreground); }
.primary-nav a[aria-current="page"] {
	background: var(--secondary);
	color: var(--foreground);
}

.header-tools {
	display: flex;
	align-items: center;
	gap: 4px;
	justify-self: end;
}

/* ---------- Mobile bottom nav ---------- */

.mobile-nav {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 50;
	border-top: 1px solid var(--border);
	background: color-mix(in oklch, var(--background) 95%, transparent);
	backdrop-filter: blur(8px);
	padding: 8px 8px max(8px, env(safe-area-inset-bottom));
}
@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav__list {
	max-width: 32rem;
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
}

.mobile-nav__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 6px 2px;
	border-radius: 6px;
	font-size: 10px;
	font-weight: 600;
	color: var(--muted-foreground);
}
.mobile-nav__list a svg { width: 20px; height: 20px; }
.mobile-nav__list a[aria-current="page"] { color: var(--primary); }

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding-block: 40px;
	margin-bottom: 64px;
}
@media (min-width: 1024px) { .site-footer { margin-bottom: 0; } }

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.site-footer__disclosure {
	margin-top: 20px;
	max-width: 42rem;
	font-size: 12px;
	color: var(--muted-foreground);
	line-height: 1.6;
}

.site-footer__nav {
	margin-top: 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}
.site-footer__nav a { font-size: 13px; font-weight: 600; color: var(--muted-foreground); }
.site-footer__nav a:hover { color: var(--foreground); }

/* ---------- Score chip ---------- */

.score-chip {
	min-width: 80px;
	padding: 12px;
	border-radius: 6px;
}
.score-chip__value { font-size: 24px; font-weight: 800; line-height: 1.1; }
.score-chip__label {
	font-family: 'Space Mono', monospace;
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	opacity: .65;
	margin-top: 2px;
}
.score-chip--l40 { background: var(--primary); color: var(--primary-foreground); }
.score-chip--community { background: var(--secondary); color: var(--secondary-foreground); }
.score-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Chips / pills ---------- */

.chip {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--secondary);
	color: var(--secondary-foreground);
	border: none;
	cursor: pointer;
	white-space: nowrap;
}
.chip[aria-pressed="true"], .chip.is-active {
	background: var(--primary);
	color: var(--primary-foreground);
}

.pill {
	display: inline-flex;
	border-radius: 999px;
	background: var(--secondary);
	color: var(--secondary-foreground);
	font-size: 12px;
	font-weight: 700;
	padding: 8px 12px;
}

.tag-on-image {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: 'Space Mono', monospace;
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	background: var(--background);
	border-radius: 4px;
	padding: 4px 10px;
}

/* ---------- Product card ---------- */

.product-card {
	display: block;
}
.product-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}
.product-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: 16px; }
.product-card__kicker {
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--primary);
}
.product-card__title {
	margin-top: 4px;
	font-size: 20px;
	font-weight: 800;
}
.product-card__blurb {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted-foreground);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-card__scores { margin-top: 16px; }

/* Compact horizontal card (home "gear we're obsessing over") */
.product-card--row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 16px;
}

/* Latest reviews card */
.review-card {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
}
.review-card img { height: 100%; min-height: 160px; width: 100%; object-fit: cover; }
.review-card__body { padding: 16px; min-width: 0; }
.review-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-card__title { margin-top: 12px; font-size: 20px; font-weight: 800; }
.review-card__blurb {
	margin-top: 8px;
	font-size: 14px;
	color: var(--muted-foreground);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------- Ranking row / card ---------- */

.ranking-row {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row__index {
	display: grid;
	place-items: center;
	width: 32px; height: 32px;
	border-radius: 999px;
	background: var(--secondary);
	font-family: 'Space Mono', monospace;
	font-size: 12px;
	font-weight: 700;
}
.ranking-row__title { font-size: 14px; font-weight: 700; }
.ranking-row__meta { font-size: 12px; color: var(--muted-foreground); }

.ranking-row--plain {
	grid-template-columns: auto minmax(0, 1fr) auto;
}
.ranking-row--plain .ranking-row__index {
	width: auto; height: auto; background: none; border-radius: 0;
	font-size: 12px; color: var(--primary); padding: 0;
}

.ranking-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.ranking-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ranking-card__shade { position: absolute; inset: 0; background: var(--hero-shade); }
.ranking-card__caption {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	padding: 20px;
	color: var(--cream);
}
.ranking-card__eyebrow {
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ball);
}
.ranking-card__title { margin-top: 4px; font-size: 30px; font-weight: 800; line-height: 1; }
.ranking-card__list { padding-inline: 20px; }
.ranking-card__footer {
	border-top: 1px solid var(--border);
	padding: 16px;
	text-align: right;
}
.ranking-card__footer a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--primary);
}

/* Single ranking page header: the same media+shade+caption treatment as
   the archive card, just capped shorter since it spans the full container
   instead of sitting in a grid column (see DESIGN-SYSTEM.md). */
.ranking-card__media--page {
	aspect-ratio: auto; /* archive's 16/10 would shrink the width to fit the cap */
	height: 220px;
	border-radius: var(--radius);
}
@media (min-width: 640px) { .ranking-card__media--page { height: 320px; } }

/* ---------- Poll card ---------- */

.poll-card { padding: 20px; }
@media (min-width: 640px) { .poll-card { padding: 32px; } }
.poll-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.poll-card__votes {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.poll-card__votes svg { width: 12px; height: 12px; }
.poll-card__question {
	margin-top: 20px;
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
	text-wrap: balance;
}
@media (min-width: 640px) { .poll-card__question { font-size: 40px; } }
.poll-card__options { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

.poll-option {
	position: relative;
	min-height: 56px;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: transparent;
	padding: 14px 16px;
	text-align: left;
	cursor: pointer;
	color: inherit;
}
.poll-option:hover { border-color: var(--primary); }
.poll-option__fill {
	position: absolute;
	inset-block: 0;
	left: 0;
	background: color-mix(in oklch, var(--primary) 15%, transparent);
	transition: width .4s ease;
	width: 0%;
}
.poll-option__row {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
}
.poll-card__footer {
	margin-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--border);
	padding-top: 20px;
}
.poll-card__comments {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--muted-foreground);
}
.poll-card__comments svg { width: 16px; height: 16px; }

.poll-card--callout {
	border-radius: var(--radius);
	background: var(--primary);
	color: var(--primary-foreground);
	padding: 24px;
}
@media (min-width: 640px) { .poll-card--callout { padding: 32px; } }
.poll-card--callout .poll-card__eyebrow {
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .18em;
	opacity: .6;
}
.poll-card--callout .poll-card__question { font-size: 30px; margin-top: 16px; text-wrap: balance; }
.poll-card--callout .poll-card__options { margin-top: 24px; gap: 8px; }
.poll-card--callout .poll-option {
	border: none;
	background: color-mix(in oklch, var(--primary-foreground) 10%, transparent);
	min-height: 0;
	padding: 12px 16px;
}
.poll-card--callout .poll-option:hover { background: color-mix(in oklch, var(--primary-foreground) 20%, transparent); }
.poll-card--callout .poll-option__row { font-weight: 700; }
.poll-card--callout .poll-card__note {
	margin-top: 16px;
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	text-transform: uppercase;
	opacity: .55;
}

/* ---------- Perk card ---------- */

.perk-card { padding: 24px; }
.perk-card__icon {
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
}
.perk-card__icon svg { width: 20px; height: 20px; }
.perk-card__kicker {
	margin-top: 24px;
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.perk-card__title { margin-top: 8px; font-size: 26px; font-weight: 800; }
.perk-card__code {
	margin-top: 24px;
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	border-radius: 6px;
	background: var(--secondary);
	color: var(--secondary-foreground);
	padding: 14px 16px;
	font-family: 'Space Mono', monospace;
	font-size: 14px;
	font-weight: 700;
	border: none;
	cursor: pointer;
}
.perk-card__code-copy { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-foreground); }
.perk-card__code-copy svg { width: 14px; height: 14px; }
.perk-card .btn { margin-top: 12px; }
.perk-card__disclosure { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }

/* ---------- Scorebar ---------- */

.scorebar + .scorebar { margin-top: 16px; }
.scorebar__row {
	display: flex;
	justify-content: space-between;
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 4px;
}
.scorebar__track {
	height: 8px;
	border-radius: 999px;
	background: var(--secondary);
	overflow: hidden;
}
.scorebar__fill {
	height: 8px;
	border-radius: 999px;
	background: var(--primary);
}

/* ---------- Pros / cons ---------- */

.pros-cons-grid {
	display: grid;
	gap: 24px;
}
@media (min-width: 640px) { .pros-cons-grid { grid-template-columns: 1fr 1fr; } }
.pros-cons-grid h2 { font-size: 24px; font-weight: 800; }
.pros-cons-list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pros-cons-list li { display: flex; gap: 12px; font-size: 14px; align-items: flex-start; }
.pros-cons-list svg { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; }
.pros-cons-list .icon-pro { color: var(--primary); }
.pros-cons-list .icon-con { color: var(--muted-foreground); }

/* ---------- Callout panel ---------- */

.callout {
	border-radius: var(--radius);
	background: var(--primary);
	color: var(--primary-foreground);
	padding: 24px;
}
.callout__kicker {
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	opacity: .6;
}
.callout__value { margin-top: 12px; font-size: 48px; font-weight: 800; line-height: 1; }
.callout__text { margin-top: 8px; font-size: 14px; opacity: .75; }
.callout .btn-secondary { margin-top: 20px; width: 100%; }

.panel {
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
	padding: 24px;
}

/* ---------- Forms ---------- */

.field { display: block; }
.field + .field { margin-top: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field__input,
.input {
	display: flex;
	height: 40px;
	width: 100%;
	border-radius: 6px;
	border: 1px solid var(--input);
	background: transparent;
	padding: 0 12px;
	font-size: 14px;
}
.field__input:focus-visible,
.input:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.field__input::placeholder,
.input::placeholder { color: var(--muted-foreground); }

.search-field { position: relative; }
.search-field svg {
	position: absolute;
	left: 12px; top: 50%;
	transform: translateY(-50%);
	width: 16px; height: 16px;
	color: var(--muted-foreground);
	pointer-events: none;
}
.search-field .input { padding-left: 36px; }

select.input { appearance: auto; }

/* ---------- Hero ---------- */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-height: 72svh;
	background: var(--court-deep);
	color: var(--cream);
}
@media (min-width: 640px) { .hero { min-height: 76vh; } }
.hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.hero__shade { position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); }
.hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 72svh;
	padding-block: 40px;
}
@media (min-width: 640px) { .hero__inner { min-height: 76vh; padding-block: 56px; } }
.hero__kicker {
	font-family: 'Space Mono', monospace;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .2em;
	color: var(--ball);
	margin-bottom: 16px;
}
.hero__lede { margin-top: 20px; max-width: 36rem; font-size: 16px; line-height: 1.6; color: color-mix(in oklch, var(--cream) 75%, transparent); }
@media (min-width: 640px) { .hero__lede { font-size: 18px; } }
.hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { height: 40px; padding: 0 32px; }

/* ---------- Feature strips ---------- */

.editorial-strip {
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--court-deep);
	color: var(--cream);
}
.editorial-strip__grid {
	display: grid;
}
@media (min-width: 1024px) { .editorial-strip__grid { grid-template-columns: 1fr 1fr; } }
.editorial-strip__body { padding: 28px; }
@media (min-width: 640px) { .editorial-strip__body { padding: 48px; } }
.editorial-strip__play {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border-radius: 999px;
	background: var(--ball);
	color: var(--court-deep);
	margin-bottom: 32px;
}
.editorial-strip__play svg { width: 20px; height: 20px; }
.editorial-strip__title { margin-top: 8px; font-size: 34px; font-weight: 800; line-height: 1; }
@media (min-width: 640px) { .editorial-strip__title { font-size: 44px; } }
.editorial-strip__text { margin-top: 20px; max-width: 26rem; font-size: 14px; line-height: 1.6; color: color-mix(in oklch, var(--cream) 65%, transparent); }
.editorial-strip__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }

.perks-strip {
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: flex-start;
	justify-content: space-between;
	border-block: 1px solid var(--border);
	padding-block: 32px;
}
@media (min-width: 640px) { .perks-strip { flex-direction: row; align-items: center; } }
.perks-strip__title { font-size: 24px; font-weight: 800; margin-top: 4px; }

.l40-home-split {
	display: grid;
	gap: 32px;
}
@media (min-width: 1024px) {
	.l40-home-split { grid-template-columns: 1.25fr .75fr; }
}

/* ---------- Explore filter bar ---------- */

.filter-bar {
	position: sticky;
	top: 64px;
	z-index: 30;
	background: color-mix(in oklch, var(--background) 95%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--border);
	padding-block: 16px;
}
.filter-bar__row {
	display: grid;
	gap: 12px;
}
@media (min-width: 640px) { .filter-bar__row { grid-template-columns: minmax(0, 1fr) auto; } }
.filter-bar__pills {
	margin-top: 12px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
}

/* ---------- Compare page ---------- */

.compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (min-width: 640px) { .compare-grid { gap: 24px; } }
.compare-col select { margin-bottom: 12px; font-weight: 700; }
.compare-col img { aspect-ratio: 1 / 1; width: 100%; border-radius: var(--radius); object-fit: cover; }
.compare-col__title { margin-top: 16px; font-size: 20px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 640px) { .compare-col__title { font-size: 28px; } }
.compare-col__brand { font-size: 12px; color: var(--muted-foreground); }
.compare-col .score-chip-row { margin-top: 16px; flex-direction: column; }
@media (min-width: 640px) { .compare-col .score-chip-row { flex-direction: row; } }

.compare-table {
	margin-top: 40px;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	overflow: hidden;
}
.compare-table__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid var(--border);
}
.compare-table__row:last-child { border-bottom: none; }
.compare-table__left { text-align: right; font-size: 24px; font-weight: 800; }
.compare-table__right { text-align: left; font-size: 24px; font-weight: 800; }
.compare-table__label {
	width: 100px;
	text-align: center;
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted-foreground);
	line-height: 1.3;
}

/* ---------- Auth ---------- */

.auth-shell {
	min-height: calc(100svh - 4rem);
	display: grid;
	place-items: center;
	padding-block: 40px;
}
.auth-card {
	width: 100%;
	max-width: 56rem;
	display: grid;
	overflow: hidden;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	background: var(--card);
}
@media (min-width: 768px) { .auth-card { grid-template-columns: .85fr 1.15fr; } }
.auth-card__panel { background: var(--primary); color: var(--primary-foreground); padding: 32px; }
.auth-card__panel h1 { margin-top: 40px; font-size: 48px; font-weight: 800; line-height: 1; }
.auth-card__panel p { margin-top: 16px; font-size: 14px; opacity: .75; }
.auth-card__form { padding: 24px; }
@media (min-width: 640px) { .auth-card__form { padding: 40px; } }
.auth-tabs { display: flex; gap: 8px; }
.auth-divider { margin-block: 24px; display: flex; align-items: center; gap: 12px; }
.auth-divider__line { height: 1px; flex: 1; background: var(--border); }
.auth-divider__text { font-family: 'Space Mono', monospace; font-size: 9px; text-transform: uppercase; color: var(--muted-foreground); }
.auth-social { display: grid; gap: 12px; }
@media (min-width: 640px) { .auth-social { grid-template-columns: 1fr 1fr; } }
.auth-error {
	margin-top: 16px;
	border-radius: 6px;
	border: 1px solid var(--destructive);
	color: var(--destructive);
	padding: 12px 14px;
	font-size: 13px;
}

/* ---------- Empty state ---------- */

.empty-state { max-width: 42rem; margin-inline: auto; text-align: center; padding-block: 40px; }
.empty-state__mark {
	margin-inline: auto;
	display: grid;
	place-items: center;
	width: 80px; height: 80px;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
	font-size: 24px;
	font-weight: 800;
}
.empty-state h1 { margin-top: 24px; font-size: 48px; font-weight: 800; }
.empty-state p { margin-inline: auto; margin-top: 16px; max-width: 28rem; color: var(--muted-foreground); }
.empty-state .btn { margin-top: 28px; }

/* ---------- Saved products grid (profile) ---------- */

.card-grid {
	margin-top: 40px;
	display: grid;
	gap: 16px;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Horizontal scroll snap (mobile trending row) ---------- */

.snap-row {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	padding-bottom: 8px;
	scroll-snap-type: x mandatory;
	margin-inline: -16px;
	padding-inline: 16px;
	scrollbar-width: none;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { min-width: 82%; scroll-snap-align: start; }
@media (min-width: 640px) {
	.snap-row {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
	}
	.snap-row > * { min-width: 0; }
}

/* ---------- Product single ---------- */

.product-hero {
	background: var(--secondary);
}
.product-hero__grid {
	display: grid;
	gap: 32px;
	padding-block: 32px;
}
@media (min-width: 1024px) { .product-hero__grid { grid-template-columns: 1fr 1fr; padding-block: 56px; } }
.product-hero__media { border-radius: var(--radius); overflow: hidden; background: var(--card); }
.product-hero__media img { width: 100%; aspect-ratio: 1 / 1; max-height: 620px; object-fit: cover; }
.product-hero__body { display: flex; flex-direction: column; justify-content: center; }
.product-hero__title { margin-top: 12px; font-size: 48px; font-weight: 800; line-height: 1; }
@media (min-width: 640px) { .product-hero__title { font-size: 72px; } }
.product-hero__blurb { margin-top: 20px; max-width: 36rem; font-size: 18px; line-height: 1.6; color: var(--muted-foreground); }
.product-hero__disclosure { margin-top: 12px; font-family: 'Space Mono', monospace; font-size: 9px; text-transform: uppercase; color: var(--muted-foreground); }
.product-hero__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

.product-body {
	display: grid;
	gap: 48px;
	padding-block: 48px;
}
@media (min-width: 1024px) { .product-body { grid-template-columns: 1fr 360px; } }

.affiliate-box { margin-top: 4px; }
.affiliate-box .btn { width: 100%; }
.affiliate-box p { margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }

/* ---------- Phase 1 (build spec v2) additions ---------- */

/* Review card: score chip + date tested */
.review-card__foot { margin-top: 12px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.review-card__foot .score-chip { min-width: 0; padding: 8px 10px; }

/* Ranking entry (single ranking): image, verdict, top scores */
.ranking-entry {
	display: grid;
	grid-template-columns: 28px 56px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}
.ranking-entry:last-child { border-bottom: none; }
@media (max-width: 639px) {
	/* Thumbnail drops on phones so the verdict gets a readable measure. */
	.ranking-entry { grid-template-columns: 28px minmax(0, 1fr) auto; }
	.ranking-entry__media { display: none; }
}
.ranking-entry__media { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--secondary); flex-shrink: 0; }
.ranking-entry__media img { width: 100%; height: 100%; object-fit: cover; }
.ranking-entry__verdict { margin-top: 4px; font-size: 13px; color: var(--muted-foreground); }
.ranking-entry__scores { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }
.ranking-entry__score { font-size: 12px; font-weight: 700; }
.ranking-entry__score-label {
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	text-transform: uppercase;
	color: var(--muted-foreground);
	margin-right: 4px;
}

/* Ranking toggle pill: L40C Ranking | The L40s Say */
.ranking-toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 24px; }
.ranking-toggle .chip { background: transparent; }
.ranking-toggle .chip.is-active { background: var(--primary); color: var(--primary-foreground); }

/* Status toggle group: Own it / Tried it / Want it */
.status-toggle { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rating input */
.rating-form { margin-top: 20px; }
.rating-form__row { display: flex; gap: 8px; align-items: center; }
.rating-form__row .input { width: 84px; flex-shrink: 0; text-align: center; }
.rating-form__row .btn { flex: 1; }

/* Setup card */
.setup-card { padding: 24px; }
.setup-card__rows { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Video embed card */
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Avatar */
.avatar {
	position: relative;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	overflow: hidden;
	flex-shrink: 0;
	background: var(--secondary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.avatar__fallback {
	position: absolute;
	inset: 0;
	place-items: center;
	border-radius: 999px;
	background: var(--primary);
	color: var(--primary-foreground);
	font-weight: 800;
	font-family: 'Space Mono', monospace;
}

/* Profile header */
.profile-header { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-header__body { min-width: 0; }
.profile-header__meta { margin-top: 8px; font-size: 13px; color: var(--muted-foreground); display: flex; gap: 12px; flex-wrap: wrap; }
.profile-tabs { margin-top: 40px; display: flex; flex-direction: column; gap: 56px; }

/* My Bag */
.bag-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
.bag-slot { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bag-slot__label {
	font-family: 'Space Mono', monospace;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--muted-foreground);
}
.bag-slot__media { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--secondary); }
.bag-slot__media img { width: 100%; height: 100%; object-fit: cover; }
.bag-slot__value { font-size: 14px; font-weight: 700; }
.bag-slot__empty { font-size: 13px; color: var(--muted-foreground); }
.bag-edit-row { display: grid; gap: 8px; padding: 16px; }
.bag-edit-row__mode { display: flex; gap: 16px; font-size: 13px; }

/* Gear Finder */
.finder-progress { margin-bottom: 12px; }
.finder-step { max-width: 44rem; }
.finder-options { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.finder-options--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.poll-option.is-selected,
.poll-option:has(input:checked) { border-color: var(--primary); background: color-mix(in oklch, var(--primary) 15%, transparent); }
.finder-actions { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.finder-why { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.finder-why li { display: flex; gap: 8px; font-size: 13px; align-items: flex-start; color: var(--muted-foreground); }
.finder-why svg { flex-shrink: 0; width: 14px; height: 14px; margin-top: 2px; color: var(--primary); }
.finder-results { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 40px; }

/* Head-to-head verdict row */
.h2h-verdict { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.h2h-verdict__col { padding: 20px; }
.h2h-verdict__title { font-size: 16px; font-weight: 800; }
.h2h-verdict__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.h2h-verdict__text { margin-top: 12px; font-size: 14px; color: var(--muted-foreground); }

/* Auth: styled register form extras (tabs live in wp-login core markup) */
.l40-auth-panel__list { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
