@charset "UTF-8";

/* Filters */
.tournament-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
	padding: var(--wp--preset--spacing--30);
	background: var(--wp--preset--color--background-alt);
	border-radius: 16px;
}

.tournament-filters__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 160px;
}

.tournament-filters__field--search {
	flex: 2 1 220px;
}

.tournament-filters__field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

.tournament-filters__field input,
.tournament-filters__field select {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	padding: 10px 16px;
	font-size: 0.95rem;
	background: #ffffff;
	color: var(--wp--preset--color--text);
}

.tournament-filters__field input:focus,
.tournament-filters__field select:focus {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 1px;
}

.tournament-filters__field--submit {
	flex: 0 0 auto;
}

.tournament-filters__submit {
	border: 0;
	border-radius: 999px;
	padding: 11px 28px;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.25s ease;
}

.tournament-filters__submit:hover,
.tournament-filters__submit:focus {
	background: var(--wp--preset--color--accent);
}

@media (max-width: 700px) {
	.tournament-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.tournament-filters__field--submit {
		flex: 1 1 auto;
	}

	.tournament-filters__submit {
		width: 100%;
	}
}

/* Card */
.wp-block-post-template.is-layout-grid.tournament-card-grid {
	gap: 30px;
}

.tournament-card {
	background: #ffffff;
	border-radius: 18px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: transform 300ms ease, box-shadow 300ms ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.tournament-card > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.tournament-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14);
}

.tournament-card__media {
	position: relative;
	overflow: hidden;
}

.tournament-card__media img {
	aspect-ratio: 4 / 3;
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}

.tournament-card:hover .tournament-card__media img {
	transform: scale(1.05);
}

.tournament-card__date-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 1;
	background: #ffffff;
	border-radius: 12px;
	padding: 8px 12px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	line-height: 1.1;
}

.tournament-card__date-badge-day {
	display: block;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
}

.tournament-card__date-badge-month {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--acorn);
}

.tournament-card__body {
	padding: var(--wp--preset--spacing--10);
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-grow: 1;
}

.tournament-card__body > *,
.tournament-card__info-row > *,
.tournament-card__badges > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.tournament-card__info-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary);
}

.tournament-card__date,
.tournament-card__location {
	color: var(--wp--preset--color--primary);
}

.tournament-card__location::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.35em;
	vertical-align: -0.12em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.tournament-card__date::before {
	content: "";
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-right: 0.35em;
	vertical-align: -0.12em;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.tournament-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.tournament-card__badge {
	display: inline-block;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 600;
	text-decoration: none !important;
	transition: filter 0.2s ease;
}

.tournament-card__badge:hover,
.tournament-card__badge:focus {
	filter: brightness(0.93);
}

.tournament-card__badge--type {
	background: rgba(31, 77, 58, 0.12);
	border: 1px solid rgba(31, 77, 58, 0.18);
	color: var(--wp--preset--color--primary);
}

.tournament-card__badge--upcoming {
	background: #eef4ec;
	color: var(--wp--preset--color--primary);
}

.tournament-card__badge--registration_open {
	background: #e6f6e8;
	color: #2f7d38;
}

.tournament-card__badge--registration_closed {
	background: #fdf1dc;
	color: #a6710a;
}

.tournament-card__badge--completed {
	background: #ececec;
	color: #555555;
}

.tournament-card__badge--cancelled {
	background: #fbe4e2;
	color: #a3271e;
}

.tournament-card__button {
	margin-top: auto;
	align-self: flex-start;
	border-radius: 999px;
	padding: 10px 22px;
	background: var(--wp--preset--color--primary);
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none !important;
	transition: background 0.25s ease;
}

.tournament-card__button:hover,
.tournament-card__button:focus {
	background: var(--wp--preset--color--accent);
}

/* Pagination */
.tournament-pagination {
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: var(--wp--preset--spacing--40);
}

.tournament-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 999px;
	color: var(--wp--preset--color--text);
	text-decoration: none;
	font-weight: 600;
	transition: background 0.25s ease, color 0.25s ease;
}

