/* ==========================================================================
   Livilands Tennis Club – main stylesheet
   Values are lifted from design/home.dc.html and design/news-events.dc.html.
   ========================================================================== */

/* Tokens ------------------------------------------------------------------ */

:root {
	--court: #123F31;
	--court-deep: #0B2C22;
	--accent: #D7F35A;
	--accent-hover: #C6E544;
	--ground: #F5F4EE;
	--surface: #FFFFFF;
	--surface-alt: #E8EADF;
	--tint: #E3EBE6;
	--ink: #14201B;
	--muted: #4A5751;
	--muted-strong: #3F4C46;
	--eyebrow: #4A6B5E;
	--border: #DDE0D5;
	--border-strong: #D6DACE;
	--input-border: #B9C1B9;
	--field: #FAFAF6;
	--divider: #E5E7DF;
	--on-dark: #DCE5DF;
	--on-dark-muted: #B9C8C0;
	--error: #A3261B;

	--font-display: "Archivo", "Arial Narrow", sans-serif;
	--font-body: "Instrument Sans", system-ui, sans-serif;

	--container: 1240px;
	--gutter: 24px;
	--section-y: 88px;
	--radius-card: 20px;
	--radius-feature: 24px;
	--radius-tile: 12px;
	--pill: 999px;
	--ease: 150ms ease;
}

/* Base -------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ground);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

/* Links never underline (club preference); colour and weight carry them. */
a {
	color: var(--court);
	text-decoration: none;
	transition: color var(--ease), background-color var(--ease), border-color var(--ease);
}

a:hover {
	color: var(--court-deep);
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.2;
}

p {
	margin: 0;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--court);
	outline-offset: 3px;
}

.is-dark :focus-visible {
	outline-color: var(--accent);
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 12px 20px;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--court-deep);
	font-weight: 700;
}

.skip-link:focus {
	top: 12px;
	color: var(--court-deep);
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* Layout ------------------------------------------------------------------ */

.container {
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section-y);
}

.split {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.split > * {
	min-width: 0;
}

/* Type -------------------------------------------------------------------- */

.display,
.display-1,
.display-2,
.display-3 {
	font-family: var(--font-display);
	font-weight: 800;
	font-stretch: 75%;
	line-height: 0.95;
	text-transform: uppercase;
}

.display-1 {
	font-stretch: 72%;
	font-size: clamp(52px, 8vw, 104px);
	line-height: 0.92;
	letter-spacing: -0.01em;
}

.display-2 {
	font-size: clamp(40px, 5vw, 60px);
}

.display-3 {
	font-size: 44px;
}

.eyebrow {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--eyebrow);
}

.is-dark .eyebrow,
.eyebrow--accent {
	color: var(--accent);
}

.meta {
	font-size: 14px;
	color: var(--muted);
}

.muted {
	color: var(--muted);
}

.link-strong {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 700;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 36px;
}

/* Buttons, tags, chips ---------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	padding: 14px 26px;
	border: 0;
	border-radius: var(--pill);
	font-weight: 700;
	font-size: inherit;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.btn--lg {
	padding: 16px 28px;
	font-size: 17px;
}

.btn--accent {
	background: var(--accent);
	color: var(--court-deep);
}

.btn--accent:hover {
	background: var(--accent-hover);
	color: var(--court-deep);
}

.btn--court {
	background: var(--court);
	color: #FFFFFF;
}

.btn--court:hover {
	background: var(--court-deep);
	color: #FFFFFF;
}

.btn--white {
	background: #FFFFFF;
	color: var(--court-deep);
}

.btn--white:hover {
	background: var(--accent);
	color: var(--court-deep);
}

.btn--outline {
	padding: 12.5px 24.5px;
	border: 1.5px solid var(--court);
	background: transparent;
	color: var(--court);
}

.btn--outline:hover {
	background: var(--tint);
	color: var(--court);
}

.btn--lg.btn--outline-light {
	padding: 14.5px 26.5px;
}

.btn--outline-light {
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	color: #FFFFFF;
	font-weight: 600;
}

.btn--outline-light:hover {
	border-color: #FFFFFF;
	background: rgba(255, 255, 255, 0.08);
	color: #FFFFFF;
}

.btn--quiet {
	padding: 11px 18px;
	border: 1.5px solid var(--input-border);
	background: transparent;
	color: var(--court);
	font-size: 15px;
}

.btn--quiet:hover {
	border-color: var(--court);
	color: var(--court);
}

.badge {
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: var(--pill);
	background: var(--accent);
	color: var(--court-deep);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.tag {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: var(--pill);
	background: var(--tint);
	color: var(--court);
	font-size: 13px;
	font-weight: 700;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chip {
	padding: 7px 14px;
	border-radius: var(--pill);
	background: var(--tint);
	color: var(--court);
	font-size: 14px;
	font-weight: 600;
}

.icon {
	flex: none;
}

/* Cards ------------------------------------------------------------------- */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

