/*
 * Site chrome: header, hero, containers, offer bar, footer, demo modal.
 * Brutalist sport-tabloid: hard borders, hazard stripes, hard shadows.
 */

.tm-container {
	max-width: var(--tm-container);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.tm-container-page {
	max-width: var(--tm-content);
	margin-inline: auto;
	padding-inline: clamp(1.1rem, 4vw, 2rem);
	padding-block: 0.5rem 3rem;
	overflow-x: clip;
}

.tm-container-page--narrow {
	max-width: var(--tm-narrow);
}

.skip-link {
	position: absolute;
	left: -9999px;
}

.skip-link:focus {
	left: 1rem;
	top: 1rem;
	z-index: 200;
	background: var(--tm-card);
	padding: 0.5rem 1rem;
}

/* Hazard tape utility. */
.tm-tape {
	height: 10px;
	background: repeating-linear-gradient(-45deg, var(--tm-accent) 0 14px, var(--tm-ink) 14px 28px);
}

/* --- Header --- */

.tm-header {
	background: var(--tm-chrome);
	color: var(--tm-chrome-text);
	border-bottom: 4px solid var(--tm-accent);
}

.tm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 66px;
	padding-block: 0.5rem;
}

.tm-header__brand .custom-logo {
	display: block;
	max-height: 42px;
	max-width: 220px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.tm-header__name {
	font-family: var(--tm-font-display);
	font-size: 1.15rem;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

.tm-nav {
	overflow-x: auto;
	scrollbar-width: none;
	padding: 4px;
	margin: -4px;
}

.tm-menu {
	display: flex;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

/* Menu chips: visible in the DEFAULT state on any chrome color. */
.tm-menu a {
	display: inline-block;
	padding: 0.35em 0.9em;
	color: inherit;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border: 2px solid rgba(128, 128, 128, 0.55);
	transition: border-color 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

@supports (color: color-mix(in oklab, #000, #fff)) {
	.tm-menu a {
		border-color: color-mix(in oklab, currentColor 45%, transparent);
	}
}

.tm-menu a:hover {
	border-color: var(--tm-accent);
}

.tm-menu .current-menu-item > a,
.tm-menu .current_page_item > a {
	background: var(--tm-accent);
	border-color: var(--tm-accent);
	color: var(--tm-on-accent);
}

.tm-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.tm-search-toggle {
	display: grid;
	place-items: center;
	width: 2.3rem;
	height: 2.3rem;
	border: 2px solid rgba(128, 128, 128, 0.55);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.tm-btn--login {
	padding: 0.45em 1.1em;
	font-size: 0.92rem;
}

.tm-burger {
	display: none;
	flex-direction: column;
	gap: 4px;
	background: transparent;
	border: 0;
	padding: 6px;
	cursor: pointer;
}

.tm-burger span {
	width: 22px;
	height: 3px;
	background: currentColor;
	color: inherit;
}

@media (max-width: 880px) {
	.tm-burger {
		display: flex;
	}

	.tm-header {
		position: relative;
	}

	.tm-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--tm-chrome);
		border-bottom: 4px solid var(--tm-accent);
		padding: 0.75rem clamp(1.1rem, 4vw, 2rem) 1rem;
		z-index: 90;
	}

	.tm-nav.is-open {
		display: block;
	}

	.tm-menu {
		flex-direction: column;
		white-space: normal;
	}
}

/* --- Search modal --- */

.tm-search {
	position: fixed;
	inset: 0;
	z-index: 120;
	display: grid;
	place-items: start center;
	padding: 15vh 1rem 0;
}

.tm-search[hidden] {
	display: none;
}

.tm-search__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, 0.6);
}

.tm-search__dialog {
	position: relative;
	width: 100%;
	max-width: 34rem;
	background: var(--tm-card);
	border: var(--tm-border-w) solid var(--tm-line);
	box-shadow: var(--tm-shadow);
	padding: 1.25rem 1.5rem;
}

.tm-search__dialog form {
	display: flex;
	gap: 0.6rem;
}

.tm-search__dialog input[type='search'] {
	flex: 1;
	border: var(--tm-border-w) solid var(--tm-line);
	border-radius: 0;
	padding: 0.6em 0.9em;
	font: inherit;
}

.tm-search__close {
	position: absolute;
	top: 0.35rem;
	right: 0.5rem;
	border: 0;
	background: transparent;
	font-size: 1.35rem;
	cursor: pointer;
	color: var(--tm-muted);
}

/* --- Hero --- */

.tm-hero {
	background: var(--tm-bg);
	border-bottom: var(--tm-border-w) solid var(--tm-line);
	position: relative;
}

/* Hazard strip pinned under the hero. */
.tm-hero::after {
	content: '';
	display: block;
	height: 10px;
	background: repeating-linear-gradient(-45deg, var(--tm-accent) 0 14px, var(--tm-ink) 14px 28px);
}

.tm-hero--image {
	background-size: cover;
	background-position: center;
}

.tm-hero--image::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, 0.62);
}

