/* =====================================================================
   TeamMoto — Redesigned Home Page
   File: css/home-redesign.css   (scoped to .tm-home — no global leaks)
   Uses the theme's existing brand variables with safe fallbacks.
   ===================================================================== */

.tm-home {
	--h-orange: var(--tm-orange, #faa632);
	--h-orange-dk: #e8901a;
	--h-dark: var(--tm-dark, #14181b);
	--h-charcoal: var(--tm-dark-grey, #404041);
	--h-text: var(--tm-text, #2c3e50);
	--h-muted: #5b6a79;            /* darker than theme grey: passes WCAG AA on white */
	--h-orange-text: #a86200;      /* orange for small text on light backgrounds (4.7:1) */
	--h-orange-text-lg: #c06f00;   /* orange for large headings on light backgrounds (3.8:1) */
	--h-bg: var(--tm-grey-bg, #f8f9fa);
	--h-line: var(--border-color, #e2e8f0);
	--h-radius: 6px;
	--h-head-font: 'Saira Variable', 'Saira', 'Montserrat', sans-serif;
	--h-gap: clamp(10px, 1.6vw, 20px);
	--h-section: clamp(32px, 5vw, 64px);
	color: var(--h-text);
	font-family: Montserrat, sans-serif;
}

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

.tm-home img { max-width: 100%; display: block; }

.tm-home [hidden] { display: none !important; }

/* Two-tone focus ring: visible on light, dark and orange backgrounds */
.tm-home a:focus-visible,
.tm-home button:focus-visible {
	outline: 3px solid var(--h-dark);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--h-orange);
}
.tm-home a:focus:not(:focus-visible),
.tm-home button:focus:not(:focus-visible) { outline: none; }

/* ---------- Buttons ---------- */
.tm-home .tm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 20px;
	border-radius: var(--tm-btn-rounded, 4px);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid transparent;
	line-height: 1.1;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.tm-home .tm-btn .las { font-size: 1.15em; }
.tm-home .tm-btn--orange { background: var(--h-orange); color: var(--h-dark); }
.tm-home .tm-btn--orange:hover { background: var(--h-orange-dk); color: var(--h-dark); }
.tm-home .tm-btn--dark { background: var(--h-dark); color: #fff; }
.tm-home .tm-btn--dark:hover { background: #000; color: var(--h-orange); }
.tm-home .tm-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.tm-home .tm-btn--ghost:hover { border-color: var(--h-orange); color: var(--h-orange); }
.tm-home .tm-btn--outline { border-color: var(--h-dark); color: var(--h-dark); }
.tm-home .tm-btn--outline:hover { background: var(--h-dark); color: #fff; }

/* ---------- Section heads ---------- */
.tm-home .tm-section { padding-top: var(--h-section); }
.tm-home .tm-section__head {
	background: none;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: clamp(14px, 2vw, 24px);
}
.tm-home .tm-section__title {
	position: relative;
	margin: 0;
	padding-bottom: 10px;
	font-family: var(--h-head-font);
	font-size: clamp(22px, 2.6vw, 32px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--h-dark);
	line-height: 1.1;
}
.tm-home .tm-section__title::after {
	content: "";
	position: absolute;
	left: 0; bottom: 0;
	width: 56px; height: 4px;
	background: var(--h-orange);
	border-radius: 2px;
}
.tm-home .tm-section__more {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--h-text);
	text-decoration: none;
	white-space: nowrap;
}
.tm-home .tm-section__more:hover { color: var(--h-text); text-decoration: underline; text-decoration-color: var(--h-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.tm-home .tm-section__more .las { transition: transform .2s; }
.tm-home .tm-section__more:hover .las { transform: translateX(3px); }

/* ---------- 1. Hero ---------- */
.tm-home .tm-hero { padding-top: clamp(0px, 1.5vw, 20px); }
.tm-home .tm-hero__carousel { position: relative; border-radius: var(--h-radius); overflow: hidden; background: var(--h-dark); }
.tm-home .tm-hero__link { display: block; }
.tm-home .tm-hero__link img { width: 100%; height: auto; }
.tm-home .tm-hero__controls {
	position: absolute;
	left: 16px; bottom: 16px;   /* bottom-left so it doesn't cover CTAs printed bottom-right on banners */
	display: flex;
	align-items: center;
	gap: 8px;
	z-index: 5;
}
.tm-home .tm-hero__link picture { display: block; }
.tm-home .tm-hero__dots {
	position: static;
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0 6px;
	gap: 2px;
	height: 40px;
	background: rgba(20,24,27,.6);
	border-radius: 20px;
	list-style: none;
}
/* 24px-tall hit area, thin bar drawn inside */
.tm-home .tm-hero__dots > button {
	position: relative;
	width: 30px; height: 24px;
	margin: 0; padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: width .3s;
}
.tm-home .tm-hero__dots > button::before {
	content: "";
	position: absolute;
	left: 4px; right: 4px; top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: #fff;
	opacity: .55;
	transition: opacity .3s, background-color .3s;
}
.tm-home .tm-hero__dots > button.active { width: 46px; }
.tm-home .tm-hero__dots > button.active::before { opacity: 1; background: var(--h-orange); }
.tm-home .tm-hero__arrow {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	cursor: pointer;
	border-radius: 50%;
	background: rgba(20,24,27,.6);
	color: #fff;
	font-size: 20px;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.tm-home .tm-hero__arrow:hover { background: var(--h-orange); color: var(--h-dark); }
@media (max-width: 767.98px) {
	.tm-home .tm-hero { padding-left: 0; padding-right: 0; }
	.tm-home .tm-hero__carousel { border-radius: 0; }
	.tm-home .tm-hero__controls { left: 0; right: 0; bottom: 12px; justify-content: center; }
}

/* ---------- 2. USP strip ---------- */
.tm-home .tm-usp { margin-top: clamp(12px, 2vw, 20px); }
.tm-home .tm-usp__list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--h-dark);
	border-radius: var(--h-radius);
	overflow: hidden;
}
.tm-home .tm-usp__list li + li { border-left: 1px solid rgba(255,255,255,.1); }
.tm-home .tm-usp__item {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 16px 20px;
	color: #fff;
	text-decoration: none;
	transition: background-color .2s;
}
.tm-home .tm-usp__item:hover { background: #1f2529; color: #fff; }
.tm-home .tm-usp__item .las { font-size: 34px; color: var(--h-orange); flex-shrink: 0; }
.tm-home .tm-usp__item strong { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.tm-home .tm-usp__item small { display: block; font-size: 12px; color: #b7bcc2; margin-top: 2px; }
@media (max-width: 991.98px) {
	.tm-home .tm-usp__list { grid-template-columns: repeat(2, 1fr); }
	.tm-home .tm-usp__list li:nth-child(3) { border-left: 0; }
	.tm-home .tm-usp__list li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 575.98px) {
	.tm-home .tm-usp .container { padding-left: 0; padding-right: 0; }
	.tm-home .tm-usp { margin-top: 0; }
	.tm-home .tm-usp__list { border-radius: 0; }
	.tm-home .tm-usp__item { padding: 12px; gap: 8px; }
	.tm-home .tm-usp__item .las { font-size: 26px; }
	.tm-home .tm-usp__item strong { font-size: 12px; }
	.tm-home .tm-usp__item small { font-size: 11px; }
}

/* ---------- Image tiles (shared) ---------- */
.tm-home .tm-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 220px;
	padding: 18px;
	border-radius: var(--h-radius);
	overflow: hidden;
	background: var(--h-dark);
	color: #fff;
	text-decoration: none;
	isolation: isolate;
}
.tm-home .tm-tile__img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	z-index: -2;
	transition: transform .5s ease;
}
.tm-home .tm-tile::before {
	content: "";
	position: absolute; inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(20,24,27,.55) 0%, rgba(20,24,27,0) 38%, rgba(20,24,27,0) 60%, rgba(20,24,27,.6) 100%);
}
.tm-home .tm-tile:hover .tm-tile__img { transform: scale(1.05); }
.tm-home .tm-tile:hover { color: #fff; }
.tm-home .tm-tile__label {
	align-self: flex-start;
	position: relative;
	padding-bottom: 6px;
	font-family: var(--h-head-font);
	font-size: clamp(18px, 1.8vw, 24px);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
	text-shadow: 0 2px 6px rgba(0,0,0,.5);
}
.tm-home .tm-tile__label::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 100%; max-width: 120px; height: 3px;
	background: var(--h-orange);
}
.tm-home .tm-tile__sub { margin-top: 8px; font-size: 13px; max-width: 26ch; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.tm-home .tm-tile__cta { margin-top: auto; align-self: flex-start; }
.tm-home .tm-tile__go {
	position: absolute;
	right: 14px; bottom: 14px;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--h-orange);
	color: var(--h-dark);
	font-size: 20px;
	transition: transform .2s;
}
.tm-home .tm-tile:hover .tm-tile__go { transform: translateX(4px); }

/* ---------- 3. Sale tiles ---------- */
.tm-home .tm-tiles--sale {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--h-gap);
}
.tm-home .tm-tiles--sale .tm-tile { aspect-ratio: 1 / 1; }

/* ---------- 4. Bento ---------- */
.tm-home .tm-bento {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-auto-rows: minmax(150px, auto);
	gap: var(--h-gap);
}
.tm-home .tm-bento__item:nth-child(1) { grid-column: span 3; grid-row: span 2; min-height: 380px; }
.tm-home .tm-bento__item:nth-child(2),
.tm-home .tm-bento__item:nth-child(3) { grid-column: span 3; }
.tm-home .tm-bento__item:nth-child(4),
.tm-home .tm-bento__item:nth-child(5) { grid-column: span 3; min-height: 170px; }
.tm-home .tm-bento__item:nth-child(1) .tm-tile__label { font-size: clamp(22px, 2.6vw, 34px); }

/* ---------- 5. Hot categories ---------- */
.tm-home .tm-hot {
	margin-top: var(--h-section);
	padding: var(--h-section) 0;
	background: var(--h-bg);
	border-top: 1px solid var(--h-line);
	border-bottom: 1px solid var(--h-line);
}
.tm-home .tm-hot__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--h-gap);
}
.tm-home .tm-hot__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	color: var(--h-text);
	text-decoration: none;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.tm-home .tm-hot__card:hover {
	transform: translateY(-4px);
	border-color: var(--h-orange);
	box-shadow: var(--tm-btn-shadow, 5px 5px 5px -3px #14181b70);
	color: var(--h-text);
}
.tm-home .tm-hot__media { display: block; aspect-ratio: 4 / 3; background: #fff; padding: 12px; }
.tm-home .tm-hot__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.tm-home .tm-hot__card:hover .tm-hot__media img { transform: scale(1.06); }
.tm-home .tm-hot__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	border-top: 3px solid var(--h-orange);
	background: var(--h-dark);
	color: #fff;
	margin-top: auto;
}
.tm-home .tm-hot__name { font-family: var(--h-head-font); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.tm-home .tm-hot__link { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--h-orange); }

/* ---------- 6. Products ---------- */
.tm-home .tm-product {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	overflow: hidden;
	transition: box-shadow .25s, border-color .25s;
}
.tm-home .tm-product:hover { border-color: var(--h-orange); box-shadow: 0 8px 20px -10px rgba(20,24,27,.35); }
.tm-home .tm-product__media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 14px; background: #fff; }
.tm-home .tm-product__media img { width: 100%; height: 100%; object-fit: contain; }
.tm-home .tm-product__badge {
	position: absolute; top: 10px; left: 10px; z-index: 1;
	padding: 4px 8px;
	border-radius: 2px;
	background: var(--pdp-sale-price, #dc3545);
	color: #fff;
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.tm-home .tm-product__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; border-top: 1px solid var(--h-line); flex: 1; }
.tm-home .tm-product__brand { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--h-muted); }
.tm-home .tm-product__name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.tm-home .tm-product__name a {
	color: var(--h-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tm-home .tm-product__name a:hover { text-decoration: underline; text-decoration-color: var(--h-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tm-home .tm-product__price { margin: auto 0 0; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.tm-home .tm-product__now { font-size: 18px; font-weight: 800; color: var(--h-dark); }
.tm-home .tm-product__was { font-size: 13px; color: var(--h-muted); }

/* ---------- 7. Promo panels ---------- */
.tm-home .tm-promos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--h-gap); }
.tm-home .tm-promo {
	position: relative;
	padding: clamp(24px, 3.5vw, 44px);
	border-radius: var(--h-radius);
	overflow: hidden;
	isolation: isolate;
}
.tm-home .tm-promo::after {
	content: "";
	position: absolute;
	right: -60px; bottom: -60px;
	width: 220px; height: 220px;
	border: 28px solid currentColor;
	border-radius: 50%;
	opacity: .07;
	z-index: -1;
}
.tm-home .tm-promo p { max-width: 46ch; margin: 0 0 20px; font-size: 15px; line-height: 1.6; }
.tm-home .tm-promo--dark { background: var(--h-dark); color: #fff; }
.tm-home .tm-promo--dark p { color: #c9cdd1; }
.tm-home .tm-promo--orange { background: var(--h-orange); color: var(--h-dark); }
.tm-home .tm-promo__eyebrow {
	display: block;
	margin: 0 0 8px;
	font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
	color: var(--h-orange);
}
.tm-home .tm-promo--orange .tm-promo__eyebrow { color: #3a3226; }
.tm-home .tm-promo__title {
	margin: 0 0 12px;
	font-family: var(--h-head-font);
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.05;
	color: inherit;
}
.tm-home .tm-promo__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 8. Brands ---------- */
.tm-home .tm-brands {
	list-style: none; margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: var(--h-gap);
}
.tm-home .tm-brands > li { margin: 0; padding: 0; min-width: 0; list-style: none; }
.tm-home .tm-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 84px;
	padding: 12px 16px;
	border: 1px solid var(--h-line);
	border-radius: var(--h-radius);
	background: #fff;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}
/* Logo is boxed to the tile's inner area and scaled to fit, whatever its native size or ratio */
.tm-home .tm-brands__item img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s, opacity .2s;
}
.tm-home .tm-brands__item:hover { border-color: var(--h-orange); box-shadow: 0 6px 16px -10px rgba(20,24,27,.4); }
.tm-home .tm-brands__item:hover img { filter: none; opacity: 1; }

/* ---------- 9. Story ---------- */
.tm-home .tm-story { padding-top: var(--h-section); padding-bottom: var(--h-section); }
.tm-home .tm-story__grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.tm-home .tm-story__media { position: relative; }
.tm-home .tm-story__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--h-radius); }
.tm-home .tm-story__stats {
	list-style: none;
	margin: 0; padding: 0;
	position: absolute;
	left: 16px; right: 16px; bottom: 16px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	background: var(--h-dark);
	border-top: 4px solid var(--h-orange);
	border-radius: var(--h-radius);
	color: #fff;
	text-align: center;
}
.tm-home .tm-story__stats li { padding: 14px 6px; }
.tm-home .tm-story__stats li + li { border-left: 1px solid rgba(255,255,255,.12); }
.tm-home .tm-story__stats strong { display: block; font-family: var(--h-head-font); font-size: clamp(24px, 2.6vw, 34px); line-height: 1; color: var(--h-orange); }
.tm-home .tm-story__stats span { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.tm-home .tm-story__title {
	margin: 0 0 18px;
	font-family: var(--h-head-font);
	font-size: clamp(28px, 3.4vw, 44px);
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1;
	color: var(--h-dark);
	
}
.tm-home .tm-story__title span { /* color: var(--h-orange-text-lg); */ color: var(--h-orange); }
.tm-home .tm-story .tm-promo__eyebrow { /* color: var(--h-orange-text-lg); */ color: var(--h-orange); }
.tm-home .tm-story__body p { font-size: 15px; line-height: 1.7; color: var(--h-text); }
.tm-home .tm-story__body .tm-promo__actions { margin-top: 24px; }

/* ---------- 6. Product sliders (Featured Bikes / Parts & Accessories) ---------- */
.tm-home .tm-slider { --per-view: 4; }
.tm-home .tm-slider__nav { display: flex; align-items: center; gap: 8px; }
.tm-home .tm-slider__nav .tm-section__more { margin-right: 8px; }
.tm-home .tm-slider__btn {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 2px solid var(--h-dark);
	border-radius: 50%;
	background: #fff;
	color: var(--h-dark);
	font-size: 20px;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.tm-home .tm-slider__btn:hover:not(:disabled) { background: var(--h-orange); border-color: var(--h-orange); }
.tm-home .tm-slider__btn:focus-visible { outline: 3px solid var(--h-orange); outline-offset: 2px; }
.tm-home .tm-slider__btn:disabled { opacity: .3; cursor: default; }
.tm-home .tm-slider.is-static .tm-slider__btn,
.tm-home .tm-slider.is-static .tm-slider__bar { display: none; }

.tm-home .tm-slider__track {
	display: flex;
	gap: var(--h-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding: 4px 2px 8px;
	margin: -4px -2px 0;
}
.tm-home .tm-slider__track::-webkit-scrollbar { display: none; }
.tm-home .tm-slider__track:focus-visible { outline: 3px solid var(--h-orange); outline-offset: 4px; }
.tm-home .tm-slider__track > .tm-product {
	flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--h-gap)) / var(--per-view));
	min-width: 0;
	scroll-snap-align: start;
}

/* Hide photo-less products straight away (before the script removes them) */
.tm-home [data-hide-no-image] > .tm-product:has(img[src*="default_product"]) { display: none; }

.tm-home .tm-slider__bar {
	position: relative;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: var(--h-line);
	overflow: hidden;
}
.tm-home .tm-slider__bar span {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: 25%;
	border-radius: 2px;
	background: var(--h-orange);
	transition: transform .15s linear;
}

@media (max-width: 991.98px) {
	.tm-home .tm-slider { --per-view: 3; }
}
@media (max-width: 767.98px) {
	/* 2 cards plus a peek of the next one, edge-to-edge swipe */
	.tm-home .tm-slider { --per-view: 2.3; }
	.tm-home .tm-slider__track { margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px; scroll-padding-left: 15px; }
	.tm-home .tm-slider__btn { display: none; }
	.tm-home .tm-slider__nav .tm-section__more { margin-right: 0; }
}
@media (max-width: 400px) {
	.tm-home .tm-slider { --per-view: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
	.tm-home .tm-slider__track { scroll-behavior: auto; }
}

/* ---------- Performance: skip rendering below-the-fold sections until needed ---------- */
.tm-home .tm-cv {
	content-visibility: auto;
	contain-intrinsic-size: auto 640px;
}

/* ---------- Windows high-contrast / forced colours ---------- */
@media (forced-colors: active) {
	.tm-home .tm-hero__dots > button::before { background: ButtonText; forced-color-adjust: none; }
	.tm-home .tm-hero__dots > button.active::before { background: Highlight; }
	.tm-home .tm-slider__btn,
	.tm-home .tm-hero__arrow,
	.tm-home .tm-btn { border: 2px solid ButtonText; }
	.tm-home .tm-tile::before { display: none; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1199.98px) {
	.tm-home .tm-brands { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 991.98px) {
	.tm-home .tm-hot__grid { grid-template-columns: repeat(2, 1fr); }
	.tm-home .tm-promos { grid-template-columns: 1fr; }
	.tm-home .tm-story__grid { grid-template-columns: 1fr; }
	.tm-home .tm-story__media > img { aspect-ratio: 16 / 9; }
	.tm-home .tm-brands { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 767.98px) {
	/* Horizontal swipe rows on phones */
	.tm-home .tm-scroll-sm {
		display: grid;
		grid-auto-flow: column;
		grid-template-columns: none;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-left: 15px;
		margin-left: -15px; margin-right: -15px;
		padding: 0 15px 10px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.tm-home .tm-scroll-sm::-webkit-scrollbar { display: none; }
	.tm-home .tm-scroll-sm > * { scroll-snap-align: start; }

	.tm-home .tm-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
	.tm-home .tm-bento__item:nth-child(n) { grid-column: span 1; grid-row: auto; min-height: 160px; }
	.tm-home .tm-bento__item:nth-child(1) { grid-column: span 2; min-height: 220px; }
	.tm-home .tm-bento__item:nth-child(4),
	.tm-home .tm-bento__item:nth-child(5) { min-height: 120px; }
	.tm-home .tm-tile { padding: 14px; }
	.tm-home .tm-tile__go { width: 34px; height: 34px; font-size: 17px; right: 10px; bottom: 10px; }

	.tm-home .tm-section__more { font-size: 12px; }
	.tm-home .tm-section__title { font-size: 21px; }
	.tm-home .tm-brands { grid-template-columns: repeat(3, 1fr); }
	.tm-home .tm-brands__item { height: 68px; padding: 10px 12px; }
}

@media (max-width: 575.98px) {
	.tm-home .tm-hot__media { padding: 8px; }
	.tm-home .tm-hot__body { padding: 10px 12px 12px; }
	.tm-home .tm-hot__name { font-size: 15px; }
	.tm-home .tm-hot__link { font-size: 11px; }
	.tm-home .tm-story__media > img { aspect-ratio: 4 / 3; }
	.tm-home .tm-story__stats { margin-top: -24px; margin-left: 12px; margin-right: 12px; }
	.tm-home .tm-promo__actions .tm-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.tm-home *,
	.tm-home *::before,
	.tm-home *::after { transition: none !important; animation: none !important; }
}