/* The title link covers the whole card, so the card is one tab stop. */
.has-card-link {
	position: relative;
}

.card-link {
	color: inherit;
}

.card-link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.card-link:focus-visible {
	outline: none;
}

.has-card-link:focus-within {
	outline: 3px solid var(--court);
	outline-offset: 3px;
}

.has-card-link:hover .card-link {
	color: var(--court);
}

.has-card-link .link-strong {
	color: var(--court);
}

.has-card-link:hover .link-strong {
	color: var(--court-deep);
}

.icon-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-tile);
	background: var(--tint);
	color: var(--court);
}

/* Header and navigation ---------------------------------------------------- */

/* The header stays at the top while scrolling; anchors stop clear of it. */
html {
	scroll-padding-top: 100px;
}

html:has(body.admin-bar) {
	scroll-padding-top: 132px;
}

/* Anchor links (#about, #membership…) glide rather than jump. */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--court);
	color: #FFFFFF;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	transition: box-shadow 250ms ease;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px rgba(11, 44, 34, 0.22);
}

/* Logged-in editors: sit below the WordPress toolbar. */
.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* The toolbar scrolls away at this width. */
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	padding-block: 18px;
}

.brand {
	display: flex;
	gap: 14px;
	align-items: center;
	color: #FFFFFF;
}

.brand:hover {
	color: #FFFFFF;
}

.brand__mark {
	display: block;
	flex: none;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.brand__name {
	font-family: var(--font-display);
	font-stretch: 80%;
	font-weight: 800;
	font-size: 26px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.brand__sub {
	margin-top: 5px;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.78);
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 12px;
	color: #FFFFFF;
	font-size: 16px;
	font-weight: 500;
}

.site-nav__list a:hover {
	color: var(--accent);
}

.site-nav__list .current-menu-item > a,
.site-nav__list .is-current-section > a,
.site-nav__list a[aria-current="page"] {
	color: var(--accent);
	font-weight: 600;
}

.site-nav__cta {
	margin-left: 8px;
	padding: 12px 22px;
	font-size: 16px;
}

.menu-toggle {
	display: none;
	gap: 8px;
	align-items: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1.5px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--pill);
	background: transparent;
	color: #FFFFFF;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
}

.menu-toggle:hover {
	border-color: #FFFFFF;
}

.menu-toggle .icon--close,
.menu-toggle[aria-expanded="true"] .icon--menu {
	display: none;
}

.menu-toggle[aria-expanded="true"] .icon--close {
	display: block;
}

/* Below this width the menu folds behind a button (only when JS can open it). */
@media (max-width: 1079px) {
	.js .site-header__inner {
		column-gap: 16px;
	}

	.js .menu-toggle {
		display: inline-flex;
	}

	/* A panel that drops down over the page from under the bar. It never
	   changes the header's height, so it behaves the same at the top of the
	   page and once the sticky header is pinned. */
	.js .site-nav {
		display: none;
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100dvh - 100px);
		overflow-y: auto;
		padding: 0 var(--gutter) 24px;
		background: var(--court);
		border-bottom: 1px solid rgba(255, 255, 255, 0.14);
		box-shadow: 0 24px 40px rgba(11, 44, 34, 0.3);
	}

	.js .site-nav.is-open {
		display: flex;
	}

	.js .site-nav__list li:first-child a {
		border-top: 0;
	}

	.js .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.js .site-nav__list a {
		padding: 14px 4px;
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		font-size: 18px;
	}

	.js .site-nav__cta {
		margin: 16px 0 0;
		padding: 14px 22px;
		font-size: 17px;
	}
}

/* Home: hero -------------------------------------------------------------- */

.hero {
	position: relative;
	overflow: hidden;
	background: var(--court);
	color: #FFFFFF;
}

.hero__lines {
	position: absolute;
	top: 0;
	right: -60px;
	width: 640px;
	height: 100%;
	opacity: 0.16;
}

.hero__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
	padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
}

