/**
 * upcomer/offer-teaser-grid — compact featured-offer cards.
 *
 * Shares the "offer" design system with ranked-offer-list and
 * offer-review-spotlight: contained logo tile, rating chip, bonus hero, single
 * gold CTA, sharp corners. The accent is the theme's chip-tertiary brand gold.
 *
 * Column count flows from columns_desktop via the inline `--otg-columns`
 * custom property on the <section>.
 */

.upcomer-block--offer-teaser-grid {
	--card: #FEFEFE;
	--inset: color-mix(in srgb, currentColor 4%, transparent);
	--line: color-mix(in srgb, currentColor 12%, transparent);
	--line-2: color-mix(in srgb, currentColor 7%, transparent);
	--ink-3: color-mix(in srgb, currentColor 52%, transparent);

	--accent: var(--wp--custom--chip--tertiary--enabled--color-fg--minimal, #A58C52);
	--on-accent: #171717;

	--logo-bg: var(--inset);
	--otg-columns: 4;
	--otg-grid-gap: clamp(0.875rem, 1.6vw, 1.25rem);

	color: #171717;
	padding-inline: clamp(1rem, 3vw, 1.5rem);
	box-sizing: border-box;
}

.upcomer-block--offer-teaser-grid *,
.upcomer-block--offer-teaser-grid *::before,
.upcomer-block--offer-teaser-grid *::after {
	box-sizing: border-box;
}

.upcomer-block--offer-teaser-grid .upcomer-block__inner {
	max-width: calc(1px * var(--wp--custom--top-nav--primary-container-spacing--desktop--max-width, 1200));
	margin-inline: auto;
}

@media (max-width: 1247px) {
	.upcomer-block--offer-teaser-grid .upcomer-block__inner {
		max-width: calc(1px * var(--wp--custom--top-nav--primary-container-spacing--laptop--max-width, 1200));
	}
}

@media (max-width: 943px) {
	.upcomer-block--offer-teaser-grid .upcomer-block__inner {
		max-width: unset;
	}
}

/* ---- Header / section eyebrow ---------------------------------------- */

.teaser-grid__header {
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.upcomer-block--offer-teaser-grid .section-eyebrow {
	position: relative;
	margin: 0;
	padding-bottom: clamp(0.75rem, 1.5vw, 1rem);
	color: var(--ink-3);
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 700;
	font-size: clamp(0.75rem, 1.1vw, 0.875rem);
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.upcomer-block--offer-teaser-grid .section-eyebrow::after {
	content: "";
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--line);
}

/* ---- Grid ------------------------------------------------------------ */

.teaser-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--otg-grid-gap);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) and (max-width: 900px) {
	.teaser-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 901px) {
	.teaser-grid {
		grid-template-columns: repeat(var(--otg-columns), minmax(0, 1fr));
	}
}

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

.teaser {
	background: var(--card);
	border: 1px solid var(--line);
	box-shadow: 0 1px 2px rgba(23, 23, 23, 0.05), 0 8px 24px rgba(23, 23, 23, 0.06);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	padding: clamp(1.3rem, 2.8vw, 1.7rem) clamp(1rem, 2.4vw, 1.5rem) clamp(1.25rem, 2.4vw, 1.5rem);
	overflow: hidden;
	transition: transform 180ms cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 180ms ease;
}

.teaser:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(23, 23, 23, 0.06), 0 16px 34px rgba(23, 23, 23, 0.12);
}

@media (prefers-reduced-motion: reduce) {
	.teaser,
	.teaser:hover {
		transition: none;
		transform: none;
	}
}

/* ---- Logo (sharp, contained) ----------------------------------------- */

.teaser__logo {
	width: 4.75rem;
	height: 4.75rem;
	flex: none;
	display: grid;
	place-items: center;
	background: var(--logo-bg);
	overflow: hidden;
}

.teaser__logo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---- Name + rating --------------------------------------------------- */

.teaser__name {
	margin: 0.15rem 0 0;
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.05;
	color: inherit;
}

.upcomer-block--offer-teaser-grid .o-rating {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
}

.upcomer-block--offer-teaser-grid .o-rating__star {
	width: 0.9rem;
	height: 0.9rem;
	color: var(--accent);
	flex: none;
}

.upcomer-block--offer-teaser-grid .o-rating b {
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1;
	color: inherit;
	font-variant-numeric: tabular-nums;
}

.upcomer-block--offer-teaser-grid .o-rating span {
	font-family: "Barlow", sans-serif;
	font-weight: 600;
	font-size: 0.72rem;
	color: var(--ink-3);
}

/* ---- Bonus hero ------------------------------------------------------ */

.upcomer-block--offer-teaser-grid .o-bonus {
	display: block;
	text-align: center;
	margin-top: 0.2rem;
}

.upcomer-block--offer-teaser-grid .o-eyebrow {
	margin: 0 0 0.18rem;
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.66rem;
	color: var(--ink-3);
}

.upcomer-block--offer-teaser-grid .o-bonus__v {
	display: block;
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 700;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	letter-spacing: -0.005em;
	line-height: 1.15;
	color: inherit;
}

/* ---- CTA ------------------------------------------------------------- */

.teaser__cta-wrap {
	margin-top: auto;
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

/* Shared gold CTA — lock ink foreground across every link state so reboot.css
   can't win at specificity. */
.upcomer-block--offer-teaser-grid .o-cta,
.upcomer-block--offer-teaser-grid .o-cta:link,
.upcomer-block--offer-teaser-grid .o-cta:visited,
.upcomer-block--offer-teaser-grid .o-cta:hover,
.upcomer-block--offer-teaser-grid .o-cta:focus,
.upcomer-block--offer-teaser-grid .o-cta:focus-visible,
.upcomer-block--offer-teaser-grid .o-cta:active {
	color: var(--on-accent);
	text-decoration: none;
}

.upcomer-block--offer-teaser-grid .o-cta {
	width: 100%;
	margin-top: 0.7rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	background: var(--accent);
	font-family: "Barlow Condensed", "Barlow", sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1rem;
	line-height: 1;
	padding: 0.85rem 1.35rem;
	min-height: 2.9rem;
	border: none;
	cursor: pointer;
	transition: background-color 160ms ease, transform 100ms ease;
}

.upcomer-block--offer-teaser-grid .o-cta:hover {
	background: color-mix(in srgb, var(--accent) 82%, #000);
}

.upcomer-block--offer-teaser-grid .o-cta:focus-visible {
	background: color-mix(in srgb, var(--accent) 82%, #000);
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.upcomer-block--offer-teaser-grid .o-cta:active {
	transform: translateY(1px);
}

.upcomer-block--offer-teaser-grid .o-fine {
	margin: 0.5rem 0 0;
	font-family: "Barlow", sans-serif;
	font-size: 0.66rem;
	color: var(--ink-3);
	letter-spacing: 0.02em;
	text-align: center;
}

/* Responsible-gambling disclaimer (Admin CP → Global Content; per-block override). */
.upcomer-offer-disclaimer {
	margin: 1.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid currentColor;
	font-family: "Barlow", sans-serif;
	font-size: 0.72rem;
	line-height: 1.5;
	letter-spacing: 0.02em;
	text-align: center;
	opacity: 0.55;
}
