/* =========================================================
   SHOW RESULTS
   ========================================================= */


/* ---------------------------------------------------------
   Results masonry layout
   --------------------------------------------------------- */

.ds-show-results-grid {
	column-count: 3;
	column-gap: 20px;
}


/* ---------------------------------------------------------
   Individual class / championship card
   --------------------------------------------------------- */

.ds-show-result-card {
	display: inline-block;
	width: 100%;
	margin: 0 0 20px;
	padding-top: 20px;

	overflow: hidden;

	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	page-break-inside: avoid;

	border: 1px solid rgba(28, 29, 74, 0.18);
	border-radius: 3px;

	background: #faf7f5;
}


/* ---------------------------------------------------------
   Class / championship title
   --------------------------------------------------------- */

.ds-show-result-title {
	margin: 0;
	padding: 0px 20px 10px;

	color: #1c1d4a;

	font-size: clamp(18px, 1.3vw, 20px);
	font-weight: 700;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Placings
   --------------------------------------------------------- */

.ds-show-result-placings {
	padding: 0px 20px 20px;

	font-size: 16px;
	line-height: 1.55;
}

.ds-show-result-placings > :first-child {
	margin-top: 0;
}

.ds-show-result-placings > :last-child {
	margin-bottom: 0;
}

.ds-show-result-placings p {
	margin-top: 0;
	margin-bottom: 8px;
}

.ds-show-result-placings ol,
.ds-show-result-placings ul {
	margin-top: 0;
	margin-bottom: 0;
	padding-left: 1.4em;
}

.ds-show-result-placings li {
	margin-bottom: 3px;
}


/* ---------------------------------------------------------
   Result images
   --------------------------------------------------------- */

.ds-show-result-images {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
}


/*
 * Kept for compatibility with the shortcode.
 * Single and multiple image layouts are now both one column.
 */
.ds-show-result-images--single {
	grid-template-columns: 1fr;
}


/* Individual image + caption */

.ds-show-result-figure {
	margin: 0;
	min-width: 0;

	background: #faf7f5;
}


/* All result images use the same proportions */

.ds-show-result-image {
	display: block;

	width: 100%;
	height: auto;

	aspect-ratio: 4 / 3;
	object-fit: cover;
}


/* Caption underneath each image */

.ds-show-result-caption {
	margin: 0;
	padding: 10px 12px 12px;

	background: #faf7f5;

	font-size: 14px;
	line-height: 1.35;
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 980px) {

	.ds-show-results-grid {
		column-count: 2;
		column-gap: 18px;
	}

	.ds-show-result-card {
		margin-bottom: 18px;
	}
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 767px) {

	.ds-show-results-grid {
		column-count: 1;
	}

	.ds-show-result-card {
		margin-bottom: 16px;
		padding-top: 18px;
	}

	.ds-show-result-title {
		padding: 0px 18px 8px;
	}

	.ds-show-result-placings {
		padding: 0px 18px 18px;
		font-size: 15px;
	}

	.ds-show-result-caption {
		padding: 10px 12px 12px;
		font-size: 12px;
	}
}


/* =========================================================
   SHOW VIDEOS
   ========================================================= */

.ds-show-videos-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}

.ds-show-video {
	min-width: 0;
}

.ds-show-video-embed {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

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

.ds-show-video-title {
	margin: 12px 0 0;
	color: #1c1d4a;
	font-size: clamp(16px, 1vw, 18px);
	font-weight: 700;
	line-height: 1.25;
}

.ds-show-video-link {
	display: inline-block;
}

@media (max-width: 767px) {

	.ds-show-videos-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}



/* ---------------------------------------------------------
   Hide REPORT GALLERY if no img
   --------------------------------------------------------- */
.ds-report-gallery-section:not(:has(img)) {
    display: none !important;
}






/* =========================================================
   Related Sale / Show Reports
   ========================================================= */

.ds-related-reports {
	width: 100%;
}


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

.ds-related-reports__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 42px;
}

.ds-related-reports__title {
	margin: 0;
	padding: 0;
	font-size: clamp(30px, 3vw, 44px);
	font-weight: 700;
	line-height: 1.05;
}

.ds-related-reports__more {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex: 0 0 auto;

	padding: 0 0 8px;

	border-bottom: 1px solid #303039;

	color: #303039;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;

	text-decoration: none !important;

	transition:
		color .2s ease,
		border-color .2s ease;
}

.ds-related-reports__more > span:last-child {
	font-size: 20px;
	transition: transform .2s ease;
}

.ds-related-reports__more:hover {
	border-color: #9e8b3d;
	color: #9e8b3d;
}

.ds-related-reports__more:hover > span:last-child {
	transform: translateX(3px);
}


/* ---------------------------------------------------------
   Grid
   4 cards on desktop
   --------------------------------------------------------- */

.ds-related-reports__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}


/* ---------------------------------------------------------
   Report card
   --------------------------------------------------------- */

.ds-related-report-card {
	display: flex;
	flex-direction: column;

	height: 100%;

	overflow: hidden;

	border: 1px solid #cacaca;
	border-radius: 4px;

	background: #faf7f5;

	transition: border-color .2s ease;
}

.ds-related-report-card:hover {
	border-color: #9e8b3d;
}