.hero__copy {
	flex: 1 1 520px;
	min-width: 0;
}

.hero__intro {
	max-width: 540px;
	margin-top: 28px;
	font-size: 20px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 36px;
}

.hero__media {
	position: relative;
	flex: 1 1 400px;
	min-width: 0;
}

.hero__img {
	display: block;
	width: 100%;
	max-height: 560px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 97.832% 50%;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: var(--radius-card);
}

.hours-card {
	position: absolute;
	left: -20px;
	bottom: 28px;
	display: flex;
	gap: 16px;
	align-items: center;
	max-width: 300px;
	padding: 18px 22px;
	border-radius: 16px;
	background: var(--ground);
	color: var(--ink);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.hours-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-tile);
	background: var(--accent);
	color: var(--court-deep);
}

.hours-card__text {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.hours-card__text strong {
	font-size: 16px;
}

.hours-card__text span {
	font-size: 14px;
	color: var(--muted);
}

/* Once the hero stacks (copy 520px + photo 400px + gap 48px no longer fit
   side by side), the photo turns landscape instead of a tall portrait. */
@media (max-width: 1015px) {
	.hero__img {
		aspect-ratio: 3 / 2;
		max-height: 480px;
	}
}

/* On phones the hours card hangs off the photo's bottom edge rather than covering it. */
@media (max-width: 600px) {
	.hero__media {
		margin-bottom: 28px;
	}

	.hours-card {
		left: 12px;
		bottom: -28px;
		padding: 14px 18px;
	}
}

/* Home: offer strip ------------------------------------------------------- */

.offer {
	background: var(--accent);
	color: var(--court-deep);
}

.offer :focus-visible {
	outline-color: var(--court-deep);
}

.offer__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	padding-block: 18px;
}

.offer__text {
	font-size: 18px;
}

