/* === Theme (your colors + classic contrast) === */
:root {
	/* Page background + text */
	--bg: #f2f5f9;
	--text: #1f2937; /* dark slate for contrast */

	/* Cards */
	--card: #ffffff;

	/* Buttons — your colors */
	--btn-bg: #3e1e68; /* ALL buttons background */
	--btn-hov: #5d2f77; /* hover */
	--btn-text: #ffffff; /* readable on btn-bg/hover */

	/* Accent areas (e.g., footer) */
	--accent: #5682b1; /* section/page color */
	--accent-text: #ffffff; /* white text for contrast */

	/* Shadows & focus ring */
	--ring: rgba(62, 30, 104, 0.35);
	--shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

html,
body {
	height: 100%;
}
body {
	font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
	background: var(--bg);
	color: var(--text);
}

/* Accessibility */
.skip-link {
	position: absolute;
	left: 8px;
	top: -40px;
	background: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	box-shadow: var(--shadow);
	transition: top 0.2s ease;
	z-index: 9999;
}
.skip-link:focus {
	top: 8px;
}

/* Header */
.site-title {
	font-size: 1.65rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
}
.site-subtitle {
	font-size: 0.9rem;
	color: #475569;
	margin-top: 0.25rem;
}

/* Header download link (icon + text) */
.header-download {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #3e1e68; /* match your palette */
	font-weight: 700;
	text-decoration: none;
	padding: 0.35rem 0.5rem;
	border-radius: 0.375rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.header-download:hover {
	color: #5d2f77; /* hover color */
	background: rgba(62, 30, 104, 0.06);
}
.header-download__icon {
	display: block;
}
.header-download__text {
	font-size: 0.95rem; /* medium text */
	line-height: 1;
}

/* Sections */
.section {
	margin-bottom: 3.25rem;
}
.section-header {
	text-align: center;
	margin-bottom: 1.6rem;
}
.section-title {
	font-size: clamp(1.35rem, 2.2vw, 1.85rem);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.2px;
}
.section-subtitle {
	color: #64748b;
	margin-top: 0.35rem;
	font-size: 0.95rem;
}

/* Cards (unified for A/B/C) */
.card {
	background: var(--card);
	border-radius: 0.75rem;
	box-shadow: var(--shadow);
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
}
.card-header {
	padding: 0.85rem 1rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #ffffff, #fafbff);
}
.card-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #1e293b;
	letter-spacing: 0.2px;
}
.card-body {
	padding: 1.1rem;
	display: grid;
	gap: 0.55rem;
}

/* Buttons — ALL buttons use your color; size variants */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	font-weight: 700;
	border-radius: 0.5rem;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	outline: none;
	border: 1px solid transparent;
	cursor: pointer;
	background: var(--btn-bg);
	color: var(--btn-text);
	text-decoration: none;
}
.btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	background: var(--btn-hov);
}
.btn:focus {
	box-shadow: 0 0 0 0.25rem var(--ring);
}

/* Sizes */
.btn--md {
	padding: 0.6rem 0.9rem; /* medium */
	font-size: 0.95rem;
}
.btn--sm {
	padding: 0.48rem 0.75rem; /* small */
	font-size: 0.875rem;
}

/* Live TV layout — always centered, any number of buttons */
.live-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* centers each row */
	gap: 12px;
}
.live-grid .btn {
	flex: 0 1 220px; /* ~4 per row at typical widths */
}

/* Footer with accent color and readable text */
.accent-bg {
	background: var(--accent);
	color: var(--accent-text);
}

/* Modal */
.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: grid;
	grid-template-rows: 1fr;
	place-items: center;
}
.modal[aria-hidden="true"] .modal-backdrop,
.modal[aria-hidden="true"] .modal-panel {
	opacity: 0;
	pointer-events: none;
	transform: translateY(8px) scale(0.98);
}
.modal[aria-hidden="false"] .modal-backdrop,
.modal[aria-hidden="false"] .modal-panel {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0) scale(1);
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	transition: opacity 0.25s ease;
}

.modal-panel {
	position: relative;
	width: min(640px, calc(100% - 2rem));
	margin: 1rem;
	background: #fff;
	border-radius: 0.75rem;
	box-shadow: var(--shadow-lg);
	border: 1px solid rgba(15, 23, 42, 0.08);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.modal-title {
	font-size: 1.05rem;
	font-weight: 800;
	color: #0f172a;
}
.modal-close {
	font-size: 1.5rem;
	line-height: 1;
	background: transparent;
	border: none;
	color: #64748b;
	cursor: pointer;
	border-radius: 0.375rem;
	padding: 0.25rem 0.5rem;
}
.modal-close:hover {
	color: #0f172a;
	background: #f3f4f6;
}

.modal-body {
	padding: 1rem 1.25rem;
	color: #334155;
	font-size: 0.95rem;
}
.modal-footer {
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* Live Text */
.live-tv {
	display: block;
	color: #3e1e68;
	font-weight: 700;
	text-decoration: none;
	font-size: 20px;
	text-align: center;
}

/* Extra */
.btn-hide,
.modal-hide {
	display: none !important;
}
