/**
 * Auto Match Publisher — hub & match HTML blocks (theme-agnostic baseline).
 */

.amp-container,
.amp-hub-wrap .amp-hub-page {
	max-width: 52rem;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.25rem 2.5rem;
}

.amp-hub-wrap {
	padding: 0.5rem 0 2rem;
}

.amp-hub-page .amp-title,
.amp-hub-page h1 {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
	line-height: 1.25;
	margin: 0 0 0.5rem;
	font-weight: 700;
}

.amp-hub-page .amp-meta,
.amp-meta {
	color: #555;
	font-size: 0.9rem;
	margin: 0 0 1rem;
}

.amp-hub-page .amp-intro,
.amp-intro {
	font-size: 1.05rem;
	line-height: 1.55;
	margin: 0 0 1rem;
}

.amp-hub-explainer {
	font-size: 0.98rem;
	line-height: 1.55;
	color: #333;
	margin: 0 0 1.25rem;
	padding: 0.75rem 1rem;
	background: #f6f8fa;
	border-radius: 8px;
	border-left: 4px solid #0d9488;
}

.amp-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 1rem 1.15rem;
	margin: 0 0 1rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.amp-card h2 {
	font-size: 1.1rem;
	margin: 0 0 0.65rem;
	font-weight: 600;
}

.amp-card ul {
	margin: 0;
	padding-left: 1.25rem;
}

.amp-card li {
	margin-bottom: 0.35rem;
	line-height: 1.45;
}

.amp-card a {
	color: #0d9488;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.amp-card a:hover {
	color: #0f766e;
}