.offer__label {
	margin-right: 10px;
	font-family: var(--font-display);
	font-stretch: 80%;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.offer a,
.offer a:hover {
	color: var(--court-deep);
}

/* Home: quick links ------------------------------------------------------- */

.quick-links {
	padding-block: 72px 24px;
}

.quick-links__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.quick-link {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	border-radius: 18px;
	color: var(--ink);
}

.quick-link:hover {
	border-color: var(--court);
	color: var(--ink);
}

.quick-link strong {
	font-size: 19px;
}

.quick-link span:last-child {
	color: var(--muted);
	font-size: 16px;
}

/* News cards (home preview and News & Events) ----------------------------- */

.news-preview__news {
	display: flex;
	flex: 999 1 560px;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.story-feature {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
}

.story-feature__panel {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 240px;
	padding: 28px;
	background: var(--court);
	color: var(--accent);
}

.story-feature__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.story-feature__big {
	font-family: var(--font-display);
	font-stretch: 70%;
	font-weight: 900;
	font-size: 84px;
	line-height: 0.85;
	text-transform: uppercase;
}

.story-feature__body {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 12px;
	padding: 28px;
}

.story-feature__title {
	font-size: 26px;
	line-height: 1.2;
}

.story-feature__body > p:not(.meta) {
	color: var(--muted);
}

.story-feature__body .link-strong {
	margin-top: auto;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.news-grid--wide {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}

.news-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.news-card__image,
.news-card__placeholder {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}

.news-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: repeating-linear-gradient(135deg, var(--tint) 0 14px, #DAE4DE 14px 28px);
	color: var(--muted);
}

.news-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
}

.news-card--compact .news-card__body {
	padding: 26px;
}

.news-card__title {
	font-size: 21px;
	line-height: 1.25;
}

.news-card__excerpt {
	color: var(--muted);
	font-size: 16px;
}

.news-card__body .link-strong {
	margin-top: auto;
}

.score {
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 32px;
	line-height: 1;
	color: var(--court);
}

/* Events panel (dark, compact) ------------------------------------------- */

.events-panel {
	display: flex;
	flex: 1 1 340px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 30px;
	border-radius: var(--radius-card);
	background: var(--court-deep);
	color: #FFFFFF;
}

.events-panel__title {
	margin-bottom: 14px;
	font-family: var(--font-display);
	font-stretch: 80%;
	font-weight: 800;
	font-size: 28px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.events-panel__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.event-mini {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: #FFFFFF;
}

.event-mini:hover {
	color: var(--accent);
}

.date-tile {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 64px;
	border-radius: var(--radius-tile);
	background: var(--accent);
	color: var(--court-deep);
	line-height: 1;
}

.date-tile__day {
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 22px;
}

.date-tile__month {
	margin-top: 4px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.event-mini__text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.event-mini__text strong {
	font-size: 17px;
}

.event-mini__text span {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

.events-panel__empty {
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.82);
}

.events-panel .btn {
	margin-top: 14px;
}

/* Home: membership -------------------------------------------------------- */

.membership {
	background: var(--surface-alt);
}

.membership__head {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 64px;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 40px;
}

.membership__head > div {
	flex: 1 1 420px;
}

.membership__intro {
	flex: 1 1 380px;
	color: var(--muted-strong);
	font-size: 18px;
}

/* Any number of memberships: cards share each row (at least 250px each, as
   in the design), and the last row's cards stretch to fill it. A card that
   ends up wide lays out side by side, like County and Winter in the design:
   six memberships give 4 + 2 wide at four per row, and two full rows of
   ordinary cards at three per row. */
.tiers {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.tier {
	display: flex;
	flex: 1 1 250px;
	min-width: 0;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-card);
	background: var(--surface);
	container-type: inline-size;
}

.tier__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 30px;
}

.tier__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tier .badge + .tier__head {
	margin-top: 8px;
}

.tier h3 {
	font-size: 22px;
}

.tier__price {
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 56px;
	line-height: 1;
	color: var(--court);
}

.tier__note {
	color: var(--muted);
	font-size: 16px;
}

.tier--featured {
	border-color: var(--court);
	background: var(--court);
	color: #FFFFFF;
}

.tier--featured .tier__price {
	color: #FFFFFF;
}

.tier--featured .tier__note {
	color: rgba(255, 255, 255, 0.82);
}

/* Wide card: name and price on the left, description beside them. Ordinary
   cards are at most ~384px wide, so only stretched ones reach this. */
@container (min-width: 420px) {
	.tier__body {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 12px 32px;
		align-items: center;
		padding: 24px 30px;
	}

	.tier__body > .badge {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.tier .badge + .tier__head {
		margin-top: 0;
	}

	.tier__head {
		gap: 4px;
	}

	.tier__price {
		font-size: 44px;
	}
}

.visitors {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	margin-top: 24px;
	padding: 24px 30px;
	border: 1px solid var(--border-strong);
	border-radius: var(--radius-card);
	background: var(--surface);
}

.visitors p {
	font-size: 18px;
}

.visitors__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* Home: coaching and teams ------------------------------------------------ */

.coaching-card {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--radius-feature);
}

.coaching-card__img {
	display: block;
	width: 100%;
	height: 300px;
	object-fit: cover;
	object-position: 50% 36.6864%;
}

.feature-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	padding: 34px;
}

.feature-card__body .eyebrow {
	margin: 0;
}

.feature-card__body > p:not(.eyebrow) {
	color: var(--muted-strong);
}

.feature-card__body .btn {
	align-self: flex-start;
	margin-top: auto;
}

.teams-card {
	display: flex;
	flex: 1 1 420px;
	flex-direction: column;
	gap: 18px;
	padding: 34px;
	border-radius: var(--radius-feature);
	background: var(--court);
	color: #FFFFFF;
}

.teams-card .eyebrow {
	margin: 0;
}

.teams-card > p:not(.eyebrow) {
	color: rgba(255, 255, 255, 0.86);
}

.teams-card .btn {
	align-self: flex-start;
	margin-top: auto;
}

.team-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 6px 0 0;
	padding: 0;
	list-style: none;
}

.team {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 16px;
}

.team__name {
	display: flex;
	flex-direction: column;
}

.team__name strong {
	font-size: 18px;
}

.team__name span,
.team__next {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
}

/* Home: about ------------------------------------------------------------- */

.about {
	background: var(--court-deep);
	color: #FFFFFF;
}

.about__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: flex-start;
}

.about__copy {
	flex: 1 1 420px;
	min-width: 0;
}

.about__copy p:not(.eyebrow) {
	max-width: 520px;
	margin-top: 24px;
	color: rgba(255, 255, 255, 0.84);
	font-size: 18px;
}

.timeline {
	display: flex;
	flex: 1 1 460px;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline li {
	display: flex;
	gap: 24px;
	padding: 22px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.86);
}

.timeline li:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline__year {
	flex: none;
	width: 110px;
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	color: var(--accent);
}

@media (max-width: 480px) {
	.timeline li {
		flex-direction: column;
		gap: 8px;
	}
}

