@charset "UTF-8";

/**
 * theme-navigations.css
 * Author: hybrid.
 */



/* ================================================================================================== */
/* ============================================= CONFIG ============================================= */
/* ================================================================================================== */


/* ============================== DEFAULT ============================== */

:root {
	--nav-anchor-hover-color: currentColor;
	--button-text-transform: lowercase;

	/* base look: outline */
	--button-text-color: var(--text-color);
	--button-background-color: transparent;
	--button-hover-text-color: var(--background-color);
	--button-hover-background-color: var(--text-color);
	--button-border-width: var(--stroke-width);
	--button-border-color: var(--text-color);
	--button-hover-border-color: var(--text-color);

	/* .colored look: filled */
	--button-colored-text-color: var(--text-color);
	--button-colored-background-color: var(--theme-color, var(--yellow-color));
	--button-colored-hover-text-color: var(--theme-color, var(--yellow-color));
	--button-colored-hover-background-color: var(--dark-color);
	--button-colored-border-width: 0px;
	--button-colored-border-color: currentColor;
	--button-colored-hover-border-color: currentColor;
}


/* ============================== SKIP LINKS ============================== */

:root { --skip-links-top: calc(var(--header-height) + var(--gutter-gap)); }


/* ============================== STACKING ============================== */

main { --nav-sticky-top: calc(var(--header-height) + var(--contextual-height)); }



/* =================================================================================================== */
/* ============================================= BUTTONS ============================================= */
/* =================================================================================================== */

/* ============================== OUTLINE ============================== */

/* outline is the base look (tokens in CONFIG), .colored remaps them to the filled look */
:where(.nav, .buttons, .button, button, input[type=submit]).colored {
	--button-text-color: var(--button-colored-text-color);
	--button-background-color: var(--button-colored-background-color);
	--button-hover-text-color: var(--button-colored-hover-text-color);
	--button-hover-background-color: var(--button-colored-hover-background-color);
	--button-border-width: var(--button-colored-border-width);
	--button-border-color: var(--button-colored-border-color);
	--button-hover-border-color: var(--button-colored-hover-border-color);
}

/* overlap of fitted outline buttons */
:where(nav, .nav).buttons.fit > * + *,
.nav.fit nav.buttons > * + * { margin-left: calc(var(--button-border-width) * -1); }



/* ================================================================================================= */
/* ============================================= MENUS ============================================= */
/* ================================================================================================= */


/* ============================== CONFIG ============================== */

.menu {
	/* anchors */
	--nav-gap: 0;
	--nav-anchor-padding-x: 1em;
	--nav-anchor-padding-y: 1em;

	/* collapsible-toggle */
	--button-hover-text-color: currentColor; 
	--button-hover-background-color: transparent;

	/* custom */
	--menu-offset-x: 0px;
}

.has-menu > .menu {
	--menu-font-size: .875em; /*calc(11em / 12);*/ /* for 44px */
	--menu-offset-x: 1em;
}


/* ============================== DEFAULT ============================== */

:where(.menu .has-menu) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
:where(.menu, .menu .has-menu) > :where(li, ul) { flex-basis: 100%; }


/* ============================== ANCHORS ============================== */

.menu  a { width: 100%; }
.menu .has-menu a { margin-left: var(--menu-offset-x); }
.menu .has-menu:has( > .collapsible-toggle) > a { width: calc(100% - 3em - var(--menu-offset-x)); }

.menu a span:not(.label) {
	position: relative;
	padding-inline: var(--nav-anchor-padding-x);
	padding-block: var(--nav-anchor-padding-y);
}
.menu a span::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: var(--nav-anchor-padding-x);
	display: block;
	height: var(--stroke-width);
	width: 0%;
	border-radius: var(--stroke-width);
	color: currentColor;
	background-color: currentColor;
	transform: translate(0, calc(var(--nav-anchor-padding-x) * -1 / 2));
	pointer-events: none;
}


/* ============================== ACTIVE ============================== */

.menu .active a span::after,
.menu a.active span::after,
.menu a:focus-visible span::after { width: calc(100% - calc(var(--nav-anchor-padding-x) * 2)); }


/* ============================== HOVER ============================== */

