/* =========================================================
   NMW redesign — desktop scroll header (Figma frame 58)
   Brand bar (brown, mix-blend-exclusion over content) + black nav bar.
   Widths/positions taken 1:1 from the 1728px design.
   ========================================================= */

.rds-hdr {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	font-family: var(--font-sans);
	--rds-orange: #F97827;
	--rds-brown: #77593a;
}

/* ---- brand bar (60px) ---- */
.rds-hdr__brand {
	position: relative;
	height: 60px;
}
.rds-hdr__brand-bg {
	position: absolute;
	inset: 0;
	background: #77593ac9;
	mix-blend-mode: revert-rule;
	-webkit-backdrop-filter: invert(1);
	backdrop-filter: invert(1);
}

/* All brand items absolutely placed to match the 1728px design exactly.
   % anchors keep them proportional on wider/narrower desktops. */
.rds-hdr__brand > :not(.rds-hdr__brand-bg) {
	position: absolute;
	color: var(--rds-orange);
	white-space: nowrap;
	line-height: 0.9;
	text-decoration: none;
}

/* Logo — top-left corner (Figma: left 0.29%, top 0.45%). */
.rds-hdr__logo {
	left: 6px;
	top: 5px;
	font-weight: 700;
	font-size: 32px;
	letter-spacing: -0.64px;
}

/* Date — sits low in the bar (Figma bottom ~55px), right edge at 33.3%. */
.rds-hdr__date {
	right: 66.67%;
	bottom: 6px;
	text-align: right;
	font-weight: 200;
	font-size: 16px;
	letter-spacing: -0.8px;
}

/* Centre mark — original NMW loop logo (our PNG used as a mask, filled with
   the brand orange to match Figma). Later swapped for a Lottie loop. */
.rds-hdr__mark {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 100px;
	height: 50px;
	background: var(--rds-orange);
	-webkit-mask: var(--rds-mark) center / contain no-repeat;
	mask: var(--rds-mark) center / contain no-repeat;
}

/* Language switch — small, low, right edge at 83.3% (Figma). */
.rds-hdr__lang {
	right: 16.67%;
	bottom: 6px;
	font-size: 16px;
	letter-spacing: -0.96px;
}
.rds-hdr__lang a { color: var(--rds-orange); text-decoration: none; }
.rds-hdr__lang-pl { font-weight: 200; }
.rds-hdr__lang-en, .rds-hdr__lang-sep { font-weight: 700; }

/* Dots grid — top-right (Figma: top 7px). */
/* social/contact icons — 2×2 grid replacing the old dots button */
.rds-hdr__social {
	position: absolute;
	right: 5px;
	top: 3px;
	display: grid;
	grid-template-columns: repeat(2, auto);
	gap: 3px;
	line-height: 0;
}
.rds-hdr__social-btn { display: block; line-height: 0; }
.rds-hdr__social-btn img { display: block; width: 24px; height: 24px; transition: transform 0.15s ease; }
.rds-hdr__social-btn:hover img { transform: scale(1.08); }

/* ---- nav bar (black, 40px) ---- */
.rds-hdr__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
	padding: 0 24px;
	background: #000;
}
.rds-hdr__nav-link {
	color: #fff;
	font-weight: 300;
	font-size: 26px;
	line-height: 23px;
	text-decoration: none;
	letter-spacing: -0.2px;
}
.rds-hdr__nav-link.is-active,
.rds-hdr__nav-link:hover { color: var(--rds-orange); }

/* ============ mobile header + menu (≤1024, Figma M5) ============ */
.rds-mhdr {
	display: none;
	--rds-orange: #f97827;   /* own the tokens (sibling of .rds-hdr, no inherit) */
	--rds-brown: #77593a;
	font-family: var(--font-sans);
}

/* brand wordmark with the sygnet inline: New Media [◗] Week */
.rds-mhdr__brand {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rds-orange);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.4px;
	text-decoration: none;
	white-space: nowrap;
}
.rds-mhdr__mark {
	display: inline-block;
	width: 40px;
	height: 22px;
	background: var(--rds-orange);
	-webkit-mask: var(--rds-mark) center / contain no-repeat;
	mask: var(--rds-mark) center / contain no-repeat;
}
.rds-mhdr__checkbox { position: absolute; opacity: 0; pointer-events: none; }
.rds-mhdr__burger {
	flex: 0 0 auto;
	width: 30px;
	height: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 3px 2px;
	cursor: pointer;
	z-index: 2;
}
.rds-mhdr__burger span {
	display: block;
	height: 3px;
	background: var(--rds-orange);
	transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(2) { opacity: 0; }
.rds-mhdr__checkbox:checked ~ .rds-mhdr__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* open state → whole header + menu turn orange, ink turns black */
.rds-mhdr:has(.rds-mhdr__checkbox:checked) { background: var(--rds-orange); }
.rds-mhdr:has(:checked) .rds-mhdr__brand { color: #000; }
.rds-mhdr:has(:checked) .rds-mhdr__mark { background: #000; }
.rds-mhdr:has(:checked) .rds-mhdr__burger span { background: #000; }

/* full-screen orange menu */
.rds-mnav {
	position: fixed;
	inset: 56px 0 0 0;
	background: var(--rds-orange);
	color: #000;
	transform: translateY(-120%);
	transition: transform .28s ease;
	z-index: 999;
	overflow-y: auto;
}
.rds-mhdr__checkbox:checked ~ .rds-mnav { transform: translateY(0); }
.rds-mnav__inner { display: flex; flex-direction: column; min-height: 100%; padding: 20px 24px 24px; box-sizing: border-box; }

.rds-mnav__date {
	font-family: var(--font-mono, monospace);
	font-size: 12px;
	letter-spacing: 0.5px;
	color: #000;
	margin-bottom: 26px;
}
.rds-mnav__lang { font-size: 18px; font-weight: 700; margin-bottom: 30px; }
.rds-mnav__lang a { color: #000; text-decoration: none; }
.rds-mnav__lang .rds-mnav__lang-pl { font-weight: 400; }
.rds-mnav__lang span { font-weight: 400; }

.rds-mnav__group { display: flex; flex-direction: column; margin-bottom: 26px; }
.rds-mnav__link {
	color: #000;
	font-weight: 700;
	font-size: 30px;
	line-height: 1.18;
	letter-spacing: -0.3px;
	text-transform: uppercase;
	text-decoration: none;
	padding: 2px 0;
}
.rds-mnav__link:hover { color: #fff; }

.rds-mnav__foot {
	margin-top: auto;
	padding-top: 30px;
	display: flex;
	gap: 40px;
}
.rds-mnav__foot-col { display: flex; flex-direction: column; gap: 2px; }
.rds-mnav__foot-col a {
	font-family: var(--font-mono, monospace);
	font-size: 13px;
	letter-spacing: 0.4px;
	color: #000;
	text-decoration: none;
}
.rds-mnav__foot-col a:hover { color: #fff; }

@media (max-width: 1024px) {
	.rds-hdr { display: none; }
	.rds-mhdr {
		display: flex;
		align-items: center;
		gap: 12px;
		position: fixed;
		top: 0; left: 0; right: 0;
		height: 56px;
		padding: 0 16px;
		background: #000;
		z-index: 1000;
	}
}

/* mobile: section top-padding = mobile header height (removes the orange gap) */
@media (max-width: 1024px) {
	.rds-artist, .rds-venue, .rds-event, .rds-tt, .rds-artists, .rds-venues, .rds-prog { padding-top: 50px !important; }
}