/* Home: find us and contact form ------------------------------------------ */

.find-us {
	display: flex;
	flex: 1 1 440px;
	flex-direction: column;
	gap: 20px;
}

.find-us .eyebrow {
	margin: 0;
}

.map {
	position: relative;
	height: 300px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

.map img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 45%;
}

.map .btn {
	position: absolute;
	right: 16px;
	bottom: 16px;
	gap: 8px;
	padding: 12px 20px;
	font-size: 15px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.info-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.info-card {
	padding: 20px;
	border-radius: 16px;
}

.info-card strong {
	display: block;
	margin-bottom: 4px;
	font-size: 15px;
}

.info-card span {
	color: var(--muted);
	font-size: 16px;
}

.contact-card {
	display: flex;
	flex: 1 1 460px;
	flex-direction: column;
	gap: 18px;
	padding: 34px;
	border-radius: var(--radius-feature);
}

.contact-card h3 {
	font-size: 24px;
}

.form-notice {
	padding: 12px 16px;
	border-radius: var(--radius-tile);
	background: var(--surface-alt);
	color: var(--muted-strong);
	font-size: 15px;
}

/* Contact Form 7 output, laid out by the form template in the README. */
.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wpcf7-form .form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}

.wpcf7-form .form-row > label {
	flex: 1 1 200px;
}

.wpcf7-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea,
.field {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--input-border);
	border-radius: var(--radius-tile);
	background: var(--field);
	color: var(--ink);
	font: inherit;
	font-size: 17px;
	font-weight: 400;
}

.wpcf7-form textarea {
	min-height: 150px;
	resize: vertical;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus,
.field:focus {
	border-color: var(--court);
}

.wpcf7-form input[type="submit"] {
	align-self: flex-start;
	min-height: 44px;
	padding: 15px 30px;
	border: 0;
	border-radius: var(--pill);
	background: var(--court);
	color: #FFFFFF;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--ease);
}

.wpcf7-form input[type="submit"]:hover {
	background: var(--court-deep);
}

.wpcf7-form .wpcf7-spinner {
	margin: 0;
}

.wpcf7-form .wpcf7-not-valid {
	border-color: var(--error);
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 6px;
	color: var(--error);
	font-size: 14px;
	font-weight: 500;
}

.wpcf7 form .wpcf7-response-output {
	margin: 0;
	padding: 12px 16px;
	border: 1.5px solid var(--input-border);
	border-radius: var(--radius-tile);
	font-size: 15px;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--court);
	background: var(--tint);
	color: var(--court);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--error);
	color: var(--error);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	background: var(--court-deep);
	color: var(--on-dark);
	font-size: 15px;
}

.site-footer a {
	color: #FFFFFF;
}

.site-footer a:hover {
	color: var(--accent);
}

.site-footer__main {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
	padding-block: 64px 32px;
}

.site-footer__club {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 16px;
}

.site-footer__brand {
	display: flex;
	gap: 12px;
	align-items: center;
	font-family: var(--font-display);
	font-stretch: 80%;
	font-weight: 800;
	font-size: 22px;
	line-height: 1.1;
	text-transform: uppercase;
	color: #FFFFFF;
}

.site-footer__club p {
	max-width: 300px;
}

.site-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0 18px;
}

.site-footer__links a,
.policies a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.site-footer__policies {
	flex: 2 1 520px;
	min-width: 0;
}

.site-footer__policies h2 {
	margin-bottom: 8px;
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.policies {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.policies a {
	color: var(--on-dark);
}

.policies .is-key a {
	color: #FFFFFF;
	font-weight: 600;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: space-between;
	align-items: center;
	padding-block: 8px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: 14px;
	color: var(--on-dark-muted);
}

.site-footer__bottom a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--on-dark);
}

/* Inner page hero --------------------------------------------------------- */

.page-hero {
	background: var(--court);
	color: #FFFFFF;
}

.page-hero__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 64px;
	align-items: flex-end;
	justify-content: space-between;
	padding-block: 56px 64px;
}

.page-hero__main {
	flex: 1 1 520px;
	min-width: 0;
}

.page-hero__title {
	font-size: clamp(56px, 8vw, 96px);
	font-stretch: 72%;
	line-height: 0.92;
}

.page-hero__title--long {
	font-size: clamp(40px, 5.5vw, 72px);
	font-stretch: 75%;
	line-height: 0.95;
}

.page-hero__intro {
	flex: 1 1 360px;
	color: rgba(255, 255, 255, 0.86);
	font-size: 19px;
}