@media (hover: hover) {
	.menu a:hover span::after { width: calc(100% - calc(var(--nav-anchor-padding-x) * 2)); }
}
@media (hover: none) {
	.menu a.hover span::after { width: calc(100% - calc(var(--nav-anchor-padding-x) * 2)); }
}



/* =========================================================================================================== */
/* ============================================= SWIPER CONTROLS ============================================= */
/* =========================================================================================================== */


/* ============================== CONFIG ============================== */

/* normal mode: the arrows follow the buttons (outline). The swiper tokens are resolved on :root, so the border is mapped here */
.swiper-controls {
	--swiper-controls-button-border: var(--button-border-width) solid var(--button-border-color);
	--swiper-controls-button-hover-border: var(--button-border-width) solid var(--button-hover-border-color);
}

/* Bullets keep their color when active, the hover color of an outline button is the page background */
.swiper-pagination {
	--swiper-controls-button-hover-color: var(--swiper-controls-button-color);
}

/* cursor mode: filled (colored look). Specificity above .swiper-cursor (swipers.css), whatever the load order */
.swiper-container .swiper-cursor {
	--cursor-color: var(--button-colored-text-color);
	--cursor-background: var(--button-colored-background-color);
}


/* ============================== VARIATIONS ============================== */

:where(nav, .nav) .swiper-controls {
	margin-block: 0;
	width: auto;
}
.overlay.event .nav.is-right .swiper-controls { margin-right: auto; }



/* ======================================================================================================= */
/* ============================================= MEDIAPLAYER ============================================= */
/* ======================================================================================================= */

/* ============================== CONFIG ============================== */

:where(.mediaplayer) {
	--button-border-width: 0px;
	--button-background-color: transparent;
	--button-hover-background-color: transparent;
	--button-hover-text-color: currentColor;

	--mediaplayer-background-color: var(--accent-color);

	/* bigplay: outline, filled on hover */
	--vlite-bigplay-background: rgba(var(--dark-rgb), .5); /*transparent;*/
	--vlite-bigplay-color: var(--bright-color);
	--vlite-bigplay-border-width: var(--stroke-width);
	--vlite-bigplay-border-color: var(--bright-color);

	--vlite-bigplay-hover-background: var(--bright-color);
	--vlite-bigplay-hover-color: var(--dark-color);
	--vlite-bigplay-hover-border-color: var(--bright-color);
}



/* ====================================================================================================== */
/* ============================================= NAVIGATION ============================================= */
/* ====================================================================================================== */


/* ============================== CONFIG ============================== */

#navigation {
	--navigation-step: calc(var(--duration-normal) * 2 / 3);
	--navigation-offset: -25%;
	--navigation-background-color: linear-gradient(
        to bottom,
        var(--theme-color) 0%,
        transparent
    );
	--button-font-size: 1em;
	--button-border-width: 0;
	--button-padding-x: 1em;
	--button-padding-y: 1em;
}


/* ============================== ANIMATIONS ============================== */

/* Close: content > backgrounds > height */
#navigation {
	transition:
		visibility .01s linear calc(var(--navigation-step) * 3),
		height var(--navigation-step) var(--easeInQuint) calc(var(--navigation-step) * 2);
}
#navigation::before,
#navigation::after {
	transition: opacity var(--navigation-step) var(--easeInQuint) var(--navigation-step);
}
#navigation .navigation-content > * {
	transition:
		opacity var(--navigation-step) var(--easeInQuint),
		transform var(--navigation-step) var(--easeInQuint);
}

/* Open: height > backgrounds > content */
body.expanded #navigation {
	transition:
		visibility .01s linear,
		height var(--navigation-step) var(--easeOutQuint);
}
body.expanded #navigation::before,
body.expanded #navigation::after {
	transition: opacity var(--navigation-step) var(--easeOutQuint) var(--navigation-step);
}
body.expanded #navigation .navigation-content > * {
	transition:
		opacity var(--navigation-step) var(--easeOutQuint) calc(var(--navigation-step) * 2),
		transform var(--navigation-step) var(--easeOutQuint) calc(var(--navigation-step) * 2);
}

