/* Events pages */
.tsp-events-page {
	color: var(--tsp-black);
	margin: 0 auto;
	max-width: 1280px;
	padding: clamp(32px, 5vw, 64px) 22px clamp(42px, 6vw, 80px);
}

.tsp-events-hero {
	background: #f4f4f4;
	border: 1px solid #dedede;
	border-radius: 8px;
	display: grid;
	gap: clamp(28px, 5vw, 72px);
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
	margin-bottom: clamp(34px, 5vw, 62px);
	overflow: hidden;
}

.tsp-events-hero__copy {
	align-self: center;
	padding: clamp(30px, 5vw, 56px);
}

.tsp-events-kicker {
	color: var(--tsp-blue);
	font-size: 0.82rem;
	font-weight: 850;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.tsp-events-hero h1 {
	font-size: clamp(2.5rem, 6vw, 5.2rem);
	letter-spacing: 0;
	line-height: 0.98;
	margin: 0;
}

.tsp-events-lede {
	color: #303846;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	margin: 20px 0 0;
	max-width: 640px;
}

.tsp-events-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.tsp-events-button {
	align-items: center;
	background: var(--tsp-blue);
	border: 1px solid var(--tsp-blue);
	border-radius: 6px;
	color: var(--tsp-white);
	display: inline-flex;
	font-weight: 850;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	text-decoration: none;
}

.tsp-events-button:hover {
	background: #0078b4;
	color: var(--tsp-white);
}

.tsp-events-button--secondary {
	background: transparent;
	border-color: var(--tsp-black);
	color: var(--tsp-black);
}

.tsp-events-button--secondary:hover {
	background: var(--tsp-black);
	color: var(--tsp-white);
}

.tsp-events-hero__panel {
	background: var(--tsp-black);
	border-left: 1px solid #dedede;
	color: var(--tsp-white);
	display: grid;
	gap: 18px;
	padding: clamp(28px, 5vw, 56px);
}

.tsp-events-stat {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding-bottom: 18px;
}

.tsp-events-stat:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tsp-events-stat span {
	color: var(--tsp-blue);
	display: block;
	font-size: 0.78rem;
	font-weight: 850;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.tsp-events-stat strong {
	display: block;
	font-size: clamp(1.15rem, 1.8vw, 1.55rem);
	line-height: 1.2;
}

.tsp-events-section {
	margin-top: clamp(34px, 5vw, 60px);
}

.tsp-events-section h2 {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	margin: 0 0 18px;
}

.tsp-events-card-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tsp-events-card,
.tsp-events-info-card {
	background: #f7f7f7;
	border: 1px solid #dedede;
	border-radius: 8px;
	color: inherit;
	display: block;
	padding: clamp(22px, 3vw, 32px);
	text-decoration: none;
}

.tsp-events-card:hover {
	border-color: var(--tsp-blue);
}

.tsp-events-card h3,
.tsp-events-info-card h3 {
	font-size: clamp(1.35rem, 2.1vw, 1.8rem);
	line-height: 1.15;
	margin: 0 0 12px;
}

.tsp-events-card p,
.tsp-events-info-card p,
.tsp-events-list {
	color: #596270;
	line-height: 1.55;
	margin: 0;
}

.tsp-events-card__meta {
	color: var(--tsp-blue);
	display: block;
	font-size: 0.82rem;
	font-weight: 850;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.tsp-events-info-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsp-events-list {
	padding-left: 18px;
}

.tsp-events-list li + li {
	margin-top: 8px;
}

.tsp-events-band {
	align-items: center;
	background: var(--tsp-black);
	border-radius: 8px;
	color: var(--tsp-white);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	padding: clamp(24px, 4vw, 38px);
}

.tsp-events-band h2 {
	color: var(--tsp-white);
	margin: 0;
}

.tsp-events-band p {
	color: #d8d8d8;
	margin: 8px 0 0;
}

@media (max-width: 860px) {
	.tsp-events-hero,
	.tsp-events-card-grid,
	.tsp-events-info-grid {
		grid-template-columns: 1fr;
	}

	.tsp-events-hero__panel {
		border-left: 0;
	}

	.tsp-events-band {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.tsp-events-page {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tsp-events-hero__copy,
	.tsp-events-hero__panel {
		padding: 24px;
	}

	.tsp-events-button {
		width: 100%;
	}
}

/* Policy and help pages */
.tsp-policy-page {
	color: var(--tsp-black);
	margin: 0 auto;
	max-width: 1280px;
	padding: clamp(32px, 5vw, 64px) 22px clamp(42px, 6vw, 80px);
}

.tsp-policy-hero {
	background: #f4f4f4;
	border: 1px solid #dedede;
	border-radius: 8px;
	display: grid;
	gap: clamp(28px, 5vw, 72px);
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
	margin-bottom: clamp(34px, 5vw, 62px);
	overflow: hidden;
}

.tsp-policy-hero__copy {
	align-self: center;
	padding: clamp(30px, 5vw, 56px);
}

.tsp-policy-kicker {
	color: var(--tsp-blue);
	font-size: 0.82rem;
	font-weight: 850;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.tsp-policy-hero h1 {
	font-size: clamp(2.5rem, 6vw, 5.2rem);
	letter-spacing: 0;
	line-height: 0.98;
	margin: 0;
}

.tsp-policy-lede {
	color: #303846;
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	margin: 20px 0 0;
	max-width: 700px;
}

.tsp-policy-hero__panel {
	background: var(--tsp-black);
	border-left: 1px solid #dedede;
	color: var(--tsp-white);
	display: grid;
	gap: 18px;
	padding: clamp(28px, 5vw, 56px);
}

.tsp-policy-stat {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	padding-bottom: 18px;
}

.tsp-policy-stat:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.tsp-policy-stat span {
	color: var(--tsp-blue);
	display: block;
	font-size: 0.78rem;
	font-weight: 850;
	margin-bottom: 7px;
	text-transform: uppercase;
}

.tsp-policy-stat strong {
	display: block;
	font-size: clamp(1.15rem, 1.8vw, 1.55rem);
	line-height: 1.2;
}

.tsp-policy-stat a {
	color: inherit;
	text-decoration-color: var(--tsp-blue);
	text-underline-offset: 4px;
}

.tsp-policy-metrics,
.tsp-policy-grid {
	display: grid;
	gap: 16px;
}

.tsp-policy-metrics {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-bottom: clamp(34px, 5vw, 60px);
}

.tsp-policy-metric,
.tsp-policy-card {
	background: #f7f7f7;
	border: 1px solid #dedede;
	border-radius: 8px;
	padding: clamp(20px, 3vw, 30px);
}

.tsp-policy-metric strong,
.tsp-policy-card h2,
.tsp-policy-card h3 {
	color: var(--tsp-black);
	line-height: 1.15;
	margin: 0 0 12px;
}

.tsp-policy-metric span {
	color: var(--tsp-blue);
	display: block;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 900;
	line-height: 1;
	margin-bottom: 10px;
}

.tsp-policy-metric p,
.tsp-policy-card p,
.tsp-policy-card li {
	color: #596270;
	line-height: 1.58;
	margin-top: 0;
}

.tsp-policy-card p:last-child,
.tsp-policy-card li:last-child {
	margin-bottom: 0;
}

.tsp-policy-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tsp-policy-card h2 {
	font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.tsp-policy-card h3 {
	font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.tsp-policy-card ul,
.tsp-policy-card ol {
	margin: 0;
	padding-left: 22px;
}

.tsp-policy-card--wide {
	grid-column: 1 / -1;
}

.tsp-policy-band {
	align-items: center;
	background: var(--tsp-black);
	border-radius: 8px;
	color: var(--tsp-white);
	display: flex;
	gap: 20px;
	justify-content: space-between;
	margin-top: clamp(34px, 5vw, 60px);
	padding: clamp(24px, 4vw, 38px);
}

.tsp-policy-band h2 {
	color: var(--tsp-white);
	font-size: clamp(1.8rem, 3.5vw, 3rem);
	line-height: 1.05;
	margin: 0;
}

.tsp-policy-band p {
	color: #d8d8d8;
	margin: 8px 0 0;
}

.tsp-policy-button {
	align-items: center;
	background: var(--tsp-blue);
	border: 1px solid var(--tsp-blue);
	border-radius: 6px;
	color: var(--tsp-white);
	display: inline-flex;
	font-weight: 850;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	text-decoration: none;
	white-space: nowrap;
}

.tsp-policy-button:hover {
	background: #0078b4;
	color: var(--tsp-white);
}

.tsp-policy-button--secondary {
	background: transparent;
	border-color: var(--tsp-white);
	color: var(--tsp-white);
}

.tsp-policy-button--secondary:hover {
	background: var(--tsp-white);
	color: var(--tsp-black);
}

.tsp-policy-band__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tsp-policy-note {
	color: #767676;
	font-size: 0.9rem;
	margin: 18px 0 0;
}

@media (max-width: 860px) {
	.tsp-policy-hero,
	.tsp-policy-metrics,
	.tsp-policy-grid {
		grid-template-columns: 1fr;
	}

	.tsp-policy-hero__panel {
		border-left: 0;
	}

	.tsp-policy-card--wide {
		grid-column: auto;
	}

	.tsp-policy-band {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.tsp-policy-page {
		padding-left: 16px;
		padding-right: 16px;
	}

	.tsp-policy-hero__copy,
	.tsp-policy-hero__panel {
		padding: 24px;
	}

	.tsp-policy-button {
		width: 100%;
	}
}

/* Product gallery tidy-up for products with many gallery images. */
body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image img,
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
	display: block;
	max-height: 620px;
	object-fit: contain;
	width: 100%;
}

body.single-product .woocommerce div.product div.images ol.flex-control-thumbs,
body.single-product .woocommerce div.product div.images ul.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
body.single-product .woocommerce-product-gallery ul.flex-control-thumbs {
	box-sizing: border-box;
	display: grid !important;
	gap: 10px !important;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
	margin: 16px 0 0 !important;
	max-height: 188px;
	overflow-y: auto;
	padding: 0 6px 2px 0 !important;
	width: 100%;
}

body.single-product .woocommerce div.product div.images ol.flex-control-thumbs::before,
body.single-product .woocommerce div.product div.images ol.flex-control-thumbs::after,
body.single-product .woocommerce div.product div.images ul.flex-control-thumbs::before,
body.single-product .woocommerce div.product div.images ul.flex-control-thumbs::after,
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs::before,
body.single-product .woocommerce-product-gallery ol.flex-control-thumbs::after,
body.single-product .woocommerce-product-gallery ul.flex-control-thumbs::before,
body.single-product .woocommerce-product-gallery ul.flex-control-thumbs::after {
	content: none !important;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs li,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
	box-sizing: border-box;
	float: none !important;
	list-style: none;
	margin: 0 !important;
	width: auto !important;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs li img,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
	aspect-ratio: 1 / 1;
	background: #fff;
	border: 1px solid #dedede;
	border-radius: 6px;
	box-sizing: border-box;
	display: block;
	height: 100% !important;
	object-fit: contain;
	opacity: 0.66;
	padding: 4px;
	width: 100% !important;
}

body.single-product .woocommerce div.product div.images .flex-control-thumbs li img.flex-active,
body.single-product .woocommerce div.product div.images .flex-control-thumbs li img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
body.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover {
	border-color: var(--tsp-blue);
	opacity: 1;
}

@media (max-width: 700px) {
	body.single-product .woocommerce div.product div.images ol.flex-control-thumbs,
	body.single-product .woocommerce div.product div.images ul.flex-control-thumbs,
	body.single-product .woocommerce-product-gallery ol.flex-control-thumbs,
	body.single-product .woocommerce-product-gallery ul.flex-control-thumbs {
		display: flex !important;
		max-height: none;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
	}

	body.single-product .woocommerce div.product div.images .flex-control-thumbs li,
	body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
		flex: 0 0 76px;
		scroll-snap-align: start;
	}
}


