/* =========================================================
   NMW redesign — Timetable (compressed model v2).
   Grey title bar + orange day accordion (frame 63); each open day is a
   COMPRESSED venue grid: only occupied start-hours are rows, each event a
   uniform card (duration = a label, never block height). No left time
   gutter — a floating purple time axis hovers over the ACTIVE venue column
   and slides across when you tap another header; a "now" line marks the
   current time on today's date. Multi-day exhibitions sit in a top "all day"
   band. The active column widens (35%) and its cards flip to slate-blue.
   ========================================================= */

.rds-tt {
	font-family: var(--font-sans);
	background: #f97827;
	color: #000;
	--rds-tt-orange: #f97827;
	--rds-tt-purple: #7067e0;
	--rds-tt-blue: #88a6c5;
	--rds-tt-grey: #cbcbcb;
	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) ---- */
.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); }

/* ---- compressed grid container ---- */
.rds-tt__panel { background: var(--rds-tt-orange); }
.rds-ttc { background: var(--rds-tt-orange); color: #000; padding: 10px; }

/* venue headers (buttons — tap to widen) */
.rds-ttc__head {
	display: grid;
	gap: 6px;
	transition: grid-template-columns 0.25s ease;
	margin-bottom: 6px;
}
.rds-ttc__vh {
	background: transparent;
	color: #fff;
	border: 0;
	border-radius: 6px;
	display: flex; align-items: center; justify-content: center; text-align: center;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.12;
	padding: 8px 6px;
	min-height: 44px;
	min-width: 0;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.rds-ttc__vh span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rds-ttc__vh.is-active { background: var(--rds-tt-blue); color: #000; outline: 1px solid #000; outline-offset: -1px; }

/* all-day band — no top label; each chip carries its own "all day" tag */
.rds-ttc__allday { display: grid; gap: 6px; transition: grid-template-columns 0.25s ease; margin-bottom: 6px; }
.rds-ttc__allcell { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rds-ttc__chip {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	min-height: 70px;
	background: #000; color: #fff;
	border-radius: 6px;
	padding: 8px 8px;
	text-decoration: none;
	overflow: hidden;
	transition: background 0.2s ease, color 0.2s ease;
}
.rds-ttc__chip-head { min-width: 0; }
.rds-ttc__chip-type { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.rds-ttc__chip-title { font-size: 12px; line-height: 1.2; text-transform: none; overflow: hidden; }
.rds-ttc__chip-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-ttc__allcell.is-active-col .rds-ttc__chip { background: var(--rds-tt-blue); color: #000; }
/* active (widened) column, DESKTOP: all-day items divide the column height
   equally — 1 item fills it, 2 → ½ each, 3 → ⅓ each. */
.rds-ttc__allcell.is-active-col { min-height: 132px; }
.rds-ttc__allcell.is-active-col .rds-ttc__chip { flex: 1 1 0; min-height: 80px; }

/* body: compressed hour bands (fixed-height rows) + floating overlays */
.rds-ttc__bodywrap { position: relative; }
.rds-ttc__body {
	display: grid;
	grid-auto-rows: 150px;
	gap: 6px;
	transition: grid-template-columns 0.25s ease;
}
.rds-ttc__cell { height: 150px; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* uniform event card — duration is a label, never the height */
.rds-ttc__ev {
	flex: 1;
	min-height: 0;
	background: #000; color: #fff;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 6px;
	padding: 8px 8px;
	text-decoration: none;
	overflow: hidden;
	min-width: 0;
	transition: background 0.2s ease, color 0.2s ease;
}
.rds-ttc__cell.is-active-col .rds-ttc__ev { background: var(--rds-tt-blue); color: #000; }
.rds-ttc__ev-head { min-width: 0; overflow: hidden; }
.rds-ttc__ev-type { display: block; font-size: 10px; font-weight: 500; letter-spacing: 0.3px; text-transform: uppercase; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rds-ttc__ev-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 500; font-size: 14px; line-height: 1.2; margin-top: 2px; overflow: hidden; }
.rds-ttc__ev-range { font-size: 11px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* floating time axis — purple pills over the active column */
.rds-ttc__axis {
	position: absolute;
	top: 0;
	height: 100%;
	transform: translateX(-50%);
	transition: left 0.25s ease;
	pointer-events: none;
	display: flex;
	flex-direction: column;
	z-index: 2;
}
.rds-ttc__axrow { height: 150px; display: flex; align-items: center; justify-content: center; }
.rds-ttc__axpill {
	color: var(--rds-tt-purple);
	font-family: var(--font-mono, monospace);
	font-size: 12px; font-weight: 700; white-space: nowrap;
}
/* gap between rows offsets the axis rows by 6px each — nudge to match */
.rds-ttc__axis .rds-ttc__axrow + .rds-ttc__axrow { margin-top: 6px; }

/* now line — positioned by JS at the current Europe/Warsaw time */
.rds-ttc__now {
	position: absolute;
	left: 0; right: 0;
	height: 0;
	pointer-events: none;
	z-index: 3;
	display: none;
}
.rds-ttc__now-line {
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 2px;
	background: var(--rds-tt-purple);
	mix-blend-mode: exclusion;
}
/* time label hidden for now — just the line */
.rds-ttc__now-time { display: none; }

.rds-ttc__empty { text-align: center; padding: 24px; color: #000; }

/* ---- mobile: tighter type, same 104px rows (JS math depends on it) ---- */
@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-ttc { padding: 8px; }
	.rds-ttc__head, .rds-ttc__allday, .rds-ttc__body { gap: 4px; }
	.rds-ttc__vh { font-size: 10px; padding: 6px 3px; min-height: 40px; }
	.rds-ttc__chip { padding: 6px 6px; }
	.rds-ttc__chip-title { font-size: 11px; }
	.rds-ttc__chip-type { font-size: 8px; }
	.rds-ttc__chip-tag { font-size: 8px; }
	/* mobile: every all-day chip is a compact ~70px card (no height-dividing),
	   title top-left + CAŁY DZIEŃ tag bottom-left */
	.rds-ttc__allcell.is-active-col { min-height: 0; }
	.rds-ttc__allcell .rds-ttc__chip,
	.rds-ttc__allcell.is-active-col .rds-ttc__chip { flex: 0 0 auto; min-height: 70px; }
	.rds-ttc__ev { padding: 6px 5px; }
	.rds-ttc__ev-type { font-size: 8px; }
	.rds-ttc__ev-title { font-size: 11px; }
	.rds-ttc__ev-range { font-size: 9px; }
	.rds-ttc__axpill { font-size: 10px; padding: 2px 8px; }
}