[data-navigation-target] .label,
[data-navigation-target] .label::before,
[data-navigation-target] .label::after {
	transition: all var(--duration-normal) var(--easeInOutQuint);
}


/* ============================== DEFAULT ============================== */

#navigation {
	position: fixed;
	z-index: 1300;
	inset: 0;
	display: flex;
	height: 0;
	width: 100%;
	overflow: hidden;
	visibility: hidden;
	scroll-behavior: smooth;
}
#navigation::before,
#navigation::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}
#navigation::before {
	z-index: 10;
	height: var(--header-height);
	background: var(--theme-color);
}
#navigation::after {
	z-index: -1;
	background: var(--background-color);
}
#navigation .navigation-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	width: 100%;
	padding-inline: var(--section-gap-x);
	padding-block: calc(var(--header-height) + var(--gutter-gap)) var(--gutter-gap);
	background: var(--navigation-background-color);
}
#navigation .navigation-content > * {
	pointer-events: auto;
	opacity: 0;
	transform: translate3d(0, var(--navigation-offset), 0);
}


/* ============================== EXPAND ============================== */

body.expanded #navigation {
	overflow: auto;
	visibility: visible;
	height: 100svh;
}
body.expanded #navigation::before,
body.expanded #navigation::after { opacity: 1; }


/* ============================== MENU ============================== */

#navigation .menu > * { border-top: solid var(--stroke-width); }
#navigation :not(.has-menu) > .menu > :first-child { border-top: 0; }


/* ============================== NAV ============================== */

#navigation .sitemap { margin-block: auto; }
#navigation .secondary,
#navigation .socialbar {
	--nav-font-size: .75em;
	justify-content: center;
}


/* ============================== EXPAND ============================== */

body.expanded { overflow: hidden; }
body.expanded #navigation .navigation-content { overflow: auto; }
body.expanded #navigation .navigation-content > * {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

#navigation-expand {
	position: relative;
	z-index: 2100;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
}

@media (min-width: 1000px) {
	#navigation-expand { display: none; }
}



/* =================================================================================================== */
/* ============================================= PRIMARY ============================================= */
/* =================================================================================================== */


/* ============================== CONFIG ============================== */

nav.primary {
	--nav-font-size: 1.5em;
	--nav-anchor-padding-x: .5em;
	--nav-anchor-padding-y: .5em;
	--nav-anchor-gap: .25em;
}

/* ============================== ANCHORS ============================== */

nav.primary a { padding: 0; }

nav.primary a span {
	position: relative;
	padding-inline: var(--nav-anchor-padding-x);
	padding-block: var(--nav-anchor-padding-y);
}
nav.primary a span::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: .5em;
	height: var(--stroke-width);
	width: 0%;
	border-radius: var(--stroke-width);
	color: currentColor;
	background-color: currentColor;
	transform: translate(0, calc(var(--nav-anchor-padding-y) / -2));
	pointer-events: none;
}


/* ============================== ACTIVE ============================== */

nav.primary a.active span::after,
nav.primary a:focus-visible span::after { width: calc(100% - var(--nav-anchor-padding-x) * 2); }


/* ============================== HOVER ============================== */

@media (hover: hover) {
	nav.primary a:hover span::after { width: calc(100% - var(--nav-anchor-padding-x) * 2); }
	nav.primary a.active:hover span::after { width: 0; }
}
@media (hover: none) {
	nav.primary a.hover span::after { width: calc(100% - var(--nav-anchor-padding-x) * 2); }
	nav.primary a.active.hover span::after { width: 0; }
}


/* ===================================================================================================== */
/* ============================================= SECONDARY ============================================= */
/* ===================================================================================================== */


/* ============================== CONFIG ============================== */

nav.secondary {
	--nav-anchor-padding: calc(var(--nav-anchor-padding) / 2);
	flex-direction: row;
}



/* ====================================================================================================== */
/* ============================================= CONTEXTUAL ============================================= */
/* ====================================================================================================== */

/* nav.contextual  — contextual nav for sections / actions for page */

/* ============================== CONFIG ============================== */

:root {
	--contextual-height: 0px;
	--contextual-filters-height: calc(var(--font-size) * 3);
}

