/* ============================================================
   SWS maps — season chart [sws_season_map] and lake drawings (TASKS X5, D27).
   Tokens: theme.json palette + custom.maps (chart paper, land, water, depth tints).
   SVG sizes are in chart units (1 unit = 200 m; the chart is 1970 units wide), so text scales with the chart:
   33 units are 14 px on a chart of 840 px. Charts narrower than that drop the small print (ticks, title block),
   draw bigger marks and lake names (40 units) down to 690 px; the list carries every detail. Mark labels are HTML (px sizes).
   ============================================================ */

.sws-smap {
	--sws-smap-red: var(--wp--preset--color--red);
	--sws-smap-navy: var(--wp--preset--color--navy);
	--sws-smap-past: var(--wp--preset--color--navy); /* Eric 28.10.: no grey — done = solid navy, to come = hollow. */
	container: smap / inline-size;
	margin: 0;
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--body);
}

.sws-smap *,
.sws-smap *::before,
.sws-smap *::after {
	box-sizing: border-box;
}

.sws-smap__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

/* Wide: list next to the chart. Narrower: list below, in columns. */
@container smap (min-width: 1200px) {
	.sws-smap__body {
		grid-template-columns: minmax(0, 1fr) 19rem;
	}
}

@container smap (min-width: 680px) and (max-width: 1199.98px) {
	.sws-smap__legend {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
		column-gap: var(--wp--preset--spacing--50);
		border-top: 0;
	}

	.sws-smap__item { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 0; }
}

/* ---------- Chart ---------- */
.sws-smap__chart {
	container: smapchart / inline-size;
	position: relative;
	padding: clamp(0.25rem, 1.2cqi, 0.9rem);
	background: var(--wp--custom--maps--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--wp--preset--color--ink) 6%, transparent);
}

.sws-smap__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
	font-family: var(--wp--preset--font-family--display);
}

.sws-smap__sea { fill: var(--wp--custom--maps--abroad); }
.sws-smap__land { fill: var(--wp--custom--maps--land); }
.sws-smap__land--li { fill: var(--wp--custom--maps--abroad); }

.sws-smap__border {
	fill: none;
	stroke: var(--wp--preset--color--navy-deep);
	stroke-opacity: 0.5;
	stroke-width: 2.2;
	stroke-dasharray: 14 5 3 5;
	stroke-linejoin: round;
}