.page-hero__meta {
	margin-top: 20px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

.page-hero .tag {
	margin-bottom: 18px;
	background: var(--accent);
	color: var(--court-deep);
}

.page-hero--attached .page-hero__inner {
	padding-bottom: 64px;
}

.breadcrumb {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.78);
}

.breadcrumb li + li::before {
	content: "/";
	margin-right: 8px;
	color: rgba(255, 255, 255, 0.6);
}

.breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
	color: var(--accent);
}

/* News & Events ----------------------------------------------------------- */

.lead-story {
	display: flex;
	flex-wrap: wrap;
	overflow: hidden;
	margin-top: -1px;
	border-radius: 0 0 var(--radius-feature) var(--radius-feature);
}

.lead-story__panel {
	display: flex;
	flex: 1 1 380px;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 300px;
	padding: 36px;
	background: var(--court-deep);
	color: var(--accent);
}

.lead-story__big {
	font-family: var(--font-display);
	font-stretch: 68%;
	font-weight: 900;
	font-size: clamp(56px, 10vw, 128px);
	line-height: 0.82;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.lead-story__body {
	display: flex;
	flex: 1.3 1 420px;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 40px;
}

.lead-story__body .meta {
	font-size: 15px;
}

.lead-story__title {
	font-size: clamp(28px, 3vw, 36px);
	line-height: 1.15;
}

.lead-story__title a {
	color: inherit;
}

.lead-story__title a:hover {
	color: var(--court);
}

.lead-story__excerpt {
	color: var(--muted-strong);
	font-size: 18px;
}

.lead-story__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: auto;
}

.news-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 56px;
	scroll-margin-top: 24px;
}

.filter-btn {
	min-height: 44px;
	padding: 10px 20px;
	border: 1.5px solid var(--input-border);
	border-radius: var(--pill);
	background: var(--surface);
	color: var(--ink);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}

.filter-btn:hover {
	border-color: var(--court);
}

.filter-btn[aria-pressed="true"] {
	border-color: var(--court);
	background: var(--court);
	color: #FFFFFF;
}

.news-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: flex-start;
	margin-top: 32px;
	padding-bottom: 96px;
}

.news-layout--article {
	margin-top: 0;
	padding-top: 56px;
}

.news-feed {
	display: flex;
	flex: 999 1 600px;
	flex-direction: column;
	gap: 56px;
	min-width: 0;
	transition: opacity var(--ease);
}

.news-feed[aria-busy="true"] {
	opacity: 0.5;
}

.feed-head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 18px;
}

.feed-title {
	font-size: 40px;
	line-height: 1;
}

.feed-head .meta {
	font-size: 15px;
}

.feed-empty {
	padding: 26px;
	color: var(--muted);
}

.event-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.event-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	padding: 20px;
}

.event-tile {
	display: flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 84px;
	border-radius: 14px;
	background: var(--court);
	color: #FFFFFF;
	line-height: 1;
}

.event-tile__weekday {
	color: var(--accent);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.event-tile__day {
	margin: 4px 0;
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 30px;
}

.event-tile__month {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.event-row__body {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.event-row__title {
	font-size: 21px;
	line-height: 1.25;
}

.event-row__title a {
	color: var(--ink);
}

.event-row__title a:hover {
	color: var(--court);
}

.event-row__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	color: var(--muted);
	font-size: 15px;
}

.event-row .btn--quiet {
	flex: none;
	gap: 8px;
}

.feed-more {
	margin-top: 14px;
}

.pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--input-border);
	border-radius: var(--radius-tile);
	color: var(--ink);
	font-weight: 600;
}

.pagination a.page-numbers:hover {
	border-color: var(--court);
	color: var(--court);
}

.pagination .page-numbers.current {
	border-color: var(--court);
	background: var(--court);
	color: #FFFFFF;
	font-weight: 700;
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
	padding: 0 18px;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

/* Sidebar ----------------------------------------------------------------- */

.sidebar {
	display: flex;
	flex: 1 1 300px;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.side-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
}

.side-box h2 {
	font-size: 19px;
}

.side-box > p {
	color: var(--muted);
	font-size: 16px;
}

.side-box--links {
	gap: 14px;
}

.side-box--links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 44px;
	padding-top: 10px;
	border-top: 1px solid var(--divider);
	font-weight: 600;
}

.side-box--share {
	gap: 8px;
	border-radius: var(--radius-card);
	background: var(--surface-alt);
}