:where(nav, .nav).contextual {
	--nav-wrap: nowrap;
	--nav-anchor-opacity: .5;
	--anchor-hover-color: var(--light-color);
	align-items: flex-start;
}

.nav.contextual.sticky { --nav-background-opacity: var(--header-after-opacity, 0); }

/* breadcrumb */
:root:has(.nav.contextual.pages.sticky) { --contextual-height: var(--contextual-filters-height); }

/* filters bar followed by a chronological grid */
.contextual:has(.filters):has(+ .grid.chronological),
.contextual:has(.filters):has(+ .grid-status + .grid.chronological) {
	--contextual-height: max(var(--contextual-filters-height), calc(var(--results-title-size) + var(--content-spacing)));
}

/* ============================== MARGIN ============================== */

/* the bar overlaps the first sticky title (same height), the grid has a content-spacing margin-top */
.contextual:has(.filters):has(+ .grid.chronological),
.contextual:has(.filters):has(+ .grid-status + .grid.chronological) {
	min-height: var(--contextual-height);
	margin-bottom: calc((var(--contextual-height) + var(--content-spacing)) * -1);
	align-items: center;
}

/* sticky title: same stick position and height as the bar (1lh = title font size), no em token */
.contextual:has(.filters) + .grid.chronological .results-title.sticky,
.contextual:has(.filters) + .grid-status + .grid.chronological .results-title.sticky {
	top: var(--nav-sticky-top);
	line-height: 1;
	padding-block: calc(max(var(--contextual-filters-height) - 1lh, var(--content-spacing)) / 2);
}

.page-title + .contextual { margin-top: 0; }


/* ============================== CONTENT ============================== */

.contextual .season-navigation,
.contextual .mode {
	justify-content: flex-end;
	margin-left: auto;
}
.contextual .go-back + nav { width: auto; }

.contextual fieldset + .nav.filters { margin-top: calc(var(--content-spacing) / 2); }


/* ============================== MAIN CONTEXTUAL ============================== */

header + .nav.contextual { font-size: var(--main-font-size); }



/* =================================================================================================== */
/* ============================================= FILTERS ============================================= */
/* =================================================================================================== */

/* no fx = no padding */

/* ============================== CONFIG ============================== */

:where(nav, .nav).filters {
	--nav-gap: 0;
	--nav-anchor-opacity: .25;
	--swiperable-gap-x: 0px;
	--small-font-size: .5em;
}


/* ============================== DEFAULT ============================== */

:where(nav, .nav).filters.swiperable::before { display: none; }
:where(nav, .nav).filters.swiperable button:first-child { margin-left: -1em; }
:where(nav, .nav).filters.sticky { border-bottom: solid var(--stroke-width) var(--light-color); }


/* ============================== FILTERS COUNT ============================== */

.filters .count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: var(--small-font-size);
	line-height: 1;
	font-weight: var(--font-weight-bold);
	text-align: center;
	height: calc(var(--small-font-size) * 3);
	width:  calc(var(--small-font-size) * 3);
	padding: 1em;
	border-radius: 50%;
	color: var(--background-color);
	background: var(--text-color);
	pointer-events: none;
}
[data-filters-count]:hover::before { background: var(--button-hover-background-color); }
[data-filters-count="0"]::before { opacity: 0; }


/* ============================== BUTTONS ============================== */

/* <button> in a filters bar looks like the anchors: cancels the button look (buttons.css, weaker selector).
   Hover and active are redeclared with a higher specificity than buttons.css (button:hover, button.active) */
:where(nav, .nav).filters button {
	font-size: inherit;
	font-weight: inherit;
	line-height: var(--nav-line-height);
	letter-spacing: inherit;
	text-transform: var(--nav-anchor-transform);
	gap: var(--nav-anchor-gap);
	padding-inline: var(--nav-anchor-padding-x);
	padding-block: var(--nav-anchor-padding-y);
	color: var(--nav-anchor-color);
	background: none;
	box-shadow: none;
	border-radius: 0;
	opacity: var(--nav-anchor-opacity);
}

:where(nav, .nav).filters button.active {
	color: var(--nav-anchor-hover-color);
	background: none;
	box-shadow: none;
	opacity: var(--nav-anchor-hover-opacity);
}