.tm-hero--image .tm-hero__inner {
	position: relative;
	color: #fff;
}

.tm-hero__inner {
	padding-block: clamp(2.2rem, 6vw, 3.8rem);
}

.tm-hero__kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.3em 0.75em;
	background: var(--tm-ink);
	color: var(--tm-accent);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Marquee opt-in: fade ONLY when the kicker actually scrolls. */
.tm-hero__kicker.tm-marquee,
.tm-hero__kicker:has(.tm-marquee) {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tm-hero__title {
	margin: 0 0 0.6rem;
	max-width: 22ch;
	font-size: clamp(2rem, 5.5vw, 3.4rem);
}

.tm-hero__lead {
	margin: 0 0 1.75rem;
	max-width: 56ch;
	font-size: 1.12rem;
	color: var(--tm-muted);
}

.tm-hero--image .tm-hero__lead {
	color: rgba(255, 255, 255, 0.88);
}

/* CTA cards: black plates, accent icon chip, hard shadow. */
.tm-hero__cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.tm-card-cta {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	min-width: 15rem;
	background: var(--tm-chrome);
	color: var(--tm-chrome-text);
	text-decoration: none;
	border: var(--tm-border-w) solid var(--tm-line);
	padding: 0.85rem 1.05rem;
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.tm-card-cta:hover {
	transform: translate(-3px, -3px);
	box-shadow: var(--tm-shadow);
	color: var(--tm-chrome-text);
}

.tm-card-cta__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	flex: none;
	background: var(--tm-accent);
	color: var(--tm-on-accent);
	border: 2px solid var(--tm-line);
}

.tm-card-cta__text {
	flex: 1;
}

.tm-card-cta__arrow {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	background: transparent;
	color: var(--tm-accent);
	border: 2px solid var(--tm-accent);
	font-size: 1.1rem;
}

.tm-card-cta--alt {
	background: var(--tm-card);
	color: var(--tm-ink);
}

.tm-card-cta--alt:hover {
	color: var(--tm-ink);
}

.tm-card-cta--alt .tm-card-cta__icon {
	background: var(--tm-ink);
	color: var(--tm-accent);
}

.tm-card-cta--alt .tm-card-cta__arrow {
	color: var(--tm-ink);
	border-color: var(--tm-ink);
}

/* Trust pages: compact hero. */
.tm-trust .tm-hero__inner {
	padding-block: clamp(1.5rem, 4vw, 2.4rem);
}

.tm-trust .tm-hero__title {
	font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.tm-trust .tm-card-cta {
	min-width: 0;
	padding: 0.5rem 0.85rem;
	font-size: 0.92rem;
}

.tm-trust .tm-card-cta__icon {
	width: 32px;
	height: 32px;
}

.tm-trust .tm-card-cta__arrow {
	width: 28px;
	height: 28px;
	font-size: 0.95rem;
}

/* --- Breadcrumbs --- */

.breadcrumbs {
	margin: 1.2rem 0 1.7rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tm-muted);
}

.breadcrumbs a {
	color: var(--tm-link);
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

.breadcrumbs span[aria-hidden] {
	margin-inline: 0.4em;
}

/* --- Sticky offer bar --- */

.tm-catfish {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 80;
	background: var(--tm-chrome);
	color: var(--tm-chrome-text);
	border-top: 6px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--tm-accent) 0 14px, var(--tm-ink) 14px 28px) 6;
	box-shadow: 0 -8px 26px rgba(19, 19, 19, 0.35);
}