.tournament-pagination .page-numbers:hover {
	background: var(--wp--preset--color--background-alt);
}

.tournament-pagination .page-numbers.current {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.tournament-pagination .wp-block-query-pagination-previous,
.tournament-pagination .wp-block-query-pagination-next {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.tournament-archive-hero {
	justify-content: flex-start;
	overflow: hidden;
}

.tournament-archive-hero .wp-block-cover__image-background {
	animation: tournament-archive-hero-ken-burns 8s ease-out forwards;
}

.tournament-archive-hero .wp-block-cover__background {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
		linear-gradient(90deg, rgba(4, 73, 29, 0.75) 0%, rgba(4, 73, 29, 0.6) 45%, rgba(4, 73, 29, 0.05) 82%) !important;
	opacity: 1 !important;
}

.tournament-archive-hero .wp-block-cover__inner-container {
	width: min(1280px, 100%);
	margin: 0 auto;
	padding: 0 50px 0 30px;
	box-sizing: border-box;
	color: #ffffff;
}

.tournament-archive-hero__title {
	max-width: 620px;
	margin: 0;
	color: #ffffff;
	text-align: left;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
	line-height: 1.12;
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-archive-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-archive-hero__text {
	max-width: 480px;
	margin: 16px 0 0;
	color: #ffffff;
	text-align: left;
	font-size: 20px;
	line-height: 1.5;
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-archive-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-archive-hero__buttons {
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--20);
	margin-top: 36px;
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-archive-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-archive-hero__button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--button--border-radius, 6px);
	padding: 14px 28px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tournament-archive-hero__button .wp-block-button__link:hover,
.tournament-archive-hero__button .wp-block-button__link:focus {
	transform: translateY(-1px);
}

.tournament-archive-hero__button--primary .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.tournament-archive-hero__button--primary .wp-block-button__link:hover,
.tournament-archive-hero__button--primary .wp-block-button__link:focus {
	background: #183d2d;
	color: #ffffff;
}

.tournament-archive-hero__button--outline .wp-block-button__link {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: #ffffff;
}

.tournament-archive-hero__button--outline .wp-block-button__link:hover,
.tournament-archive-hero__button--outline .wp-block-button__link:focus {
	background: rgba(255, 255, 255, 0.15);
	border-color: #ffffff;
	color: #ffffff;
}

@keyframes tournament-archive-hero-ken-burns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

@keyframes tournament-archive-hero-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tournament-archive-hero .wp-block-cover__image-background {
		animation: none;
	}

	.tournament-archive-hero__title,
	.tournament-archive-hero__text,
	.tournament-archive-hero__buttons {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

.tournament-hero {
	position: relative;
	width: 100%;
	min-height: 460px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background: var(--wp--preset--color--primary);
}

.tournament-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.tournament-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	animation: tournament-hero-ken-burns 8s ease-out forwards;
}

.tournament-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
		linear-gradient(90deg, rgba(4, 73, 29, 0.75) 0%, rgba(4, 73, 29, 0.6) 45%, rgba(4, 73, 29, 0.05) 82%);
}

.tournament-hero__content {
	position: relative;
	z-index: 2;
	width: min(1280px, 100%);
	margin: 0 auto;
	padding: 0 50px 0 30px;
	box-sizing: border-box;
	color: #ffffff;
	text-align: left;
}

.tournament-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 18px;
	border: 1px solid rgba(176, 232, 122, 0.55);
	border-radius: 999px;
	padding: 7px 14px;
	background: rgba(255, 255, 255, 0.12);
	color: #b0e87a;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	backdrop-filter: blur(10px);
}

.tournament-hero__title {
	max-width: 620px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
	line-height: 1.12;
	text-shadow: 0 12px 34px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-hero__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px 22px;
	margin-top: var(--wp--preset--spacing--20);
	color: rgba(255, 255, 255, 0.9);
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: inherit;
	font-size: 0.95rem;
	font-weight: 700;
}

.tournament-hero__meta-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.tournament-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--wp--preset--spacing--20);
	margin-top: 36px;
	opacity: 0;
	transform: translateY(20px);
	animation: tournament-hero-fade-in-up 0.8s ease 0.3s both;
}

