@media (min-width: 768px) {
	#id-contact-badge {
		top: calc(50%);
	}
}

/* Registration form: focus + invalid (after submit attempt) */
.js-reg-field:focus {
	border: 2px solid #000;
	outline: none;
	box-shadow: none;
}
form.was-validated .js-reg-field:invalid {
	border: 2px solid #dc2626;
	color: #dc2626;
}
form.was-validated .js-reg-field:invalid::placeholder {
	color: #dc2626;
	opacity: 0.7;
}

/* Inline per-field error message (server-side validation) */
.reg-field-error {
	color: #dc2626;
	font-size: 0.875rem;
	margin-top: 6px;
	font-weight: 400;
}

/* Red border + placeholder when field has error (contact, registration, etc.) */
.has-error .js-reg-field {
	border: 2px solid #dc2626;
}
.has-error .js-reg-field::placeholder {
	color: #dc2626;
	opacity: 0.7;
}

.js-reg-field.is-invalid {
	border: 2px solid #dc2626;
}

/* Registration: scroll-margin so first invalid is not hidden under fixed header */
.js-registration-form .has-error,
#categories-container {
	scroll-margin-top: 100px;
}

/* Global (non-field) registration errors – non-bold alert above step content */
.reg-global-errors {
	font-weight: 400;
}
.reg-global-errors li {
	font-weight: 400;
}

/* News article detail – tag badge (Prague festival / Gloria) */
.news-article-badge {
	width: 14%;
	min-width: 120px;
	text-align: center;
}

/* News article detail – masonry gallery, 3 columns on large screens */
@media (min-width: 1024px) {
	.news-detail-gallery .grid-sizer,
	.news-detail-gallery .grid-item {
		width: 33.333%;
	}
}

/* Locale switcher – stable layout, dropdown below, no second arrow */
.id-locale-switcher {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.id-locale-trigger {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	white-space: nowrap;
}
.id-locale-dropdown {
	position: absolute;
	top: 100%;
	left: -13px;
	margin-top: 0;
	min-width: calc(100% + 13px);
	padding: 0;
	list-style: none;
	margin-left: 0;
	background: transparent;
	z-index: 50;
}
.id-locale-dropdown li {
	margin: 0;
}
.id-locale-dropdown .id-locale-option {
	display: block;
	padding: 4px 12px;
	text-decoration: none;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	background: transparent;
}
.id-locale-dropdown .id-locale-option:hover {
	color: rgba(255, 255, 255, 0.85);
	background: transparent;
}

/* Contact page – 5 people in one row on large screens */
@media (min-width: 1024px) {
	.id-contact-people-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.contact-margin {
		margin-top: 23px;
	}
}

.homepage-hero-overlay {
	opacity: 50% !important;
}

.festival-overlay {
	background-color: rgba(255, 0, 50, 0.5);
}

.gloria-overlay {
	background-color: rgba(107, 0, 150, 0.5);
}

/* Festival/Gloria hero section – ~12% larger than the original h-[580px]. */
.festival-hero {
	height: 650px;
}

/* Year switcher (Festival / Gloria pages) – full-width blurred band right below the fixed top header.
   Section starts at viewport y = -80px (because <main> has -mt-[80px]),
   so 160px from section top puts it visually at y = 80px = directly under the header.
   Layout: outer = full-width blurred dark band; inner = centered "pill" with subtle gray border. */
.festival-year-switcher {
	position: absolute;
	top: 160px;
	left: 0;
	right: 0;
	z-index: 25;
	width: 100%;
	display: flex;
	justify-content: center;
	padding: 1rem 1.25rem;
	background-color: rgba(9, 2, 8, 0.55);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}
.festival-year-switcher__inner {
	display: flex;
	align-items: stretch;
	gap: 0;
	padding: 0;
	width: 100%;
	max-width: 420px;
	background: transparent;
}
.festival-year-switcher__item {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.75rem;
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	color: rgba(255, 255, 255, 0.55);
	border-bottom: 2px solid transparent;
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}
.festival-year-switcher__item:hover {
	color: #fff;
}
.festival-year-switcher__item--active {
	color: #fff;
	font-weight: 700;
	border-bottom-color: #fff;
}

/* About page – druhý řádek zrcadlově (text vlevo, fotka vpravo); Tailwind flex-row-reverse není ve buildu */
@media (min-width: 768px) {
	.about-row-mirror {
		flex-direction: row-reverse;
	}
}
