/**
 * Upcoming Transports — three photo-and-content bands. The event cards and the
 * pale-green panels are shared between the transport and health-check lists,
 * which differ only in their accent colour.
 */

.rth-transports {
	flex: 1;
	min-width: 0;
}

.transports {
	width: min(1486px, 100% - 40px);
	margin-inline: auto;
	padding-block: var(--space-xl) var(--space-2xl);
}

.transports__title {
	margin-bottom: clamp(2.5rem, 5vw, 5.5rem);
}

.transports__band {
	display: grid;
	grid-template-columns: minmax(0, 676fr) minmax(0, 789fr);
	gap: var(--space-lg);
	align-items: start;
}

.transports__band + .transports__band {
	margin-top: var(--space-2xl);
}

.transports__band--text-first {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transports__col {
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

/* Photos */
.tev-photo {
	margin: 0;
}

.tev-photo__img {
	display: block;
	width: 646.98px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 646.98 / 862.64;
	object-fit: cover;
	border-radius: 18px;
}

.transports__band--text-first .tev-photo__img {
	aspect-ratio: 646.98 / 970.47;
}

/* Event cards */
.tev-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.tev-card {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-sm) var(--space-md);
	background: var(--color-off-white);
	border: 1px solid var(--color-hairline);
	border-radius: 14px;
}

.tev-cal {
	flex: 0 0 auto;
	width: 5rem; /* 80px */
	margin: 0;
	overflow: hidden;
	background: white;
	border: 1px solid var(--color-hairline);
	border-radius: 10px;
	text-align: center;
}

.tev-cal__month {
	display: block;
	padding: 0.1875rem 0;
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(0.875rem * var(--fs-scale)); /* 14px */
	line-height: 1.2; /* 16.8 / 14 */
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: white;
}

.tev-cal__day {
	display: block;
	/* Figma gives this the month's 16.8px leading; the padding carries the
	   31px glyph, which overflows that line box by design. */
	padding: 1rem 0;
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.9375rem * var(--fs-scale)); /* 31px */
	line-height: 16.8px;
	letter-spacing: 1.5px;
	color: black;
}

.tev-card--green .tev-cal__month {
	background: var(--color-olive);
}

.tev-card--gold .tev-cal__month {
	background: var(--color-gold);
}

.tev-card__body {
	min-width: 0;
}

.tev-card__title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 0.25rem;
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(1.3125rem * var(--fs-scale)); /* 21px */
	line-height: 1.2; /* 25.2 / 21 */
	letter-spacing: 0;
	color: var(--color-green-darker);
}

.tev-card__badge {
	padding: 0.0625rem 0.4375rem;
	border-radius: var(--radius-pill);
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 700;
	font-size: calc(0.75rem * var(--fs-scale)); /* 12px */
	line-height: 1.2; /* 14.4 / 12 */
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

.tev-card--green .tev-card__badge {
	background: var(--color-mint);
	color: var(--color-olive);
}

.tev-card--gold .tev-card__badge {
	background: var(--color-gold-pale);
	color: var(--color-gold-deep);
}

.tev-card__meta {
	margin: 0;
	font-family: var(--font-mono); /* JetBrains Mono */
	font-weight: 400;
	font-size: calc(1rem * var(--fs-scale)); /* 16px */
	line-height: 1.2; /* 19.2 / 16 */
	letter-spacing: 0;
	color: var(--color-olive);
}

.tev-card__weekday::after {
	content: ' \00B7 ';
}

/* Pale-green panels */
.tev-panel {
	display: flex;
	align-items: flex-start;
	gap: var(--space-md);
	padding: var(--space-sm) var(--space-lg) var(--space-lg);
	background: var(--color-mint);
	border: 1px solid var(--color-mist-border);
	border-radius: 18px;
}

.tev-panel .tev-panel__icon {
	flex: 0 0 auto;
	margin-top: 1rem;
	width: 44px;
	height: 44px;
	/* The disc is currentColor in the SVG; the pin itself stays white. */
	color: var(--color-orange-deep);
}

.tev-panel__heading,
.transports__prose h2 {
	font-family: var(--font-display); /* Lexend */
	font-weight: 600;
	font-size: calc(2.5rem * var(--fs-scale)); /* 40px */
	line-height: 1.925; /* 77 / 40 */
	letter-spacing: 0;
	color: var(--color-green-darker);
}

.tev-panel__heading {
	margin: 0;
}

.transports__prose h2 {
	margin: var(--space-2xl) 0 0;
}

.transports__prose > h2:first-child {
	margin-top: 0;
}

.tev-panel__text > :last-child,
.transports__prose > :last-child {
	margin-bottom: 0;
}

.transports__prose a {
	color: var(--color-olive);
}

@media (max-width: 1000px) {
	.transports__band {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--space-lg);
	}

	.transports__band + .transports__band {
		margin-top: var(--space-xl);
	}

	.tev-photo__img {
		margin-inline: auto;
	}
}

@media (max-width: 480px) {
	.tev-card {
		gap: var(--space-sm);
		padding: var(--space-sm);
	}

	.tev-cal {
		width: 68px;
	}

	.tev-cal__day {
		font-size: calc(1.5rem * var(--fs-scale));
	}

	.tev-panel {
		gap: var(--space-sm);
		padding: var(--space-sm);
	}

	.tev-panel .tev-panel__icon {
		margin-top: 0;
	}

	.tev-panel__heading,
	.transports__prose h2 {
		font-size: calc(1.75rem * var(--fs-scale)); /* 28px */
		line-height: 1.35;
	}

	.transports__prose h2 {
		margin-top: var(--space-xl);
	}
}

@media (max-width: 407.98px) {
	.tev-card__time {
		display: block;
	}

	.tev-card__weekday::after {
		content: none;
	}
}