.tournament-hero__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 2px solid transparent;
	border-radius: var(--wp--custom--button--border-radius, 6px);
	padding: 14px 28px;
	color: #ffffff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.tournament-hero__button:hover,
.tournament-hero__button:focus {
	transform: translateY(-1px);
}

.tournament-hero__button--primary {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.tournament-hero__button--primary:hover,
.tournament-hero__button--primary:focus {
	background: #183d2d;
	color: #ffffff;
}

.tournament-hero__button--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.85);
	color: #ffffff;
}

.tournament-hero__button--secondary:hover,
.tournament-hero__button--secondary:focus {
	background: rgba(255, 255, 255, 0.14);
	border-color: #ffffff;
	color: #ffffff;
}

@keyframes tournament-hero-ken-burns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

@keyframes tournament-hero-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tournament-hero__image {
		animation: none;
	}

	.tournament-hero__title,
	.tournament-hero__meta,
	.tournament-hero__actions {
		opacity: 1 !important;
		transform: none !important;
		animation: none !important;
	}
}

/* Single tournament detail layout: content left, sidebar right */
.tournament-detail {
	gap: clamp(40px, 5vw, 72px);
	align-items: flex-start;
	margin-top: var(--wp--preset--spacing--30);
}

.tournament-detail__main {
	max-width: 760px;
}

.tournament-detail__main .wp-block-post-title {
	margin-bottom: var(--wp--preset--spacing--20);
}

.tournament-detail__main p {
	line-height: 1.72;
	margin-block-end: 1.35em;
}

.tournament-detail__main h2,
.tournament-detail__main h3,
.tournament-detail__main h4 {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--20);
}

.tournament-detail__main .tournament-card__info-row {
	margin: 8px 0 4px;
}

.tournament-detail__main .tournament-card__badges {
	margin-bottom: var(--wp--preset--spacing--30);
}

.tournament-detail__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-bottom: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--acorn);
	font-size: 0.9rem;
}

.tournament-detail__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tournament-detail__meta-item svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.tournament-detail__participants {
	font-weight: 600;
	color: var(--wp--preset--color--primary);
}

.tournament-detail__sidebar {
	background: linear-gradient(180deg, #ffffff 0%, var(--wp--preset--color--background-alt) 100%);
	border: 1px solid rgba(31, 77, 58, 0.1);
	border-radius: 16px;
	box-shadow: 0 18px 42px rgba(31, 77, 58, 0.08);
	padding: clamp(28px, 3vw, 40px);
	align-self: flex-start;
}

.tournament-detail__field {
	margin-bottom: 0;
	padding: var(--wp--preset--spacing--30) 0;
	border-top: 1px solid rgba(31, 77, 58, 0.1);
}

.tournament-detail__field h4 {
	margin: 0 0 10px;
	color: var(--wp--preset--color--acorn);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.74rem;
	line-height: 1.35;
}

.tournament-detail__status-panel {
	border-radius: 14px;
	padding: 18px 18px 20px;
	margin-bottom: var(--wp--preset--spacing--30);
	background: #ffffff;
	border: 1px solid rgba(31, 77, 58, 0.12);
	border-left: 4px solid var(--wp--preset--color--primary);
	box-shadow: 0 8px 24px rgba(31, 77, 58, 0.07);
	color: var(--wp--preset--color--primary);
}

.tournament-detail__status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border-radius: 999px;
	padding: 6px 12px;
	background: #eef4ec;
	color: var(--wp--preset--color--primary);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
}

