/*
 * Festival Theme — main stylesheet.
 * Colour, type and spacing tokens come from theme.json (--wp--preset--*), aliased below.
 * Mobile first. Signature element: the azulejo date tile (.date-tile).
 */

/* ---------------------------------------------------------------------
 * 1. Tokens
 * ------------------------------------------------------------------- */
:root {
	--c-white: var(--wp--preset--color--white, #fff);
	--c-wash: var(--wp--preset--color--whitewash, #f2f5f3);
	--c-ink: var(--wp--preset--color--ink, #14201a);
	--c-muted: var(--wp--preset--color--muted, #4b5751);
	--c-line: var(--wp--preset--color--line, #d9e0dc);
	--c-green: var(--wp--preset--color--green, #046a38);
	--c-green-dark: var(--wp--preset--color--green-dark, #034d29);
	--c-red: var(--wp--preset--color--red, #da291c);
	--c-red-dark: var(--wp--preset--color--red-dark, #b01f14);
	--c-yellow: var(--wp--preset--color--yellow, #ffd100);

	--f-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", system-ui, sans-serif);
	--f-body: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);

	--s-1: var(--wp--preset--spacing--10, 0.5rem);
	--s-2: var(--wp--preset--spacing--20, 1rem);
	--s-3: var(--wp--preset--spacing--30, 1.5rem);
	--s-4: var(--wp--preset--spacing--40, 2.5rem);
	--s-5: var(--wp--preset--spacing--50, 4rem);
	--s-6: var(--wp--preset--spacing--60, 6rem);

	--r-s: var(--wp--custom--radius--small, 6px);
	--r-m: var(--wp--custom--radius--medium, 12px);
	--r-l: var(--wp--custom--radius--large, 20px);
	--shadow: var(--wp--custom--shadow, 0 8px 24px rgb(20 32 26 / 8%));
	--header-h: 72px;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--wide: 1240px;

	/* Azulejo tile: green corner quarter-circles, four-petal centre, red edge dots. */
	--azulejo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='%23046A38'%3E%3Cpath d='M0 0h12A12 12 0 0 1 0 12z'/%3E%3Cpath d='M48 0v12A12 12 0 0 1 36 0z'/%3E%3Cpath d='M48 48H36a12 12 0 0 1 12-12z'/%3E%3Cpath d='M0 48V36a12 12 0 0 1 12 12z'/%3E%3Cellipse cx='24' cy='16' rx='3.5' ry='7'/%3E%3Cellipse cx='24' cy='32' rx='3.5' ry='7'/%3E%3Cellipse cx='16' cy='24' rx='7' ry='3.5'/%3E%3Cellipse cx='32' cy='24' rx='7' ry='3.5'/%3E%3C/g%3E%3Ccircle cx='24' cy='24' r='3' fill='%23FFD100'/%3E%3Cg fill='%23DA291C'%3E%3Ccircle cx='24' cy='0' r='2.5'/%3E%3Ccircle cx='24' cy='48' r='2.5'/%3E%3Ccircle cx='0' cy='24' r='2.5'/%3E%3Ccircle cx='48' cy='24' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------
 * 2. Base
 * ------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-white);
	color: var(--c-ink);
	font-family: var(--f-body);
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

h1,
h2,
h3,
h4 {
	font-family: var(--f-display);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 var(--s-2);
	text-wrap: balance;
}

p {
	margin: 0 0 var(--s-2);
}

a {
	color: var(--c-green);
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--c-green-dark);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--c-green);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection {
	background: var(--c-yellow);
	color: var(--c-ink);
}

address {
	font-style: normal;
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	margin: 0;
	padding: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	top: var(--s-1);
	left: var(--s-1);
	z-index: 1000;
	padding: var(--s-1) var(--s-2);
	background: var(--c-yellow);
	color: var(--c-ink);
	font-weight: 700;
	text-decoration: none;
}

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: none;
}

/* ---------------------------------------------------------------------
 * 3. Layout
 * ------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--s-5);
}

.section--tight {
	padding-block: var(--s-3);
}

.section--alt {
	background: var(--c-wash);
}

.section-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--s-1) var(--s-3);
	margin-bottom: var(--s-3);
}

.section-heading__title {
	font-size: var(--wp--preset--font-size--x-large, clamp(1.625rem, 3vw, 2.5rem));
	margin: 0;
}

.button-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1) var(--s-2);
	margin: var(--s-3) 0 0;
}

.prose {
	max-width: 68ch;
	font-size: 1.0625rem;
}

.prose > * + * {
	margin-top: 1em;
}

.prose h2,
.prose h3 {
	margin-top: 1.8em;
}

.prose h2 {
	font-size: 1.75rem;
}

.prose h3 {
	font-size: 1.3rem;
}

.prose ul,
.prose ol {
	padding-left: 1.25em;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: var(--s-2);
	border-left: 4px solid var(--c-yellow);
	font-family: var(--f-display);
	font-size: 1.35rem;
	line-height: 1.3;
}

.prose img {
	border-radius: var(--r-m);
}

.empty-state {
	color: var(--c-muted);
}

.empty-state--boxed {
	padding: var(--s-4);
	border: 2px dashed var(--c-line);
	border-radius: var(--r-m);
	text-align: center;
	max-width: 42rem;
	margin-inline: auto;
}

/* ---------------------------------------------------------------------
 * 4. Buttons, links, badges
 * ------------------------------------------------------------------- */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: 44px;
	padding: 0.65em 1.35em;
	border: 2px solid var(--c-green);
	border-radius: 999px;
	background: var(--c-green);
	color: var(--c-white);
	font: 600 1rem/1.2 var(--f-body);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.button:hover {
	background: var(--c-green-dark);
	border-color: var(--c-green-dark);
	color: var(--c-white);
	text-decoration: none;
}

.button:active {
	transform: translateY(1px);
}

.button--large {
	padding: 0.85em 1.7em;
	font-size: 1.0625rem;
}

.button--ghost {
	background: transparent;
	border-color: var(--c-ink);
	color: var(--c-ink);
}

.button--ghost:hover {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

.button--yellow {
	background: var(--c-yellow);
	border-color: var(--c-yellow);
	color: var(--c-ink);
}

.button--yellow:hover {
	background: var(--c-white);
	border-color: var(--c-white);
	color: var(--c-ink);
}

.button--on-dark {
	background: transparent;
	border-color: var(--c-white);
	color: var(--c-white);
}

.button--on-dark:hover {
	background: var(--c-white);
	color: var(--c-green-dark);
	border-color: var(--c-white);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	font-weight: 600;
	text-decoration: none;
}

.link-arrow .icon {
	transition: transform 0.15s;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

.link-arrow--back:hover .icon {
	transform: translateX(-3px);
}

.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.badge {
	display: inline-block;
	padding: 0.25em 0.75em;
	border-radius: 999px;
	background: var(--c-yellow);
	color: var(--c-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.badge--muted {
	background: var(--c-wash);
	color: var(--c-muted);
}

.badge--tier {
	background: var(--c-ink);
	color: var(--c-yellow);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1);
	list-style: none;
	margin: 0 0 var(--s-2);
	padding: 0;
}

.tag {
	display: inline-block;
	padding: 0.2em 0.8em;
	border: 1.5px solid var(--c-green);
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.tag:hover {
	background: var(--c-green);
	color: var(--c-white);
}

.meta-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

.meta-list li {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.meta-list .icon {
	color: var(--c-green);
	width: 1.1em;
	height: 1.1em;
}

/* ---------------------------------------------------------------------
 * 5. Signature: azulejo date tile
 * ------------------------------------------------------------------- */
.date-tile {
	--tile: 72px;
	--corner-a: 18%;
	--corner-b: 28%;
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: var(--tile);
	aspect-ratio: 1;
	flex: none;
	border: 2px solid var(--c-green);
	border-radius: var(--r-s);
	background:
		radial-gradient(circle at 100% 0, var(--c-yellow) 0 var(--corner-a), transparent calc(var(--corner-a) + 0.5%)),
		radial-gradient(circle at 100% 0, var(--c-red) 0 var(--corner-b), transparent calc(var(--corner-b) + 0.5%)),
		radial-gradient(circle at 0 100%, var(--c-green) 0 14%, transparent 14.5%),
		var(--c-white);
	color: var(--c-ink);
	line-height: 1;
	text-align: center;
}

.date-tile__label {
	font-size: calc(var(--tile) * 0.13);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-muted);
	margin-bottom: calc(var(--tile) * 0.04);
}

.date-tile__day {
	font-family: var(--f-display);
	font-weight: 800;
	font-size: calc(var(--tile) * 0.44);
	letter-spacing: -0.04em;
	color: var(--c-green);
	font-variant-numeric: tabular-nums;
}

.date-tile__month {
	font-size: calc(var(--tile) * 0.15);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-top: calc(var(--tile) * 0.04);
}

.date-tile--sm {
	--tile: 60px;
}

.date-tile--lg {
	--tile: clamp(84px, 11vw, 112px);
	border-width: 3px;
}

.date-tile--tab {
	--tile: 84px;
	--corner-a: 13%;
	--corner-b: 21%;
}

/* ---------------------------------------------------------------------
 * 6. Azulejo divider
 * ------------------------------------------------------------------- */
.azulejo-divider {
	height: 24px;
	background-image: var(--azulejo);
	background-size: 24px 24px;
	background-repeat: repeat-x;
	background-position: center;
	border-block: 1px solid var(--c-line);
}

/* ---------------------------------------------------------------------
 * 7. Header & navigation
 * ------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgb(255 255 255 / 96%);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

@supports (backdrop-filter: blur(8px)) {
	.site-header {
		background: rgb(255 255 255 / 88%);
		backdrop-filter: saturate(1.4) blur(10px);
	}
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.site-header.is-scrolled {
	border-bottom-color: var(--c-line);
	box-shadow: 0 1px 12px rgb(20 32 26 / 6%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	min-height: var(--header-h);
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-header__brand {
	display: flex; /* No inline line box: keeps the logo exactly on the header's centre line. */
	align-items: center;
	margin-right: auto;
}

.site-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--c-ink);
	text-decoration: none;
}

.custom-logo {
	display: block;
	height: 54px;
	width: auto;
}

.site-footer .custom-logo {
	height: 60px;
}

@media (max-width: 480px) {
	.site-header .custom-logo {
		height: 48px;
	}
}

.site-logo:hover {
	color: var(--c-ink);
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--r-s);
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 26px;
	height: 26px;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: block;
}

.site-nav {
	display: none;
}

.site-nav.is-open {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	position: absolute;
	inset: 100% 0 auto;
	height: calc(100dvh - var(--header-h));
	overflow-y: auto;
	padding: var(--s-3) var(--gutter) var(--s-5);
	background: var(--c-white);
	border-top: 1px solid var(--c-line);
}

.site-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__menu a {
	display: block;
	padding: 0.6rem 0;
	color: var(--c-ink);
	font-family: var(--f-display);
	font-size: 1.5rem;
	font-weight: 700;
	text-decoration: none;
}

.site-nav__menu .current-menu-item > a,
.site-nav__menu .current-menu-ancestor > a,
.site-nav__menu a[aria-current] {
	color: var(--c-green);
}

.site-nav__menu .sub-menu {
	list-style: none;
	padding-left: var(--s-2);
}

.lang-switcher {
	display: inline-flex;
	flex: none;
	list-style: none;
	margin: 0;
	padding: 3px;
	border: 1.5px solid var(--c-ink);
	border-radius: 999px;
}

.lang-switcher a {
	display: block;
	min-width: 40px;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	color: var(--c-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-align: center;
	text-decoration: none;
}

.lang-switcher a:hover {
	background: var(--c-wash);
}

.lang-switcher a.is-current {
	background: var(--c-ink);
	color: var(--c-white);
}

@media (min-width: 960px) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.site-nav.is-open {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: var(--s-3);
		position: static;
		height: auto;
		padding: 0;
		border: 0;
		background: none;
		overflow: visible;
	}

	.site-nav__menu {
		display: flex;
		gap: 0.25rem;
	}

	.site-nav__menu > li {
		position: relative;
	}

	.site-nav__menu a {
		padding: 0.5rem 0.7rem;
		font-family: var(--f-body);
		font-size: 0.9375rem;
		font-weight: 600;
		border-radius: var(--r-s);
	}

	.site-nav__menu a:hover {
		background: var(--c-wash);
	}

	.site-nav__menu > .current-menu-item > a,
	.site-nav__menu > .current-menu-ancestor > a,
	.site-nav__menu > li > a[aria-current] {
		box-shadow: inset 0 -3px 0 var(--c-green);
		border-radius: 0;
	}

	.site-nav__menu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		padding: var(--s-1);
		background: var(--c-white);
		border: 1px solid var(--c-line);
		border-radius: var(--r-m);
		box-shadow: var(--shadow);
	}

	.site-nav__menu li:hover > .sub-menu,
	.site-nav__menu li:focus-within > .sub-menu {
		display: block;
	}
}

/* ---------------------------------------------------------------------
 * 8. Page header
 * ------------------------------------------------------------------- */
.page-header {
	position: relative;
	padding-block: var(--s-5) var(--s-4);
	border-bottom: 1px solid var(--c-line);
}

.page-header::after {
	content: "";
	position: absolute;
	left: var(--gutter);
	bottom: -2px;
	width: 96px;
	height: 4px;
	background: linear-gradient(90deg, var(--c-green) 0 50%, var(--c-red) 50% 80%, var(--c-yellow) 80%);
}

@media (min-width: 1320px) {
	.page-header::after {
		left: calc((100% - var(--wide)) / 2);
	}
}

.page-header__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.5rem, 6vw, 4.5rem));
	margin: 0;
}

.page-header__intro {
	max-width: 60ch;
	margin-top: var(--s-2);
	color: var(--c-muted);
	font-size: 1.125rem;
}

.page-header__intro > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------
 * 9. Cards & grids
 * ------------------------------------------------------------------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: var(--s-4) var(--s-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.card-grid--artists {
	grid-template-columns: repeat(auto-fill, minmax(min(45%, 220px), 1fr));
	gap: var(--s-3) var(--s-2);
}

.card-grid > li[hidden] {
	display: none;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.card__media {
	position: relative;
	aspect-ratio: 10 / 7;
	border-radius: var(--r-m);
	background: var(--c-wash);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	transition: transform 0.35s ease;
}

.card__media--portrait {
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.card__placeholder {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background-color: var(--c-wash);
	background-image: var(--azulejo);
	background-size: 48px 48px;
	opacity: 0.35;
}

.card--event .card__media .date-tile {
	position: absolute;
	left: var(--s-2);
	bottom: calc(var(--s-3) * -1);
	box-shadow: var(--shadow);
}

.card__body {
	display: flex;
	flex-direction: column;
	gap: var(--s-1);
	padding-top: var(--s-2);
	flex: 1;
}

.card--event .card__body {
	padding-top: calc(var(--s-3) + var(--s-2));
}

.card__title {
	font-size: 1.375rem;
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 0;
}

.card--artist .card__title {
	font-size: 1.125rem;
}

.card__link {
	color: var(--c-ink);
	text-decoration: none;
}

/* Whole card clickable; keeps a single link for screen readers. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: var(--r-m);
}

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--c-green);
	outline-offset: 4px;
}

.card:hover .card__link {
	color: var(--c-green);
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card--event .card__media {
	overflow: visible;
}

.card--event .card__media img {
	transform: none;
}

.card__kicker {
	margin: 0;
	color: var(--c-muted);
	font-size: 0.875rem;
}

.card__extra {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-green);
}

.card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	margin-top: auto;
	padding-top: var(--s-1);
	color: var(--c-green);
	font-weight: 600;
}

.card:hover .card__more .icon {
	transform: translateX(3px);
}

.card__more .icon {
	transition: transform 0.15s;
}

.card--past .card__media img {
	filter: saturate(0.85);
}

/* ---------------------------------------------------------------------
 * 10. Homepage
 * ------------------------------------------------------------------- */
.home-hero {
	padding-block: var(--s-4) var(--s-5);
	overflow: hidden;
}

.home-hero__grid,
.event-hero__grid {
	display: grid;
	gap: var(--s-4);
	align-items: center;
}

.home-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	margin-bottom: var(--s-2);
	padding: 0.3em 0.9em 0.3em 0.7em;
	border-radius: 999px;
	background: var(--c-yellow);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.home-hero__kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-red);
}

.home-hero__title {
	font-size: var(--wp--preset--font-size--display, clamp(3rem, 8vw, 7rem));
	line-height: 0.95;
	letter-spacing: -0.035em;
	margin-bottom: var(--s-3);
}

.home-hero__title a {
	color: var(--c-ink);
	text-decoration: none;
}

.home-hero__title a:hover {
	color: var(--c-green);
}

.home-hero__when {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--s-2) var(--s-3);
}

.home-hero__when .meta-list {
	flex-direction: column;
	font-size: 1rem;
	color: var(--c-ink);
}

.home-hero__lead,
.event-hero__lead {
	max-width: 52ch;
	margin-top: var(--s-3);
	font-size: 1.125rem;
	color: var(--c-muted);
}

.home-hero__media,
.event-hero__media {
	position: relative;
	margin: 0;
}

.home-hero__media::before,
.event-hero__media::before {
	content: "";
	position: absolute;
	inset: 40px -40px -40px 40px;
	z-index: -1;
	border-radius: var(--r-l);
	background-image: var(--azulejo);
	background-size: 40px 40px;
	background-position: right bottom;
}

.home-hero__media img,
.event-hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--r-l);
}

.photo-credit {
	position: absolute;
	right: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: rgb(20 32 26 / 72%);
	color: rgb(255 255 255 / 92%);
	font-size: 0.75rem;
	line-height: 1.5;
}

.photo-credit a {
	color: inherit;
}

.photo-credit a:hover {
	color: var(--c-yellow);
}

.home-hero--empty {
	padding-block: var(--s-6);
	background:
		linear-gradient(var(--c-white) 0 0) padding-box,
		var(--azulejo);
	background-size: auto, 48px 48px;
	border-block: 24px solid transparent;
}

.home-hero__empty {
	max-width: 52rem;
	text-align: center;
}

.home-hero__empty .home-hero__lead {
	margin-inline: auto;
}

.home-hero__empty .button-row {
	justify-content: center;
}

.home-hero--empty .home-hero__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.5rem, 6vw, 4.5rem));
}

