/*
 * The public website of a club (layouts/website.blade.php).
 *
 * No colour is written here: every colour is a --site-* token that WebsitePalette derives from the
 * club colour and the background, so any pairing a club picks keeps readable contrast. The body
 * also carries the .public class of the admin stylesheet, so a few rules below are scoped under
 * .site to win over custom.css.
 */

/* ---------- Base ---------- */

.site {
	--site-font-body: Helvetica, Arial, sans-serif;
	--site-font-heading: var(--site-font-body);
	--site-radius: 14px;
	--site-radius-sm: 8px;
	--site-shadow: 0 1px 2px rgb(15 23 42 / 0.05), 0 10px 28px -14px rgb(15 23 42 / 0.22);
	--site-header-offset: 120px;
	--site-gutter: 16px;

	margin: 0;
	background: var(--site-bg);
	color: var(--site-text);
	font-family: var(--site-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

html:has(body.site) {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html:has(body.site) {
		scroll-behavior: auto;
	}
}

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

.site main {
	margin-left: 0;
}

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

.site h1,
.site h2,
.site h3,
.site h4,
.site h5 {
	font-family: var(--site-font-heading);
	color: var(--site-text);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.site p {
	font-size: 1.0625rem;
	margin: 0 0 1em;
}

.site :where(a:not(.btn)) {
	color: var(--site-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.site :where(a:not(.btn)):hover {
	color: var(--site-accent);
	text-decoration: underline;
}

.site :focus-visible {
	outline: 3px solid var(--site-accent);
	outline-offset: 2px;
}

.site .hidden {
	display: none;
}

.site-container {
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 var(--site-gutter);
}

@media (min-width: 640px) {
	.site {
		--site-gutter: 24px;
	}
}

/* Bootstrap buttons inside the page follow the club colour. */
.site .btn-primary,
.site .btn-primary:not(:disabled):not(.disabled):active {
	background: var(--site-brand);
	border-color: var(--site-brand);
	color: var(--site-on-brand);
	font-weight: 600;
	border-radius: 999px;
	padding-inline: 1.1em;
}

.site .btn-primary:hover,
.site .btn-primary:focus {
	background: var(--site-brand-deep);
	border-color: var(--site-brand-deep);
	color: #fff;
}

.site .site-btn-soft {
	background: var(--site-accent-soft);
	border: 1px solid transparent;
	color: var(--site-accent);
	font-weight: 600;
	border-radius: 999px;
	padding-inline: 0.9em;
}

.site .site-btn-soft:hover,
.site .site-btn-soft:focus {
	border-color: var(--site-accent);
	color: var(--site-accent);
	text-decoration: none;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	color: var(--site-on-brand);
}

.site-header__bar {
	position: relative;
	background: var(--site-brand);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}

.site .site-brand,
.site .site-brand:hover {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.site-brand__logo {
	flex: none;
	width: 56px;
	height: 56px;
	padding: 3px;
	border-radius: 12px;
	background: #fff;
	object-fit: contain;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.site .site-brand__name {
	margin: 0;
	color: inherit;
	font-family: var(--site-font-heading);
	font-size: clamp(1.2rem, 0.95rem + 1.1vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site .site-nav a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: inherit;
	font-weight: 600;
	font-size: 0.95rem;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.site .site-nav a:hover,
.site .site-nav a:focus-visible {
	background: color-mix(in srgb, var(--site-on-brand) 15%, transparent);
	color: inherit;
	text-decoration: none;
}

.site-menu-toggle {
	display: none;
}

/* Scrolling only adds a shadow: the header keeps its height, so the page under it never moves. A drop
   shadow follows the outline of the header, its shape included, where a box shadow would cut across it. */
.site-header {
	transition: filter 0.2s ease;
}

.site-header.is-scrolled {
	filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.22));
}

/* The shape under the header bar, from the theme the club picked. */
.site-shape {
	overflow: hidden;
	line-height: 0;
	pointer-events: none;
}

.site-shape svg {
	display: block;
	width: calc(100% + 1.3px);
	height: var(--site-shape-height);
}

.site {
	--site-shape-height: 40px;
}

/* A hero right under a header shape runs up beneath the shape, so the shape cuts into the photo
   instead of leaving a strip of page background between them. */
.site-header:has(.site-shape) + .site-hero {
	margin-top: calc(-1 * var(--site-shape-height));
}

.site-header:has(.site-shape) + .site-hero .site-hero__inner {
	padding-top: calc(72px + var(--site-shape-height));
}

.site-shape .shape-fill {
	fill: var(--site-brand);
}

/* The waves are drawn upside down, as the old theme did. They are a mask on the club colour, so what
   lies under them is the page itself rather than a painted copy of the background. */
.site-shape--inverted {
	transform: rotate(180deg);
}

@media (max-width: 799.98px) {
	.site-header__inner {
		padding-block: 10px;
	}

	.site-brand__logo {
		width: 48px;
		height: 48px;
		border-radius: 10px;
	}

	.site-menu-toggle {
		display: inline-flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 12px;
		background: color-mix(in srgb, var(--site-on-brand) 14%, transparent);
		color: inherit;
		font-size: 1.6rem;
		line-height: 1;
		cursor: pointer;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 1;
		padding: 4px var(--site-gutter) 16px;
		background: var(--site-brand);
		box-shadow: 0 16px 24px -16px rgb(0 0 0 / 0.35);
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav ul {
		flex-direction: column;
		align-items: stretch;
	}

	.site .site-nav a {
		padding: 12px;
		border-radius: 10px;
		font-size: 1rem;
	}

	.site {
		--site-shape-height: 22px;
	}
}

/* ---------- Sections ---------- */

.site-main {
	padding-block: 8px 56px;
}

.site-section {
	margin-top: 56px;
	scroll-margin-top: var(--site-header-offset);
}

.site-main .site-container > .site-section:first-child {
	margin-top: 32px;
}

.site-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.site .site-section__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

.site .site-section__title::before {
	content: "";
	flex: none;
	width: 6px;
	height: 1.05em;
	border-radius: 3px;
	background: var(--site-accent);
}

.site-section__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.site-section--card > .site-section__body {
	padding: clamp(18px, 3vw, 32px);
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	background: var(--site-surface);
	box-shadow: var(--site-shadow);
}

.site-prose {
	max-width: 72ch;
}

.site-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ---------- Footer ---------- */

/* The copyright bar is the fixed one of custom.css (.public footer); the page leaves room for it. */
.site:not(.site--embed) {
	padding-bottom: 72px;
}

.site .site-footer {
	text-align: center;
}

.site-parents {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 140px;
	margin: 8px auto 32px;
}

.site .site-parents .btn-primary {
	width: 100%;
}

/* ---------- Embedded in another website ---------- */

.site--embed {
	background: transparent;
}

.site--embed .site-container {
	max-width: none;
	padding: 0;
}

/* ---------- Small parts ---------- */

.site-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--site-accent-soft);
	color: var(--site-accent);
	font-size: 0.8rem;
	font-weight: 700;
}

.site .site-btn-facebook,
.site .site-btn-facebook:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 20px;
	padding: 8px 18px;
	border-radius: 999px;
	background: #1877f2;
	color: #fff;
	font-weight: 600;
}

.site .site-btn-facebook .mdi {
	font-size: 1.3rem;
	line-height: 1;
}

/* ---------- Contact ---------- */

.site .site-contact {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-contact__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.site-contact__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--site-accent-soft);
	color: var(--site-accent);
	font-size: 1.35rem;
}

.site-contact__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.site-contact__label {
	color: var(--site-text-muted);
	font-size: 0.85rem;
}

.site .site-contact__value {
	color: var(--site-text);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.site a.site-contact__value:hover {
	color: var(--site-accent);
}

/* ---------- News ---------- */

.site-posts {
	display: grid;
	gap: 20px;
}

.site-posts--titles {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.site-post-card {
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	background: var(--site-surface);
	box-shadow: var(--site-shadow);
}

.site .site-post-card__title {
	margin: 6px 0 4px;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
}

.site .site-post-card__title a {
	color: var(--site-text);
}

.site .site-post-card__title a:hover {
	color: var(--site-accent);
}

.site-post-card__date,
.site-post__date {
	margin-bottom: 14px;
	color: var(--site-text-muted);
	font-size: 0.9rem;
}

.site-post-card__body,
.site-post__body {
	margin-bottom: 16px;
	font-size: 1.0625rem;
	overflow-wrap: anywhere;
}

.site-post-card__body:last-child {
	margin-bottom: 0;
}

.site .site-post__title {
	margin: 0 0 6px;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
}

.site-post__share {
	margin-bottom: 20px;
	color: var(--site-text-muted);
}

/* Photos and files of a post (x-photos-and-files-for-post, also used in the admin). */
.site .post-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.site .post-gallery > a {
	display: block;
	width: auto;
	height: auto;
	aspect-ratio: 1;
	overflow: hidden;
	border: 0;
	border-radius: var(--site-radius-sm);
	background: var(--site-surface-alt);
}

.site .post-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.site .post-gallery > a:hover img {
	transform: scale(1.05);
}

.site .files {
	flex-wrap: wrap;
}

.site .files a.file {
	flex-direction: row;
	gap: 10px;
	width: auto;
	max-width: 100%;
	height: auto;
	padding: 8px 14px;
	border: 1px solid var(--site-border);
	border-radius: 999px;
	background: var(--site-surface);
	text-decoration: none;
}

.site .files a.file:hover {
	border-color: var(--site-accent);
}

.site .files a.file > i {
	font-size: 1.5rem;
	line-height: 1;
}

.site .files a.file div {
	text-align: left !important;
	color: var(--site-text) !important;
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.site .files .download-button {
	display: none;
}

/* Bootstrap pagination of the news. */
.site-pagination {
	margin-top: 20px;
}

.site .pagination {
	flex-wrap: wrap;
	gap: 6px;
}

.site .page-link {
	display: grid;
	place-items: center;
	min-width: 38px;
	height: 38px;
	margin: 0;
	border: 1px solid var(--site-border);
	border-radius: 10px !important;
	background: var(--site-surface);
	color: var(--site-text);
}

.site .page-item.active .page-link,
.site .page-link:hover {
	border-color: var(--site-brand);
	background: var(--site-brand);
	color: var(--site-on-brand);
}

.site .page-item.disabled .page-link {
	background: var(--site-surface-alt);
	color: var(--site-text-muted);
}

/* ---------- Weekly schedule ---------- */

.site .programma {
	margin: 0;
	font-size: 0.875rem;
	border: 1px solid var(--site-border);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--site-radius-sm);
	overflow: hidden;
	color: var(--site-text);
}

.site .programma td,
.site .programma th {
	padding: 8px;
	white-space: normal;
	border: 0 !important;
	border-right: 1px solid var(--site-border) !important;
	border-bottom: 1px solid var(--site-border) !important;
	vertical-align: top;
}

.site .programma tr > :last-child {
	border-right: 0 !important;
}

.site .programma tbody tr:last-child > * {
	border-bottom: 0 !important;
}

.site .programma th {
	background: var(--site-surface-alt);
	color: var(--site-text);
	font-weight: 700;
}

/* The calendar on the same page styles every .tclass grey; in the schedule it is just a column. */
.site .programma td.tclass {
	background: transparent;
	color: inherit;
	font-weight: inherit;
}

.site #schedule_block .list-block {
	margin: 0 0 6px;
	padding: 5px 8px;
	border: 0;
	border-left: 3px solid var(--site-accent);
	border-radius: 6px;
	background: var(--site-accent-soft);
	color: var(--site-text);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.site .programma__empty {
	color: var(--site-text-muted);
	opacity: 0.6;
}

/* On a phone the grid gives way to cards per subclass or a list per day (schedule/phone). */
.site-schedule-phone {
	display: none;
}

.site-schedule-phone__switch {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 3px;
	border-radius: 999px;
	background: var(--site-surface-alt);
}

.site-schedule-phone__switch button {
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--site-text-muted);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
}

.site-schedule-phone__switch button.is-active {
	background: var(--site-surface);
	color: var(--site-text);
	box-shadow: 0 1px 3px rgb(15 23 42 / 0.15);
}

.site-schedule__tclass {
	color: var(--site-text-muted);
	font-size: 0.8125rem;
	font-weight: 600;
}

.site-schedule__cancelled {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: #dc3545;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.site-schedule__nothing {
	margin: 0;
	color: var(--site-text-muted);
}

.site-schedule-card,
.site-schedule-day {
	margin-bottom: 12px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-sm);
	background: var(--site-surface);
	overflow: hidden;
}

.site-schedule-card__head,
.site-schedule-day__title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--site-border);
	background: var(--site-surface-alt);
	font-size: 1rem;
	font-weight: 700;
}

.site-schedule-card__days,
.site-schedule-day__entries {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
}

.site-schedule-card__days li {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	gap: 10px;
	padding: 8px 12px;
}

.site-schedule-card__days li + li,
.site-schedule-day__entries li + li {
	border-top: 1px solid var(--site-border);
}

.site-schedule-card__day {
	color: var(--site-text-muted);
	font-weight: 700;
}

.site-schedule-card__days li.is-today .site-schedule-card__day {
	color: var(--site-accent);
}

.site-schedule-card__entries > div + div {
	margin-top: 6px;
}

.site-schedule-day.is-today {
	border-color: var(--site-accent);
}

.site-schedule-day.is-today .site-schedule-day__title {
	background: var(--site-accent-soft);
}

.site-schedule-day__today {
	color: var(--site-accent);
	font-size: 0.75rem;
}

.site-schedule-day__entries li {
	padding: 8px 12px;
	border-left: 3px solid var(--site-accent);
}

.site-schedule-day__who {
	margin-bottom: 2px;
}

.site-schedule-day__cancellation {
	padding: 10px 12px;
	color: var(--site-text-muted);
}

.site-schedule-card li.is-cancelled,
.site-schedule-day.is-cancelled {
	background: color-mix(in srgb, var(--site-text-muted) 12%, var(--site-surface));
	color: var(--site-text-muted);
}

@media (max-width: 699.98px) {
	.site-schedule-grid {
		display: none;
	}

	.site-schedule-phone {
		display: block;
	}
}

/* ---------- Calendar ---------- */

.site #calendar .calendar-public {
	overflow: hidden;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius);
	background: var(--site-surface);
	box-shadow: var(--site-shadow);
}

