/* Megobar radio schedule — day tabs + per-day program list (home page) */
.mego-sched {
	--s-green: #0c3a2d;
	--s-name:  #234d3d;
	--s-red:   #d52a2a;
	--s-gold:  #b5781a;
	--s-ink:   #1c2b25;
	--s-mut:   #6f7d76;
	--s-line:  #ded8ca;
	--s-panel: #fbf9f4;
	font-family: "Noto Sans Georgian", system-ui, sans-serif;
	max-width: 1300px;               /* match the other home-page content blocks (cards / USAID = 1300) */
	margin: 0 auto;
	padding: 6px 24px 8px;
	box-sizing: border-box;
	color: var(--s-ink);
}

/* top bar: heading + timezone (label + toggle, moved up here to save a row) */
.mego-sched__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.mego-sched__heading {
	margin: 0;
	font-size: 21px;
	font-weight: 700;
	letter-spacing: .02em;
	color: var(--s-green);
}
.mego-sched__tzwrap { display: inline-flex; align-items: center; gap: 8px; }
.mego-sched__tzlabel { font-size: 12.5px; color: var(--s-mut); white-space: nowrap; }
.mego-sched .mego-sched__tz {
	appearance: none;
	border: 1px solid var(--s-green);
	background: transparent;
	color: var(--s-green);
	height: 28px;
	padding: 0 11px;
	border-radius: 999px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.mego-sched .mego-sched__tz:hover { background: var(--s-green); color: #fff; }
.mego-sched .mego-sched__tz::before { content: "\21C4\00A0"; }   /* ⇄ */

/* day tabs (uniform height — the TODAY label is absolutely placed so it never grows one tab) */
.mego-sched__tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 0;
	margin-bottom: 0;            /* tabs sit directly on the list — folder-style, no gap */
}
.mego-sched__tabs::-webkit-scrollbar { display: none; }
.mego-sched .mego-sched__tab {
	appearance: none;
	flex: 1 1 0;
	min-width: 60px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 6px 8px;
	border: 1px solid var(--s-line);
	border-bottom: 0;
	border-radius: 9px 9px 0 0;
	background: #fff;
	color: var(--s-ink);
	font: inherit;
	cursor: pointer;
	position: relative;
	transition: background .15s, color .15s, border-color .15s;
}
.mego-sched__tab .wd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mego-sched__tab .dt { font-size: 16px; font-weight: 600; line-height: 1; }
.mego-sched__tab .td {
	position: absolute; left: 0; right: 0; bottom: 4px;
	text-align: center;
	font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	color: var(--s-red);
}
.mego-sched .mego-sched__tab:hover { border-color: var(--s-green); background: #fff; }
.mego-sched .mego-sched__tab.is-active { background: var(--s-green); color: #fff; border-color: var(--s-green); z-index: 1; }
/* compact single-line tabs: weekday name, or "TODAY" on the matching day */
.mego-sched__tab .dt, .mego-sched__tab .td { display: none; }   /* legacy slots no longer rendered */
.mego-sched__tab .wd { font-size: 12.5px; }
.mego-sched__tab.is-today .wd { color: var(--s-red); }          /* TODAY in red when not selected */
.mego-sched__tab.is-today.is-active .wd { color: #fff; }        /* white when it's the selected (green) tab */

/* selected day's date + month, inline beside the heading. font-size:inherit → matches the heading's ACTUAL rendered size (a global rule renders it ~32px, not the 21px above), so size + baseline line up automatically; lighter weight + muted colour keep it reading as a date. */
.mego-sched__hdate { margin-left: 12px; font-size: inherit; font-weight: 400; color: var(--s-mut); letter-spacing: .02em; white-space: nowrap; }
.mego-sched__hdate:empty { display: none; }

/* program list — shows the full day; only very long days scroll (safety cap) */
.mego-sched__list {
	border: 1px solid var(--s-line);
	border-radius: 0 0 14px 14px;    /* square top so the flat-bottomed tabs connect cleanly */
	background: var(--s-panel);
	margin-top: -1px;                /* tuck up under the tabs so the active tab connects seamlessly */
	overflow: hidden auto;
	max-height: 75vh;
	touch-action: pan-y;             /* horizontal gestures → JS (swipe days); vertical scroll stays native */
	scrollbar-width: thin;
	scrollbar-color: var(--s-line) transparent;
}
.mego-sched__list::-webkit-scrollbar { width: 8px; }
.mego-sched__list::-webkit-scrollbar-thumb { background: var(--s-line); border-radius: 99px; }

/* desktop: split the day into two side-by-side columns */
.mego-sched__list.is-2col { display: flex; align-items: flex-start; }
.mego-sched__list.is-2col .mego-sched__col { flex: 1 1 0; min-width: 0; }
.mego-sched__list.is-2col .mego-sched__col + .mego-sched__col { border-left: 1px solid var(--s-line); }

/* rows: TIME | SHOW | STATUS */
.mego-sched__row {
	display: grid;
	grid-template-columns: 150px 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 0 16px;
	box-sizing: border-box;
	border-bottom: 1px solid var(--s-line);
	text-decoration: none;
	color: inherit;
}
.mego-sched__row:not(.mego-sched__row--head) { height: 44px; }   /* fixed → perfectly uniform rows, lines line up across both columns */
.mego-sched__list > .mego-sched__row:last-child,
.mego-sched__col > .mego-sched__row:last-child { border-bottom: 0; }
.mego-sched__time { font-size: 13px; font-weight: 700; color: var(--s-green); white-space: nowrap; }
.mego-sched__name { font-size: 14.5px; font-weight: 500; color: var(--s-name); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mego-sched__stat { justify-self: end; white-space: nowrap; }

.mego-sched__row--head { background: #f1ede3; height: 38px; }
.mego-sched__row--head .mego-sched__time,
.mego-sched__row--head .mego-sched__name {
	font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--s-mut);
}

.mego-sched__row.is-past { opacity: .5; }
.mego-sched__row.is-live { background: #fff; box-shadow: inset 3px 0 0 var(--s-red); }
.mego-sched__row.is-live .mego-sched__name { font-weight: 700; color: var(--s-ink); }

/* status tags */
.mego-sched__live {
	display: inline-flex; align-items: center; gap: 5px;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--s-red);
}
.mego-sched__live::before {
	content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--s-red);
	animation: mego-sched-pulse 1.4s ease-in-out infinite;
}
@keyframes mego-sched-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
.mego-sched__ev {
	display: inline-flex; align-items: center;
	font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
	color: var(--s-gold); background: #fdf6e9; border: 1px solid #e7c98a;
	padding: 2px 7px; border-radius: 999px;
}

/* event override row — soft gold, clickable */
.mego-sched__row.is-event { background: #fefaf1; box-shadow: inset 3px 0 0 var(--s-gold); }
.mego-sched__row.is-event .mego-sched__time { color: var(--s-gold); }
a.mego-sched__row.is-event:hover { background: #fdf3e2; }
.mego-sched__row.is-event.is-live { box-shadow: inset 3px 0 0 var(--s-red); }
.mego-sched__row.is-event.is-live .mego-sched__time { color: var(--s-green); }

.mego-sched__empty { padding: 24px 16px; color: var(--s-mut); font-size: 14px; }

/* mobile: single column, compact, one screen */
@media (max-width: 768px) {
	.mego-sched { padding: 4px 14px 6px; }
	.mego-sched__top { margin-bottom: 9px; }
	.mego-sched__heading { font-size: 17px; }
	.mego-sched__tzlabel { font-size: 11.5px; }
	.mego-sched .mego-sched__tz { height: 26px; padding: 0 9px; font-size: 11.5px; }
	.mego-sched__tabs { gap: 3px; margin-bottom: 0; }
	.mego-sched .mego-sched__tab { min-width: 0; padding: 5px 4px; }   /* shrink to fill the width — no horizontal overflow */
	.mego-sched__tab .wd { font-size: 11px; }
	.mego-sched__hdate { margin-left: 8px; }   /* font-size inherits the (mobile) heading size */
	.mego-sched__list { max-height: 62vh; }
	.mego-sched__row { grid-template-columns: 104px 1fr auto; gap: 8px; padding: 0 12px; }
	.mego-sched__row:not(.mego-sched__row--head) { height: 40px; }
	.mego-sched__row--head { height: 34px; }
	.mego-sched__time { font-size: 12px; }
	.mego-sched__name { font-size: 13.5px; }
}