.tournament-detail__status-badge svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
}

.tournament-detail__status-message {
	margin: 14px 0 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--wp--preset--color--text);
}

.tournament-detail__status-banner-button {
	display: inline-block;
	margin-top: var(--wp--preset--spacing--20);
}

.tournament-detail__status-panel--registration_open {
	border-left-color: var(--wp--preset--color--success);
	color: #2f7d38;
}

.tournament-detail__status-panel--registration_open .tournament-detail__status-badge {
	background: #e6f6e8;
	color: #2f7d38;
}

.tournament-detail__status-panel--registration_closed {
	border-left-color: var(--wp--preset--color--warning);
	color: #a6710a;
}

.tournament-detail__status-panel--registration_closed .tournament-detail__status-badge {
	background: #fdf1dc;
	color: #a6710a;
}

.tournament-detail__status-panel--completed {
	border-left-color: #9a9a9a;
	color: #555555;
}

.tournament-detail__status-panel--completed .tournament-detail__status-badge {
	background: #ececec;
	color: #555555;
}

.tournament-detail__status-panel--cancelled {
	border-left-color: var(--wp--preset--color--error);
	color: #a3271e;
}

.tournament-detail__status-panel--cancelled .tournament-detail__status-badge {
	background: #fbe4e2;
	color: #a3271e;
}

.tournament-detail__status-panel + .tournament-detail__field {
	border-top: 0;
	padding-top: 0;
}

.tournament-detail__info-row {
	display: grid;
	gap: 12px;
	font-size: 0.98rem;
	line-height: 1.5;
}

.tournament-detail__info-row .tournament-card__date,
.tournament-detail__info-row .tournament-card__location {
	display: flex;
	align-items: flex-start;
	color: var(--wp--preset--color--text);
}

.tournament-detail__info-row .tournament-card__date::before,
.tournament-detail__info-row .tournament-card__location::before {
	width: 22px;
	height: 22px;
	margin-right: 10px;
	margin-top: 1px;
	flex: 0 0 22px;
}

.tournament-detail__deadline {
	display: block;
	border-radius: 12px;
	padding: 13px 15px;
	background: #ffffff;
	border: 1px solid rgba(165, 116, 69, 0.18);
	border-left: 4px solid var(--wp--preset--color--acorn);
	color: var(--wp--preset--color--text);
	font-weight: 700;
}

.tournament-detail__participants-stat {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	border-radius: 14px;
	padding: 12px 16px;
	background: #ffffff;
	border: 1px solid rgba(31, 77, 58, 0.12);
	color: var(--wp--preset--color--primary);
}

.tournament-detail__participants-number {
	font-size: clamp(1.7rem, 3vw, 2.25rem);
	line-height: 1;
	font-weight: 800;
}

.tournament-detail__participants-label {
	font-size: 0.9rem;
	font-weight: 700;
}

.tournament-detail__badges {
	gap: 10px;
}

.tournament-detail__badges .tournament-card__badge {
	padding: 6px 13px;
	font-size: 0.78rem;
}