/* The controls sit above the grid, so they stay in view when the grid scrolls sideways. */
.site #calendar .calendar-head {
	background: var(--site-brand);
	color: var(--site-on-brand);
}

.site #calendar .calendar-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 10px 12px;
}

.site #calendar .calendar-toolbar__period,
.site #calendar .calendar-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.site #calendar .calendar-toolbar__label {
	min-width: 11em;
	font-family: var(--site-font-heading);
	font-size: 1.15rem;
	font-weight: 700;
	text-align: center;
}

.site #calendar .calendar-toolbar .btn {
	border: 0;
	border-radius: var(--site-radius-sm);
	font-weight: 600;
}

.site #calendar .month-arrows,
.site #calendar .btn-white {
	background: var(--site-surface);
	color: var(--site-text);
}

.site #calendar .month-arrows {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	font-size: 1.25rem;
}

.site #calendar .month-arrows:disabled {
	opacity: 0.4;
}

.site #calendar .calendar-toolbar__views .btn {
	background: color-mix(in srgb, var(--site-on-brand) 14%, transparent);
	color: var(--site-on-brand);
}

.site #calendar .calendar-toolbar__views .btn.is-active {
	background: var(--site-surface);
	color: var(--site-text);
}

.site #calendar .calendar-filters {
	padding: 4px 12px 12px;
	background: var(--site-surface-alt);
	color: var(--site-text);
	font-size: 0.85rem;
}