.tm-catfish[hidden] {
	display: none;
}

.tm-catfish__inner {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1.5rem);
	padding-block: 0.55rem;
}

.tm-catfish__logo {
	max-height: 34px;
	width: auto;
	flex: none;
}

.tm-catfish__rating {
	flex: none;
	font-weight: 700;
}

.tm-catfish__rating span[aria-hidden] {
	color: var(--tm-accent);
}

.tm-catfish__bonus {
	margin: 0;
	flex: 1;
	min-width: 0;
	text-align: center;
	font-size: 1.02rem;
}

.tm-catfish__cta {
	flex: none;
	white-space: nowrap;
}

.tm-catfish__close {
	flex: none;
	width: 1.8rem;
	height: 1.8rem;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: 0.65;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.tm-catfish__close:hover {
	opacity: 1;
}

body.tm-has-catfish {
	padding-bottom: 4.5rem;
}

@media (max-width: 640px) {
	.tm-catfish__inner {
		flex-wrap: wrap;
		gap: 0.45rem 0.8rem;
		padding-block: 0.5rem;
	}

	.tm-catfish__close {
		order: 1;
		margin-left: auto;
	}

	.tm-catfish__bonus {
		order: 2;
		flex-basis: 100%;
		font-size: 0.9rem;
	}

	.tm-catfish__cta {
		order: 3;
		flex-basis: 100%;
		text-align: center;
	}

	body.tm-has-catfish {
		padding-bottom: 9rem;
	}
}

/* --- Demo modal --- */

.tm-demo-modal {
	position: fixed;
	inset: 0;
	z-index: 130;
	display: grid;
	place-items: center;
	padding: 1.25rem;
}

.tm-demo-modal[hidden] {
	display: none;
}

.tm-demo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 19, 19, 0.75);
}

.tm-demo-modal__dialog {
	position: relative;
	width: min(100%, 960px);
	background: var(--tm-chrome);
	border: var(--tm-border-w) solid var(--tm-line);
	box-shadow: var(--tm-shadow);
	padding: 0.75rem;
}

.tm-demo-modal__frame {
	aspect-ratio: 16 / 9;
	background: #000;
}

.tm-demo-modal__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.tm-demo-modal__close {
	position: absolute;
	top: -1.1rem;
	right: -1.1rem;
	width: 2.2rem;
	height: 2.2rem;
	border: var(--tm-border-w) solid var(--tm-line);
	background: var(--tm-accent);
	color: var(--tm-on-accent);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

/* --- Footer --- */

.tm-footer {
	background: var(--tm-chrome);
	color: var(--tm-chrome-text);
	margin-top: 2.5rem;
	border-top: 6px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--tm-accent) 0 14px, var(--tm-ink) 14px 28px) 6;
}

.tm-footer__grid {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding-block: 2rem 1.5rem;
	text-align: center;
	font-size: 0.9rem;
}

.tm-footer__brand .custom-logo {
	max-height: 38px;
	width: auto;
	height: auto;
}

.tm-footer__disclaimer {
	max-width: 60rem;
	opacity: 0.82;
}

.tm-footer__disclaimer p:last-child {
	margin-bottom: 0;
}

.tm-menu--footer {
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.45rem;
	white-space: normal;
}

.tm-footer__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 1.4rem;
}

.tm-footer__badge-img {
	max-height: 36px;
	width: auto;
	opacity: 0.85;
}

.tm-badge-18 {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 3px solid var(--tm-accent);
	color: var(--tm-accent);
	font-weight: 700;
	font-size: 0.9rem;
}

.tm-footer__license,
.tm-footer__contacts {
	opacity: 0.7;
	font-size: 0.84rem;
	margin: 0;
}

.tm-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-block: 0.85rem;
	font-size: 0.82rem;
	opacity: 0.75;
	text-align: center;
}
