/* TMLC × amateurgolf.com — authority CTA module */

.tmlc-ag-cta {
	--ag-accent: #03c4eb;
	--ag-accent-dark: #0296b0;
	--ag-ink: #0e1a24;
	--ag-muted: #596573;
	--ag-live: #d64545;
	--ag-bg: #0b1620;
	--ag-card: #ffffff;
	--ag-card-sub: #f5f7f9;
	--ag-border: rgba(14, 26, 36, 0.08);

	padding: 64px 0 72px;
	background: linear-gradient(180deg, #ffffff 0%, #eef3f6 100%);
}

.tmlc-ag-cta .container {
	max-width: 1180px;
}

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

.tmlc-ag-card {
	position: relative;
	background: var(--ag-card);
	border-radius: 18px;
	box-shadow:
		0 30px 60px -30px rgba(14, 26, 36, 0.25),
		0 0 0 1px var(--ag-border);
	padding: 40px 44px 44px;
	overflow: hidden;
}

.tmlc-ag-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--ag-accent), #79e6f7 60%, var(--ag-accent));
	background-size: 200% 100%;
	animation: tmlc-ag-sheen 6s ease-in-out infinite;
}

@keyframes tmlc-ag-sheen {
	0%, 100% { background-position: 0% 50%; }
	50%      { background-position: 100% 50%; }
}

/* ---------- head ---------- */

.tmlc-ag-card__head { margin-bottom: 22px; }

.tmlc-ag-card__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(214, 69, 69, 0.08);
	color: var(--ag-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 16px;
}

.tmlc-ag-card__eyebrow strong {
	color: var(--ag-ink);
	font-weight: 800;
}

.tmlc-ag-eyebrow-sep { opacity: 0.4; }

.tmlc-ag-updated {
	font-weight: 600;
	color: var(--ag-muted);
	letter-spacing: 0.5px;
	text-transform: none;
	font-size: 11px;
}

.tmlc-ag-live-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ag-live);
	box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55);
	animation: tmlc-ag-pulse 1.8s ease-out infinite;
}

@keyframes tmlc-ag-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.55); }
	70%  { box-shadow: 0 0 0 10px rgba(214, 69, 69, 0); }
	100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.tmlc-ag-live-dot { animation: none; }
	.tmlc-ag-card::before { animation: none; }
}

.tmlc-ag-title {
	font-size: 34px;
	line-height: 1.12;
	letter-spacing: -0.015em;
	color: var(--ag-ink);
	margin: 0 0 14px;
	max-width: 820px;
}

.tmlc-ag-lede {
	font-size: 16px;
	line-height: 1.55;
	color: var(--ag-muted);
	margin: 0;
	max-width: 780px;
}

.tmlc-ag-lede a {
	color: var(--ag-accent-dark);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(2, 150, 176, 0.35);
	transition: color 150ms ease, border-color 150ms ease;
}

.tmlc-ag-lede a:hover {
	color: var(--ag-ink);
	border-bottom-color: currentColor;
}

.tmlc-ag-lede strong {
	color: var(--ag-ink);
	font-weight: 700;
}

/* ---------- ticker ---------- */

.tmlc-ag-ticker {
	position: relative;
	margin: 24px 0 28px;
	background: var(--ag-card-sub);
	border: 1px solid var(--ag-border);
	border-radius: 10px;
	overflow: hidden;
}

.tmlc-ag-ticker__rail {
	position: relative;
	height: 46px;
}

.tmlc-ag-ticker__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 420ms ease, transform 420ms ease;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tmlc-ag-ticker__item.is-active {
	opacity: 1;
	transform: translateY(0);
}

.tmlc-ag-ticker__tag {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.1px;
	text-transform: uppercase;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(3, 196, 235, 0.12);
	color: var(--ag-accent-dark);
	flex: 0 0 auto;
}

.tmlc-ag-ticker__text {
	font-weight: 700;
	color: var(--ag-ink);
	font-size: 14px;
	flex: 0 0 auto;
}

.tmlc-ag-ticker__sep {
	color: var(--ag-muted);
	opacity: 0.5;
	flex: 0 0 auto;
}

.tmlc-ag-ticker__meta {
	color: var(--ag-muted);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

/* ---------- stats ---------- */

.tmlc-ag-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--ag-border);
	border-bottom: 1px solid var(--ag-border);
	margin: 0 0 30px;
}

.tmlc-ag-stat {
	padding: 22px 14px;
	text-align: center;
	border-right: 1px solid var(--ag-border);
}

.tmlc-ag-stat:last-child { border-right: 0; }