/* The page-wide narrow-screen rule stacks every .inline-group; here a checkbox stays beside its name. */
.site #calendar .calendar-filters .inline-group.tclass {
	flex-direction: row;
	align-items: center;
}

.site #calendar .calendar-filters .inline-group.tclass > * {
	width: auto !important;
}

.site #calendar .calendar-filters .tclass {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 0;
	border-bottom: 1px solid var(--site-border);
	background: transparent;
	color: var(--site-text);
}

.site #calendar .calendar-filters .tclass label {
	margin: 0;
}

.site #calendar .table-responsive {
	overflow-x: auto;
	margin: 0;
}

.site #calendar table {
	margin: 0;
	border-style: hidden;
}

.site #calendar th,
.site #calendar td {
	border-color: var(--site-border);
}

.site #calendar .week-days,
.site #calendar .week-days th {
	background: var(--site-surface-alt);
	color: var(--site-text-muted);
	font-size: 0.85rem;
	font-weight: 700;
}

.site #calendar td {
	background: var(--site-surface);
	color: var(--site-text);
}

.site #calendar td.bg-other-month {
	background: var(--site-surface-alt);
	color: var(--site-text-muted);
}

.site #calendar td.canceled,
.site #calendar .calendar-agenda__day.canceled {
	background: color-mix(in srgb, var(--site-text-muted) 18%, var(--site-surface));
	color: var(--site-text-muted);
}