.sws-smap__river {
	fill: none;
	stroke: var(--wp--custom--maps--river);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sws-smap__river--2 { stroke-width: 2.8; }
.sws-smap__lake { fill: var(--wp--custom--maps--water); }
.sws-smap__depth--10 { fill: var(--wp--custom--maps--depth-a); }
.sws-smap__depth--50 { fill: var(--wp--custom--maps--depth-b); }
.sws-smap__depth--100 { fill: var(--wp--custom--maps--depth-c); }
.sws-smap__depth--200 { fill: var(--wp--custom--maps--depth-d); }

.sws-smap__shore {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.55;
	stroke-width: 1.3;
	stroke-linejoin: round;
}

.sws-smap__grat {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.16;
	stroke-width: 1.2;
}

.sws-smap__neat {
	fill: none;
	stroke: var(--wp--preset--color--ink);
	stroke-width: 1.6;
}

.sws-smap__neat--inner { stroke-width: 1; }
.sws-smap__band { fill: var(--wp--preset--color--ink); }

.sws-smap__ticks text {
	fill: var(--wp--preset--color--ink-soft);
	font-size: 33px;
	font-weight: 600;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}

/* The bottom edge labels sit on y = 1239 (build-maps.py): centred there, the bigger figures stay off the frame. */
.sws-smap__ticks text[y="1239"] { dominant-baseline: central; }

.sws-smap__country {
	fill: var(--wp--preset--color--ink-soft);
	fill-opacity: 0.85;
	font-size: 33px;
	font-weight: 600;
	letter-spacing: 0.3em;
}

.sws-smap__lake-name {
	fill: var(--wp--preset--color--navy);
	fill-opacity: 0.8;
	font-family: var(--wp--preset--font-family--body);
	font-size: 33px; /* = SWS_MAPS_LABEL (season-map.php sizes the label boxes with it) */
	font-style: italic;
	font-weight: 500;
	paint-order: stroke;
	stroke: var(--wp--custom--maps--water);
	stroke-width: 7px;
	stroke-linejoin: round;
}

/* Compass rose */
.sws-smap__rose-ring {
	fill: none;
	stroke: var(--wp--preset--color--ink-soft);
	stroke-width: 1.4;
}

.sws-smap__rose-tick {
	fill: none;
	stroke: var(--wp--preset--color--ink-soft);
	stroke-width: 1;
}

.sws-smap__rose-light {
	fill: var(--wp--custom--maps--paper);
	stroke: var(--wp--preset--color--navy-deep);
	stroke-width: 1;
	stroke-linejoin: round;
}

.sws-smap__rose-dark {
	fill: var(--wp--preset--color--navy-deep);
	stroke: var(--wp--preset--color--navy-deep);
	stroke-width: 1;
	stroke-linejoin: round;
}

.sws-smap__rose-n {
	fill: var(--wp--preset--color--red);
	font-size: 34px;
	font-weight: 800;
}

/* Cartouche (title block) */
.sws-smap__cartouche-box {
	fill: var(--wp--custom--maps--paper);
	stroke: var(--wp--preset--color--ink);
	stroke-width: 1.6;
}

.sws-smap__cartouche-rule {
	fill: none;
	stroke: var(--wp--preset--color--ink);
	stroke-width: 0.8;
}

.sws-smap__cartouche-title {
	fill: var(--wp--preset--color--navy-deep);
	font-size: 36px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.sws-smap__scale-label {
	fill: var(--wp--preset--color--ink-soft);
	font-family: var(--wp--preset--font-family--body);
	font-size: 33px;
	font-weight: 500;
}
.sws-smap__scale { fill: var(--wp--preset--color--ink); stroke: var(--wp--preset--color--ink); stroke-width: 1; }
.sws-smap__scale.is-light { fill: var(--wp--custom--maps--paper); }

/* Season track */
.sws-smap__leg {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.55;
	stroke-width: 2.4;
	stroke-dasharray: 9 8;
	stroke-linecap: round;
}

.sws-smap__leg.is-done {
	stroke-opacity: 0.38;
	stroke-dasharray: none;
}

.sws-smap__chevron {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.7;
	stroke-width: 2.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sws-smap__chevron.is-done { stroke-opacity: 0.45; }

.sws-smap__leader {
	stroke: var(--wp--preset--color--navy-deep);
	stroke-opacity: 0.6;
	stroke-width: 1.6;
}

.sws-smap__spot {
	fill: var(--wp--preset--color--navy-deep);
	stroke: var(--wp--custom--maps--paper);
	stroke-width: 2;
}

/* ---------- Racing marks ---------- */
.sws-smap__mark {
	--c: var(--sws-smap-navy);
	--num: var(--sws-smap-navy);
	cursor: pointer;
	outline: none;
	text-decoration: none;
}

.sws-smap__svg text { text-decoration: none; }

.sws-smap__mark.is-next,
.sws-smap__mark.is-live { --c: var(--sws-smap-red); --num: var(--sws-smap-red); }
.sws-smap__mark.is-past { --c: var(--sws-smap-past); --num: var(--wp--preset--color--navy); }
.sws-smap__mark.is-cancelled { --c: var(--sws-smap-past); --num: var(--wp--preset--color--navy); }

.sws-smap__buoy {
	--sws-smap-hot: 1;
	transform: scale(calc(var(--sws-smap-s, 1) * var(--sws-smap-hot)));
	transform-box: view-box;
	transform-origin: 0 0;
	transition: transform var(--wp--custom--transition);
}

.sws-smap__mark:hover .sws-smap__buoy,
.sws-smap__mark:focus-visible .sws-smap__buoy,
.sws-smap__mark.is-hot .sws-smap__buoy { --sws-smap-hot: 1.14; }

.sws-smap__wake {
	fill: var(--wp--custom--maps--paper);
	fill-opacity: 0.85;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.35;
	stroke-width: 1.5;
}

.sws-smap__body {
	fill: var(--c);
	stroke: var(--wp--preset--color--navy-deep);
	stroke-opacity: 0.35;
	stroke-width: 1.5;
}

.sws-smap__stripe { fill: var(--wp--preset--color--white); }

.sws-smap__num {
	fill: var(--num);
	font-size: 34px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.sws-smap__mark.is-cancelled .sws-smap__body,
.sws-smap__mark.is-tbc .sws-smap__body {
	fill: var(--wp--custom--maps--paper);
	stroke: var(--c);
	stroke-opacity: 1;
	stroke-width: 3;
}

.sws-smap__mark.is-tbc .sws-smap__body { stroke-dasharray: 7 5; }

/* Still to come: a hollow buoy (white body, navy outline); sailed ones are solid. */
.sws-smap__mark.is-upcoming .sws-smap__body {
	fill: var(--wp--preset--color--white);
	stroke: var(--c);
	stroke-opacity: 1;
	stroke-width: 3;
}

.sws-smap__strike {
	stroke: var(--wp--preset--color--red);
	stroke-width: 5;
	stroke-linecap: round;
}

.sws-smap__approx {
	fill: none;
	stroke: var(--c);
	stroke-width: 2.4;
	stroke-dasharray: 6 6;
}

.sws-smap__arrow path { fill: var(--c); }

.sws-smap__abroad-name {
	fill: var(--wp--preset--color--navy-deep);
	font-size: 33px;
	font-weight: 700;
	paint-order: stroke;
	stroke: var(--wp--custom--maps--abroad);
	stroke-width: 6px;
	stroke-linejoin: round;
}

.sws-smap__focus {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-width: 4;
	opacity: 0;
}

.sws-smap__mark:focus-visible .sws-smap__focus { opacity: 1; }

/* The ripple of the next regatta (and a quicker one while a regatta is on). */
.sws-smap__ripple {
	fill: none;
	stroke: var(--c);
	stroke-width: 3;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	animation: sws-smap-ripple 3.2s ease-out infinite;
}

.sws-smap__ripple--2 { animation-delay: 1.6s; }
.sws-smap__mark.is-live .sws-smap__ripple { animation-duration: 1.8s; }
.sws-smap__mark.is-live .sws-smap__ripple--2 { animation-delay: 0.9s; }

@keyframes sws-smap-ripple {
	0% { opacity: 0.75; transform: scale(1); }
	100% { opacity: 0; transform: scale(2.7); }
}

@media (prefers-reduced-motion: reduce) {
	.sws-smap__ripple { animation: none; opacity: 0.55; transform: scale(1.6); }
	.sws-smap__ripple--2 { opacity: 0.3; transform: scale(2.2); }
	.sws-smap__buoy { transition: none; }
}

/* Labels: HTML over the chart, placed and shown by maps.js on hover/focus of a mark or its list entry. */
.sws-smap__canvas {
	position: relative;
}

/* Bare chart (the page lists the regattas): the source in the corner instead of a caption. */
.sws-smap__inset-credit {
	position: absolute;
	right: 1.6%;
	bottom: 1.4%;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.6875rem;
	color: var(--wp--preset--color--ink-soft);
	pointer-events: none;
}

.sws-smap__tips {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sws-smap__tip {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	width: max-content;
	max-width: min(22rem, calc(100% - 0.5rem));
	padding: 0.6rem 0.9rem 0.7rem;
	border-top: var(--wp--custom--edge) solid var(--wp--preset--color--red);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--navy-deep);
	box-shadow: var(--wp--preset--shadow--card-hover);
	color: var(--wp--preset--color--white);
	line-height: 1.3;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--wp--custom--transition), visibility var(--wp--custom--transition);
}

.sws-smap__tip.is-hot { opacity: 1; visibility: visible; }

.sws-smap__tip-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 700;
	line-height: 1.1;
}

.sws-smap__tip-sub {
	color: var(--wp--preset--color--navy-tint);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

/* Small charts (tablets, phones): bigger marks, no small print in the chart — the list has it all.
   Phones (~350 px): the number on a 2× mark is 68 units ≈ 12 px. */
@container smapchart (max-width: 839.98px) {
	.sws-smap__ticks,
	.sws-smap__cartouche,
	.sws-smap__lake-name.is-full-only { display: none; }
	.sws-smap__canvas { --sws-smap-s: 1.35; } /* = SWS_MAPS_COMPACT_MARK */
	.sws-smap__country { font-size: 44px; letter-spacing: 0.2em; }
	/* Compact chart (690–840 px wide svg): lake names at 40 units = 14 px from 690 px (SWS_MAPS_LABEL_COMPACT); PHP has
	   marked the names that would touch a bigger mark (is-full-only). Smaller charts drop them. */
	.sws-smap__lake-name { font-size: 40px; stroke-width: 8px; }
}

@container smapchart (max-width: 689.98px) {
	.sws-smap__lake-name { display: none; }
}

@container smapchart (max-width: 599.98px) {
	.sws-smap__canvas { --sws-smap-s: 2; }
	.sws-smap__rose,
	.sws-smap__country,
	.sws-smap__abroad-name,
	.sws-smap__chevron { display: none; }
	.sws-smap__leg { stroke-width: 4; }
}

/* ---------- Legend list ---------- */
.sws-smap__side {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	min-width: 0;
}

.sws-smap__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
}

.sws-smap__head::before {
	content: "";
	width: var(--wp--custom--eyebrow-bar);
	height: 3px;
	background: var(--wp--preset--color--red);
}

.sws-smap__legend {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--preset--color--line);
}

.sws-smap__item {
	--c: var(--sws-smap-navy);
	--num: var(--sws-smap-navy);
	display: grid;
	grid-template-columns: 2rem minmax(0, 1fr) auto;
	gap: 0.75rem;
	align-items: center;
	padding: 0.55rem 0.5rem 0.55rem 0.35rem;
	border-bottom: 1px solid var(--wp--preset--color--line-soft);
	transition: background-color var(--wp--custom--transition);
}

.sws-smap__item.is-next,
.sws-smap__item.is-live { --c: var(--sws-smap-red); --num: var(--sws-smap-red); box-shadow: inset 3px 0 0 var(--sws-smap-red); }
.sws-smap__item.is-past,
.sws-smap__item.is-cancelled { --c: var(--sws-smap-past); --num: var(--wp--preset--color--navy); }
.sws-smap__item.is-hot { background: var(--wp--preset--color--bg-alt); }
.sws-smap__item.is-upcoming .sws-smap__badge { background: var(--wp--preset--color--white); box-shadow: inset 0 0 0 2px var(--c); }

/* The number as a little racing mark: coloured body, white band with the number. */
.sws-smap__badge {
	display: grid;
	place-items: center;
	width: 1.75rem;
	height: 2.1rem;
	border-radius: 0.6rem 0.6rem 0.3rem 0.3rem;
	background: linear-gradient(var(--c) 0 22%, var(--wp--preset--color--white) 22% 70%, var(--c) 70%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--navy-deep) 30%, transparent);
	color: var(--num);
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sws-smap__item.is-cancelled .sws-smap__badge,
.sws-smap__item.is-tbc .sws-smap__badge {
	background: var(--wp--preset--color--white);
	box-shadow: inset 0 0 0 2px var(--c);
}

.sws-smap__item.is-tbc .sws-smap__badge { border: 2px dashed var(--c); box-shadow: none; }
.sws-smap__item.is-none .sws-smap__badge { opacity: 0.75; }

.sws-smap__entry {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.sws-smap__name {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

a.sws-smap__name { color: var(--wp--preset--color--navy); }
a.sws-smap__name:hover { color: var(--wp--preset--color--red); }

a.sws-smap__name:focus-visible {
	outline: var(--wp--custom--focus-ring);
	outline-offset: 2px;
}

.sws-smap__item.is-cancelled .sws-smap__name { text-decoration: line-through; text-decoration-thickness: 1px; }

.sws-smap__meta {
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	font-variant-numeric: tabular-nums;
}

.sws-smap__note {
	align-self: flex-start;
	margin-top: 0.15rem;
	padding: 0 0.35rem;
	border: 1px dashed var(--wp--preset--color--line-strong);
	border-radius: var(--wp--custom--radius--badge);
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0.02em;
}

.sws-smap__status {
	padding: 0.15rem 0.45rem;
	border-radius: var(--wp--custom--radius--badge);
	background: color-mix(in srgb, var(--c) 10%, transparent);
	color: var(--num);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--label);
	text-transform: uppercase;
	white-space: nowrap;
}

/* Red text on the light red chip: the darker red keeps AA contrast. */
.sws-smap__item.is-next .sws-smap__status,
.sws-smap__item.is-live .sws-smap__status { color: var(--wp--preset--color--red-hover); }

.sws-smap__empty {
	margin: 0;
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Caption (under the chart, in its column) ---------- */
.sws-smap__main { min-width: 0; }

.sws-smap__caption {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	margin: var(--wp--preset--spacing--20) 0 0;
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.sws-smap__key {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.sws-smap__key-depth {
	width: 2.4rem;
	height: 0.55rem;
	border-radius: 1px;
	background: linear-gradient(90deg, var(--wp--custom--maps--water) 0 20%, var(--wp--custom--maps--depth-a) 20% 40%, var(--wp--custom--maps--depth-b) 40% 60%, var(--wp--custom--maps--depth-c) 60% 80%, var(--wp--custom--maps--depth-d) 80%);
}

.sws-smap__credit { margin-left: auto; }

/* ============================================================
   Lake drawings
   ============================================================ */
.sws-lake {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.sws-lake path {
	vector-effect: non-scaling-stroke;
	stroke-linejoin: round;
}

.sws-lake__water { fill: var(--wp--custom--maps--water); }

.sws-lake__c {
	fill: var(--wp--preset--color--navy);
	fill-opacity: 0.05;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.3;
	stroke-width: 1;
}

.sws-lake__c--index { stroke-opacity: 0.55; stroke-width: 1.5; }

.sws-lake__shore {
	fill: none;
	stroke: var(--wp--preset--color--navy);
	stroke-opacity: 0.75;
	stroke-width: 1.6;
}

.sws-lake--stylised .sws-lake__c { stroke-dasharray: 1 5; stroke-linecap: round; stroke-width: 1.4; fill-opacity: 0.035; }

.sws-lake--dark .sws-lake__water { fill: var(--wp--preset--color--white); fill-opacity: 0.05; }

.sws-lake--dark .sws-lake__c {
	fill: none;
	stroke: var(--wp--preset--color--white);
	stroke-opacity: 0.2;
}

.sws-lake--dark .sws-lake__c--index { stroke-opacity: 0.38; }
.sws-lake--dark .sws-lake__shore { stroke: var(--wp--preset--color--white); stroke-opacity: 0.55; }

/* Venue mark on a lake */
.sws-lake__venue-ring {
	fill: none;
	stroke: var(--wp--preset--color--red);
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
	animation: sws-smap-ripple 3.2s ease-out infinite;
}

.sws-lake__venue-wake { fill: var(--wp--custom--maps--paper); fill-opacity: 0.9; }
.sws-lake__venue-body { fill: var(--wp--preset--color--red); }
.sws-lake__venue-stripe { fill: var(--wp--preset--color--white); }
.sws-lake--dark .sws-lake__venue-wake { fill-opacity: 0.25; }

@media (prefers-reduced-motion: reduce) {
	.sws-lake__venue-ring { animation: none; opacity: 0.6; }
}

/* Backdrop layer for heroes and sections: first child of a position: relative box. */
.sws-lake-bg {
	position: absolute;
	inset: -6% 2% -6% 28%;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--ink) 55%);
	mask-image: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--ink) 55%);
}

.sws-lake-bg .sws-lake { width: 100%; height: 100%; }

@media (max-width: 781px) {
	.sws-lake-bg {
		inset: -4% -6% 30% 18%;
		-webkit-mask-image: linear-gradient(180deg, var(--wp--preset--color--ink) 20%, transparent 85%);
		mask-image: linear-gradient(180deg, var(--wp--preset--color--ink) 20%, transparent 85%);
	}
}

/* Hero demo ([sws_lake_chart variant="hero"]) — the regatta hero gets the same layer. */
.sws-lake-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: var(--wp--custom--hero--min-height);
	overflow: hidden;
	isolation: isolate;
	color: var(--wp--preset--color--white);
	background:
		radial-gradient(120% 90% at 85% 40%, color-mix(in srgb, var(--wp--preset--color--navy) 70%, transparent), transparent 70%),
		var(--wp--preset--color--navy-deep);
}

.sws-lake-hero__inner {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--70) var(--wp--custom--gutter) var(--wp--preset--spacing--60);
}