.side-box--share > p {
	color: var(--muted-strong);
}

/* Articles and pages ------------------------------------------------------ */

.article {
	flex: 999 1 600px;
	min-width: 0;
}

.article__inner {
	max-width: 760px;
}

.article__image {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 36px;
	border-radius: var(--radius-card);
}

.article-score {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	align-items: center;
	margin-bottom: 36px;
	padding: 24px 28px;
}

.article-score .eyebrow {
	margin: 0;
}

.article-score .score {
	font-size: 56px;
}

.prose {
	font-size: 18px;
	line-height: 1.65;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	margin-top: 1.6em;
	font-family: var(--font-display);
	font-stretch: 75%;
	font-weight: 800;
	font-size: 36px;
	line-height: 1;
	text-transform: uppercase;
}

.prose h3 {
	margin-top: 1.4em;
	font-size: 22px;
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose a {
	font-weight: 700;
	border-radius: 4px;
}

.prose a:hover {
	background: var(--tint);
}

.prose blockquote {
	margin-inline: 0;
	padding: 0;
	font-size: 22px;
	line-height: 1.45;
	color: var(--court);
}

.prose blockquote p::before {
	content: "“";
}

.prose blockquote p::after {
	content: "”";
}

.prose img {
	border-radius: 16px;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 15px;
}

.prose hr {
	border: 0;
	border-top: 1px solid var(--border);
}

.article__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-top: 32px;
}

.post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 22px 24px;
	color: var(--ink);
}

.post-nav__item:hover {
	border-color: var(--court);
	color: var(--ink);
}

.post-nav__item span {
	color: var(--muted);
	font-size: 14px;
}

.post-nav__item strong {
	font-size: 18px;
	line-height: 1.3;
}

.post-nav__item--next {
	text-align: right;
}

.page-body {
	padding-block: 56px 96px;
}

/* Single event ------------------------------------------------------------ */

.event-details {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 28px;
	align-items: flex-start;
	margin-bottom: 40px;
	padding: 30px;
	border-radius: var(--radius-feature);
}

.event-details .event-tile {
	width: 92px;
	height: 100px;
}

.event-details .event-tile__day {
	font-size: 38px;
}

.event-details__list {
	display: grid;
	flex: 1 1 320px;
	grid-template-columns: auto 1fr;
	gap: 10px 20px;
	margin: 0;
}