.site #calendar td.today {
	border-bottom: 1px solid var(--site-border);
	background: var(--site-accent-soft);
	box-shadow: inset 0 3px 0 var(--site-accent);
}

.site #calendar td.today .calendar-day-number {
	color: var(--site-accent);
	font-weight: 700;
}

.site #calendar .list-block {
	border-color: var(--site-border);
	border-radius: 6px;
}

/* On a phone the days go one under the other instead of a grid seven columns wide. */
.site #calendar .calendar-agenda {
	display: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site #calendar .calendar-agenda__day {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 12px;
	padding: 12px;
	border-top: 1px solid var(--site-border);
}

.site #calendar .calendar-agenda__day.is-empty {
	align-items: center;
	padding-block: 8px;
}

.site #calendar .is-empty .calendar-agenda__date {
	flex-direction: row;
	gap: 6px;
}

.site #calendar .is-empty .calendar-agenda__number {
	width: auto;
	height: auto;
	font-size: 1rem;
}

.site #calendar .is-empty.is-today .calendar-agenda__number {
	width: 1.9rem;
	height: 1.9rem;
}

.site #calendar .is-empty .calendar-agenda__today {
	display: none;
}

.site #calendar .is-empty .calendar-agenda__nothing {
	padding-top: 0;
}

.site #calendar .calendar-agenda__day:first-child {
	border-top: 0;
}