@media (min-width: 960px) {
	.home-hero__grid {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--s-5);
	}

	.home-hero {
		padding-block: var(--s-5) var(--s-6);
	}
}

/* Countdown */
.countdown {
	margin-top: var(--s-3);
}

.countdown__units {
	display: flex;
	gap: 0;
}

.countdown__unit {
	display: flex;
	flex-direction: column;
	min-width: 4.25rem;
	padding-inline: var(--s-2);
	border-left: 1px solid var(--c-line);
}

.countdown__unit:first-child {
	padding-left: 0;
	border-left: 0;
}

.countdown__value {
	font-family: var(--f-display);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--c-green);
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.countdown__label {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.countdown.is-live .countdown__units {
	display: none;
}

.countdown__live {
	font-weight: 700;
	color: var(--c-red-dark);
}

/* Partner call-to-action */
.cta-band {
	position: relative;
	padding-block: var(--s-5);
	background: var(--c-green);
	color: var(--c-white);
	overflow: hidden;
}

.cta-band::after {
	content: "";
	position: absolute;
	right: -60px;
	top: 50%;
	width: 320px;
	height: 320px;
	transform: translateY(-50%) rotate(8deg);
	background-image: var(--azulejo);
	background-size: 40px 40px;
	opacity: 0.12;
	filter: brightness(0) invert(1);
	pointer-events: none;
}

.cta-band__inner {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--s-3);
	align-items: center;
}

