/* Season themes: hero motif canvas and the preview switcher. Colours come from the site tokens, so the
   switcher follows the theme it previews. */

.wrn-season-motif {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	/* Particles fade out over the hero's bottom quarter instead of vanishing at the section edge. */
	-webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
	mask-image: linear-gradient(to bottom, #000 72%, transparent);
}

.wrn-season {
	position: fixed;
	right: calc(16px + env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 45; /* under the sticky header (50) and its open mobile menu */
	font-family: var(--wrn-font-body, "Lora", serif);
}

/* Phones: the button fades while the page scrolls (season-themes.js), back after 600 ms idle. The opacity sits on
   the glass button itself: opacity below 1 on an ancestor makes that ancestor the backdrop root, and the button's
   blur would vanish for the whole fade and snap back at the end. */
.wrn-season.is-scrolling .wrn-season-btn {
	opacity: .5;
}

.wrn-season-btn {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: var(--wrn-glass-deep, rgba(3, 24, 47, .72));
	color: var(--wrn-ice, #d7e7f0);
	-webkit-backdrop-filter: blur(12px) saturate(140%);
	backdrop-filter: blur(12px) saturate(140%);
	box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .45);
	cursor: pointer;
	transition: box-shadow .2s var(--wrn-ease, ease), transform .2s var(--wrn-ease, ease), opacity .3s var(--wrn-ease, ease);
	position: relative;
}

/* 44px hit area around the 38px button. */
.wrn-season-btn::before {
	content: "";
	position: absolute;
	inset: -3px;
	border-radius: 50%;
}

.wrn-season-btn:hover,
.wrn-season-btn[aria-expanded="true"] {
	box-shadow: var(--wrn-glow);
}

.wrn-season-btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The button floats over light sections too: a navy ring with an ice halo shows on both. */
.wrn-season-btn:focus-visible {
	outline: 2px solid var(--wrn-navy, #06305c);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--wrn-ice, #d7e7f0);
	/* The ring appears in one step with its outline, instead of morphing out of the drop shadow. */
	transition-property: transform, opacity;
}

.wrn-season-menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 10px);
	width: min(272px, calc(100vw - 32px));
	max-height: calc(100vh - 96px);
	max-height: calc(100dvh - 96px);
	overflow-y: auto;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--wrn-radius-sm, 12px);
	background: var(--wrn-glass-deep, rgba(3, 24, 47, .72));
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	box-shadow: 0 18px 48px -12px rgba(0, 0, 0, .5);
	color: #fff;
	/* Opens and closes like the header's panels: a short fade and rise. The menu stays display:none while
	   [hidden], so it is never focusable or clickable when closed. */
	transform-origin: 100% 100%;
	transition: opacity var(--wrn-dur-s, .18s) var(--wrn-ease, ease), transform var(--wrn-dur-s, .18s) var(--wrn-ease, ease), display var(--wrn-dur-s, .18s) allow-discrete;
}

@starting-style {
	.wrn-season-menu {
		opacity: 0;
		transform: translateY(4px);
	}
}

.wrn-season-menu[hidden] {
	display: none;
	opacity: 0;
	transform: translateY(4px);
}

.wrn-season-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.wrn-season-opt[data-season=""] {
	margin-bottom: 4px;
	box-shadow: 0 5px 0 -4px rgba(255, 255, 255, .14);
}

.wrn-season-opt:hover {
	background: rgba(255, 255, 255, .1);
}

/* Options sit on the dark menu, so the ice ring shows. */
.wrn-season-opt:focus-visible {
	outline: 2px solid var(--wrn-ice, #d7e7f0);
	outline-offset: 2px;
	background: rgba(255, 255, 255, .1);
}

.wrn-season-sw {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--sw-a) 50%, var(--sw-b) 50%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}

.wrn-season-txt {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.wrn-season-name {
	font-family: var(--wrn-font-display, "Sequel Neue", sans-serif);
	font-size: 13px;
	line-height: 1.3;
	letter-spacing: .01em;
}

.wrn-season-when {
	font-size: 12.5px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .85);
}

