.fleetleague-race-card {
	margin-inline: auto;
	max-width: 90%;
}

.fleetleague-race-card.card {
	border-radius: 6px;
}

.fleetleague-race__header {
	margin-bottom: 1.25rem;
}

.fleetleague-race__header h1 {
	margin-bottom: 1rem;
}

.fleetleague-meta-row,
.fleetleague-course__header {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
}

.fleetleague-race__meta-end {
	margin-left: auto;
	text-align: right;
}

.fleetleague-race__season-year {
	font-weight: 700;
}

.fleetleague-result-sections {
	display: grid;
	gap: .65rem;
}

.fleetleague-result-section {
	padding-top: .25rem;
}

.fleetleague-card table {
	width: 100%;
}

.fleetleague-result-table {
	border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
	border-collapse: separate;
	border-radius: 5px;
	border-spacing: 0;
	overflow: hidden;
}

.fleetleague-result-table th,
.fleetleague-result-table td {
	border-color: color-mix(in srgb, currentColor 15%, transparent);
}

.fleetleague-result-table tbody td {
	text-align: center;
}

.fleetleague-result-table tbody td:nth-child(2),
.fleetleague-result-table tbody td:nth-child(3) {
	text-align: left;
}

.fleetleague-result-table thead tr:last-child th {
	background: color-mix(in srgb, currentColor 7%, Canvas);
	font-weight: 700;
	text-align: center;
}

.fleetleague-result-table__title-row th {
	background: color-mix(in srgb, currentColor 11%, Canvas);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
}

.fleetleague-boat-link,
.fleetleague-boat-link:visited {
	color: LinkText;
	text-decoration: none;
}

.fleetleague-boat-link:hover,
.fleetleague-boat-link:focus {
	text-decoration: none;
}

.fleetleague-cards--single,
.fleetleague-cards--admin {
	justify-content: center;
}

.fleetleague-card-single {
	max-width: 90%;
}

.fleetleague-lh {
	border: 1px solid currentColor;
	border-radius: 999px;
	padding: 0 .35rem;
	font-size: .75rem;
}

.fleetleague-modal {
	background: rgba(0, 0, 0, .55);
	inset: 0;
	position: fixed;
	z-index: 10000;
}

.fleetleague-modal__panel {
	background: Canvas;
	border-radius: 6px;
	margin: 10vh auto;
	max-width: 40rem;
	padding: 1rem;
}

.fleetleague-modal__close {
	float: right;
}

.fleetleague-course {
	border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	margin-top: 1.5rem;
	padding-top: 1rem;
}

.fleetleague-course__header h2 {
	margin: 0;
}

.fleetleague-course__controls {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.fleetleague-course__list {
	line-height: 1.8;
	margin-block: .75rem 0;
	padding-left: 1.5rem;
}

.fleetleague-course__coords {
	opacity: .75;
}

.fleetleague-course__map {
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	min-height: 22rem;
}

.fleetleague-leaflet-icon {
	align-items: center;
	background: transparent;
	border: 0;
	display: flex;
	flex-direction: column;
	gap: .15rem;
	height: auto !important;
	overflow: visible;
	white-space: nowrap;
	width: auto !important;
}

.fleetleague-map-symbol {
	background: var(--fleetleague-mark-colour);
	border: 1px solid color-mix(in srgb, var(--fleetleague-mark-colour) 70%, CanvasText);
	display: inline-block;
	flex: 0 0 auto;
	height: 1rem;
	width: 1rem;
}

.fleetleague-map-symbol--circle {
	border-radius: 50%;
}

.fleetleague-map-symbol--triangle {
	background: transparent;
	border-top: 0;
	border-left: .45rem solid transparent;
	border-right: .45rem solid transparent;
	border-bottom: .8rem solid var(--fleetleague-mark-colour);
	height: 0;
	width: 0;
}

.fleetleague-map-label {
	background: transparent;
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-shadow: 0 1px 2px Canvas, 0 -1px 2px Canvas;
}

.fleetleague-course__map--labels-hidden .fleetleague-map-label {
	display: none;
}

.fleetleague-course__legend {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem .5rem;
	margin-top: .5rem;
	font-size: .85rem;
}

.fleetleague-course__legend-item {
	align-items: center;
	display: inline-flex;
	gap: .25rem;
	white-space: nowrap;
}

.fleetleague-course__legend-separator {
	opacity: .6;
}

@media (max-width: 900px) {
	.fleetleague-race-card {
		max-width: 100%;
	}

	.fleetleague-card-single {
		max-width: 100%;
	}

	.fleetleague-meta-row,
	.fleetleague-course__header {
		align-items: flex-start;
		flex-direction: column;
	}
}