.cta-band__title {
	font-size: var(--wp--preset--font-size--x-large, clamp(1.625rem, 3vw, 2.5rem));
	margin-bottom: var(--s-1);
}

.cta-band__text {
	max-width: 56ch;
	margin: 0;
	opacity: 0.92;
}

.cta-band .button-row {
	margin: 0;
}

.cta-band :focus-visible {
	outline-color: var(--c-yellow);
}

@media (min-width: 900px) {
	.cta-band__inner {
		grid-template-columns: 1.4fr auto;
	}
}

/* Photo mosaic teaser */
.photo-mosaic {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.photo-mosaic img {
	width: 100%;
	height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: var(--r-s);
}

@media (min-width: 800px) {
	.photo-mosaic {
		grid-template-columns: 2fr 1fr 1fr;
		grid-template-rows: repeat(2, 1fr);
	}

	.photo-mosaic li:first-child {
		grid-row: span 2;
	}

	.photo-mosaic li:first-child img {
		aspect-ratio: auto;
	}
}

/* ---------------------------------------------------------------------
 * 11. Single event
 * ------------------------------------------------------------------- */
.event-hero {
	padding-block: var(--s-4) var(--s-5);
	overflow: hidden;
}

.event-hero__tiles {
	display: flex;
	align-items: center;
	gap: var(--s-1);
	margin-bottom: var(--s-3);
}

.event-hero__tile-sep {
	width: 20px;
	height: 3px;
	background: var(--c-ink);
	border-radius: 2px;
}

.event-hero__title {
	font-size: var(--wp--preset--font-size--xx-large, clamp(2.5rem, 6vw, 4.5rem));
	letter-spacing: -0.03em;
}

.event-hero .meta-list {
	font-size: 1rem;
	color: var(--c-ink);
}

.event-hero .badge {
	margin-bottom: var(--s-2);
}

@media (min-width: 960px) {
	.event-hero__grid {
		grid-template-columns: 1fr 1.15fr;
		gap: var(--s-5);
	}

	.event-hero--no-image .event-hero__grid {
		grid-template-columns: 1fr;
	}
}

.section-nav {
	position: sticky;
	top: var(--header-h);
	z-index: 50;
	background: var(--c-white);
	border-block: 1px solid var(--c-line);
}

.admin-bar .section-nav {
	top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 32px));
}