.sws-lake-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 var(--wp--preset--spacing--30);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--eyebrow);
	text-transform: uppercase;
}

.sws-lake-hero__eyebrow::before {
	content: "";
	width: var(--wp--custom--eyebrow-bar);
	height: 3px;
	background: var(--wp--preset--color--red);
}

.sws-lake-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.5rem, 6vw, var(--wp--preset--font-size--hero));
	font-weight: 800;
	line-height: var(--wp--custom--line-height--tight);
	text-transform: uppercase;
}

.sws-lake-hero__facts {
	margin: var(--wp--preset--spacing--30) 0 0;
	color: var(--wp--preset--color--navy-tint);
	font-size: var(--wp--preset--font-size--small);
	font-variant-numeric: tabular-nums;
}

.sws-lake-hero__coord {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: 0.08em;
}

.sws-lake-hero__credit {
	position: absolute;
	right: var(--wp--custom--gutter);
	bottom: var(--wp--preset--spacing--20);
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--white) 60%, transparent);
	font-size: var(--wp--preset--font-size--label);
}

/* Lake card ([sws_lake_chart]) */
.sws-lake-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	overflow: hidden;
	background: var(--wp--custom--maps--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
}

.sws-lake-card__chart {
	aspect-ratio: 4 / 3;
	padding: var(--wp--preset--spacing--40);
	background:
		repeating-linear-gradient(0deg, transparent 0 47px, color-mix(in srgb, var(--wp--preset--color--navy) 7%, transparent) 47px 48px),
		repeating-linear-gradient(90deg, transparent 0 47px, color-mix(in srgb, var(--wp--preset--color--navy) 7%, transparent) 47px 48px),
		var(--wp--custom--maps--land);
}

.sws-lake-card__cap {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--50);
	border-top: 1px solid var(--wp--preset--color--line);
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}

.sws-lake-card__name {
	color: var(--wp--preset--color--navy-deep);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--h-3);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.sws-lake-card__venue {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--ink);
	font-weight: 600;
}

.sws-lake-card__buoy {
	width: 0.7rem;
	height: 0.95rem;
	border-radius: 0.3rem 0.3rem 0.15rem 0.15rem;
	background: linear-gradient(var(--wp--preset--color--red) 0 25%, var(--wp--preset--color--white) 25% 65%, var(--wp--preset--color--red) 65%);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--navy-deep) 30%, transparent);
}

.sws-lake-card__fact { font-variant-numeric: tabular-nums; }

.sws-lake-card__coord {
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
}
.sws-lake-card__credit { font-size: var(--wp--preset--font-size--label); }

@media (min-width: 782px) {
	.sws-lake-card { grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 1fr); }
	.sws-lake-card__cap { border-top: 0; border-left: 1px solid var(--wp--preset--color--line); justify-content: center; }
}