.tmlc-ag-stat__value {
	font-size: 38px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ag-ink);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tmlc-ag-stat__label {
	margin-top: 8px;
	font-size: 12px;
	color: var(--ag-muted);
	font-weight: 600;
	letter-spacing: 0.2px;
}

/* ---------- pillars grid ---------- */

.tmlc-ag-pillars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 32px;
}

.tmlc-ag-pillar {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 18px 22px;
	background: var(--ag-card-sub);
	border: 1px solid var(--ag-border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--ag-ink);
	transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
	overflow: hidden;
}

.tmlc-ag-pillar::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 2px;
	background: var(--ag-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 250ms ease;
}

.tmlc-ag-pillar:hover,
.tmlc-ag-pillar:focus-visible {
	transform: translateY(-3px);
	background: #ffffff;
	border-color: rgba(3, 196, 235, 0.5);
	box-shadow: 0 18px 36px -22px rgba(14, 26, 36, 0.35);
	outline: none;
}

.tmlc-ag-pillar:hover::after,
.tmlc-ag-pillar:focus-visible::after {
	transform: scaleX(1);
}

.tmlc-ag-pillar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: #ffffff;
	border: 1px solid var(--ag-border);
	color: var(--ag-accent-dark);
	margin-bottom: 4px;
}

.tmlc-ag-pillar__icon svg { width: 20px; height: 20px; }

.tmlc-ag-pillar__label {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.005em;
}

.tmlc-ag-pillar__copy {
	font-size: 13px;
	line-height: 1.45;
	color: var(--ag-muted);
}

.tmlc-ag-pillar__arrow {
	position: absolute;
	top: 18px;
	right: 18px;
	color: var(--ag-muted);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 200ms ease, transform 200ms ease, color 200ms ease;
}

.tmlc-ag-pillar:hover .tmlc-ag-pillar__arrow,
.tmlc-ag-pillar:focus-visible .tmlc-ag-pillar__arrow {
	opacity: 1;
	transform: translateX(0);
	color: var(--ag-accent-dark);
}

/* ---------- actions ---------- */

.tmlc-ag-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

.tmlc-ag-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 26px;
	background: var(--ag-ink);
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	border-radius: 10px;
	text-decoration: none;
	box-shadow: 0 16px 30px -16px rgba(14, 26, 36, 0.55);
	transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.tmlc-ag-button:hover,
.tmlc-ag-button:focus-visible {
	transform: translateY(-2px);
	background: var(--ag-accent-dark);
	box-shadow: 0 22px 40px -16px rgba(2, 150, 176, 0.6);
	outline: none;
	color: #ffffff;
}

.tmlc-ag-button__arrow {
	display: inline-block;
	transition: transform 180ms ease;
}

.tmlc-ag-button:hover .tmlc-ag-button__arrow {
	transform: translateX(3px);
}

.tmlc-ag-fineprint {
	font-size: 12px;
	line-height: 1.5;
	color: var(--ag-muted);
	margin: 0;
	max-width: 520px;
	flex: 1 1 280px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
	.tmlc-ag-pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.tmlc-ag-cta { padding: 44px 0 52px; }

	.tmlc-ag-card {
		padding: 28px 20px 28px;
		border-radius: 14px;
	}

	.tmlc-ag-title { font-size: 24px; }
	.tmlc-ag-lede  { font-size: 14px; }

	.tmlc-ag-card__eyebrow {
		flex-wrap: wrap;
		font-size: 10px;
		padding: 5px 10px;
	}

	.tmlc-ag-ticker__rail { height: auto; min-height: 76px; }

	.tmlc-ag-ticker__item {
		flex-wrap: wrap;
		padding: 12px 14px;
		gap: 6px 10px;
		white-space: normal;
	}

	.tmlc-ag-ticker__sep { display: none; }
	.tmlc-ag-ticker__meta {
		flex-basis: 100%;
		font-size: 12px;
		white-space: normal;
	}

	.tmlc-ag-stats { grid-template-columns: 1fr; }
	.tmlc-ag-stat {
		border-right: 0;
		border-bottom: 1px solid var(--ag-border);
		padding: 16px 10px;
	}
	.tmlc-ag-stat:last-child { border-bottom: 0; }

	.tmlc-ag-stat__value { font-size: 30px; }

	.tmlc-ag-pillar { padding: 16px 14px 18px; }
	.tmlc-ag-pillar__arrow { opacity: 1; transform: translateX(0); }

	.tmlc-ag-button {
		width: 100%;
		justify-content: center;
		padding: 14px 20px;
	}

	.tmlc-ag-fineprint { font-size: 12px; }
}