.section-nav__list {
	display: flex;
	gap: var(--s-1);
	overflow-x: auto;
	list-style: none;
	margin-block: 0;
	scrollbar-width: none;
}

.section-nav__list a {
	display: block;
	padding: 0.85rem 0.75rem;
	color: var(--c-ink);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.section-nav__list a:hover {
	color: var(--c-green);
	box-shadow: inset 0 -3px 0 var(--c-green);
}

.event-body,
.artist-body {
	display: grid;
	gap: var(--s-4);
}

@media (min-width: 960px) {
	.event-body {
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
	}

	.event-body__aside {
		position: sticky;
		top: calc(var(--header-h) + 5rem);
	}
}

/* Share */
.share {
	padding: var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
}

.share__title {
	margin-bottom: var(--s-1);
	font-weight: 700;
}

.share__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 1.5px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-white);
	color: var(--c-ink);
	font: 600 0.875rem/1 var(--f-body);
	text-decoration: none;
	cursor: pointer;
}

.share__btn--icon {
	width: 44px;
	padding: 0;
	justify-content: center;
}

.share__btn:hover {
	border-color: var(--c-green);
	color: var(--c-green);
}

/* ---------------------------------------------------------------------
 * 12. Schedule (tabs + timeline)
 * ------------------------------------------------------------------- */