/* ---------------------------------------------------------
   Featured image
   --------------------------------------------------------- */

.ds-related-report-card .ds-home-event-card-image {
	display: block;
	overflow: hidden;
}

.ds-related-report-card .ds-home-event-card-image img {
	display: block;

	width: 100%;
	aspect-ratio: 16 / 10;

	object-fit: cover;
}


/* ---------------------------------------------------------
   Card content
   20px around everything below the image
   --------------------------------------------------------- */

.ds-related-report-card .ds-home-event-card-content {
	display: flex;
	flex: 1;
	flex-direction: column;

	padding: 20px;
}


/* ---------------------------------------------------------
   Post category
   Uses the shared .ds-post-category-badge component
   --------------------------------------------------------- */

.ds-related-report-card__category {
	margin: 0;
	padding: 0;
}


/* ---------------------------------------------------------
   Date
   --------------------------------------------------------- */

.ds-related-report-card__date {
	margin-top: 18px;
}


/* ---------------------------------------------------------
   Title
   --------------------------------------------------------- */

.ds-related-report-card .ds-home-event-card-title {
	margin-top: 16px;
}

.ds-related-report-card .ds-home-event-card-title h3 {
	margin: 0;
	padding: 0;

	font-size: clamp(18px, 1.2vw, 20px);
	line-height: 1.2;
}

.ds-related-report-card .ds-home-event-card-title a {
	color: #1c1d4a;
	text-decoration: none !important;

	transition: color .2s ease;
}

.ds-related-report-card .ds-home-event-card-title a:hover {
	color: #9e8b3d;
}


/* ---------------------------------------------------------
   Small description under title
   --------------------------------------------------------- */

.ds-related-report-card__description {
	margin: 14px 0 0;
	padding: 0;

	color: #5a5a61;

	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
}


/* ---------------------------------------------------------
   Related Report location
   --------------------------------------------------------- */

.ds-related-report-card .ds-home-event-card-venue {
	margin-top: 18px;
}

.ds-related-report-card .ds-event-card-venue {
	display: flex;
	align-items: center;
	gap: 8px;

	color: #4f4f55;

	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

.ds-related-report-card .ds-event-card-venue__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 16px;
	height: 16px;
	flex: 0 0 16px;

	margin: 0;

	color: #9e8b3d;
}

.ds-related-report-card .ds-event-card-venue__icon svg {
	display: block;

	width: 16px !important;
	height: 16px !important;
	max-width: 16px !important;
	max-height: 16px !important;

	fill: currentColor;
}

.ds-related-report-card .ds-event-card-venue__text {
	min-width: 0;
}


/* =========================================================
   Shared Post Category Badge
   News / Reports / article cards
   ========================================================= */

.ds-post-category-badge {
	display: inline-flex;
	align-items: center;

	width: fit-content;
	max-width: 100%;

	padding: 5px 10px;

	border: 0;
	border-radius: 3px;

	background-color:
		var(
			--ds-term-primary,
			#1c1d4a
		);

	color: #fff !important;

	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;

	letter-spacing: .04em;
	text-transform: uppercase;

	white-space: nowrap;
}


/* =========================================================
   Hide Related Reports section when shortcode has no results
   ========================================================= */

.ds-related-reports-section:not(:has(.ds-related-reports)) {
	display: none !important;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 980px) {

	.ds-related-reports__header {
		align-items: flex-start;
	}

	.ds-related-reports__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

	.ds-related-reports__header {
		flex-direction: column;
		align-items: flex-start;

		gap: 20px;
		margin-bottom: 30px;
	}

	.ds-related-reports__title {
		font-size: 30px;
	}

	.ds-related-reports__grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.ds-related-report-card .ds-home-event-card-content {
		padding: 20px;
	}

}





/* =========================================================
   Reports Loop — No Results
   ========================================================= */

/*
 * When the Loop contains Divi's No Results message,
 * remove the normal card styling from the outer Loop item.
 */
.dt-loop-item.ds-report-results-loop:has(.not-found-title) {
	grid-column: 1 / -1 !important;

	width: 100% !important;
	max-width: none !important;

	margin: 0 !important;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 0 !important;

	background: transparent !important;
	box-shadow: none !important;
}


/* Prevent normal Loop card hover styling */
.dt-loop-item.ds-report-results-loop:has(.not-found-title):hover {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}


/* Actual empty-state box */
.dt-loop-item.ds-report-results-loop
.entry:has(.not-found-title) {
	width: 100%;
	max-width: none;

	padding: 26px 30px;

	border: 1px solid #cacaca;
	border-radius: 4px;

	background: #faf7f5;
}


/* Heading */
.dt-loop-item.ds-report-results-loop
.not-found-title {
	margin: 0 0 8px;
	padding: 0;

	color: #1c1d4a;

	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}


/* Message */
.dt-loop-item.ds-report-results-loop
.not-found-title + p {
	max-width: 700px;

	margin: 0;
	padding: 0;

	color: #5a5a61;

	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}


/* Mobile */
@media (max-width: 767px) {

	.dt-loop-item.ds-report-results-loop
	.entry:has(.not-found-title) {
		padding: 22px 20px;
	}

	.dt-loop-item.ds-report-results-loop
	.not-found-title {
		font-size: 20px;
	}

}