/**
 * Public radio schedule — [acaville_schedule] (2026-10-24; brand restyle the same day).
 *
 * Colours come from the site's own brand tokens (yootheme-child/css/acaville-custom.css:
 * --acv-navy, --acv-red, …) with fallbacks, so the schedule matches the rest of acaville.org.
 * The site is light-only, so there is deliberately NO dark-mode block here: the schedule has no
 * background of its own, and light text on the site's cream page was unreadable.
 *
 * ⚠ acaville-custom.css colours EVERY link teal with a high-specificity rule
 * (`a:not(.uk-button):not(...)…`), which beats ordinary selectors — so link colours below that
 * must hold (the filter pills, the CTA button) are marked !important.
 */

/* The page title ("Radio Schedule") sits in the site's hero: acaville-custom.css paints
   `main > .uk-section:first-child` with the navy→teal gradient, but the heading keeps the
   theme's dark heading colour. White on exactly the element that rule paints, so the two
   can never disagree. Loaded only where [acaville_schedule] is used. */
main > .uk-section:first-child h1,
main > .uk-section:first-child .uk-h1 {
	color: #fff !important;
}

.acaradio-sched {
	--sched-ink: var(--acv-text, #3d3a36);
	--sched-heading: var(--acv-heading, #2a2725);
	--sched-dim: var(--acv-text-light, #6b6560);
	--sched-line: var(--acv-warm-gray-dark, #e8e4df);
	--sched-navy: var(--acv-navy, #1d3557);
	--sched-teal: var(--acv-teal, #457b9d);
	--sched-red: var(--acv-red, #e63946);
	--sched-red-hover: var(--acv-red-hover, #c1121f);
	--sched-card: var(--acv-ivory, #fffdf9);

	color: var(--sched-ink);
	max-width: 48rem;
	margin: 0 auto;
	font-size: 0.95rem;
	line-height: 1.45;
}

.acaradio-sched-preview {
	border: 1px dashed var(--sched-teal);
	border-radius: 8px;
	padding: 0.6rem 0.8rem;
	color: var(--sched-dim);
}

/* ── channel filter ────────────────────────────────────────────────────── */

.acaradio-sched-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.5rem;
}
.acaradio-sched-filter a {
	border: 1px solid var(--sched-line);
	border-radius: 999px;
	padding: 0.3rem 0.9rem;
	background: var(--sched-card);
	color: var(--sched-ink) !important;
	text-decoration: none !important;
	font-size: 0.875rem;
	transition: border-color 0.15s, background-color 0.15s;
}
.acaradio-sched-filter a:hover,
.acaradio-sched-filter a:focus-visible {
	border-color: var(--sched-navy);
}
.acaradio-sched-filter a[aria-current="true"] {
	background: var(--sched-navy);
	border-color: var(--sched-navy);
	color: #fff !important;
	font-weight: 600;
}

/* ── days and shows ────────────────────────────────────────────────────── */

.acaradio-sched-day { margin: 0 0 1.75rem; }
.acaradio-sched-dayname {
	font-size: 1.25rem;
	margin: 0 0 0.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--sched-line);
	color: var(--sched-heading);
}
.acaradio-sched-day.is-today .acaradio-sched-dayname { border-bottom-color: var(--sched-red); }
.acaradio-sched-none { color: var(--sched-dim); margin: 0; }

.acaradio-sched-list { list-style: none; margin: 0; padding: 0; }
.acaradio-sched-item {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	gap: 0.75rem;
	padding: 0.65rem 0.6rem;
	border-radius: 8px;
}
.acaradio-sched-item + .acaradio-sched-item { border-top: 1px solid var(--sched-line); }
.acaradio-sched-item.is-on {
	background: var(--acv-red-light, rgba(230, 57, 70, 0.08));
	border-top-color: transparent;
}
.acaradio-sched-item.is-on + .acaradio-sched-item { border-top-color: transparent; }

.acaradio-sched-time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
	color: var(--sched-heading);
}
.acaradio-sched-local {
	display: block;
	font-weight: 400;
	font-size: 0.8rem;
	color: var(--sched-dim);
	white-space: normal;
}

.acaradio-sched-show { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.acaradio-sched-name { font-weight: 600; color: var(--sched-heading); }
.acaradio-sched-len { color: var(--sched-dim); font-size: 0.85rem; }
.acaradio-sched-badge {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px;
	padding: 0.05rem 0.4rem;
	border: 1px solid var(--sched-navy);
	color: var(--sched-navy);
}
.acaradio-sched-badge.is-on { background: var(--sched-red); border-color: var(--sched-red); color: #fff; }

.acaradio-sched-desc { margin: 0.2rem 0 0; }

.acaradio-sched-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.3rem 0.75rem;
	margin-top: 0.35rem;
	font-size: 0.825rem;
}
.acaradio-sched-chans { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.acaradio-sched-chan {
	border: 1px solid var(--sched-line);
	border-radius: 4px;
	padding: 0 0.4rem;
	background: var(--sched-card);
}
.acaradio-sched-chan.is-locked { color: var(--sched-dim); }
.acaradio-sched-chan.is-locked::before { content: "\1F512\FE0E"; margin-right: 0.2rem; font-size: 0.75em; }
.acaradio-sched-pod { font-weight: 600; }

.acaradio-sched-foot { color: var(--sched-dim); font-size: 0.875rem; text-align: center; }

/* ── membership call to action ─────────────────────────────────────────── */

.acaradio-sched-cta {
	margin: 2rem 0 1.25rem;
	padding: 1.75rem 1.5rem;
	border-radius: var(--acv-radius-lg, 16px);
	background: linear-gradient(135deg, var(--sched-navy) 0%, var(--sched-teal) 100%);
	box-shadow: var(--acv-shadow-md, 0 4px 16px rgba(45, 30, 15, 0.10));
	color: #fff;
	text-align: center;
}
.acaradio-sched-cta-title {
	margin: 0 0 0.4rem;
	font-size: 1.5rem;
	line-height: 1.3;
	color: #fff !important;
}
.acaradio-sched-cta-text {
	margin: 0 auto 1.1rem;
	max-width: 34rem;
	color: rgba(255, 255, 255, 0.9);
}
.acaradio-sched-cta-button {
	display: inline-block;
	padding: 0.7rem 1.8rem;
	border-radius: var(--acv-radius-pill, 50px);
	background: var(--sched-red);
	color: #fff !important;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none !important;
	font-size: 0.9rem;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.acaradio-sched-cta-button:hover,
.acaradio-sched-cta-button:focus-visible {
	background: var(--sched-red-hover);
	transform: scale(1.03);
}
.acaradio-sched-cta-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media ( max-width: 30rem ) {
	.acaradio-sched-item { grid-template-columns: 1fr; gap: 0.15rem; }
	.acaradio-sched-local { display: inline; margin-left: 0.4rem; }
	.acaradio-sched-cta { padding: 1.4rem 1rem; }
	.acaradio-sched-cta-title { font-size: 1.25rem; }
}