.schedule__tabs {
	position: relative; /* offsetParent for tab scroll maths */
	display: flex;
	gap: var(--s-1);
	overflow-x: auto;
	padding: 4px 4px var(--s-2);
	margin: -4px -4px var(--s-2);
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

html:not(.js) .schedule__tabs {
	display: none;
}

.schedule__tab {
	flex: none;
	padding: 0;
	border: 0;
	border-radius: var(--r-s);
	background: none;
	cursor: pointer;
	scroll-snap-align: start;
}

.schedule__tab .date-tile {
	border-color: var(--c-line);
	transition: border-color 0.15s, background-color 0.15s;
}

.schedule__tab:hover .date-tile {
	border-color: var(--c-green);
}

.schedule__tab[aria-selected="true"] .date-tile {
	border-color: var(--c-green);
	background:
		radial-gradient(circle at 100% 0, var(--c-yellow) 0 var(--corner-a), transparent calc(var(--corner-a) + 0.5%)),
		radial-gradient(circle at 100% 0, var(--c-red) 0 var(--corner-b), transparent calc(var(--corner-b) + 0.5%)),
		var(--c-green);
}

.schedule__tab[aria-selected="true"] .date-tile__day,
.schedule__tab[aria-selected="true"] .date-tile__month,
.schedule__tab[aria-selected="true"] .date-tile__label {
	color: var(--c-white);
}

.schedule__tab-text {
	display: inline-block;
	padding: 0.75rem 1.1rem;
	border: 2px solid var(--c-line);
	border-radius: var(--r-s);
	font-weight: 700;
	color: var(--c-ink);
}

.schedule__tab[aria-selected="true"] .schedule__tab-text {
	border-color: var(--c-green);
	background: var(--c-green);
	color: var(--c-white);
}

.js .schedule__panel:not(.is-active) {
	display: none;
}

html:not(.js) .schedule__panel + .schedule__panel {
	margin-top: var(--s-4);
}

.schedule__panel:focus-visible {
	outline-offset: 8px;
}

.schedule__day-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.75rem;
	font-size: 1.375rem;
	font-weight: 700;
	margin-bottom: var(--s-3);
}

.schedule__day-title::first-letter {
	text-transform: uppercase;
}

.schedule__day-label {
	font-family: var(--f-body);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--c-red-dark);
}

.timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 52rem;
}

.timeline__item {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr);
	column-gap: var(--s-3);
	position: relative;
}

.timeline__time {
	padding-block: 1rem;
	font-weight: 700;
	font-size: 1.0625rem;
	font-variant-numeric: tabular-nums;
	color: var(--c-green);
	text-align: right;
}

.timeline__body {
	position: relative;
	padding: 1rem 0 1rem var(--s-3);
	border-left: 2px solid var(--c-line);
}

.timeline__body::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 1.45rem;
	width: 12px;
	height: 12px;
	border: 2px solid var(--c-green);
	border-radius: 3px;
	background: var(--c-white);
	transform: rotate(45deg);
}

.timeline__item--artist .timeline__body::before {
	background: var(--c-yellow);
	border-color: var(--c-ink);
}

.timeline__item + .timeline__item .timeline__body,
.timeline__item + .timeline__item .timeline__time {
	border-top: 1px solid var(--c-line);
}

.timeline__item + .timeline__item .timeline__body {
	border-top-left-radius: 0;
}

.timeline__title {
	font-weight: 700;
	font-size: 1.0625rem;
}

.timeline__artist {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--c-ink);
	text-decoration: none;
}

.timeline__artist .timeline__title {
	text-decoration: underline;
	text-decoration-color: var(--c-line);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 2px;
}

.timeline__artist:hover .timeline__title {
	color: var(--c-green);
	text-decoration-color: var(--c-green);
}

.timeline__thumb {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.timeline__item--artist .timeline__desc {
	padding-left: calc(48px + 0.75rem);
}

.timeline__desc {
	margin: 0.25rem 0 0;
	color: var(--c-muted);
	font-size: 0.9375rem;
}

/* ---------------------------------------------------------------------
 * 13. Line-up
 * ------------------------------------------------------------------- */
.lineup {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lineup--grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(45%, 200px), 1fr));
	gap: var(--s-3) var(--s-2);
}

.lineup--strip {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(160px, 220px);
	gap: var(--s-2);
	overflow-x: auto;
	padding-bottom: var(--s-2);
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}

.lineup--strip > li {
	scroll-snap-align: start;
}

/* ---------------------------------------------------------------------
 * 14. Location & directions
 * ------------------------------------------------------------------- */
.location {
	display: grid;
	gap: var(--s-4);
}

.location__venue {
	font-family: var(--f-display);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.1;
	margin-bottom: var(--s-1);
}

.location__address {
	color: var(--c-muted);
	font-size: 1.0625rem;
}

.location__map {
	min-height: 320px;
	border-radius: var(--r-m);
	overflow: hidden;
	background: var(--c-wash);
}

.directions__title {
	font-size: 1.5rem;
}

.directions__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: var(--s-2);
}

.directions__item {
	padding: var(--s-3);
	border-radius: var(--r-m);
	background: var(--c-wash);
}

.directions__heading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--f-body);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	margin-bottom: var(--s-1);
}

.directions__heading .icon {
	color: var(--c-green);
}

.directions__text {
	font-size: 0.9375rem;
}

.directions__text > :last-child {
	margin-bottom: 0;
}

@media (min-width: 960px) {
	.location {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	}

	.location .directions {
		grid-column: 1 / -1;
	}
}

/* ---------------------------------------------------------------------
 * 15. Artists
 * ------------------------------------------------------------------- */
.artist-hero {
	padding-block: var(--s-4) var(--s-5);
	border-bottom: 1px solid var(--c-line);
}

.artist-hero__grid {
	display: grid;
	gap: var(--s-4);
	align-items: end;
}

.artist-hero__photo {
	margin: 0;
	max-width: 420px;
	position: relative;
}

.artist-hero__photo::after {
	content: "";
	position: absolute;
	right: -14px;
	bottom: -14px;
	width: 45%;
	height: 45%;
	z-index: -1;
	border-radius: var(--r-l);
	background-image: var(--azulejo);
	background-size: 30px 30px;
}

.artist-hero__photo img,
.artist-hero__photo .card__placeholder {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: var(--r-l);
}

.artist-hero__title {
	font-size: var(--wp--preset--font-size--display, clamp(3rem, 8vw, 7rem));
	line-height: 0.95;
	letter-spacing: -0.035em;
}

.artist-hero__lead {
	max-width: 52ch;
	font-size: 1.125rem;
	color: var(--c-muted);
}

.artist-hero__next {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: var(--s-3);
	font-weight: 600;
}

@media (min-width: 860px) {
	.artist-hero__grid {
		grid-template-columns: minmax(260px, 420px) 1fr;
		gap: var(--s-5);
	}
}

@media (min-width: 1000px) {
	.artist-body {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
	}
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--c-line);
	border-radius: 50%;
	color: var(--c-ink);
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}

.social-links a:hover {
	border-color: var(--c-green);
	background: var(--c-green);
	color: var(--c-white);
}

.social-links--large a {
	width: 48px;
	height: 48px;
}