@media (hover: hover) {
	:where(nav, .nav).filters button:hover {
		color: var(--nav-anchor-hover-color);
		background: none;
		box-shadow: none;
		opacity: var(--nav-anchor-hover-opacity);
	}
}
@media (hover: none) {
	:where(nav, .nav).filters button.hover {
		color: var(--nav-anchor-hover-color);
		background: none;
		box-shadow: none;
		opacity: var(--nav-anchor-hover-opacity);
	}
}



/* ================================================================================================== */
/* ============================================= SOCIAL ============================================= */
/* ================================================================================================== */


/* ============================== CONFIG ============================== */

.sharebar { --nav-gap: 1em; }
.buttons.sharebar > .collapsible {
	--button-text-color: var(--yellow-color);
	--button-background-color: var(--dark-color);
	--button-hover-text-color: var(--dark-color);
	--button-hover-background-color: var(--yellow-color);
	--button-border-width: 0px;
	display: inline-flex;
	gap: 0;
	padding: 0;
	margin: 0;
}


/* ============================== VARIATIONS ============================== */

:where(nav, .nav).actions .sharebar { width: auto; }
.socialbar .list h3.small { padding-inline: var(--nav-anchor-padding-x); }



/* ====================================================================================================== */
/* ============================================= GO BUTTONS ============================================= */
/* ====================================================================================================== */


/* ============================== CONFIG ============================== */

:root {
	--go-button-label-max-width: 10em; /* above the longest label, only caps the animation */
}


/* ============================== ANIMATIONS ============================== */

/* padding-inline is not in --nav-anchor-transition: animated with the label */

:is(.go-back, .go-to-the-top) {
	transition:
		var(--nav-anchor-transition),
		padding-inline var(--duration-fast) var(--ease);
}

:is(.go-back, .go-to-the-top) .label {
	transition:
		max-width var(--duration-fast) var(--ease),
		margin var(--duration-fast) var(--ease),
		opacity var(--duration-fast) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
	:is(.go-back, .go-to-the-top),
	:is(.go-back, .go-to-the-top) .label { transition: none; }
}


/* ============================== DEFAULT ============================== */

:is(.go-back, .go-to-the-top) .label {
	position: static;
	width: auto;
	height: auto;
	max-width: 0;
	overflow: hidden;
	font-size: inherit;
	margin-left: calc(var(--nav-anchor-gap) * -1); /* cancels the flex gap while collapsed */
	opacity: 0;
}

/* Collapsed (icon only): reduced padding, default padding is back once the label is shown */

@media (hover: hover) {
	:where(.go-back, .go-to-the-top):not(:hover, :focus-visible):has(> .label) { --button-padding-x: 1em; }
}
@media (hover: none) {
	:where(.go-back, .go-to-the-top):not(.hover, :focus-visible):has(> .label) { --button-padding-x: 1em; }
}


/* ============================== FOCUS ============================== */

/* Same state on keyboard focus (WCAG 1.4.13) */

:is(.go-back, .go-to-the-top):focus-visible .label {
	max-width: var(--go-button-label-max-width);
	margin-left: 0;
	opacity: 1;
}


/* ============================== HOVER ============================== */

@media (hover: hover) {
	:is(.go-back, .go-to-the-top):hover .label {
		max-width: var(--go-button-label-max-width);
		margin-left: 0;
		opacity: 1;
	}
}
@media (hover: none) {
	:is(.go-back, .go-to-the-top).hover .label {
		max-width: var(--go-button-label-max-width);
		margin-left: 0;
		opacity: 1;
	}
}


/* ============================== SCROLL ============================== */

.go-to-the-top.fixed {
	position: fixed;
	z-index: 1000;
	right: var(--gutter-gap);
	bottom: calc(var(--font-size) * 3 + var(--gutter-gap));
	transform: translate(100%, 0);
	opacity: 0;
	visibility: hidden; /* out of the tab order while hidden (RGAA) */
}

body.scrolled .go-to-the-top.fixed {
	transform: translate(0, 0);
	opacity: 1;
	visibility: visible;
}