/* YTC Past Winners — structural base. Colours are placeholders; swap for
   the ICCA design tokens as needed. */

.ytc-past-winners {
	position: relative;
}

/* Year tabs — pill row, active tab is a white pill */
.ytc-past-winners__tabs {
	display: inline-flex;
	background: #E8F1F1;
	border-radius: 999px;
	padding: 4px;
	gap: 4px;
	margin-bottom: 32px;
	overflow-x: auto;
	max-width: 100%;

	/* Drag-to-scroll: no visible scrollbar, grab cursor on hover. */
	cursor: grab;
	scrollbar-width: none;    /* Firefox */
	-ms-overflow-style: none; /* old Edge/IE */
}
.ytc-past-winners__tabs::-webkit-scrollbar {
	display: none;            /* Chrome/Safari/new Edge */
}
.ytc-past-winners__tabs.is-dragging {
	cursor: grabbing;
	user-select: none; /* stops text being selected mid-drag */
}
.ytc-past-winners__tab {
	background: transparent;
	border: none;
	padding: 8px 16px;
	font-size: 14px;
	color: #71717A;
	white-space: nowrap;
	cursor: pointer;
	line-height: 24px;
	font-family: Montserrat, MontserratFallback, sans-serif;
}
.ytc-past-winners__tab.is-active {
	background: #fff;
	color: #18304D;
	font-weight: 600;
}

/* Panels — display is driven entirely by .is-active so the markup's
   visibility can't be fought over by another display rule. */
.ytc-past-winners__panel {
	display: none;
	grid-template-columns: repeat( var( --ytc-pw-columns, 3 ), 1fr );
	gap: 24px;
}
.ytc-past-winners__panel.is-active {
	display: grid;
}

/* Card */
.ytc-past-winners__card {
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 25px 0 rgba(24, 48, 77, 0.13);
	padding: 32px;
	background: #fff;
	border-radius: 16px;
}
.ytc-past-winners__logo {
	display: none;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e3ecf2;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 20px;
}
.ytc-past-winners__logo img {
	max-width: 100% !important;
	max-height: 100%;
	width: auto !important;
	height: 160px !important;
	object-fit: contain;
	margin-bottom: 0 !important;
}
.ytc-past-winners__logo:has(img){
	display: flex;
}

.ytc-past-winners__title {
	font-size: 18px !important;
	line-height: 24px !important;
}
.ytc-past-winners__title a {
	color: #18304D;
	text-decoration: underline;
}

.ytc-past-winners__subtitle {
	padding-bottom: 16px;
}

.ytc-past-winners__download {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto; /* pins the button to the bottom so cards of differing height still line up */
	font-size: 14px;
	font-weight: 700;
	color: #61BB46;
	text-decoration: none;
}
.ytc-past-winners__download svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.ytc-past-winners__empty {
	grid-column: 1 / -1;
	padding: 40px 0;
	text-align: center;
	color: #888;
}

@media ( max-width: 999px ) {
	.ytc-past-winners__panel {
		grid-template-columns: repeat( 2, 1fr );
	}
}
@media ( max-width: 640px ) {
	.ytc-past-winners__panel {
		grid-template-columns: 1fr;
	}
}