/* Video facade: nothing loads from YouTube until the visitor clicks. */
.video-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--r-m);
	overflow: hidden;
	background: var(--c-ink);
}

.video-embed__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--s-1);
	width: 100%;
	height: 100%;
	padding: var(--s-3);
	border: 0;
	background:
		radial-gradient(circle at 50% 42%, rgb(255 255 255 / 8%) 0 22%, transparent 60%),
		var(--c-ink);
	color: var(--c-white);
	font: inherit;
	text-align: center;
	cursor: pointer;
}

.video-embed__button .icon {
	width: 64px;
	height: 64px;
	padding: 18px;
	border-radius: 50%;
	background: var(--c-red);
	fill: currentColor;
	stroke: none;
	transition: transform 0.15s;
}

.video-embed__button:hover .icon {
	transform: scale(1.06);
}

.video-embed__label {
	font-weight: 700;
	font-size: 1.125rem;
}

.video-embed__note {
	max-width: 36ch;
	font-size: 0.8125rem;
	opacity: 0.75;
}

.video-embed__button:focus-visible {
	outline: 3px solid var(--c-yellow);
	outline-offset: -6px;
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Appearances */
.appearances {
	display: grid;
	gap: var(--s-4);
}

@media (min-width: 860px) {
	.appearances {
		grid-template-columns: 1fr 1fr;
	}
}

.appearances__title {
	font-size: 1.5rem;
}

.appearances__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--s-1);
}

.appearance {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-1);
	border-radius: var(--r-m);
	background: var(--c-white);
}

.appearance__body {
	display: flex;
	flex-direction: column;
}

.appearance__event {
	font-weight: 700;
	color: var(--c-ink);
}

.appearance__meta {
	color: var(--c-muted);
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
}

/* Category filter */
.filter {
	margin-bottom: var(--s-4);
}

.filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.filter__chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 1.5px solid var(--c-line);
	border-radius: 999px;
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.filter__chip:hover {
	border-color: var(--c-green);
	color: var(--c-green);
}

.filter__chip[aria-current="true"] {
	border-color: var(--c-ink);
	background: var(--c-ink);
	color: var(--c-white);
}

/* ---------------------------------------------------------------------
 * 16. Sponsors (single) — strip & page styles arrive with the plugin (step 8)
 * ------------------------------------------------------------------- */
.sponsor-header {
	display: grid;
	gap: var(--s-3);
	align-items: center;
}

.sponsor-header__logo {
	display: grid;
	place-items: center;
	padding: var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-white);
	max-width: 320px;
}

.sponsor-header__logo img {
	max-height: 140px;
	width: auto;
	object-fit: contain;
}

@media (min-width: 760px) {
	.sponsor-header {
		grid-template-columns: 320px 1fr;
		gap: var(--s-4);
	}
}

.footer-sponsors {
	padding-block: var(--s-4);
	border-top: 1px solid var(--c-line);
}

.footer-sponsors__title {
	margin-bottom: var(--s-3);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-muted);
	text-align: center;
}

/* ---------------------------------------------------------------------
 * 16b. Forms (partner application)
 * ------------------------------------------------------------------- */
.partner-page {
	max-width: 52rem;
}

.partner-page > p:first-child {
	font-size: 1.125rem;
	color: var(--c-muted);
}

.fp-form {
	margin-top: var(--s-3);
}

.fp-form__legend-note {
	color: var(--c-muted);
	font-size: 0.875rem;
}

.fp-form__group {
	margin: 0 0 var(--s-3);
	padding: var(--s-3);
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-white);
}

.fp-form__group legend {
	padding: 0 0.4rem;
	margin-left: -0.4rem;
	font-family: var(--f-display);
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.fp-form__grid {
	display: grid;
	gap: 0 var(--s-2);
}

@media (min-width: 720px) {
	.fp-form__grid {
		grid-template-columns: 1fr 1fr;
	}

	.fp-form__field--wide {
		grid-column: 1 / -1;
	}
}

.fp-form__field {
	margin-bottom: var(--s-2);
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.fp-form__field label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.fp-form__req {
	color: var(--c-red-dark);
}

.fp-form__opt {
	color: var(--c-muted);
	font-weight: 400;
	font-size: 0.875rem;
}

.fp-form__help {
	margin: -0.1rem 0 0.4rem;
	color: var(--c-muted);
	font-size: 0.875rem;
}

.fp-form input[type="text"],
.fp-form input[type="email"],
.fp-form input[type="tel"],
.fp-form input[type="url"],
.fp-form textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.7rem 0.85rem;
	border: 1.5px solid #9aa6a0;
	border-radius: var(--r-s);
	background: var(--c-white);
	color: var(--c-ink);
	font: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.fp-form textarea {
	resize: vertical;
}

.fp-form input:focus,
.fp-form textarea:focus {
	border-color: var(--c-green);
	box-shadow: 0 0 0 3px rgb(4 106 56 / 18%);
	outline: none;
}

.fp-form ::placeholder {
	color: #7a8680;
}

.fp-form .has-error input,
.fp-form .has-error textarea,
.fp-form input[aria-invalid="true"],
.fp-form textarea[aria-invalid="true"] {
	border-color: var(--c-red-dark);
}

.fp-form__error {
	margin: 0.35rem 0 0;
	color: var(--c-red-dark);
	font-size: 0.875rem;
	font-weight: 600;
}

.fp-form__error:empty {
	display: none;
}

.fp-form__checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
	gap: var(--s-1);
}

.fp-check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.6rem 0.8rem;
	border-radius: var(--r-s);
	cursor: pointer;
}

.fp-form__checks .fp-check {
	border: 1.5px solid var(--c-line);
	min-height: 48px;
	align-items: center;
}

.fp-form__checks .fp-check:has(input:checked) {
	border-color: var(--c-green);
	background: #eaf4ee;
}

.fp-check input {
	width: 20px;
	height: 20px;
	margin: 0.15rem 0 0;
	flex: none;
	accent-color: var(--c-green);
}

.fp-form__choices.has-error .fp-form__checks .fp-check {
	border-color: var(--c-red-dark);
}

.fp-form__choices:focus {
	outline: none;
}

