/* stylelint-disable no-descending-specificity -- Independent components that share link selectors. */

/**
 * Shared pieces: main menu, section-page layout, agenda, capsules and map.
 * Mobile first; the desktop rules start at 60em (the inline menu at 75em).
 */

/* ───────── Section pages ───────── */
body.fce80-shell {
	margin: 0;
	background: var(--f80-night);
	color: var(--f80-ink);
	font-family: var(--f80-font);
	font-size: 1rem;
	line-height: 1.6;
}

.fce80-shell *,
.fce80-shell *::before,
.fce80-shell *::after {
	box-sizing: border-box;
}

.f80-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background: radial-gradient(120% 60% at 50% 0%, #1c1230 0%, #0a0908 55%);
}

.f80-header {
	position: relative;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 0.875rem var(--f80-edge);
}

.f80-header img {
	display: block;
	width: auto;
	height: var(--f80-logo-h, 48px);
	opacity: 0.92;
}

.f80-header__meta {
	display: contents;
	align-items: center;
	gap: 1.75rem;
	color: var(--f80-ink-faint);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.f80-header__years {
	display: none;
}

.f80-header__count {
	order: 3;
	flex-basis: 100%;
	margin-top: 0.5rem;
	color: var(--f80-gold);
	font-size: 0.6875rem;
}

.f80-main-content {
	flex: 1;
	width: 100%;
	max-width: 72rem;
	margin: 0 auto;
	padding: 2rem var(--f80-edge) 4rem;
}

.f80-page__kicker {
	margin: 0 0 0.75rem;
	color: var(--f80-red-text);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.26em;
	text-transform: uppercase;
}

.f80-page__kicker a {
	color: inherit;
	text-decoration: none;
}

.f80-page__kicker a:hover {
	color: var(--f80-gold);
}

.f80-page__title {
	max-width: 22ch;
	margin: 0 0 2rem;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.f80-site-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	justify-content: space-between;
	padding: 1.5rem var(--f80-edge);
	border-top: 2px solid var(--f80-hairline);
	color: var(--f80-ink-faint);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.f80-site-footer a,
.f80-prose a {
	color: var(--f80-gold);
}

.f80-prose {
	max-width: 100%;
}

.f80-prose > p,
.f80-prose > ul,
.f80-prose > ol {
	max-width: 68ch;
}

.f80-prose h2,
.f80-prose h3 {
	margin: 2.5rem 0 0.75rem;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.f80-prose img {
	max-width: 100%;
	height: auto;
}

.f80-button,
.f80-prose .wp-block-button__link {
	display: inline-block;
	padding: 1rem 1.75rem;
	border: 0;
	border-radius: 0;
	background: var(--f80-red);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.2em;
	text-decoration: none;
	text-transform: uppercase;
}

.f80-button:hover,
.f80-prose .wp-block-button__link:hover {
	background: var(--f80-red-dark);
	color: #fff;
}

.f80-empty {
	color: var(--f80-ink-muted);
}

/* ───────── Agenda ───────── */
.f80-agenda__month {
	margin: 2.5rem 0 0.75rem;
	color: var(--f80-gold);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.f80-agenda {
	margin: 0;
	padding: 0;
	list-style: none;
}

.f80-act {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr);
	gap: 1rem 1.25rem;
	padding: 1.25rem 0;
	border-top: 2px solid var(--f80-hairline);
}

.f80-act__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: start;
	padding: 0.5rem 0;
	border: 2px solid var(--f80-line);
	line-height: 1;
}

.f80-act__day {
	font-size: 1.75rem;
	font-weight: 800;
}

.f80-act__month {
	margin-top: 0.25rem;
	color: var(--f80-gold);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.f80-act__title {
	margin: 0 0 0.375rem;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
}

.f80-act__title a {
	color: var(--f80-ink);
	text-decoration: none;
}

.f80-act__title a:hover {
	color: var(--f80-gold);
}

.f80-act__meta {
	margin: 0;
	color: var(--f80-ink-muted);
	font-size: 0.875rem;
}

.f80-act__badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.125rem 0.5rem;
	border: 1px solid var(--f80-line);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.f80-act__excerpt {
	margin: 0.5rem 0 0;
	max-width: 62ch;
}

.f80-act__thumb {
	grid-column: 2;
}

.f80-act__thumb img {
	display: block;
	width: 100%;
	max-width: 20rem;
	height: auto;
}

.f80-agenda-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
}

.f80-agenda-nav a {
	display: block;
	padding: 0.5rem 0.875rem;
	border: 2px solid var(--f80-line);
	color: var(--f80-ink);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
}

.f80-agenda-nav a:hover,
.f80-agenda-nav a[aria-current] {
	border-color: var(--f80-gold);
	color: var(--f80-gold);
}

.f80-detail {
	display: grid;
	gap: 0.25rem 1.5rem;
	grid-template-columns: max-content minmax(0, 1fr);
	margin: 0 0 2rem;
}

.f80-detail dt {
	color: var(--f80-ink-faint);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.f80-detail dd {
	margin: 0;
}

/* ───────── Activity page ───────── */
.f80-banner {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 7;
	margin: 0 0 1.75rem;
	background: var(--f80-red) url(../img/trama.jpg) center / cover;
}

.f80-banner__logo {
	position: absolute;
	right: 1.5rem;
	bottom: 1.25rem;
	width: auto;
	height: 46%;
}

.f80-key {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	align-items: flex-start;
	margin: 0 0 1.5rem;
}

.f80-key__date {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	min-width: 5rem;
	padding: 0.75rem 0.5rem;
	border: 2px solid var(--f80-gold);
	line-height: 1;
}

.f80-key__day {
	font-size: 2.5rem;
	font-weight: 800;
}

.f80-key__month {
	margin-top: 0.375rem;
	color: var(--f80-gold);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.f80-key .f80-detail {
	flex: 1 1 16rem;
	margin: 0;
}

.f80-detail__when {
	font-size: 1.125rem;
	font-weight: 800;
}

.f80-detail dd.is-pending {
	color: var(--f80-ink-muted);
	font-style: italic;
}

.f80-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: flex-start;
	margin: 0 0 2.5rem;
}

.f80-button--ghost {
	border: 2px solid var(--f80-line);
	background: transparent;
	color: var(--f80-ink);
}

.f80-button--ghost:hover {
	border-color: var(--f80-gold);
	background: transparent;
	color: var(--f80-gold);
}

.f80-cal {
	position: relative;
}

.f80-cal > summary {
	cursor: pointer;
	list-style: none;
}

.f80-cal > summary::-webkit-details-marker {
	display: none;
}

.f80-cal > summary:focus-visible {
	outline: 3px solid var(--f80-gold);
	outline-offset: 2px;
}

.f80-cal__menu {
	position: absolute;
	z-index: 5;
	top: calc(100% + 0.25rem);
	left: 0;
	min-width: 16rem;
	margin: 0;
	padding: 0.5rem;
	border: 2px solid var(--f80-line);
	background: var(--f80-panel);
	list-style: none;
}

.f80-cal__menu a {
	display: block;
	padding: 0.625rem 0.75rem;
	color: var(--f80-ink);
	text-decoration: none;
}

.f80-cal__menu a:hover,
.f80-cal__menu a:focus-visible {
	background: var(--f80-hairline);
	color: var(--f80-gold);
}

.f80-section-title {
	margin: 3rem 0 1rem;
	color: var(--f80-gold);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.f80-more > p a {
	color: var(--f80-gold);
}

.f80-more .f80-agenda {
	margin-bottom: 1rem;
}

.screen-reader-text {
	position: absolute;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 60em) {

	.f80-banner {
		aspect-ratio: 16 / 5;
	}

	.f80-act {
		grid-template-columns: 5rem minmax(0, 1fr) 14rem;
	}

	.f80-act__thumb {
		grid-column: auto;
	}

	.f80-header {
		padding: 1.25rem var(--f80-edge);
	}

	.f80-header img {
		height: calc(var(--f80-logo-h, 48px) * 1.5);
	}

	.f80-header__years {
		display: inline;
	}

	.f80-header__meta {
		display: flex;
		flex: 0 1 auto;
		flex-wrap: wrap;
		gap: 0.5rem 1.75rem;
		min-width: 0;
	}

	.f80-header__years,
	.f80-header__count {
		white-space: nowrap;
	}

	.f80-header__count {
		order: 0;
		flex-basis: auto;
		margin-top: 0;
		font-size: 0.75rem;
	}

	.f80-main-content {
		padding-top: 3rem;
	}
}

/* ───────── Capsules ───────── */
.f80-caps {
	display: grid;
	gap: 2rem 1.5rem;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.f80-cap__link {
	display: block;
	color: var(--f80-ink);
	text-decoration: none;
}

.f80-cap__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	overflow: hidden;
	background: var(--f80-panel);
}

.f80-cap__media img,
.f80-cap__media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
}

.f80-cap__play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(0deg, rgb(10 9 8 / 55%), transparent 60%);
}

.f80-cap__play::before {
	width: 3.5rem;
	height: 3.5rem;
	border: 2px solid #fff;
	border-radius: 50%;
	background: rgb(181 52 47 / 90%) center / 1.25rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E");
	content: "";
}

.f80-cap__link:hover .f80-cap__play::before {
	background-color: var(--f80-red-dark);
}

.f80-cap__title {
	display: block;
	margin-top: 0.75rem;
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.25;
}

.f80-cap__text {
	margin: 0.375rem 0 0;
	color: var(--f80-ink-muted);
	font-size: 0.875rem;
}

/* ───────── Map ───────── */
.f80-map {
	max-width: 100%;
	background: var(--f80-panel);
}

.f80-map iframe {
	display: block;
	width: 100%;
	border: 0;
}

.f80-map__link {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}

.f80-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ───────── Menu (facade header and section header) ───────── */
.f80-nav__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	padding: 0.5rem 0.75rem;
	border: 2px solid var(--f80-line);
	border-radius: 0;
	background: rgb(10 9 8 / 55%);
	color: var(--f80-ink);
	font-family: var(--f80-font);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
	appearance: none;
}

.f80-nav__toggle:hover {
	border-color: var(--f80-gold);
}

.f80-nav__bars,
.f80-nav__bars::before,
.f80-nav__bars::after {
	display: block;
	width: 1rem;
	height: 2px;
	background: currentcolor;
	content: "";
}

.f80-nav__bars {
	position: relative;
}

.f80-nav__bars::before {
	position: absolute;
	top: -5px;
}

.f80-nav__bars::after {
	position: absolute;
	top: 5px;
}

.f80-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.f80-nav__list a {
	display: block;
	padding: 0.875rem var(--f80-edge);
	color: var(--f80-ink);
	font-family: var(--f80-font);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-decoration: none;
	text-transform: uppercase;
}

.f80-nav__list a:hover,
.f80-nav__list .current-menu-item > a {
	color: var(--f80-gold);
}

.f80-nav__list a:focus-visible,
.f80-nav__toggle:focus-visible {
	outline: 2px solid var(--f80-gold);
	outline-offset: -2px;
}

/* With script, the list is a dropdown under the header; without it, it just shows. */
.f80-nav.has-js .f80-nav__list {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: none;
	border-top: 2px solid var(--f80-hairline);
	border-bottom: 2px solid var(--f80-hairline);
	background: var(--f80-panel);
}

.f80-nav.has-js .f80-nav__list.is-open {
	display: block;
}

@media (min-width: 75em) {

	.f80-nav {
		display: flex;
		align-items: center;
		min-width: 0;
	}

	.f80-nav__toggle {
		display: none;
	}

	.f80-nav .f80-nav__list,
	.f80-nav.has-js .f80-nav__list {
		position: static;
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem;
		border: 0;
		background: transparent;
	}

	/* One line per item: if they do not all fit, whole items move to the next row. */
	.f80-nav__list a {
		padding: 0.5rem 0.75rem;
		font-size: 0.75rem;
		white-space: nowrap;
	}
}

.f80-site-footer a:hover,
.f80-prose a:hover {
	color: #fff;
}

.fce80-shell a:focus-visible,
.fce80-shell button:focus-visible,
.fce80-shell summary:focus-visible {
	outline: 2px solid var(--f80-gold);
	outline-offset: 2px;
}