.tournament-detail__share {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tournament-detail__share-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	text-decoration: none !important;
	color: var(--wp--preset--color--primary);
	background: #ffffff;
	border: 1px solid rgba(31, 77, 58, 0.12);
	box-shadow: 0 4px 12px rgba(31, 77, 58, 0.06);
	transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.tournament-detail__share-link svg {
	width: 19px;
	height: 19px;
}

.tournament-detail__share-link:hover,
.tournament-detail__share-link:focus {
	background: var(--wp--preset--color--primary);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(31, 77, 58, 0.16);
	transform: translateY(-2px);
}

.tournament-detail__section {
	max-width: var(--wp--style--global--content-size, 1280px);
	margin: 0 auto;
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.tournament-detail__section-header {
	max-width: 760px;
	margin-bottom: var(--wp--preset--spacing--40);
}

.tournament-detail__section-header h2,
.tournament-detail__cta-content h2 {
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20);
}

.tournament-detail__eyebrow {
	margin: 0 0 10px;
	color: var(--wp--preset--color--acorn);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

.tournament-detail__gallery-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: clamp(16px, 2vw, 26px);
}

.tournament-detail__gallery-item {
	position: relative;
	grid-column: span 4;
	margin: 0;
	overflow: hidden;
	border: 3px solid #ffffff;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tournament-detail__gallery-item--2,
.tournament-detail__gallery-item--5 {
	grid-column: span 5;
}

.tournament-detail__gallery-item--3 {
	grid-column: span 3;
}

.tournament-detail__gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	transition: transform 280ms ease;
}

.tournament-detail__gallery-item--1 .tournament-detail__gallery-image {
	aspect-ratio: 4 / 3;
}

.tournament-detail__gallery-item--2 .tournament-detail__gallery-image {
	aspect-ratio: 3 / 2;
}

.tournament-detail__gallery-item--3 .tournament-detail__gallery-image {
	aspect-ratio: 1 / 1;
}

.tournament-detail__gallery-item--4 .tournament-detail__gallery-image {
	aspect-ratio: 16 / 9;
}

.tournament-detail__gallery-item--5 .tournament-detail__gallery-image {
	aspect-ratio: 5 / 4;
}

.tournament-detail__gallery-item figcaption {
	padding: 10px 12px 12px;
	color: var(--wp--preset--color--text);
	font-size: 0.86rem;
	line-height: 1.45;
}

.tournament-detail__gallery-item:hover .tournament-detail__gallery-image {
	transform: scale(1.03);
}

.tournament-detail__documents-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.tournament-detail__document-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: var(--wp--preset--spacing--30);
	border: 1px solid rgba(31, 77, 58, 0.12);
	border-radius: 14px;
	background: #ffffff;
	color: var(--wp--preset--color--text);
	text-decoration: none !important;
	box-shadow: 0 10px 28px rgba(31, 77, 58, 0.07);
	transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.tournament-detail__document-link:hover,
.tournament-detail__document-link:focus {
	border-color: rgba(31, 77, 58, 0.28);
	box-shadow: 0 16px 34px rgba(31, 77, 58, 0.12);
	transform: translateY(-2px);
}

.tournament-detail__document-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(31, 77, 58, 0.1);
	color: var(--wp--preset--color--primary);
	flex: 0 0 48px;
}

.tournament-detail__document-icon svg {
	width: 22px;
	height: 22px;
}

.tournament-detail__document-link strong,
.tournament-detail__document-link small {
	display: block;
}

.tournament-detail__document-link strong {
	color: var(--wp--preset--color--primary);
	font-size: 1.05rem;
}

.tournament-detail__document-link small {
	margin-top: 3px;
	color: var(--wp--preset--color--text);
	font-size: 0.86rem;
	line-height: 1.45;
	opacity: 0.78;
}

.tournament-detail__related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
}

.tournament-detail__related-card {
	overflow: hidden;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
	transition: box-shadow 260ms ease, transform 260ms ease;
}

.tournament-detail__related-card:hover {
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.tournament-detail__related-image-link {
	display: block;
	overflow: hidden;
	background: var(--wp--preset--color--background-alt);
}

.tournament-detail__related-image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 280ms ease;
}

.tournament-detail__related-card:hover .tournament-detail__related-image {
	transform: scale(1.03);
}

.tournament-detail__related-body {
	padding: var(--wp--preset--spacing--30);
}

.tournament-detail__related-date {
	margin: 0 0 8px;
	color: var(--wp--preset--color--acorn);
	font-size: 0.82rem;
	font-weight: 700;
}

.tournament-detail__related-title {
	margin: 0 0 var(--wp--preset--spacing--20);
	font-size: 1.18rem;
	line-height: 1.35;
}