.event-details__list dt {
	color: var(--muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.75;
}

.event-details__list dd {
	margin: 0;
}

.event-details__actions {
	display: flex;
	flex-basis: 100%;
	flex-wrap: wrap;
	gap: 12px;
}

.notice-past {
	margin-bottom: 24px;
	padding: 14px 18px;
	border-radius: var(--radius-tile);
	background: var(--surface-alt);
	color: var(--muted-strong);
	font-weight: 600;
}

.events-panel--aside {
	flex: 1 1 300px;
}

/* Small screens ----------------------------------------------------------- */

@media (max-width: 720px) {
	:root {
		--section-y: 64px;
	}

	.quick-links {
		padding-top: 56px;
	}

	.display-3 {
		font-size: 38px;
	}

	.feature-card__body,
	.teams-card,
	.contact-card {
		padding: 26px;
	}

	.lead-story__panel,
	.lead-story__body {
		padding: 28px;
	}

	.lead-story__panel {
		min-height: 220px;
	}

	.story-feature__big {
		font-size: 72px;
	}

	.event-details {
		padding: 24px;
	}

	.news-layout {
		padding-bottom: 72px;
	}
}

/* Motion ------------------------------------------------------------------
   Load-in is pure CSS (keyed on the .js class set in <head>); scroll reveals
   are switched on by site.js with .motion-ready. Nothing moves for visitors
   who ask for reduced motion, and nothing stays hidden without JavaScript. */

:root {
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lv-rise {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
}

@keyframes lv-drop {
	from {
		opacity: 0;
		transform: translateY(-14px);
	}
}

@keyframes lv-fade {
	from {
		opacity: 0;
	}
}

@keyframes lv-photo {
	from {
		opacity: 0;
		clip-path: inset(100% 0 0 0 round var(--radius-card));
		transform: scale(1.04);
	}
	to {
		opacity: 1;
		clip-path: inset(0 0 0 0 round var(--radius-card));
		transform: none;
	}
}

@keyframes lv-pop {
	from {
		opacity: 0;
		transform: translate(-18px, 14px) scale(0.9);
	}
}

@keyframes lv-menu {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
}

@keyframes lv-draw {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	/* Load-in: header, then the hero or page hero in sequence. */
	.js .site-header {
		animation: lv-drop 600ms var(--ease-out) both;
	}

	.js .hero__copy > *,
	.js .page-hero__main > *,
	.js .page-hero__intro {
		animation: lv-rise 900ms var(--ease-out) both;
	}

	.js .hero__copy > :nth-child(1),
	.js .page-hero__main > :nth-child(1) {
		animation-delay: 100ms;
	}

	.js .hero__copy > :nth-child(2),
	.js .page-hero__main > :nth-child(2) {
		animation-delay: 220ms;
	}

	.js .hero__copy > :nth-child(3),
	.js .page-hero__main > :nth-child(3),
	.js .page-hero__intro {
		animation-delay: 340ms;
	}

	.js .page-hero__main > :nth-child(4) {
		animation-delay: 460ms;
	}

	.js .hero__img {
		animation: lv-photo 1100ms var(--ease-out) 200ms both;
	}

	.js .hours-card {
		animation: lv-pop 700ms var(--ease-spring) 850ms both;
	}

	/* The court lines draw themselves: baselines first, service boxes last. */
	.js .hero__line {
		stroke-dasharray: 1;
		animation: lv-draw 1400ms cubic-bezier(0.65, 0, 0.35, 1) calc(150ms + var(--i) * 220ms) both;
	}

	.js .hero__net {
		animation: lv-fade 900ms ease 1100ms both;
	}

	.js .site-nav.is-open {
		animation: lv-menu 260ms var(--ease-out);
	}

	.js .lead-story {
		animation: lv-rise 900ms var(--ease-out) 420ms both;
	}

	/* Scroll reveals: rise in when scrolling down, drop in when scrolling up. */
	.motion-ready .reveal {
		opacity: 0;
		transform: translateY(var(--reveal-y, 36px));
	}

	.motion-ready .reveal[data-from="above"] {
		--reveal-y: -36px;
	}

	.motion-ready .reveal.is-in {
		opacity: 1;
		transform: none;
		transition:
			opacity 700ms ease var(--reveal-delay, 0ms),
			transform 900ms var(--ease-out) var(--reveal-delay, 0ms);
	}
}

/* Custom cursor ------------------------------------------------------------
   Mouse and trackpad only (site.js checks), never with reduced motion. A
   tennis-ball dot marks the exact point; a ring follows it and grows over
   anything clickable. Text fields keep the normal text cursor. */

html.has-cursor,
html.has-cursor * {
	cursor: none !important;
}

html.has-cursor :is(input:not([type="submit"], [type="button"], [type="checkbox"], [type="radio"]), textarea, select, [contenteditable="true"]) {
	cursor: auto !important;
}

.cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	pointer-events: none;
	will-change: transform;
	transition: opacity 200ms ease;
}

.cursor__inner {
	display: block;
	border-radius: 50%;
	transition:
		transform 300ms var(--ease-spring),
		background-color 200ms ease,
		border-color 200ms ease;
}

.cursor--dot .cursor__inner {
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55) 0 18%, transparent 19%),
		var(--accent);
	box-shadow: 0 0 0 1.5px var(--court-deep);
}

.cursor--ring .cursor__inner {
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 1.5px solid var(--court);
}

html.cursor-dark .cursor--ring .cursor__inner {
	border-color: var(--accent);
}

html.cursor-hover .cursor--ring .cursor__inner {
	transform: scale(1.5);
	border-color: var(--court);
	background-color: rgba(215, 243, 90, 0.28);
}

html.cursor-hover.cursor-dark .cursor--ring .cursor__inner {
	border-color: var(--accent);
	background-color: rgba(215, 243, 90, 0.16);
}

html.cursor-on-accent .cursor--ring .cursor__inner,
html.cursor-hover.cursor-on-accent .cursor--ring .cursor__inner {
	border-color: var(--court-deep);
	background-color: rgba(11, 44, 34, 0.1);
}

html.cursor-hover .cursor--dot .cursor__inner {
	transform: scale(0.7);
}

/* A little squash on click, like a ball off the strings. */
html.cursor-down .cursor--ring .cursor__inner {
	transform: scale(0.8);
}

html.cursor-down.cursor-hover .cursor--ring .cursor__inner {
	transform: scale(1.25);
}

html.cursor-hidden .cursor {
	opacity: 0;
}