.fp-form__conditional {
	margin-top: var(--s-2);
	padding: var(--s-2);
	border-left: 4px solid var(--c-yellow);
	background: var(--c-wash);
	border-radius: 0 var(--r-s) var(--r-s) 0;
}

.fp-form__conditional .fp-form__field {
	margin-bottom: 0;
}

.fp-form__consent {
	margin-top: var(--s-1);
	padding-top: var(--s-2);
	border-top: 1px solid var(--c-line);
}

.fp-form__consent .fp-check {
	padding-left: 0;
}

.fp-form__summary {
	scroll-margin-top: calc(var(--header-h) + 1rem);
	margin-bottom: var(--s-3);
	padding: var(--s-2) var(--s-3);
	border: 2px solid var(--c-red-dark);
	border-radius: var(--r-m);
	background: #fdf1f0;
}

.fp-form__summary:focus {
	outline: 3px solid var(--c-red-dark);
	outline-offset: 2px;
}

.fp-form__summary ul {
	margin: 0.4rem 0 0;
	padding-left: 1.2rem;
}

.fp-form__summary a {
	color: var(--c-red-dark);
	font-weight: 600;
}

.fp-form__summary p {
	margin: 0;
}

/* Honeypot: off-screen for people, still present for bots. */
.fp-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.fp-form__submit {
	margin-top: var(--s-3);
}

.fp-form__submit .button[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.cf-turnstile {
	margin-top: var(--s-2);
}

.fp-form-success {
	padding: var(--s-4);
	border-radius: var(--r-l);
	background: #eaf4ee;
	border: 2px solid var(--c-green);
}

.fp-form-success:focus {
	outline: none;
}

.fp-form-success h2 {
	color: var(--c-green-dark);
}

/* ---------------------------------------------------------------------
 * 16c. Photo gallery + lightbox
 * ------------------------------------------------------------------- */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(45%, 220px), 1fr));
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.gallery-grid__link {
	display: block;
	aspect-ratio: 10 / 7;
	overflow: hidden;
	border-radius: var(--r-s);
	background: var(--c-line);
}

.gallery-grid__link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-grid__link:hover img {
	transform: scale(1.04);
}

.gallery-grid__link:focus-visible {
	outline: 3px solid var(--c-green);
	outline-offset: 3px;
}

@media (min-width: 900px) {
	/* First photo gets a larger tile. */
	.gallery-grid__item:first-child {
		grid-column: span 2;
		grid-row: span 2;
	}

	.gallery-grid__item:first-child .gallery-grid__link {
		aspect-ratio: auto;
		height: 100%;
	}
}

.lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgb(10 14 12 / 96%);
	color: var(--c-white);
	overscroll-behavior: contain;
	touch-action: pan-y;
}

.lightbox::backdrop {
	background: rgb(10 14 12 / 80%);
}

.lightbox__stage {
	position: absolute;
	inset: 56px 64px 72px;
	display: grid;
	place-items: center;
}

.lightbox__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 0;
	transition: opacity 0.2s ease;
	user-select: none;
	-webkit-user-drag: none;
}

.lightbox__img.is-loaded {
	opacity: 1;
}

.lightbox__caption {
	position: absolute;
	left: 50%;
	bottom: 36px;
	max-width: min(90vw, 60ch);
	margin: 0;
	transform: translateX(-50%);
	color: rgb(255 255 255 / 88%);
	font-size: 0.9375rem;
	text-align: center;
}

.lightbox__counter {
	position: absolute;
	top: 16px;
	left: 20px;
	margin: 0;
	color: rgb(255 255 255 / 80%);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.lightbox__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 12%);
	color: var(--c-white);
	cursor: pointer;
}

.lightbox__btn:hover {
	background: rgb(255 255 255 / 24%);
}

.lightbox__btn:focus-visible {
	outline: 3px solid var(--c-yellow);
	outline-offset: 2px;
}

.lightbox__btn--close {
	top: 8px;
	right: 12px;
}

.lightbox__btn--prev,
.lightbox__btn--next {
	top: 50%;
	transform: translateY(-50%);
}

.lightbox__btn--prev {
	left: 8px;
}

.lightbox__btn--next {
	right: 8px;
}

.lightbox.is-single .lightbox__btn--prev,
.lightbox.is-single .lightbox__btn--next,
.lightbox.is-single .lightbox__counter {
	display: none;
}

@media (max-width: 600px) {
	.lightbox__stage {
		inset: 56px 0 64px;
	}

	.lightbox__btn--prev,
	.lightbox__btn--next {
		top: auto;
		bottom: 8px;
		transform: none;
	}

	.lightbox__caption {
		bottom: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lightbox__img,
	.gallery-grid__link img {
		transition: none;
	}
}

/* ---------------------------------------------------------------------
 * 16d. About the festival (homepage content), feature tiles, partners layout
 * ------------------------------------------------------------------- */
.eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6em;
	margin: 0 0 var(--s-2);
	color: var(--c-green);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 5px;
	background: var(--azulejo) center / 24px 24px;
}

.entry-content .lead {
	font-size: clamp(1.125rem, 1.6vw, 1.3rem);
	line-height: 1.55;
	color: var(--c-ink);
}

.home-content .entry-content {
	font-size: 1.0625rem;
}

.home-about > * {
	max-width: 44rem;
	margin-block: 0 1em;
}

.home-about > h2 {
	margin-top: 1.8em;
	font-size: 1.6rem;
}

.home-about > h2:first-of-type {
	margin-top: 0;
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1;
}

@media (min-width: 1000px) {
	.home-about {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		grid-auto-flow: dense;
		column-gap: var(--s-5);
	}

	.home-about > * {
		grid-column: 2;
		max-width: none;
	}

	/* Label and heading share the left column (they overlap on purpose: the heading's
	   top padding leaves room for the label), while the story flows down the right. */
	.home-about > .eyebrow {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
	}

	.home-about > h2:first-of-type {
		grid-column: 1;
		grid-row: 1 / span 30;
		align-self: start;
		position: sticky;
		top: 7rem;
		padding-top: 2.75rem;
	}

	.home-about > h2:not(:first-of-type) {
		margin-top: 1.4em;
	}
}