.amp-highlight {
	border-color: #99f6e4;
	background: linear-gradient(180deg, #f0fdfa 0%, #fff 40%);
}

.amp-home-hub-wrap .amp-card,
.amp-home-hubs__today {
	margin-top: 1rem;
}

.amp-home-hubs {
	display: grid;
	gap: 1.25rem;
	margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
	.amp-home-hubs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.amp-home-hubs__title {
	font-size: 1.05rem;
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.amp-home-hubs__list {
	margin: 0;
	padding-left: 1.2rem;
}

.amp-hub-faq {
	margin: 1.5rem 0 0;
	padding: 1rem 1.15rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fafafa;
}

.amp-hub-faq h2 {
	font-size: 1.1rem;
	margin: 0 0 0.75rem;
}

.amp-hub-faq-q {
	font-size: 1rem;
	font-weight: 600;
	margin: 0.75rem 0 0.25rem;
}

.amp-hub-faq-a {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #374151;
}

.amp-popular-leagues a {
	font-weight: 500;
}

/* Match page blocks (when theme does not style .amp-container) */
.amp-container .amp-breadcrumb {
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.amp-container .amp-breadcrumb a {
	color: #0d9488;
}

.amp-container .amp-title {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.amp-urgency {
	font-weight: 600;
	color: #b45309;
	margin: 0 0 1rem;
}

.amp-faq-visible {
	margin-top: 1.5rem;
	padding: 1rem 1.15rem;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.amp-faq-visible h2 {
	font-size: 1.1rem;
	margin: 0 0 0.5rem;
}

.amp-faq-q {
	font-size: 1rem;
	font-weight: 600;
	margin: 0.75rem 0 0.25rem;
}

.amp-faq-a {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.amp-btn {
	display: inline-block;
	margin-top: 0.35rem;
	padding: 0.5rem 1rem;
	background: #0d9488;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 8px;
	font-weight: 600;
}

.amp-btn:hover {
	background: #0f766e;
	color: #fff !important;
}

/* Live kickoff timers */
.amp-countdown--hero {
	margin: 0 0 1.25rem;
	padding: 1rem 1.15rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #f0fdfa 0%, #fff 55%, #ecfeff 100%);
	border: 1px solid #99f6e4;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.08);
}

.amp-countdown__label {
	margin: 0 0 0.65rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0f766e;
}

.amp-countdown__units {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.35rem 0.25rem;
	font-variant-numeric: tabular-nums;
}

.amp-countdown__unit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	min-width: 2.6rem;
	padding: 0.45rem 0.4rem;
	background: #fff;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

.amp-countdown__num {
	font-size: clamp(1.25rem, 3.5vw, 1.65rem);
	font-weight: 700;
	line-height: 1.1;
	color: #134e4a;
}

.amp-countdown__unitlab {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin-top: 0.15rem;
}

.amp-countdown__sep {
	font-size: 1.35rem;
	font-weight: 300;
	color: #9ca3af;
	padding: 0 0.1rem 0.35rem;
	line-height: 1;
}

.amp-countdown__live {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: #0d9488;
}

.amp-countdown__pulse {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: #ef4444;
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
	animation: amp-pulse 1.6s ease-out infinite;
}

@keyframes amp-pulse {
	0% {
		transform: scale(1);
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.45);
	}
	70% {
		transform: scale(1.15);
		opacity: 0.85;
		box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
	}
	100% {
		transform: scale(1);
		opacity: 1;
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
}

.amp-countdown__ended {
	font-size: 0.98rem;
	font-weight: 600;
	color: #6b7280;
}

.amp-kickoff-timer--inline {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.1rem 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: #0f766e;
	background: #ecfdf5;
	border-radius: 6px;
	border: 1px solid #a7f3d0;
	vertical-align: middle;
	white-space: nowrap;
}

.amp-kickoff-timer--inline.amp-kickoff-timer--ended {
	color: #9ca3af;
	background: #f9fafb;
	border-color: #e5e7eb;
	font-weight: 500;
}

.amp-stream-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.amp-stream-buttons .amp-btn {
	margin-top: 0;
}

/* Hide preview featured images on generated AMP pages */
.amp-hub-body .post-thumbnail,
.amp-hub-body .featured-image,
.amp-hub-body .wp-post-image,
.amp-match-body .post-thumbnail,
.amp-match-body .featured-image,
.amp-match-body .wp-post-image {
	display: none !important;
}

/* Hide old static urgency text on already-generated content. */
.amp-match-body .amp-urgency {
	display: none !important;
}

/* Theme-level spacing reset for generated match/hub pages */
.amp-match-body .site-main,
.amp-match-body .content-area,
.amp-match-body article,
.amp-match-body .entry-header,
.amp-match-body .entry-content,
.amp-hub-body .site-main,
.amp-hub-body .content-area,
.amp-hub-body article,
.amp-hub-body .entry-header,
.amp-hub-body .entry-content {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

/* Collapse hero/featured wrappers even when image is missing */
.amp-match-body .post-thumbnail,
.amp-match-body .featured-image,
.amp-match-body .featured-media,
.amp-match-body .entry-media,
.amp-match-body .single-post-thumbnail,
.amp-match-body .hero-image,
.amp-match-body .wp-block-post-featured-image,
.amp-hub-body .post-thumbnail,
.amp-hub-body .featured-image,
.amp-hub-body .featured-media,
.amp-hub-body .entry-media,
.amp-hub-body .single-post-thumbnail,
.amp-hub-body .hero-image,
.amp-hub-body .wp-block-post-featured-image {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Kadence-specific wrappers found above generated AMP content */
.amp-match-body figure.wp-block-kadence-image,
.amp-match-body .kb-image-is-ratio-size,
.amp-match-body .kb-is-ratio-image,
.amp-match-body .kb-image-ratio-land32,
.amp-match-body .kb-row-layout-wrap .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-advancedheading,
.amp-match-body .kb-row-layout-wrap .wp-block-kadence-column > .kt-inside-inner-col > .wp-block-kadence-column {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Remove top blank area before first visible AMP block */
.amp-match-body .entry-content.element-single-replace.single-content > .kb-row-layout-wrap,
.amp-match-body .content-wrap,
.amp-match-body #main.site-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}