.wrn-season-check {
	flex: none;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: var(--wrn-ice, #d7e7f0);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	visibility: hidden;
}

.wrn-season-opt[aria-checked="true"] .wrn-season-check {
	visibility: visible;
}

/* A wrapped badge breaks evenly instead of leaving one word on its own line. */
.wrn-hero-badge {
	text-wrap: balance;
}

/* A theme's wordmark in place of the pre-line text: one line of type tall. */
.wrn-hero-wordmark {
	height: 1em;
	width: auto;
	vertical-align: baseline;
}

/* "CityPickle at": the wordmark stands for the words before "at", which stays as text. */
.wrn-hero-pre-tail {
	margin-left: .12em;
}

/* CityPickle Summer (summer-2027): a sunny court photo instead of the mural. The photo keeps only a light tint
   at the top and a fade into the page at the foot. The badge is a small frosted navy chip; the title, sub-line
   and buttons share one soft navy ellipse that fades to nothing well before its edge (no blur, so no edges or
   steps), and the type carries a navy shadow. The rest of the photo stays bright. Sized so every line passes
   WCAG AA on the real photo from 393 to 1920 wide (tools/herocontrast.py). No motif. */
html[data-wrn-season="summer-2027"] .wrn-hero-veil {
	background-image: linear-gradient(180deg, rgba(4, 36, 58, .16) 0%, rgba(4, 36, 58, .03) 18%, rgba(4, 36, 58, .03) 84%, rgba(4, 36, 58, .45) 94%, rgba(4, 36, 58, .9) 100%);
}

html[data-wrn-season="summer-2027"] .wrn-hero-badge {
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background-color: rgba(4, 36, 58, .55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

html[data-wrn-season="summer-2027"] .wrn-hero-copy {
	position: relative;
}

html[data-wrn-season="summer-2027"] .wrn-hero-copy::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -16% -30%;
	background-image: radial-gradient(closest-side, rgba(4, 36, 58, .62) 0%, rgba(4, 36, 58, .58) 55%, rgba(4, 36, 58, .3) 78%, rgba(4, 36, 58, .1) 90%, rgba(4, 36, 58, 0) 100%);
	pointer-events: none;
}

html[data-wrn-season="summer-2027"] .wrn-hero-title {
	text-shadow: 0 1px 2px rgba(4, 36, 58, .45), 0 4px 28px rgba(4, 36, 58, .55);
}

html[data-wrn-season="summer-2027"] .wrn-hero-sub {
	color: #fff;
	text-shadow: 0 1px 2px rgba(4, 36, 58, .45);
}

/* The outline button gets the badge's frosted navy fill, so its label holds AA over the bright courts; the
   label, not the edge, marks it as a button. */
html[data-wrn-season="summer-2027"] .wrn-hero-actions .wrn-btn--ghost {
	border-color: rgba(255, 255, 255, .8);
	background-color: rgba(4, 36, 58, .45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* The top of the photo, so CityPickle's net banner never sits behind WOLLMAN. Below 1280 the photo box is a
   quarter taller than the hero, which crops the dark pergola slats at the foot of the photo; tablets and phones
   show its left side (skyline and courts), keeping the banner out of the text column. */
html[data-wrn-season="summer-2027"] .wrn-hero-media {
	object-position: 50% 0%;
}

@media (max-width: 1279px) {
	html[data-wrn-season="summer-2027"] .wrn-hero-media {
		bottom: auto;
		height: 125%;
	}
}

@media (max-width: 1023px) {
	html[data-wrn-season="summer-2027"] .wrn-hero-media {
		object-position: 0% 0%;
	}
}

@media (max-width: 767px) {
	html[data-wrn-season="summer-2027"] .wrn-hero-media {
		object-position: 8% 0%;
	}

	/* WOLLMAN fills the phone's width, so the ellipse is wider than the screen. */
	html[data-wrn-season="summer-2027"] .wrn-hero-copy::before {
		inset: -14% -50%;
	}
}

/* CityPickle Summer: its navy (#005a9c) is lighter than Night Skate's, so the four places where light text sits
   on navy lifted by an ice glow need a little more contrast (WCAG AA 4.5:1). */
html[data-wrn-season="summer-2027"] .wrn-news-legal {
	color: rgba(255, 255, 255, .86);
}

html[data-wrn-season="summer-2027"] .wrn-nl-input::placeholder {
	color: rgba(255, 255, 255, .86);
}

html[data-wrn-season="summer-2027"] .wrn-plan-lede {
	color: rgba(255, 255, 255, .94);
}

html[data-wrn-season="summer-2027"] .wrn-exp-glow {
	opacity: .5;
}

/* Theme switch: one whole-page cross-fade (season-themes.js choose()). Per-element colour transitions are held
   off for the switch, so buttons and links do not lag the page through muddy in-between colours. */
html.wrn-season-switching *,
html.wrn-season-switching *::before,
html.wrn-season-switching *::after {
	transition: none !important;
}

::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: var(--wrn-dur-m, .3s);
	animation-timing-function: var(--wrn-ease, ease);
}

@media (prefers-reduced-motion: reduce) {
	.wrn-season,
	.wrn-season-btn,
	.wrn-season-menu {
		transition: none;
	}
}

/* December ("Holiday Night"): cranberry eyebrows on light sections, a warm glow rising from the bottom of the
   hero, and for reduced motion a still frame of the lights and snow the motif would draw. */
html[data-wrn-season="december"]{--wrn-berry:#9b1f35}
html[data-wrn-season="december"] .wrn-eyebrow:not(.wrn-eyebrow--light){color:var(--wrn-berry)}
html[data-wrn-season="december"] .wrn-hero-veil::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 60% 38% at 50% 100%,rgba(236,210,143,.2),rgba(236,210,143,0) 70%)}
/* Reduced motion: 8 still lights in the side margins (clear of the WOLLMAN line box down to 768), 26 flakes;
   on phones the copy fills the margins, so 5 lights sit in the band under the buttons. */
@media (prefers-reduced-motion: reduce){html[data-wrn-season="december"] .wrn-hero-veil::before{content:"";position:absolute;inset:0;pointer-events:none;--wrn-dec-flakes:radial-gradient(circle at 62% 38%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 87% 48%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 3% 51%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 84% 62%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 78% 33%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 86% 83%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 58% 51%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 28% 11%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 27% 13%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 45% 91%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 13% 6%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 86% 69%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 56% 60%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 56% 21%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 81% 75%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 91% 10%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 66% 14%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 55% 89%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 63% 81%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 5% 86%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 26% 88%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 48% 92%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 41% 18%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 44% 50%,rgba(255,255,255,0.5) 0 1.2px,transparent 1.7px),radial-gradient(circle at 75% 68%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px),radial-gradient(circle at 50% 59%,rgba(255,255,255,0.8) 0 2px,transparent 2.6px);background:radial-gradient(circle at 6% 58%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 13% 74%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 4% 41%,#fff 0 1.5px,rgba(228,86,108,.6) 3px,rgba(228,86,108,.16) 9px,transparent 22px),radial-gradient(circle at 24% 83%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 77% 80%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 92% 60%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 90% 71%,#fff 0 1.5px,rgba(228,86,108,.6) 3px,rgba(228,86,108,.16) 9px,transparent 22px),radial-gradient(circle at 95% 47%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),var(--wrn-dec-flakes)}}
@media (prefers-reduced-motion: reduce) and (max-width:767px){html[data-wrn-season="december"] .wrn-hero-veil::before{background:radial-gradient(circle at 8% 89%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 27% 95%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 48% 91%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),radial-gradient(circle at 70% 96%,#fff 0 1.5px,rgba(228,86,108,.6) 3px,rgba(228,86,108,.16) 9px,transparent 22px),radial-gradient(circle at 90% 88%,#fff 0 1.5px,rgba(236,210,143,.6) 3px,rgba(236,210,143,.16) 9px,transparent 22px),var(--wrn-dec-flakes)}}