.site #calendar .calendar-agenda__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	line-height: 1.1;
}

.site #calendar .calendar-agenda__weekday {
	color: var(--site-text-muted);
	font-size: 0.8rem;
	font-weight: 700;
}

.site #calendar .calendar-agenda__number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 999px;
	font-family: var(--site-font-heading);
	font-size: 1.35rem;
	font-weight: 700;
}

.site #calendar .is-today .calendar-agenda__number {
	background: var(--site-accent);
	color: var(--site-surface);
}

.site #calendar .calendar-agenda__today {
	color: var(--site-accent);
	font-size: 0.7rem;
	font-weight: 700;
}

.site #calendar .calendar-agenda__events .list-block {
	margin: 0 0 8px;
}

.site #calendar .calendar-agenda__events > :last-child,
.site #calendar .calendar-agenda__events > :last-child .list-block:last-child {
	margin-bottom: 0;
}

.site #calendar .calendar-agenda__nothing,
.site #calendar .calendar-agenda__empty {
	color: var(--site-text-muted);
}

.site #calendar .calendar-agenda__nothing {
	display: block;
	padding-top: 10px;
	font-size: 0.9rem;
}

.site #calendar .calendar-agenda__empty {
	padding: 28px 16px;
	text-align: center;
}

@media (max-width: 699.98px) {
	.site #calendar .table-responsive {
		display: none;
	}

	.site #calendar .calendar-agenda {
		display: block;
	}

	.site #calendar .calendar-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.site #calendar .calendar-toolbar__period {
		flex-wrap: nowrap;
	}

	.site #calendar .calendar-toolbar__label {
		flex: 1;
		min-width: 0;
		font-size: 1rem;
	}

	.site #calendar .calendar-toolbar__actions {
		justify-content: center;
	}
}

/* ---------- Photos: slideshow ---------- */

.site-slideshow {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--site-radius);
	background: var(--site-brand-deep);
	box-shadow: var(--site-shadow);
	isolation: isolate;
}

.site-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity 0.7s ease;
}

.site-slide.is-active {
	z-index: 1;
	opacity: 1;
}

.site-slide > a {
	display: block;
	position: relative;
	height: 100%;
}

/* A photo that does not fit 16:9 sits on a blurred copy of itself instead of empty bars. */
.site .site-slide__backdrop {
	position: absolute;
	inset: -40px;
	width: calc(100% + 80px);
	max-width: none;
	height: calc(100% + 80px);
	object-fit: cover;
	filter: blur(28px) brightness(0.7) saturate(1.2);
}

.site .site-slide__image {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.site-slideshow__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-top: -22px;
	border: 0;
	border-radius: 50%;
	background: rgb(0 0 0 / 0.45);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.site-slideshow__nav:hover {
	background: rgb(0 0 0 / 0.7);
}

.site-slideshow__nav--prev {
	left: 12px;
}

.site-slideshow__nav--next {
	right: 12px;
}

.site-slideshow__counter {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgb(0 0 0 / 0.45);
	color: #fff;
	font-size: 0.8rem;
}

.site-slideshow__dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 0 60px;
}

.site-slideshow__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgb(255 255 255 / 0.55);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}

