/* =========================================================
   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-olive: #90991a;
	--rds-grey: #cbcbcb;
	font-family: var(--font-sans);
	background: #000;
}

.rds-hprog__cat { border-top: 1px solid #2a2a2a; }
.rds-hprog__cat:last-child { border-bottom: 1px solid #2a2a2a; }

/* ---- 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: #000;
	transition: background .2s ease;
}
.rds-hprog__bar::-webkit-details-marker { display: none; }
.rds-hprog__cat[open] .rds-hprog__bar,
.rds-hprog__bar:hover { background: #0c0c0c; }

/* everything centred inside the bar (per Figma frame 58) */
.rds-hprog__head { width: 100%; min-width: 0; text-align: center; }
.rds-hprog__venues {
	display: block;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--rds-grey);
	margin-bottom: 14px;
}
.rds-hprog__title {
	display: block;
	font-weight: 700;
	font-size: clamp(40px, 8.5vw, 150px);
	line-height: 0.9;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--rds-orange);
}
.rds-hprog__bar:hover .rds-hprog__title { color: #fff; }

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

/* ---- expanded panel: event rows ---- */
.rds-hprog__panel { background: #000; padding: 0 0 20px; }
.rds-hprog__event {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 24px;
	padding: 16px 40px;
	border-top: 1px solid #1c1c1c;
	text-decoration: none;
	color: #fff;
}
.rds-hprog__event:hover { background: var(--rds-olive); color: #000; }
.rds-hprog__ev-title {
	font-weight: 500;
	font-size: clamp(20px, 2.4vw, 34px);
	line-height: 1.1;
	text-transform: capitalize;
}
.rds-hprog__ev-meta {
	flex: 0 0 auto;
	display: flex;
	gap: 20px;
	font-size: 15px;
	white-space: nowrap;
	opacity: 0.9;
}
.rds-hprog__ev-date { font-weight: 500; }
.rds-hprog__ev-venue, .rds-hprog__ev-time { font-weight: 300; }

/* ---- mobile: MUST stay AFTER desktop ---- */
@media (max-width: 768px) {
	.rds-hprog__bar { min-height: 130px; padding: 18px 36px; }
	.rds-hprog__venues { font-size: 10px; letter-spacing: 0.8px; margin-bottom: 10px; }
	.rds-hprog__chev { right: 14px; font-size: 40px; }
	.rds-hprog__event { flex-direction: column; gap: 6px; padding: 14px 18px; }
	.rds-hprog__ev-meta { gap: 12px; font-size: 13px; flex-wrap: wrap; white-space: normal; }
}
