/* =========================================================
   NMW redesign — Timetable (Figma frames 63 + 62)
   Grey title bar + orange day accordion (63); each open day is a
   venue×time GRID (62): venue columns, time axis, coloured event
   blocks, all-day band, purple "now" line.
   ========================================================= */

.rds-tt {
	font-family: var(--font-sans);
	background: #f97827;
	color: #000;
	--rds-tt-orange: #f97827;
	--rds-tt-purple: #7067e0;
	--rds-tt-grey: #cbcbcb;
	--tt-h: 1120px;               /* height of the time body (09:00–23:00) */
	padding-top: 95px;            /* clear the fixed redesign header */
}

/* ---- grey title bar ---- */
.rds-tt__title {
	height: 140px;
	background: var(--rds-tt-grey);
	display: flex;
	align-items: center;
	justify-content: center;
}
.rds-tt__title-text {
	margin: 0;
	font-weight: 700;
	font-size: 96px;
	line-height: 0.96;
	text-transform: uppercase;
	text-align: center;
	color: #000;
}

/* ---- day rows (accordion, frame 63) ---- */
.rds-tt__day { border-bottom: 1px solid #000; }
.rds-tt__row {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	background: var(--rds-tt-orange);
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.rds-tt__row::-webkit-details-marker { display: none; }
.rds-tt__row::marker { content: ''; }
.rds-tt__label {
	font-weight: 400;
	font-size: 32px;
	line-height: 0.96;
	letter-spacing: 0.64px;
	text-align: center;
	color: #000;
	white-space: nowrap;
}
.rds-tt__plus {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	transition: transform 0.18s ease;
}
.rds-tt__day[open] .rds-tt__plus { transform: translateY(-50%) rotate(45deg); }

/* ---- expanded panel → the grid (frame 62) ---- */
.rds-tt__panel { background: #000; }
.rds-tt__grid {
	display: grid;
	grid-template-columns: 64px repeat(var(--cols, 5), minmax(0, 1fr));
	background: #000;
	color: #fff;
}

/* header + all-day corners */
.rds-ttg__corner {
	background: #fff;
	border-bottom: 1px solid #000;
}
.rds-ttg__corner--allday {
	background: #000;
	color: var(--rds-tt-grey);
	font-size: 11px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6px;
}

/* venue column headers */
.rds-ttg__vh {
	background: #fff;
	color: #000;
	border-bottom: 1px solid #000;
	border-left: 1px solid #000;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.15;
	padding: 8px 10px;
	min-height: 44px;
}

/* all-day band */
.rds-ttg__allcell {
	border-left: 1px solid #2a2a2a;
	border-bottom: 1px solid #2a2a2a;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.rds-ttg__chip {
	display: block;
	font-size: 13px;
	line-height: 1.15;
	padding: 6px 8px;
	text-decoration: none;
	text-transform: capitalize;
}

/* time axis */
.rds-ttg__axis {
	position: relative;
	height: var(--tt-h);
	background: #000;
}
.rds-ttg__tick {
	position: absolute;
	left: 6px;
	transform: translateY(-50%);
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	color: #fff;
	white-space: nowrap;
}

/* venue columns (positioned event blocks) */
.rds-ttg__vcol {
	position: relative;
	height: var(--tt-h);
	border-left: 1px solid #2a2a2a;
	overflow: hidden;
}
.rds-ttg__rule {
	position: absolute;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(255, 255, 255, 0.08);
	transform: translateY(-1px);
}

/* event block */
.rds-ttg__ev {
	position: absolute;
	left: 2px;
	right: 2px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 6px;
	padding: 10px 8px;
	overflow: hidden;
	text-decoration: none;
	border: 1px solid #000;
}
.rds-ttg__ev-type {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.34px;
	text-transform: uppercase;
	opacity: 0.85;
}
.rds-ttg__ev-title {
	font-weight: 500;
	font-size: 22px;
	line-height: 1.1;
	text-transform: capitalize;
}
.rds-ttg__ev-time {
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	margin-top: 2px;
}

/* colour patchwork: 0 black · 1 orange · 2 purple */
.is-c0 { background: #000; color: #fff; }
.is-c1 { background: var(--rds-tt-orange); color: #000; }
.is-c2 { background: var(--rds-tt-purple); color: #fff; }
.rds-ttg__chip.is-c0 { background: #131313; color: #fff; }

/* purple "now" line (revealed by JS only during the festival) */
.rds-ttg__now { position: relative; pointer-events: none; }
.rds-ttg__now::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: var(--tt-now, 50%);
	height: 3px;
	background: var(--rds-tt-purple);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.rds-ttg__now[hidden] { display: block; } /* keep grid cell; hide the line */
.rds-ttg__now[hidden]::before { display: none; }

/* ---- mobile: the wide grid scrolls horizontally (M5 grid is a later pass) ---- */
@media (max-width: 1024px) {
	.rds-tt { overflow-x: hidden; }
	.rds-tt__title { height: 90px; }
	.rds-tt__title-text { font-size: 44px; }
	.rds-tt__row { height: 52px; }
	.rds-tt__label { font-size: 22px; }
	.rds-tt__plus { right: 14px; }
	.rds-tt__panel { overflow-x: auto; -webkit-overflow-scrolling: touch; }
	.rds-tt__grid { min-width: 820px; --tt-h: 900px; }
	.rds-ttg__vh { font-size: 12px; }
	.rds-ttg__ev-title { font-size: 16px; }
}