.site-slideshow__dot {
	position: relative;
	overflow: hidden;
}

.site-slideshow__dot[aria-current="true"] {
	width: 32px;
	background: #fff;
}

/* With autoplay the current dot fills up until the next photo. */
.site-slideshow.is-autoplay .site-slideshow__dot[aria-current="true"] {
	background: rgb(255 255 255 / 0.45);
}

.site-slideshow.is-autoplay .site-slideshow__dot[aria-current="true"]::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left;
	animation: site-dot-progress var(--site-slide-interval, 6000ms) linear forwards;
}

/* As specific as the rule above, whose animation shorthand would otherwise set the fill running again. */
.site-slideshow.is-autoplay.is-paused .site-slideshow__dot[aria-current="true"]::after {
	animation-play-state: paused;
}

@keyframes site-dot-progress {
	to {
		transform: scaleX(1);
	}
}

@media (max-width: 639.98px) {
	.site-slideshow {
		aspect-ratio: 4 / 3;
	}

	.site-slideshow__nav {
		width: 36px;
		height: 36px;
		margin-top: -18px;
		font-size: 1.3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-slide {
		transition: none;
	}
}

/* ---------- Photos: grid ---------- */

.site-photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 10px;
}

.site .site-photo-grid__item {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: var(--site-radius-sm);
	background: var(--site-surface-alt);
}

.site .site-photo-grid__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.site .site-photo-grid__item:hover img {
	transform: scale(1.04);
}

@media (max-width: 479.98px) {
	.site-photo-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}
}

/* ---------- Photos: logos ---------- */

.site .site-logos {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site .site-logos {
	--site-logo-width: 200px;
	--site-logo-height: 130px;
}

.site .site-logos--small {
	--site-logo-width: 150px;
	--site-logo-height: 96px;
}

.site .site-logos--large {
	--site-logo-width: 280px;
	--site-logo-height: 180px;
}

.site .site-logos__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--site-logo-width);
	height: var(--site-logo-height);
	padding: 14px;
	border: 1px solid var(--site-border);
	border-radius: var(--site-radius-sm);
	background: #fff;
	box-shadow: var(--site-shadow);
	transition: transform 0.2s ease;
}

.site a.site-logos__item:hover {
	transform: translateY(-2px);
}

.site .site-logos__item img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

@media (max-width: 479.98px) {
	.site .site-logos li {
		width: calc(50% - 7px);
	}

	.site .site-logos--small li {
		width: calc(33.333% - 10px);
	}

	.site .site-logos--large li {
		width: 100%;
	}

	.site .site-logos__item {
		width: 100%;
		height: calc(var(--site-logo-height) * 0.8);
	}
}

/* ---------- Hero (Κεντρική εικόνα) ---------- */

/* The text always sits on the deep club colour, alone or over the photo, so it stays white. */
.site-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(320px, 52vh, 560px);
	overflow: hidden;
	background:
		radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--site-brand) 55%, transparent), transparent 60%),
		var(--site-brand-deep);
	color: #fff;
	isolation: isolate;
}

.site .site-hero__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.site-hero--image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(to top,
			color-mix(in srgb, var(--site-brand-deep) 92%, transparent) 0%,
			color-mix(in srgb, var(--site-brand-deep) 55%, transparent) 45%,
			color-mix(in srgb, var(--site-brand-deep) 15%, transparent) 100%);
}

.site-hero__inner {
	padding-block: 72px 48px;
}

.site .site-hero__logo {
	width: 96px;
	height: 96px;
	margin-bottom: 18px;
	padding: 6px;
	border-radius: 20px;
	background: #fff;
	object-fit: contain;
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.25);
}

.site .site-hero__title {
	max-width: 22ch;
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
	line-height: 1.08;
	text-wrap: balance;
	text-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
}

.site .site-hero__subtitle {
	max-width: 52ch;
	margin: 0 0 24px;
	color: rgb(255 255 255 / 0.92);
	font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
}

.site .site-hero__button,
.site .site-hero__button:hover {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	background: #fff;
	color: var(--site-brand-deep);
	font-size: 1.05rem;
	font-weight: 700;
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.2);
}

.site .site-hero__button:hover {
	transform: translateY(-1px);
}

@media (max-width: 639.98px) {
	.site-hero__inner {
		padding-block: 56px 32px;
	}

	.site .site-hero__logo {
		width: 72px;
		height: 72px;
	}
}