.tournament-detail__related-title a {
	color: inherit;
	text-decoration: none;
}

.tournament-detail__related-title a:hover {
	text-decoration: underline;
}

.tournament-detail__related-link {
	color: var(--wp--preset--color--primary);
	font-size: 0.9rem;
	font-weight: 800;
	text-decoration: none;
}

.tournament-detail__related-link:hover {
	text-decoration: underline;
}

.tournament-detail__cta-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--40);
	max-width: 1216px;
	margin-top: var(--wp--preset--spacing--50);
	margin-bottom: var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--50);
	border-radius: 16px;
	background: var(--wp--preset--color--primary);
	color: #ffffff;
}

.tournament-detail__cta-content {
	max-width: 680px;
}

.tournament-detail__cta-content .tournament-detail__eyebrow,
.tournament-detail__cta-content h2,
.tournament-detail__cta-content p {
	color: #ffffff;
}

.tournament-detail__cta-content p {
	margin: 0;
	line-height: 1.65;
	opacity: 0.9;
}

.tournament-detail__cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	flex-shrink: 0;
}

.tournament-detail__cta-section .wp-block-button__link {
	background: #ffffff;
	color: var(--wp--preset--color--primary);
}

.tournament-detail__secondary-link {
	color: #ffffff;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

@media (max-width: 780px) {
	.tournament-detail {
		flex-wrap: wrap;
	}

	.tournament-archive-hero .wp-block-cover__inner-container {
		padding: 0 40px;
	}

	.tournament-archive-hero__title,
	.tournament-archive-hero__text {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}

	.tournament-archive-hero__buttons {
		justify-content: center;
	}

	.tournament-detail__main,
	.tournament-detail__sidebar {
		flex-basis: 100% !important;
	}

	.tournament-hero {
		min-height: 380px;
	}

	.tournament-hero__content {
		padding: 0 40px;
		text-align: center;
	}

	.tournament-hero__title {
		margin-left: auto;
		margin-right: auto;
	}

	.tournament-hero__meta {
		align-items: center;
		justify-content: center;
	}

	.tournament-hero__meta-item {
		justify-content: center;
	}

	.tournament-hero__actions {
		gap: 12px;
	}

	.tournament-hero__button {
		padding-right: 22px;
		padding-left: 22px;
	}

	.tournament-detail__section {
		padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--30);
	}

	.tournament-detail__gallery-grid,
	.tournament-detail__documents-grid,
	.tournament-detail__related-grid {
		grid-template-columns: 1fr;
	}

	.tournament-detail__gallery-item,
	.tournament-detail__gallery-item--2,
	.tournament-detail__gallery-item--3,
	.tournament-detail__gallery-item--5 {
		grid-column: auto;
	}

	.tournament-detail__cta-section {
		display: block;
		margin-left: var(--wp--preset--spacing--30);
		margin-right: var(--wp--preset--spacing--30);
		padding: var(--wp--preset--spacing--40);
	}

	.tournament-detail__cta-actions {
		margin-top: var(--wp--preset--spacing--30);
	}
}

@media (max-width: 480px) {
	.tournament-archive-hero {
		min-height: 420px !important;
	}

	.tournament-archive-hero .wp-block-cover__inner-container {
		padding: 0 24px;
	}

	.tournament-archive-hero__text {
		font-size: 17px;
	}

	.tournament-archive-hero__button .wp-block-button__link {
		padding: 12px 22px;
	}

	.tournament-hero {
		min-height: 360px;
	}

	.tournament-hero__content {
		padding: 0 24px;
	}

	.tournament-hero__title {
		font-size: 36px;
	}

	.tournament-hero__button {
		width: 100%;
	}
}

html {
	scroll-behavior: smooth;
}

#tournament-register {
	scroll-margin-top: var(--wp--preset--spacing--40);
}