/* "Destaques" list style: a grid of tiles, each with a small azulejo. */
.entry-content ul.is-style-features,
.is-style-features {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	gap: 0.75rem;
	margin-block: var(--s-3);
	padding: 0;
	list-style: none;
}

.is-style-features li {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 3.5rem;
	margin: 0;
	padding: 0.85rem 1rem 0.85rem 3.25rem;
	border: 1px solid var(--c-line);
	border-radius: var(--r-m);
	background: var(--c-white);
	font-weight: 600;
	line-height: 1.3;
}

.is-style-features li::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 1rem;
	width: 1.5rem;
	height: 1.5rem;
	margin-top: -0.75rem;
	border-radius: 5px;
	background: var(--azulejo) center / 24px 24px;
}

.is-style-features li:nth-child(3n + 2)::before {
	filter: hue-rotate(-150deg) saturate(1.4);
}

.partner-page h2 {
	margin-top: var(--s-4);
	font-size: 1.6rem;
}

@media (min-width: 1024px) {
	.partner-layout {
		display: grid;
		grid-template-columns: minmax(0, 52rem) minmax(16rem, 20rem);
		justify-content: space-between;
		column-gap: var(--s-5);
	}

	.partner-layout .partner-page {
		grid-column: 1;
		grid-row: 1;
	}

	.partner-layout .next-edition {
		grid-column: 2;
		grid-row: 1;
		position: sticky;
		top: 7rem;
		align-self: start;
		margin: 0;
	}
}

.next-edition {
	margin-bottom: var(--s-4);
	padding: var(--s-3);
	padding-top: calc(var(--s-3) + 14px);
	border: 1px solid var(--c-line);
	border-radius: var(--r-l);
	background:
		var(--azulejo) top left / 28px 28px repeat-x,
		var(--c-white);
	background-clip: padding-box;
	box-shadow: 0 1px 0 rgb(20 32 26 / 4%);
}

.next-edition__eyebrow {
	margin: var(--s-1) 0 var(--s-2);
	color: var(--c-green);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.next-edition__tiles {
	margin-bottom: var(--s-2);
}

.next-edition__title {
	margin: 0 0 var(--s-1);
	font-size: 1.4rem;
	line-height: 1.1;
}

.next-edition__title a {
	color: inherit;
	text-decoration: none;
}

.next-edition__title a:hover {
	color: var(--c-green);
}

.next-edition .meta-list {
	flex-direction: column;
	gap: 0.35rem;
}

.next-edition__tagline {
	margin: var(--s-2) 0 0;
	padding-top: var(--s-2);
	border-top: 1px solid var(--c-line);
	color: var(--c-red-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.meta-list .meta-list__free {
	color: var(--c-green-dark);
	font-weight: 700;
}

/* ---------------------------------------------------------------------
 * 17. Footer
 * ------------------------------------------------------------------- */
.site-footer {
	padding-block: var(--s-5) var(--s-3);
	background: var(--c-ink);
	color: rgb(255 255 255 / 86%);
	font-size: 0.9375rem;
}

.site-footer a {
	color: var(--c-white);
}

.site-footer a:hover {
	color: var(--c-yellow);
}

.site-footer :focus-visible {
	outline-color: var(--c-yellow);
}

.site-footer .site-logo {
	color: var(--c-white);
}

.site-footer__grid {
	display: grid;
	gap: var(--s-4);
}

@media (min-width: 900px) {
	.site-footer__grid {
		grid-template-columns: 1.3fr 1fr 1.3fr;
	}

	.site-footer__grid--two {
		grid-template-columns: 1.3fr 1fr;
	}
}

.site-footer__tagline {
	max-width: 36ch;
	margin-top: var(--s-2);
}

.site-footer__newsletter-text {
	margin: -0.5rem 0 var(--s-2);
	max-width: 40ch;
}

.site-footer__newsletter {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

.site-footer__heading {
	margin-bottom: var(--s-2);
	font-family: var(--f-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--c-yellow);
}

.contact-list {
	display: grid;
	gap: var(--s-1);
	list-style: none;
	margin: 0;
	padding: 0;
}

.contact-list li {
	display: flex;
	gap: 0.6em;
}

.contact-list .icon {
	margin-top: 0.2em;
	color: var(--c-yellow);
}

.social-links--footer a {
	border-color: rgb(255 255 255 / 30%);
	color: var(--c-white);
}

.social-links--footer a:hover {
	border-color: var(--c-yellow);
	background: var(--c-yellow);
	color: var(--c-ink);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--s-1) var(--s-3);
	margin-top: var(--s-5);
	padding-top: var(--s-3);
	border-top: 1px solid rgb(255 255 255 / 16%);
	font-size: 0.875rem;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__credit::before {
	content: "·";
	margin: 0 0.5em;
	opacity: 0.6;
}

@media (max-width: 600px) {
	/* Credit on its own line on phones. */
	.site-footer__credit {
		display: block;
		margin-top: 0.25rem;
	}

	.site-footer__credit::before {
		content: none;
	}
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1) var(--s-3);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .link-button {
	color: var(--c-white);
}

.site-footer .link-button:hover {
	color: var(--c-yellow);
}

/* Newsletter on the dark footer. */
.site-footer .fp-newsletter__consent,
.site-footer .fp-newsletter__message.is-info {
	color: rgb(255 255 255 / 86%);
}

.site-footer .fp-newsletter__message.is-success {
	color: var(--c-yellow);
}

.site-footer .fp-newsletter__message.is-error {
	color: #ffb4ab;
}

.site-footer .fp-newsletter input[type="email"] {
	border-color: transparent;
}

.site-footer .fp-newsletter__submit {
	background: var(--c-yellow);
	color: var(--c-ink);
}

.site-footer .fp-newsletter__submit:hover {
	background: var(--c-white);
}

.site-footer .fp-newsletter__consent input {
	accent-color: var(--c-yellow);
}

/* ---------------------------------------------------------------------
 * 18. Pagination
 * ------------------------------------------------------------------- */
.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--s-1);
	list-style: none;
	margin: var(--s-5) 0 0;
	padding: 0;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.8rem;
	border: 1.5px solid var(--c-line);
	border-radius: 999px;
	color: var(--c-ink);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-white);
}

/* ---------------------------------------------------------------------
 * 19. Motion preferences
 * ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
