/* =========================================================
   NMW redesign — Home programme accordion (Figma frame 58)
   Full-width event-type category bars under the news block; each
   <details> expands to reveal that category's events.
   ========================================================= */

.rds-hprog {
	--rds-orange: #f97827;
	--rds-purple: #7067e0;
	--rds-olive: #90991a;
	--rds-grey: #cbcbcb;
	font-family: var(--font-sans);
	background: #000;
}

.rds-hprog__cat { border-top: 1px solid #000; }
.rds-hprog__cat:last-child { border-bottom: 1px solid #000; }
/* colour patchwork (Figma frame 58): orange bars, purple accent */
.rds-hprog__cat.is-co .rds-hprog__bar { background: var(--rds-orange); }
.rds-hprog__cat.is-cp .rds-hprog__bar { background: var(--rds-orange); }   /* all bars orange (no purple accent) */

/* orange day-bar inside an open category */
.rds-hprog__day {
	background: var(--rds-orange);
	color: #000;
	text-align: center;
	padding: 14px 16px;
	font-weight: 500;
	font-size: 24px;
	line-height: 1;
	border-top: 1px solid #000;
}

/* ---- category bar (summary) ---- */
.rds-hprog__bar {
	position: relative;
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 24px 90px;
	background: var(--rds-orange);
	transition: filter .2s ease;
}
.rds-hprog__bar::-webkit-details-marker { display: none; }
.rds-hprog__bar:hover { filter: brightness(0.94); }

.rds-hprog__title {
	display: block;
	text-align: center;
	font-weight: 700;
	font-size: clamp(34px, 7vw, 118px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #000;
}
/* open category → slate-blue bar + × (Figma frame 58) */
.rds-hprog__cat[open] .rds-hprog__bar { background: #88A6C5 !important; }
/* venues spread edge-to-edge along the bottom of the bar, over a border line */
.rds-hprog__venues {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 40px;
	border-top: 0;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: #000;
}
.rds-hprog__venue { white-space: nowrap; }

.rds-hprog__chev {
	position: absolute;
	right: 40px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 100;
	font-size: 30px;
	line-height: 1;
	color: #000;
	transition: transform .25s ease;
}
.rds-hprog__cat[open] .rds-hprog__chev { transform: translateY(-50%) rotate(45deg); }

/* ---- expanded panel: event tiles (black card + brown belka), 1px orange gaps ---- */
.rds-hprog__panel { background: var(--rds-orange); }
.rds-hprog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;                       /* orange background shows through */
	background: var(--rds-orange);
}

/* reusable event card */
.rds-ecard2 { display: block; text-decoration: none; background: #000; }
.rds-ecard2__body {
	background: #000;
	color: #fff;
	min-height: 150px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	padding: 18px 20px;
	transition: background .15s ease;
}
.rds-ecard2__datetop {
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--rds-grey);
	margin-bottom: 2px;
}
.rds-ecard2__type {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.34px;
	text-transform: uppercase;
	color: var(--rds-grey);
	margin-top: 2px;
}
.rds-ecard2__title {
	font-weight: 500;
	font-size: 26px;
	line-height: 1.12;
	text-transform: none;
	transition: color .15s ease;
}
.rds-ecard2__belka {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 12px;
	height: 34px;
	padding: 0 16px;
	background: #77593a;
	color: #88A6C5;
	font-size: 13px;
	white-space: nowrap;
}
.rds-ecard2__venue { text-align: left; font-weight: 300; overflow: hidden; text-overflow: ellipsis; }
.rds-ecard2__time  { text-align: right; font-weight: 300; }
/* hover → brown card + slate-blue title */
.rds-ecard2:hover .rds-ecard2__body { background: #77593a; }
.rds-ecard2:hover .rds-ecard2__title { color: #88A6C5; }

/* ---- mobile: MUST stay AFTER desktop ---- */
@media (max-width: 768px) {
	.rds-hprog__bar { min-height: 120px; padding: 18px 36px; }
	.rds-hprog__venues { font-size: 10px; letter-spacing: 0.8px; margin-top: 10px; padding: 8px 8px; }
	.rds-hprog__chev { right: 14px; font-size: 20px; }
	.rds-hprog__grid { grid-template-columns: 1fr; }
	.rds-ecard2__title { font-size: 22px; }
}
