/*
Theme Name: Ludi Inc. 2026
Author: Ludi Inc.
Author URI: https://ludiinc.com/
Description: Custom theme for Ludi Inc.
Update URI: false
Version: 2.0.0
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.4
Text Domain: ludi
*/

/* Table of contents
----------------------------------------
	 Tokens
	 Base / elements
	 Color context
	 Layout / site parts
	 Core blocks            -- alphabetical
	 Custom blocks          -- alphabetical; one block/component's own selector namespace
	 Feature modules        -- Events, Testimonials, Ticker only -- each owns an inc/*.php feature file
	 Third-Party Embeds     -- embedded third-party forms/widgets, not theme/plugin blocks
	 Page-specific
	 Utilities
	 Responsive             -- viewport breakpoints only; prefers-reduced-motion stays inline with its component
	 Keyframes
---------------------------------------- */

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

:root {
	--ludi-content-width-a: 1050px;
	--ludi-content-width-b: 1270px;
	--ludi-content-width-c: 1340px;
	--ludi-motion-distance: 30px;
	--ludi-motion-ease: ease-in-out;
	--ludi-motion-fast: 0.25s;
	--ludi-motion-scale: 1.05;
	--ludi-motion-slow: 0.5s;
	--ludi-color-error: #f4374a;

	--ludi-input-background-color: var(--wp--preset--color--white);
	--ludi-input-border-color: var(--wp--preset--color--gray-medium-light);
	--ludi-input-border-radius: var(--wp--preset--border-radius--x-small);
	--ludi-input-border-width: 1px;
	--ludi-input-color: var(--wp--preset--color--gray-medium);
	--ludi-input-font-size: 13px;
	--ludi-input-padding: 15px 10px;
	--ludi-input-placeholder-color: var(--wp--preset--color--gray-medium);
}

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

html {
	/* Firefox-only: scroll anchoring can latch onto any element in the viewport, not just the one that shifted --
		 scoping this to feature-scroll alone didn't stop it, so it's disabled site-wide instead. */
	overflow-anchor: none;
	overflow-x: hidden;
	/* Reserves the scrollbar's space permanently -- a height change crossing the scroll threshold would otherwise
		 resize the effective viewport mid-navigation, aborting the Interactivity Router's View Transition. */
	scrollbar-gutter: stable;
}

/* Core's mobile overlay already locks html to overflow:hidden while open, so there's no scrollbar to reserve
	 space for -- left reserved, the gutter shows as a blank strip along the overlay's full-bleed edge. */
html.has-modal-open {
	scrollbar-gutter: auto;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	/* clip, not hidden: hidden makes body a scroll container, breaking descendant position: sticky. */
	overflow-x: clip;
}

b,
strong {
	font-weight: 600;
}

a,
button,
.wp-element-button {
	transition: background-color var(--ludi-motion-fast) var(--ludi-motion-ease),
				color var(--ludi-motion-fast) var(--ludi-motion-ease);
}

iframe {
	display: block;
	max-width: 100%;
}

/* Forms */

input,
select,
textarea {
	box-sizing: border-box;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: var(--wp--custom--line-height--medium);
	width: 100%;
}

/* Text-type fields take the --ludi-input-* look (:where keeps it element-level, so a component class still wins);
	 HubSpot's --hsf-field-input__* map to the same tokens. */
input:where(:not([type="checkbox"], [type="hidden"], [type="image"], [type="radio"], [type="submit"])),
select,
textarea {
	background-color: var(--ludi-input-background-color);
	border: var(--ludi-input-border-width) solid var(--ludi-input-border-color);
	border-radius: var(--ludi-input-border-radius);
	color: var(--ludi-input-color);
	font-size: var(--ludi-input-font-size);
	padding: var(--ludi-input-padding);
}

input:not([type="submit"]):focus-visible,
textarea:focus-visible {
	border-color: var(--wp--preset--color--accent);
	outline: 1px solid var(--wp--preset--color--accent);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
	width: auto;
}

input[type="checkbox"] {
	accent-color: var(--wp--preset--color--accent);
}

/* opacity: 1 overrides Firefox's default faded placeholder. */
::placeholder {
	color: var(--ludi-input-placeholder-color);
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 1;
}

/* Color context
---------------------------------------- */

.has-navy-background-color {
	--button-outline-color: var(--wp--preset--color--blue-ludi-200);
}

/* Layout / site parts
---------------------------------------- */

/* Site header */

/* Sits above a hero whose gradient/lines reach the viewport top; the header's transparent area lets them show
	 through. */
.site-header {
	position: relative;
	z-index: 2;
}

.site-header .wp-block-navigation__container {
	width: 100%;
}

/* Site footer */

/* A grid, not core/columns, so mobile can re-flow Solutions+Learn / Company+Current Customers into stacked
	 pairs (see Responsive) -- Newsletter is a fixed 300px, set off from the menus by spacing-120. */
.ludi-footer-menu {
	column-gap: var(--wp--preset--spacing--20);
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) 400px;
	row-gap: var(--wp--preset--spacing--60);
}

.ludi-footer-newsletter {
	margin-inline-start: var(--wp--preset--spacing--100);
}

.ludi-footer-menu .wp-block-navigation__container {
	gap: max(0px, calc((var(--wp--preset--spacing--10) * 1.5) - 10px));
}

/* 5px block padding lifts the 14px links to a 24px tap target (WCAG 2.5.8); the menu gap above gives the 10px back. */
.site-footer .wp-block-navigation-item__content {
	padding-block: 5px;
}

/* Legal row wraps copyright above the menu -- keep those rows spacing-10 apart. */
.ludi-footer-legal {
	row-gap: var(--wp--preset--spacing--10);
}

.ludi-footer-legal .wp-block-navigation__container {
	column-gap: var(--wp--preset--spacing--30);
}

/* Footer menus keep their ink on hover/focus (overriding the site-wide nav accent) and underline instead. */
.site-footer .wp-block-navigation .wp-block-navigation-item:focus-within,
.site-footer .wp-block-navigation .wp-block-navigation-item:hover {
	color: inherit;
}

.site-footer .wp-block-navigation .wp-block-navigation-item__content:focus-visible,
.site-footer .wp-block-navigation .wp-block-navigation-item__content:hover {
	text-decoration-line: underline;
}

/* Top row never wraps -- the heading + button (left) wrap instead; the badges hold their size. */
.ludi-footer-badges {
	flex-shrink: 0;
}

/* Cert badges scale fluidly 2.75rem -> 3.75rem; app-store badges keep one height. */
.ludi-footer-badge {
	display: block;
	height: clamp(2.75rem, 1.5rem + 3.5vw, 3.75rem);
	width: auto;
}

.ludi-footer-app img {
	display: block;
	height: 2.5rem;
	width: auto;
}

/* Social icons read as the footer's dark ink, not brand colours. */
.ludi-footer-meta .wp-block-social-links:not(.has-icon-color) .wp-social-link {
	color: var(--wp--preset--color--black-cool);
}

.ludi-footer-bottom {
	column-gap: var(--wp--preset--spacing--40);
	row-gap: var(--wp--preset--spacing--30);
}

.ludi-footer-meta {
	align-items: center;
	column-gap: var(--wp--preset--spacing--50);
}

/* Core blocks
---------------------------------------- */

/* Accordion */

/* The open/close slide: one animatable grid row holding the panel, sized by the `is-open` class the server already
   renders, so panels start collapsed instead of waiting on hydration. The heading track must be `min-content`, never
   `auto` -- Chromium recomputes an `auto` track jointly with the `fr` one each frame, ballooning the heading 74 -> 131
   -> 74px mid-slide ("text shifts up"). Both size the heading identically at rest. The grid belongs here rather than on
   the panel because the trick only animates a track's single child, and core's panel holds one block per paragraph. */
.wp-block-accordion-item {
	display: grid;
	grid-template-rows: min-content 0fr;
}

.wp-block-accordion-item.is-open {
	grid-template-rows: min-content 1fr;
}

.wp-block-accordion-panel {
	color: var(--wp--preset--color--blue-ludi-200);
	overflow: hidden;
}

.wp-block-accordion-panel > :last-child {
	margin-block-end: var(--wp--preset--spacing--40);
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-accordion-item {
		transition: grid-template-rows 0.3s ease-out;
	}
}

.wp-block-accordion-heading__toggle {
	gap: var(--wp--preset--spacing--20);
}

.wp-block-accordion-heading__toggle-icon {
	background-color: transparent;
	border: 1.3px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	flex-shrink: 0;
	font-size: 0;
	height: 32px;
	position: relative;
	width: 32px;
}

/* Matches core's selector specificity to override its `transition: transform` with ours */
.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transition: background-color var(--ludi-motion-fast) var(--ludi-motion-ease);
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon {
	background-color: var(--wp--preset--color--accent);
}

.wp-block-accordion-heading__toggle-icon::before,
.wp-block-accordion-heading__toggle-icon::after {
	background-color: var(--wp--preset--color--base);
	content: "";
	position: absolute;
}

.wp-block-accordion-heading__toggle-icon::before {
	height: 1.3px;
	left: calc(50% - 9px);
	top: calc(50% - 0.65px);
	width: 18px;
}

.wp-block-accordion-heading__toggle-icon::after {
	height: 18px;
	left: calc(50% - 0.65px);
	top: calc(50% - 9px);
	width: 1.3px;
}

.wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after {
	display: none;
}

.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transform: none;
}

/* Accordion -- FAQ style */

/* Links in a flex row inside an FAQ answer get a trailing arrow (data-URI FA glyph) instead of an underline; scoped to
	 .is-layout-flex so body-copy links are untouched. */
.wp-block-accordion.is-style-faq .wp-block-accordion-panel .is-layout-flex a {
	align-items: center;
	display: inline-flex;
	gap: 0.35em;
	text-decoration: none;
}

/* Underline returns on hover/focus, across the link text only -- the arrow is a separate flex item, not underlined. */
.wp-block-accordion.is-style-faq .wp-block-accordion-panel .is-layout-flex a:hover,
.wp-block-accordion.is-style-faq .wp-block-accordion-panel .is-layout-flex a:focus-visible {
	text-decoration: underline;
}

.wp-block-accordion.is-style-faq .wp-block-accordion-panel .is-layout-flex a::after {
	background-color: currentColor;
	content: "";
	display: inline-block;
	flex-shrink: 0;
	height: 0.7em;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z'/%3E%3C/svg%3E");
	mask-position: center;
	mask-repeat: no-repeat;
	mask-size: contain;
	text-decoration: none;
	width: 0.7em;
}

/* Breadcrumbs (Yoast SEO block) */

.yoast-breadcrumbs {
	color: var(--wp--preset--color--accent);
	display: inline-block;
	font-size: var(--wp--preset--font-size--xxx-small);
	font-weight: 600;
	letter-spacing: 0.05em;
	line-height: var(--wp--custom--line-height--small);
	padding: 4px 5px;
	text-transform: uppercase;
}

.yoast-breadcrumbs a {
	color: var(--wp--preset--color--accent) !important;
	text-decoration: none;
}

.yoast-breadcrumbs a:hover {
	text-decoration: underline;
}

/* Trimmed to nothing (page with only Home + self) -- don't render an empty breadcrumb */
.yoast-breadcrumbs:empty {
	display: none;
}

/* Button */

.has-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link {
	color: var(--button-outline-color, var(--wp--preset--color--white)) !important;
}

/* Embed */

/* Video embeds fill their block at 16:9 -- bulk-imported oEmbeds lack core's wp-has-aspect-ratio class, so the
   provider iframe keeps its own small width/height attributes (Vimeo returns 500x281). */
/*
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	aspect-ratio: 16 / 9;
}

.wp-block-embed.is-type-video .wp-block-embed__wrapper iframe {
	height: 100%;
	width: 100%;
}
*/

/* Group */

.is-style-callout-right,
.is-style-callout-left {
	--ludi-callout-protrusion: calc(var(--ludi-callout-width) * 2 / 3);
	--ludi-callout-width: 300px;

	background-color: var(--wp--preset--color--blue-ludi-100);
	border: 1px solid var(--wp--preset--color--gray-medium-light);
	border-radius: var(--wp--preset--border-radius--medium);
	color: var(--wp--preset--color--black);
	font-size: var(--wp--preset--font-size--small);
	margin-block: 1rem;
	max-width: 100%;
	padding: var(--wp--preset--spacing--30);
	width: var(--ludi-callout-width);
}

/* Extra class repeat beats .has-global-padding, which zeroes this */
.is-style-callout-right.is-style-callout-right,
.is-style-callout-left.is-style-callout-left {
	padding-inline: var(--wp--preset--spacing--30);
}

/* Repeated class beats core's higher-specificity margin: auto !important */
.is-style-callout-right.is-style-callout-right.is-style-callout-right {
	float: right;
	margin-inline-end: max(1.5rem, calc(((100% - var(--wp--style--global--content-size)) / 2) - var(--ludi-callout-protrusion))) !important;
	margin-inline-start: 1.5rem !important;
}

.is-style-callout-left.is-style-callout-left.is-style-callout-left {
	float: left;
	margin-inline-end: 1.5rem !important;
	margin-inline-start: max(1.5rem, calc(((100% - var(--wp--style--global--content-size)) / 2) - var(--ludi-callout-protrusion))) !important;
}

.is-style-callout-right .wp-block-heading + p,
.is-style-callout-left .wp-block-heading + p {
	margin-block-start: revert;
}

.is-style-inset-box {
	background-color: var(--wp--preset--color--base-translucent);
	border: 2px solid var(--wp--preset--color--white);
	border-radius: var(--wp--preset--border-radius--medium);
	padding: var(--wp--preset--spacing--40);
}

/* Extra class repeat beats .has-global-padding, which zeroes this */
.is-style-inset-box.is-style-inset-box {
	padding-inline: var(--wp--preset--spacing--40);
}

.is-style-inset-box > .wp-block-heading:first-child + p {
	margin-block-start: var(--wp--style--block-gap);
}

@media (prefers-reduced-motion: no-preference) {
	.is-style-stretch-on-scroll {
		position: relative;
	}

	.is-style-stretch-on-scroll::before {
		background-color: var(--ludi-stretch-bg, transparent);
		background-image: var(--ludi-stretch-bg-image, none);
		/* Per-layer values set by stretch-on-scroll.js; gradient layers span 100vw so growth never rescales them. */
		background-position: var(--ludi-stretch-bg-position, center);
		background-repeat: var(--ludi-stretch-bg-repeat, no-repeat);
		background-size: var(--ludi-stretch-bg-size, 100vw 100%);
		border-radius: var(--ludi-stretch-radius, 0px);
		content: "";
		inset-block: 0;
		left: var(--ludi-stretch-left, 0);
		position: absolute;
		width: var(--ludi-stretch-width, 100%);
		z-index: -1;
	}
}

/* Heading */

/* Applies 0.5em (heading font-size) ONLY if directly followed by a paragraph */
.wp-block-heading:has(+ .wp-block-heading),
.wp-block-heading:has(+ p) {
	margin-block-end: 0.25em;
}

.wp-block-heading + .wp-block-heading,
.wp-block-heading + p {
	margin-block-start: 0;
}

/* Lets a heading at any level get the big-callout-heading treatment (xxx-large, distinct from the real H1
	 size, huge) without a content manager re-picking a font-size preset. */
.wp-block-heading.is-style-large-heading {
	font-size: var(--wp--preset--font-size--xxx-large);
	letter-spacing: -0.05em;
	text-wrap: balance;
}

/* Image */

/* Shadow style -- drop-shadow (Medium preset, which carries no spread so it is valid here) follows the image's own shape,
	 so transparent PNG/SVG cut-outs cast a matching shadow. */
.wp-block-image.is-style-shadow img {
	filter: drop-shadow(var(--wp--preset--shadow--medium));
}

/* List */

.wp-block-list.is-style-no-style {
	list-style-type: none;
	padding-left: 0;
}

/* Navigation */

.site-header .wp-block-navigation__responsive-container-open,
.site-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	padding: 2px;
}

.site-header .wp-block-navigation__responsive-container-close {
	border: 1px solid currentColor;
}

/* FA "bars" in place of core's own hamburger SVG; the X counterpart is below, scoped to the open state. */
.site-header .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.site-header .wp-block-navigation__responsive-container-open::before {
	background-color: currentColor;
	content: "";
	display: block;
	height: 20px;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: contain;
	width: 20px;
}

/* Nav button pills -- can't be theme.json variations (render_block_core_navigation() skips render_block_data), so those
	 stay editor-only. Also covers Ollie's wp-block-ollie-mega-menu <li>. */
.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-solid,
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-solid,
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-solid {
	background-color: var(--wp--preset--color--accent);
	border-radius: 9999px;
	color: var(--wp--preset--color--white);
	font-weight: 600;
}

/* Padding on the <a>/<button>, not the <li>, so the whole pill is the click and focus target. */
.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-solid > :is(a, button),
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-solid > :is(a, button),
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-solid > :is(a, button) {
	border-radius: inherit;
	display: block;
	padding: 11px 16px;
}

.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-solid:hover,
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-solid:hover,
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-solid:hover {
	background-color: var(--wp--preset--color--navy);
	box-shadow: var(--wp--preset--shadow--glow-blue);
	color: var(--wp--preset--color--white);
}

.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-outline,
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-outline,
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-outline {
	background-color: transparent;
	border: 1.5px solid var(--wp--preset--color--navy);
	border-radius: 9999px;
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-outline > :is(a, button),
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-outline > :is(a, button),
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-outline > :is(a, button) {
	border-radius: inherit;
	display: block;
	padding: 9.5px 14.5px;
}

.site-header .wp-block-navigation li.wp-block-navigation-link.is-style-button-outline:hover,
.site-header .wp-block-navigation li.wp-block-navigation-submenu.is-style-button-outline:hover,
.site-header .wp-block-navigation li.wp-block-ollie-mega-menu.is-style-button-outline:hover {
	background-color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--wp--preset--shadow--secondary-blue-glow);
	color: var(--wp--preset--color--white);
}

/* Top-level triggers only -- the panel is a sibling, so its links keep their own weights. */
.site-header .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	font-weight: 600;
}

.site-header .wp-block-ollie-mega-menu__toggle-icon svg path,
.site-header .wp-block-navigation__submenu-icon svg path {
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
}

/* Navigation -- mega menu */

/* Containing block for the wide panels + search (top:100% reaches its bottom edge). --ludi-nav-pad-* hold the
	 pill's own padding so the popover top offset and the accent dome track any change to it. */
.site-header .ludi-nav-bar {
	--ludi-nav-pad-block: calc(var(--wp--preset--spacing--10) * 1.5);
	--ludi-nav-pad-inline: var(--wp--preset--spacing--20);

	padding: var(--ludi-nav-pad-block) var(--ludi-nav-pad-inline);
	position: relative;
}

/* Ollie's own overflow:hidden only applies while closed; view.js's inline overflow-y:auto (for tall panels)
	 otherwise leaves overflow-x computed as auto too. */
.site-header .wp-block-ollie-mega-menu__menu-container {
	background-color: var(--wp--preset--color--base);
	border-radius: var(--wp--preset--border-radius--medium);
	box-shadow: var(--wp--preset--shadow--nav);
	box-sizing: border-box;
	color: var(--wp--preset--color--black-cool);
	overflow-x: hidden;
}

.ludi-menu-panel {
	align-items: stretch;
	padding-inline: var(--wp--preset--spacing--40);
}

/* Popovers (no promo) use space-30 all around, out-specifying padding-inline above via two classes vs one. */
.ludi-menu-panel:not(:has(.ludi-menu-promo)) {
	padding: var(--wp--preset--spacing--30);
}

/* Vertical rhythm for the mega panels only -- popovers get padding-block from the panel-level rule above instead. */
.ludi-menu-promo,
.ludi-menu-panel:has(.ludi-menu-promo) .ludi-menu-cols .wp-block-column {
	padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

/* Fixed 240px columns; the 61px gutter needs no gap CSS of its own -- the divider below supplies 1+30, the theme's
	 global blockGap supplies the other 30. */
.ludi-menu-promo {
	flex: 0 0 240px;
	text-wrap: balance;
}

/* Needs four class-selectors, not two, to beat core's own (0,3,0) equal-split rule for core/columns -- a plain
	 two-class rule loses regardless of source order. */
.ludi-menu-panel .ludi-menu-cols.wp-block-columns .wp-block-column {
	box-sizing: border-box;
	flex: 0 0 240px;
}

.ludi-menu-promo p {
	color: var(--wp--preset--color--gray-medium);
	line-height: var(--wp--custom--line-height--medium);
}

/* A <p>, not a heading, so the panel doesn't put an h2 ahead of the page's h1; mirrors the h2 look and spacing. */
.ludi-menu-promo .ludi-menu-promo__title {
	color: var(--wp--preset--color--black-cool);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: var(--wp--custom--line-height--small);
	margin-block-end: 0.25em;
}

.ludi-menu-promo__title + p {
	margin-block-start: 0;
}

.ludi-menu-promo__more a {
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	text-decoration: none;
}

/* On the wrapping <p>, not the <a> -- a descendant's text-decoration:none doesn't stop an ancestor's underline from
	 painting across it. */
.ludi-menu-promo__more::after {
	content: "\00a0\2192";
}

.ludi-menu-promo__more a:hover {
	text-decoration: underline;
}

.ludi-menu-cols {
	flex: 0 0 auto;
	margin-block-end: 0;
}

/* Log in: sized to the longest link (each held to one line below) rather than a fixed basis. */
.ludi-menu-panel--login .ludi-menu-cols.wp-block-columns .wp-block-column {
	flex: 0 0 auto;
}

.ludi-menu-panel--login .is-style-menu-links > li {
	white-space: nowrap;
}

/* Two flat links, no eyebrow -- the usual top-level hairline reads as clutter here. */
.ludi-menu-panel--login .is-style-menu-links > li > a {
	border-block-end: 0;
	display: inline-block;
	font-weight: 400;
	padding-block: calc(var(--wp--preset--spacing--10) * 0.75);
}

/* Static, not the base rule's absolute right:0 -- keeps the arrow snug against the (now shrink-wrapped) link text
	 instead of flush to the column edge. */
.ludi-menu-panel--login .is-style-menu-links > li::after {
	content: "\00a0\2192";
	position: static;
	transform: none;
}

/* Hairline rules between the promo panel and the columns, and between columns. */
.ludi-menu-promo + .ludi-menu-cols,
.ludi-menu-cols .wp-block-column + .wp-block-column {
	border-inline-start: 1px solid var(--wp--preset--color--gray-medium-translucent);
	padding-inline-start: var(--wp--preset--spacing--30);
}

/* The eyebrow variation is accent blue everywhere else; in a menu column it is grey. */
.ludi-menu-cols .is-style-eyebrow {
	color: var(--wp--preset--color--gray-medium);
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Menu Links (core/list) -- top-level entries are bold, arrowed and ruled; nested ones are plain, arrow on hover
	 only. */
.is-style-menu-links,
.is-style-menu-links ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.is-style-menu-links ul {
	line-height: var(--wp--custom--line-height--medium);
}

/* Arrow lives on <li>, not <a>'s ::after -- a descendant's text-decoration:none doesn't stop an ancestor's
	 underline. */
.is-style-menu-links li {
	margin: 0;
	position: relative;
}

.is-style-menu-links a {
	display: block;
	text-decoration: none;
}

.is-style-menu-links > li > a {
	border-block-end: 1px solid var(--wp--preset--color--gray-medium-translucent);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	padding-block: calc(var(--wp--preset--spacing--10) * 1.5);
	padding-inline-end: var(--wp--preset--spacing--20);
}

.is-style-menu-links > li::after {
	content: "\2192";
}

.is-style-menu-links > li > a:has(+ ul) {
	border: 0;
	padding-block-end: 5px;
}

/* A top-level entry after one with nested links gets its own top rule, since the nested list draws none. */
.is-style-menu-links > li:has(> ul) + li {
	margin-block-start: var(--wp--preset--spacing--10);
}

.is-style-menu-links > li:has(> ul) + li > a {
	border-block-start: 1px solid var(--wp--preset--color--gray-medium-translucent);
}

.is-style-menu-links ul > li > a {
	border-block-end: 0;
	display: inline-block;
	font-size: var(--wp--preset--font-size--xx-small);
	padding-block: 2px;
}

.is-style-menu-links ul > li::after {
	content: "";
}

.is-style-menu-links a:hover,
.is-style-menu-links a:focus-visible {
	color: inherit;
	text-decoration: underline;
}

.is-style-menu-links > li::after,
.is-style-menu-links ul > li::after {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

/* Center on the <a>'s own text (not the whole <li>, which may contain a nested <ul>): its asymmetric padding-top
	 plus half the line-height. */
.is-style-menu-links > li:has(> ul)::after {
	top: calc((var(--wp--preset--spacing--10) * 1.5) + (var(--wp--preset--font-size--x-small) / 2));
}

/* Static, not the shared rule's absolute right:0 -- sits right after the (inline-block) link text instead of flush
	 to the column edge. */
.is-style-menu-links ul > li::after {
	position: static;
	transform: none;
}

.is-style-menu-links ul > li:hover::after,
.is-style-menu-links ul > li:focus-within::after {
	content: "\00a0\203a";
}

/* Icon-only trigger: the plugin has no icon mode, so the label text is hidden but kept for screen readers; also the
	 bar's right-hand split point. */
.site-header .wp-block-navigation__container > .ludi-nav-search {
	margin-inline-start: auto;
}

/* Out-specifies Ollie's own (0,3,0) display rule. */
.site-header .ludi-nav-search .wp-block-ollie-mega-menu__toggle .wp-block-ollie-mega-menu__toggle-icon {
	display: none;
}

.ludi-nav-search .wp-block-navigation-item__label {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.ludi-nav-search .wp-block-ollie-mega-menu__toggle {
	align-items: center;
	display: flex;
}

.ludi-nav-search .wp-block-ollie-mega-menu__toggle::before {
	background-color: currentColor;
	content: "";
	display: block;
	height: 18px;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4.6-4.6'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: contain;
	width: 18px;
}

.ludi-menu-panel--search .wp-block-search {
	width: 100%;
}

/* Tighter than the other popovers -- ties the shared padding rule above on specificity, and wins on source order. */
.ludi-menu-panel.ludi-menu-panel--search {
	padding: var(--wp--preset--spacing--20);
}

/* Navigation -- submenu */

/* Right-anchored, not left: Stuff sits at the bar's right edge, so a left-anchored panel would overflow the
	 viewport (even hidden, it still widens the page's scrollable area). */
.site-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--black) !important;
	color: var(--wp--preset--color--white) !important;
	left: auto !important;
	min-width: 180px !important;
	padding: 10px !important;
	right: -16px !important;
}

.site-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 2px 5px !important;
}

/* Paragraph */

.wp-block-paragraph.is-style-indent {
	text-indent: 2em;
}

/* Post Content */

/* Clearfix for the container so wrapped text doesn't spill over unnaturally */
.wp-block-post-content::after,
.entry-content::after {
	clear: both;
	content: "";
	display: table;
}

/* Post Content -- password form (markup tidied by inc/password-form.php); button overlaid like the footer
	 newsletter's. */
/* Padding, not margin: core's layout zeroes the last child's margin-block-end. */
.post-password-form {
	padding-block-end: var(--wp--preset--spacing--120);
}

.post-password-form p:has(input[type="password"]) {
	position: relative;
}

.post-password-form label {
	display: block;
}

/* Clears the overlaid button. */
.post-password-form input[type="password"] {
	padding-inline-end: 115px;
}

.post-password-form .wp-block-button {
	position: absolute;
	right: 6px;
	top: 5.5px;
}

.post-password-form-invalid-password {
	color: var(--ludi-color-error);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Post Template -- Query Middle CTA */

.ludi-post-template-cta {
	grid-column: 1 / -1;
}

/* The CTA pattern's outer group carries inline padding-block: spacing-60 for standalone page use; the grid gap
	 already spaces the cell, so zero it here (!important beats the inline style). */
.ludi-post-template-cta > .wp-block-group {
	padding-block: 0 !important;
}

/* Pullquote */

/* Same bleed-left baseline as Quote below, adapted to pullquote's own centred/padded default -- overrides
	 just text-align + the margin core forces to auto !important. No quote-mark decoration here (unlike Quote). */
.wp-block-pullquote.wp-block-pullquote.wp-block-pullquote {
	margin-inline-end: calc((100% - var(--wp--style--global--content-size)) / 2) !important;
	margin-inline-start: max(0px, calc(((100% - var(--wp--style--global--content-size)) / 2) - (var(--wp--style--global--wide-size) - var(--wp--style--global--content-size)))) !important;
}

.wp-block-pullquote {
	text-align: left;
}

.wp-block-pullquote blockquote {
	margin-inline: 0;
}

/* Plain -- registered in inc/editor.php; restores pullquote's stock centred look. */
.wp-block-pullquote.is-style-plain.is-style-plain.is-style-plain {
	margin-inline: auto !important;
}

.wp-block-pullquote.is-style-plain {
	text-align: center;
}

.wp-block-pullquote.is-style-plain blockquote {
	margin-inline: auto;
}

/* Query Filter */

.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown {
	border-color: var(--wp--preset--color--gray-medium);
	border-width: 1.5px;
}

.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown[open] {
	border-color: var(--wp--preset--color--black-cool);
}

/* Nav outline-button box: button padding (11px 16px) less the 1.5px border, line-height 1 -- 36px tall. */
.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown-summary {
	font-weight: 600;
	line-height: 1;
	padding: 9.5px 14.5px;
}

/* Matches the header nav caret. */
.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown-icon path {
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.25;
}

.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown .wp-block-query-filter__checkbox-group-title {
	font-size: var(--wp--preset--font-size--x-small);
}

.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown-summary,
.wp-block-query-filter .wp-block-query-filter__checkbox-group > label {
	color: var(--wp--preset--color--black-cool);
}

/* Label + count as a flex row, so the badge's vertical-align:middle can't stretch the line box. */
.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown-summary > span {
	align-items: center;
	display: inline-flex;
}

/* Negative block margins keep the 1.64em circle from growing the 1em line box -- it overhangs into the padding. */
.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown-count {
	background-color: var(--wp--preset--color--blue-ludi-200);
	margin-block: calc((1em - 1.64em) / 2);
}

/* top clears the pill's 1.5px bottom border, the bar's spacing-20 bottom padding and 1.5px border, then a spacing-10 gap
	 -- keep in step with .ludi-filter-bar's padding/border (patterns/hidden/grid-filter-*.php); background matches the bar's.
	 scrollbar-gutter: Firefox leaves the scrollbar out of max-content width, wrapping the longest label when the panel scrolls. */
.wp-block-query-filter .wp-block-query-filter__checkbox-dropdown .wp-block-query-filter__checkbox-group {
	background-color: #f0ebe9;
	border: 1.5px solid var(--wp--preset--color--navy-translucent);
	border-radius: var(--wp--preset--border-radius--medium);
	box-shadow: var(--wp--preset--shadow--nav);
	gap: var(--wp--preset--spacing--20);
	scrollbar-gutter: stable;
	top: calc(100% + 1.5px + var(--wp--preset--spacing--20) + 1.5px + var(--wp--preset--spacing--10));
}

/* JS-built mobile-overlay chrome (query-filter.js) -- a body-level wrapper for the backdrop/header/footer.
	 display:contents keeps it from becoming a containing block, so fixed children position against the viewport. */
.ludi-filter-chrome {
	display: contents;
}

/* Hidden by default; shown only inside .ludi-filter-bar.is-mobile-open, under the
	 mobile breakpoint (Responsive), via .ludi-filter-chrome.is-visible. */
.ludi-filter-header,
.ludi-filter-footer {
	display: none;
}

/* Query Pagination */

.wp-block-query-pagination,
.editor-styles-wrapper .wp-block-query-pagination.wp-block-query-pagination {
	margin-block-start: var(--wp--preset--spacing--120);
}

/* 24px minimum tap target (WCAG 2.5.8). */
.wp-block-query-pagination-numbers .page-numbers {
	align-items: center;
	display: inline-flex;
	justify-content: center;
	min-height: 24px;
	min-width: 24px;
}

/* Quote */

/* Bleed-left is the baseline look (no class needed) -- core/quote's own block.json styles always resolve
	 first, so `is_default` is inert (see CLAUDE.md); repeating the base class 3x beats core's margin: auto !important. */
.wp-block-quote.wp-block-quote.wp-block-quote {
	margin-inline-end: calc((100% - var(--wp--style--global--content-size)) / 2) !important;
	margin-inline-start: max(0px, calc(((100% - var(--wp--style--global--content-size)) / 2) - (var(--wp--style--global--wide-size) - var(--wp--style--global--content-size)))) !important;
}

.wp-block-quote {
	position: relative;
}

/* em units key off its own huge font-size, so this scales fluidly too */
.wp-block-quote::before {
	color: var(--wp--preset--color--accent);
	content: "\201C";
	font-size: var(--wp--preset--font-size--huge);
	font-style: normal;
	font-weight: 300;
	left: -0.5em;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	top: -0.1em;
}

.wp-block-quote .wp-block-paragraph:last-of-type::after {
	content: "\201D";
}

/* Plain -- core's own built-in style (block.json), opts back out of the bleed baseline
	 above. Needs the same repeated-class specificity trick to out-rank it. */
.wp-block-quote.is-style-plain.is-style-plain.is-style-plain {
	margin-inline: auto !important;
}

.wp-block-quote.is-style-plain {
	position: static;
}

.wp-block-quote.is-style-plain::before {
	content: normal;
}

.wp-block-quote.is-style-plain .wp-block-paragraph:last-of-type::after {
	content: normal;
}

/* Search */

/* Button-inside fields (header dropdown, 404): the frame takes the input tokens; core leaves the input borderless. */
.wp-block-search__button-inside .wp-block-search__inside-wrapper {
	background-color: var(--ludi-input-background-color);
	border: var(--ludi-input-border-width) solid var(--ludi-input-border-color);
	border-radius: var(--ludi-input-border-radius);
	padding: calc(var(--wp--preset--spacing--10) * 0.5);
}

/* Separator */

.wp-block-separator.is-style-extended {
	width: 180px;
}

.wp-block-separator.is-style-short {
	width: 40px;
}

/* Social Links */

.wp-block-social-links.is-style-outline li.wp-block-social-link {
	background-color: transparent;
	border: 1px solid currentColor;
	color: currentColor;
}

.wp-block-social-links.is-style-square .wp-block-social-link {
	border-radius: 0;
}

/* Block style variations (cross-block) */

.wp-block-heading.is-style-balanced,
.wp-block-paragraph.is-style-balanced,
.wp-block-post-excerpt.is-style-balanced,
.wp-block-post-title.is-style-balanced,
.wp-block-query-title.is-style-balanced {
	text-wrap: balance;
}

.wp-block-cover.is-style-zoom,
.wp-block-post-featured-image.is-style-zoom {
	overflow: hidden;
}

.wp-block-cover.is-style-zoom img,
.wp-block-post-featured-image.is-style-zoom img {
	transition: transform var(--ludi-motion-slow) var(--ludi-motion-ease);
}

.wp-block-cover.is-style-zoom:hover img,
.wp-block-post-featured-image.is-style-zoom:hover img {
	transform: scale(var(--ludi-motion-scale));
}

/* Custom blocks
---------------------------------------- */

/* Archive Featured Entry (ludi-custom-blocks plugin) */

/* Sizes the archive-hero entry through the plugin's --ludi-archive-featured-entry-* hooks. */
.ludi-archive-featured-entry {
	--ludi-archive-featured-entry-gap: var(--wp--preset--spacing--40);
	--ludi-archive-featured-entry-image-width: 30%;
}

/* Archive Hero */

/* Containing block / stacking context for the absolute .ludi-bg-lines layer; --ludi-hero-reach lets the lines
	 bleed up toward the header (same var ludi/hero sets). */
.ludi-archive-hero {
	--ludi-hero-reach: 190px;

	isolation: isolate;
	position: relative;
}

.ludi-archive-hero .ludi-bg-lines {
	z-index: -1;
}

/* The parent's constrained core/group would cap this full-bleed layer at contentSize -- break it back out. */
.ludi-archive-hero > .ludi-bg-lines {
	margin-inline: -50vw 0 !important;
	max-width: none !important;
}

/* Card Grid */

.ludi-card {
	border: 1px solid var(--wp--preset--color--gray-medium-translucent);
	border-radius: var(--wp--preset--border-radius--medium);
	padding: var(--wp--preset--spacing--40);
}

/* CTA (ludi-custom-blocks plugin) */

/* Query Middle CTA only (spliced in via .ludi-post-template-cta) -- the grid cell already supplies its own
	 gutter, so the wrapper's padding is redundant there; standalone placements keep it to avoid edge-to-edge mobile cards. */
.ludi-post-template-cta .ludi-cta-light-wrap,
.ludi-post-template-cta .ludi-cta-dark-wrap {
	padding-inline: 0;
}

/* FAQ */

/* Containing block / stacking context for the absolute .ludi-bg-lines layer; layout:default has no
	 contentSize to break out of, so no breakout override is needed here (contrast Stats Grid below). */
.ludi-faq {
	isolation: isolate;
	position: relative;
}

/* Tracks the stretch-on-scroll background's own box (--ludi-stretch-left/-width) instead of the base rule's
	 fixed 100vw bleed, so the lines never exceed the stretching navy band's current edges. */
.ludi-faq .ludi-bg-lines {
	left: var(--ludi-stretch-left, 0);
	margin-block-start: 0;
	margin-inline-start: 0;
	width: var(--ludi-stretch-width, 100%);
	z-index: -1;
}

/* Featured Entry (ludi-custom-blocks plugin) */

/* Editor-picked single-entry block; same flex row as Archive Featured Entry, own --ludi-featured-entry-* namespace. */
.ludi-featured-entry {
	--ludi-featured-entry-gap: var(--wp--preset--spacing--120);
}

/* "The Latest" heading beside it (ludi/featured-entry-latest pattern) -- capped so the large title wraps to the comp's measure. */
.ludi-featured-latest__title {
	max-width: 240px;
}

/* Post Author Title (ludi/post-author-title) */

.ludi-inline-wrapper > * {
	display: inline !important;
	margin-right: 0.25em;
}

.ludi-inline-wrapper .wp-block-post-author-name::before {
	content: "By ";
}

.ludi-inline-wrapper .wp-block-post-author-name + span.wp-block-ludi-post-author-title {
	margin-inline-start: -0.3em !important;
}

/* Vertical bar between the date and the byline, 1em either side -- the bar is the name's own
   inline-start border, the date's padding supplies the other half. Padding, not margin: the wrapper
   is a constrained-layout group, and core centres its children with margin-inline auto !important.
   Same border-as-divider idiom as the post-card meta row. :not(:first-child) keeps the bar off the
   hero variation, which has no date. The pattern also butts the two block comments together so no
   whitespace text node widens the left gap. */
.ludi-inline-wrapper .wp-block-post-date {
	padding-inline-end: 1em;
}

.ludi-inline-wrapper .wp-block-post-author-name:not(:first-child) {
	border-inline-start: 1px solid currentColor;
	padding-inline-start: 1em;
}

/* Post Card (ludi-custom-blocks plugin) */

/* Bridges the theme palette into the plugin's --ludi-post-card-eyebrow-* props (blocks/post-card/style.css). */
.ludi-post-card-eyebrows {
	--ludi-post-card-eyebrow-background: var(--wp--preset--color--blue-ludi-100);
	--ludi-post-card-eyebrow-border-radius: var(--wp--preset--border-radius--x-small);
	--ludi-post-card-eyebrow-color: var(--wp--preset--color--navy);
}

/* Same bridge for the plain "Featured" label on the archive-hero card. */
.ludi-post-card-eyebrow--plain {
	--ludi-post-card-eyebrow-featured-color: var(--wp--preset--color--gray-medium);
}

/* Same bridge for the "chip" eyebrow (an event's Ludi's Role term). */
.ludi-post-card-eyebrow--chip {
	--ludi-post-card-eyebrow-chip-background: var(--wp--preset--color--orange-tailwind-200);
	--ludi-post-card-eyebrow-chip-color: var(--wp--preset--color--black-cool);
}

/* Grid/carousel card titles take the body font via --ludi-post-card-title-font-family, not the heading-element font. */
.ludi-post-card:not(.ludi-post-card--featured) {
	--ludi-post-card-title-font-family: var(--wp--preset--font-family--body);
}

.has-base-color .wp-block-ludi-post-card .wp-block-post-author-name,
.has-base-color .wp-block-ludi-post-card .wp-block-post-date,
.has-base-color .wp-block-ludi-post-card .wp-block-ludi-news-source,
.has-base-color .wp-block-ludi-post-card .ludi-post-card-meta .wp-block-paragraph {
	color: var(--wp--preset--color--blue-ludi-300);
}

/* Query Carousel (ludi/query-carousel) */

.wp-block-group.ludi-post-slider .wp-block-heading,
.wp-block-group.ludi-post-slider .wp-block-post .wp-block-post-title {
	color: inherit;
}

/* Containing block / stacking context for the absolute .ludi-bg-lines layer. */
.ludi-post-slider {
	isolation: isolate;
	position: relative;
}

.ludi-post-slider .ludi-bg-lines {
	margin-block-start: 0;
	z-index: -1;
}

/* The parent's constrained core/group would cap this full-bleed layer at contentSize -- break it back out. */
.ludi-post-slider > .ludi-bg-lines {
	margin-inline: -50vw 0 !important;
	max-width: none !important;
}

/* A group wrapping a carousel opts in its edge fade -- the track bleeds a band past the card column so cards slide off
	 behind a gradient curtain, resting cards / dots stay aligned. Testimonials override below. */
.wp-block-group:has( > .ludi-query-carousel ) > .ludi-query-carousel {
	--ludi-query-carousel-edge-bleed: var(--wp--preset--spacing--20);
}

/* Recording Details (ludi-custom-blocks plugin) */

/* Hide the template wrapper on resources where the block renders nothing. */
.is-recording-details-slot:not(:has(.wp-block-ludi-recording-details)) {
	display: none;
}

/* Stats Grid */

/* Containing block / stacking context for the absolute .ludi-bg-lines layer. */
.ludi-stats-grid {
	isolation: isolate;
	position: relative;
}

.ludi-stats-grid .ludi-bg-lines {
	margin-block-start: 0;
	z-index: -1;
}

/* Breaks out of the parent's constrained contentSize AND tracks the stretch-on-scroll background's own box
	 (--ludi-stretch-left/-width), so the lines never exceed the stretching band's current edges. */
.ludi-stats-grid > .ludi-bg-lines {
	left: var(--ludi-stretch-left, 0);
	margin-inline-start: 0 !important;
	max-width: none !important;
	width: var(--ludi-stretch-width, 100%);
}

/* Stat cards -- Stats Grid, Stats Row and the Home stats band: default icon tint and label size; a colour or font size
	 set on the block itself still wins. */
:is(.ludi-stats-grid, .ludi-stats-row, .ludi-gradient-blue) .wp-block-font-awesome-icon {
	color: var(--wp--preset--color--blue-ludi-300);
}

/* The label is the card's own paragraph -- matched via the card (it holds the icon), since a range card wraps its two
	 counters in a row group and the label is then no longer the counter's sibling. */
:is(.ludi-stats-grid, .ludi-stats-row, .ludi-gradient-blue) .wp-block-group:has(> .wp-block-font-awesome-icon) > p {
	font-size: var(--wp--preset--font-size--x-small);
}

/* A range card's counter row: no flow gap above it, no flex gap between the counters (each keeps its own margin). */
:is(.ludi-stats-grid, .ludi-stats-row, .ludi-gradient-blue) .wp-block-group:has(> .wp-block-font-awesome-icon) > .wp-block-group:has(> .wp-block-boldblocks-counting-number) {
	gap: 0;
	margin-block-start: 0;
}

/* Stats Row */

/* Containing block / stacking context for the absolute .ludi-bg-lines layer. */
.ludi-stats-row {
	isolation: isolate;
	position: relative;
}

.ludi-stats-row .ludi-bg-lines {
	margin-block-start: 0;
	z-index: -1;
}

.ludi-stats-row .wp-block-columns > .wp-block-column > .wp-block-group {
	height: 100%;
}

/* Breaks out of the parent's constrained contentSize AND tracks the stretch-on-scroll background's own box
	 (--ludi-stretch-left/-width), so the lines never exceed the stretching band's current edges. */
.ludi-stats-row > .ludi-bg-lines {
	left: var(--ludi-stretch-left, 0);
	margin-inline-start: 0 !important;
	max-width: none !important;
	width: var(--ludi-stretch-width, 100%);
}

/* Feature modules
---------------------------------------- */

/* Events */

/* The Events pill carries a 3rd item (this link) the others don't, so it stretches to fill the row instead
	 of shrinking to its content, giving the auto-margin below room to work with. */
.ludi-filter-bar:has(.ludi-event-scope-link) {
	width: 100%;
}

/* Cross-link to the other view (Upcoming/Past), pushed to the pill's right edge -- !important beats core's
	 generated `.is-layout-flex > :is(*, div) { margin: 0 }` flex-child reset, which outspecifies a plain class. */
.ludi-event-scope-link {
	margin-inline-start: auto !important;
	white-space: nowrap;
}

.ludi-event-scope-link a {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
}

/* Testimonials */

/* Tighter spacing-10 edge bleed for both testimonial layouts; matches the generic group rule's specificity, wins on
	 source order. */
.wp-block-group.ludi-testimonials > .ludi-query-carousel {
	--ludi-query-carousel-edge-bleed: var(--wp--preset--spacing--10);
}

/* The logo sits in the slide only as data for the indicator row -- never shown inline */
.ludi-testimonials .testimonial-logo {
	display: none;
}

/* Strip core/quote's default border + indent inside the carousel */
.ludi-testimonials blockquote.wp-block-quote {
	border: 0;
	margin: 0;
	padding: 0;
}

/* Curly double quotes wrapped around the quote automatically -- editors type plain text */
.ludi-testimonials blockquote.wp-block-quote > p:first-of-type::before {
	content: "\201C";
}

.ludi-testimonials blockquote.wp-block-quote > p:last-of-type::after {
	content: "\201D";
}

.ludi-testimonials .testimonial-attribution {
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Wide: centred text, client-logo strip as the indicators, no arrows -- quote 840px, attribution 410px, within a
	 1055px group. */
.ludi-testimonials--wide .ludi-query-carousel-slider {
	text-align: center;
}

/* Overrides the global bleed-left baseline (Quote below) -- its formula assumes page-content width, which
	 pushes this narrower carousel quote off-screen otherwise; same repeated-class trick wins specificity. */
.ludi-testimonials--wide blockquote.wp-block-quote.wp-block-quote.wp-block-quote {
	font-size: var(--wp--preset--font-size--x-large);
	margin-inline: auto !important;
	max-width: 840px;
	position: static;
}

/* Suppresses the bleed-left baseline's big decorative opening mark, which would double up with the curly
	 quote this carousel puts on the text itself. Only the ::before -- blanking the closing ::after here too
	 would land on the same pseudo-element the carousel's own closing quote uses, and win, leaving the quote
	 opened but never closed. */
.ludi-testimonials--wide blockquote.wp-block-quote::before {
	content: normal;
}

.ludi-testimonials--wide .testimonial-attribution {
	margin-inline: auto;
	max-width: 410px;
}

/* Logos share the track equally so the row always fits the 1055px container regardless of count. */
.ludi-testimonials--wide .ludi-query-carousel-indicator-track {
	align-items: center;
	border-radius: 0;
	height: auto;
	margin-block-start: var(--wp--preset--spacing--80);
	overflow: hidden;
	padding-block-start: calc(var(--wp--preset--spacing--20) + 1px);
	position: relative;
}

/* Progress line: 1px, full width, faint blue -- spacing-100 below the quote, spacing-20 above the logos */
.ludi-testimonials--wide .ludi-query-carousel-indicator-track::before {
	background-color: #5686fa;
	content: "";
	height: 1px;
	inset-inline: 0;
	opacity: 0.65;
	position: absolute;
	top: 0;
}

/* Peek mode uses a real Swiper scrollbar instead (below); the progress line stays for the non-peek bullet
	 fallback, so hide it here only. */
.ludi-testimonials--wide .ludi-query-carousel-indicator-track--peek::before {
	display: none;
}

/* Real Swiper scrollbar (view.js's buildPeekSwiper) -- position:absolute so it renders above the logo row
	 regardless of its DOM position as indicatorEl's first child. */
.ludi-testimonials--wide .ludi-query-carousel-peek-scrollbar {
	background-color: rgba(86, 134, 250, 0.65);
	border-radius: var(--ludi-query-carousel-track-radius);
	height: 2.5px;
	inset-inline: 0;
	position: absolute;
	top: 0;
}

.ludi-testimonials--wide .ludi-query-carousel-peek-scrollbar .swiper-scrollbar-drag {
	background-color: var(--wp--preset--color--white);
	border-radius: var(--ludi-query-carousel-track-radius);
}

.ludi-testimonials--wide .ludi-query-carousel-indicator--image {
	flex: 1 1 0;
	min-width: 0;
	position: relative;
}

/* The segment of the line directly above the active logo lights up warm white */
.ludi-testimonials--wide .ludi-query-carousel-indicator--image.is-active::before {
	background-color: var(--wp--preset--color--base);
	content: "";
	height: 1px;
	inset-inline: 0;
	position: absolute;
	top: calc(-1 * (var(--wp--preset--spacing--20) + 1px));
}

.ludi-testimonials--wide .ludi-query-carousel-indicator--image img {
	height: auto;
	margin-inline: auto;
	max-height: 34px;
	max-width: 100%;
	width: auto;
}

/* Compact: left aligned; footer bar = dots left, arrows right. Card width follows its container */
.ludi-testimonials--compact {
	text-align: left;
}

/* Overrides the global bleed-left baseline, same reason as Testimonials -- Wide above: this quote sits in a
	 narrow bordered card, not page content, so that formula pushes it past the card's own edge. */
.ludi-testimonials--compact blockquote.wp-block-quote.wp-block-quote.wp-block-quote {
	color: var(--wp--preset--color--black-cool);
	font-size: var(--wp--preset--font-size--medium);
	font-style: italic;
	margin-inline: 0 !important;
	position: static;
}

/* As on --wide above: only the decorative opening mark, never the closing ::after. */
.ludi-testimonials--compact blockquote.wp-block-quote::before {
	content: normal;
}

.ludi-testimonials--compact .testimonial-attribution strong {
	color: var(--wp--preset--color--black-cool);
}

/* display:contents hoists the nav + slider out of the row so all three land in one grid */
.ludi-testimonials--compact .ludi-query-carousel-row {
	display: contents;
}

/* Slider on top; footer row (dots left / arrows right) below it, >= 30px below the attribution */
.ludi-testimonials--compact .wp-block-ludi-query-carousel {
	display: grid;
	grid-template-areas: "slider slider" "dots arrows";
	grid-template-columns: 1fr auto;
	row-gap: 30px;
}

.ludi-testimonials--compact .ludi-query-carousel-slider {
	grid-area: slider;
}

/* Footer row: dots + arrows vertically centred against each other */
.ludi-testimonials--compact .ludi-query-carousel-nav {
	align-self: center;
	gap: 16px;
	grid-area: arrows;
	justify-self: end;
}

.ludi-testimonials--compact .ludi-query-carousel-indicator-track {
	align-self: center;
	gap: 12px;
	grid-area: dots;
	justify-self: start;
	margin-block-start: 0;
	overflow: visible;
	width: auto;
}

/* Indicators: 8px circles -- gray-medium-light neutral, Ludi Blue (accent) active */
.ludi-testimonials--compact .ludi-query-carousel-indicator {
	background-color: var(--wp--preset--color--gray-medium-light);
	border-radius: 50%;
	flex: 0 0 auto;
	height: 8px;
	width: 8px;
}

.ludi-testimonials--compact .ludi-query-carousel-indicator:hover {
	background-color: var(--wp--preset--color--accent);
	opacity: 1;
}

.ludi-testimonials--compact .ludi-query-carousel-indicator.is-active {
	background-color: var(--wp--preset--color--accent);
}

/* Arrows: no circle -- gray-medium neutral, gray-medium-light disabled */
.ludi-testimonials--compact .ludi-query-carousel-prev,
.ludi-testimonials--compact .ludi-query-carousel-next {
	background-color: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wp--preset--color--gray-medium);
	height: auto;
	padding: 0;
	width: auto;
}

.ludi-testimonials--compact .ludi-query-carousel-prev:hover,
.ludi-testimonials--compact .ludi-query-carousel-next:hover {
	background-color: transparent;
	color: var(--wp--preset--color--black-cool);
}

.ludi-testimonials--compact .ludi-query-carousel-prev.swiper-button-disabled,
.ludi-testimonials--compact .ludi-query-carousel-next.swiper-button-disabled {
	color: var(--wp--preset--color--gray-medium-light);
}

/* Logos with Testimonials: whole logos (no crop, whatever the gallery's own setting), centred in each cell. */
.wp-block-columns:has(.ludi-testimonials--compact) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
	align-items: center;
	align-self: stretch;
	justify-content: center;
	margin-block: 0;
}

.wp-block-columns:has(.ludi-testimonials--compact) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) img {
	flex: none;
	height: auto;
	max-height: 3rem;
	object-fit: contain;
	width: auto;
}

/* Ticker (core/gallery marquee) */

/* ticker.js builds .ludi-ticker__track + .ludi-ticker__set copies from this and sets --ludi-ticker-shift/-duration;
	 width comes from the parent. */
/* display:flex + the pre-JS `> figure` rule below match ticker.js's own row, so there's no flash before it runs;
	 `figure.` prefix beats core's has-nested-images specificity. */
figure.wp-block-gallery.ludi-ticker {
	--ludi-ticker-fade: clamp(1.25rem, 8vw, var(--ludi-ticker-fade-max, 64px));
	--ludi-ticker-gap: clamp(1rem, 4.5vw, var(--ludi-ticker-gap-max, 48px));
	--ludi-ticker-item-height: clamp(2rem, 8vw, 40px);

	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--black) var(--ludi-ticker-fade), var(--wp--preset--color--black) calc(100% - var(--ludi-ticker-fade)), transparent);
	mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--black) var(--ludi-ticker-fade), var(--wp--preset--color--black) calc(100% - var(--ludi-ticker-fade)), transparent);
	overflow: hidden;
	position: relative;
	width: 100%;
}

/* Paused until ticker.js's first real measurement, so it never runs a frame against the fallback shift; flex:0 0
	 auto keeps it at max-content. */
.wp-block-gallery.ludi-ticker .ludi-ticker__track {
	align-items: center;
	animation: ludi-ticker-scroll var(--ludi-ticker-duration, 40s) linear infinite;
	animation-play-state: paused;
	display: flex;
	flex: 0 0 auto;
	width: max-content;
	will-change: transform;
}

.wp-block-gallery.ludi-ticker.ludi-ticker--ready .ludi-ticker__track {
	animation-play-state: running;
}

.wp-block-gallery.ludi-ticker.ludi-ticker--reverse .ludi-ticker__track {
	animation-direction: reverse;
}

.wp-block-gallery.ludi-ticker.ludi-ticker--pause-on-hover:hover .ludi-ticker__track,
.wp-block-gallery.ludi-ticker.ludi-ticker--pause-on-hover:focus-within .ludi-ticker__track {
	animation-play-state: paused;
}

.wp-block-gallery.ludi-ticker .ludi-ticker__set {
	align-items: center;
	display: flex;
	flex: 0 0 auto;
}

/* `> figure` (pre-JS) and `.ludi-ticker__set figure` (post-JS) get the same row treatment; !important beats core's
	 has-nested-images rules, which stay live both before and after ticker.js runs. */
.wp-block-gallery.ludi-ticker > figure.wp-block-image,
.wp-block-gallery.ludi-ticker .ludi-ticker__set figure {
	display: block;
	flex: 0 0 auto;
	margin: 0 !important;
	margin-inline-end: var(--ludi-ticker-gap, 48px) !important;
	width: auto !important;
}

.wp-block-gallery.ludi-ticker > figure.wp-block-image img,
.wp-block-gallery.ludi-ticker .ludi-ticker__set img {
	height: var(--ludi-ticker-item-height, 40px) !important;
	object-fit: contain !important;
	width: auto !important;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery.ludi-ticker {
		overflow-x: auto;
	}

	.wp-block-gallery.ludi-ticker .ludi-ticker__track {
		animation: none;
	}
}

/* Third-Party Embeds
---------------------------------------- */

/* Hubspot Forms */

/* v4 Forms */
:root {
	--hsf-global__font-family: var(--wp--preset--font-family--body);
	--hsf-background__padding: 0;
	/* --hsf-background__background-color: transparent; */
	--hsf-button__background-color: var(--wp--preset--color--accent);
	--hsf-button__border-radius: 9999px;
	--hsf-button__border-style: none;
	--hsf-button__color: var(--wp--preset--color--white);
	--hsf-button__font-size: var(--wp--preset--font-size--x-small);
	--hsf-button__font-weight: 600;
	--hsf-button__padding: 11px 16px;
	--hsf-button__width: auto;
	--hsf-button--hover__background-color: var(--wp--preset--color--navy);
	--hsf-erroralert__color: var(--ludi-color-error);
	--hsf-erroralert__font-size: var(--wp--preset--font-size--xx-small);
	--hsf-field-input__background-color: var(--ludi-input-background-color);
	--hsf-field-input__border-color: var(--ludi-input-border-color);
	--hsf-field-input__border-radius: var(--ludi-input-border-radius);
	--hsf-field-input__border-width: var(--ludi-input-border-width);
	--hsf-field-input__color: var(--ludi-input-color);
	--hsf-field-input__placeholder-color: var(--ludi-input-placeholder-color);
	--hsf-field-label__color: var(--wp--preset--color--black-cool);
	--hsf-field-label__font-size: var(--wp--preset--font-size--small);
	--hsf-module__vertical-spacing: 2px;
	--hsf-navigationrow-buttons-single__justify-content: start;
	--hsf-row__vertical-spacing: var(--wp--preset--spacing--20);
}

/* Editor only -- core strips the embed's script on the canvas, leaving an empty container the block editor renders
   0px tall (invisible, reachable only via List View). Give it a labelled placeholder instead. :empty needs no child
   nodes at all, whitespace included; switch to :not(:has(*)) if an embed is ever pasted pretty-printed. */
.editor-styles-wrapper .hs-form-frame:empty,
.editor-styles-wrapper .hs-form-html:empty {
	border: 1px dashed var(--wp--preset--color--gray-medium-light);
	border-radius: var(--wp--preset--border-radius--medium);
	color: var(--wp--preset--color--gray-medium);
	font-size: var(--wp--preset--font-size--small);
	padding-block: var(--wp--preset--spacing--20);
	text-align: center;
}

.editor-styles-wrapper .hs-form-frame:empty::before,
.editor-styles-wrapper .hs-form-html:empty::before {
	content: "HubSpot form (loads on the published page)";
}

.hs-form-html [data-hsfc-id="Renderer"] .hsfc-Button:not([disabled]):hover {
	transform: none;
	box-shadow: var(--wp--preset--shadow--glow-blue);
}

.hs-form-html [data-hsfc-id="Renderer"] .hsfc-NavigationRow {
	margin-top: var(--hsf-row__vertical-spacing);
}

.hs-form-html [data-hsfc-id="Renderer"] input:has(~ .hsfc-ErrorAlert) {
	border-color: var(--ludi-color-error);
}

.ludi-footer-newsletter [data-hsfc-id="Renderer"] .hsfc-FieldLabel,
.ludi-footer-newsletter [data-hsfc-id="Renderer"] .hsfc-NavigationRow__Alerts {
	display: none;
}

.ludi-footer-newsletter [data-hsfc-id="Renderer"] .hsfc-Step__Content {
	position: relative;
}

.ludi-footer-newsletter [data-hsfc-id="Renderer"] .hsfc-TextInput {
	padding: 15px 115px 15px 10px;
}

.ludi-footer-newsletter [data-hsfc-id="Renderer"] .hsfc-Button {
	position: absolute;
	right: 6px;
	/* top: calc((var(--wp--preset--font-size--small) * var(--wp--custom--line-height--medium)) + var(--hsf-module__vertical-spacing) + var(--hsf-field-input__border-width) + 2px); */
	top: 5.5px;
	width: auto; /* beats HubSpot's own max-width: 430px `.hsfc-NavigationRow__Buttons > * { width: 100% }` */
}

/* v2 Forms */

/*
.hs-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.hbspt-form .hs-form fieldset {
	max-width: 100%;
}

.hbspt-form .hs-form fieldset.form-columns-1 .hs-input {
	width: 100%;
}

.hs-form-field > label {
	color: var(--wp--preset--color--black-cool);
	font-size: var(--wp--preset--font-size--small);
}

.hs-input {
	background-color: #fff;
	border: 1px solid var(--wp--preset--color--gray-medium-light);
	border-radius: var(--wp--preset--border-radius--x-small);
}

.hs-button {
	background-color: var(--wp--preset--color--accent);
	border: 0;
	border-radius: 9999px;
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	line-height: var(--wp--custom--line-height--small);
	padding: 11px 16px;
	width: auto;
}

.hs-button:focus-visible,
.hs-button:hover {
	background-color: var(--wp--preset--color--navy);
	box-shadow: var(--wp--preset--shadow--glow-blue);
	color: var(--wp--preset--color--white);
}

.hs-error-msgs {
	color: var(--ludi-color-error);
	font-size: var(--wp--preset--font-size--x-small);
	list-style-type: none;
	margin-block: var(--wp--preset--spacing--10) 0;
	padding-inline-start: 1em;
}

.hs-form-field:has(> .hs-error-msgs) .hs-input {
	border-color: var(--ludi-color-error);
}
*/

/* Page-specific
---------------------------------------- */

/* Home -- testimonials/stats band (Home page's own content, not a pattern) */

/* Containing block / stacking context for the absolute .ludi-bg-lines layer. */
.ludi-gradient-blue {
	isolation: isolate;
	position: relative;
}

/* Not the first of this group's 4 direct children -- reset the blockGap margin WP would otherwise
	 add (only .alignfull children are exempt), which absolute positioning adds to rather than discards. */
.ludi-gradient-blue .ludi-bg-lines {
	margin-block-start: 0;
	z-index: -1;
}

/* Breaks out of the parent's constrained contentSize AND tracks the stretch-on-scroll background's own box
	 (--ludi-stretch-left/-width), so the lines never exceed the stretching band's current edges. */
.ludi-gradient-blue > .ludi-bg-lines {
	left: var(--ludi-stretch-left, 0);
	margin-inline-start: 0 !important;
	max-width: none !important;
	width: var(--ludi-stretch-width, 100%);
}

/* Page glow -- the "No Title -- Lavender Glow" template (templates/no-title-glow.html) puts .ludi-page-glow on <main>: a
	 lavender glow pinned to the viewport bottom behind every section without its own background. A sticky last child of
	 <main> with bottom:0, it rides up with main's end at the footer; the -100vh margin cancels its height. */
main.ludi-page-glow::after {
	background: var(--wp--preset--gradient--radial-lavender-rise);
	bottom: 0;
	content: "";
	display: block;
	height: 100vh;
	margin-block-start: -100vh;
	pointer-events: none;
	position: sticky;
	z-index: -1;
}

/* Utilities
---------------------------------------- */

.full-height {
	height: 100%;
}

.overflow-hidden {
	overflow: hidden;
}

.position-fixed {
	position: fixed;
}

.position-relative {
	position: relative;
}

.no-underline {
	text-decoration: none;
}

.no-wrap {
	white-space: nowrap;
}

/* Trims text to cap-height / baseline so side-by-side text of different sizes top-aligns exactly; also automatic for
	 an eyebrow opening a column and the text opening the next column (mega-menu columns excluded). */
.ludi-trim-text,
.wp-block-columns:not(.ludi-menu-cols) > .wp-block-column:has(+ .wp-block-column) > .is-style-eyebrow:first-child,
.wp-block-columns:not(.ludi-menu-cols) > .wp-block-column:has(> .is-style-eyebrow:first-child) + .wp-block-column > :is(p, h1, h2, h3, h4, h5, h6):first-child {
	text-box: trim-both cap alphabetic;
}

/* No text-box support (Firefox): pull up by the approximate space above the caps, top edge only. */
@supports not (text-box: trim-both cap alphabetic) {
	.ludi-trim-text,
	.wp-block-columns:not(.ludi-menu-cols) > .wp-block-column:has(+ .wp-block-column) > .is-style-eyebrow:first-child,
	.wp-block-columns:not(.ludi-menu-cols) > .wp-block-column:has(> .is-style-eyebrow:first-child) + .wp-block-column > :is(p, h1, h2, h3, h4, h5, h6):first-child {
		margin-block-start: calc((1cap - 1lh) / 2);
	}
}

.z-index-negative {
	z-index: -99;
}

.z-index-positive {
	z-index: 99;
}

/* Responsive -- viewport breakpoints
---------------------------------------- */

@media (min-width: 600px) {

	/* Text */

	.vertical-text {
		transform: rotate(180deg);
		white-space: nowrap;
		writing-mode: vertical-rl;
	}

}

@media (min-width: 900px) {

	/* 900px is coupled across the Navigation block's mobileMenuBreakpoint, the sticky-header and
	 mega-menu blocks here, and assets/js/nav.js. Change one, change all. */

	/* Header */

	.scroll-reveal .site-header {
		position: sticky;
		top: 0;
		transition: transform var(--ludi-motion-slow) var(--ludi-motion-ease);
		z-index: 1000;
	}

	/* pointer-events off while retracting -- precaution against the header sweeping a stationary cursor and reopening
		 a dropdown mid-scroll. */
	.scroll-reveal body.scroll-down .site-header {
		pointer-events: none;
		transform: translateY(-100%);
	}

	.scroll-reveal body.scroll-up .site-header {
		transform: translateY(0);
	}

	/* Dome hangs off the label, not the item, so the item keeps position:static (see above); aria-expanded also
		 catches a click-opened panel once the mouse moves away, which Safari's :focus-within can miss. Desktop-only.
		 .site-header-scoped because the dome is a pill decoration and its bottom offset reads --ludi-nav-pad-block,
		 which only the header pill defines -- elsewhere (footer menus) it drew a stray tab at the label's top.
		 Top-level items only, via `__container > item`: a submenu row is not a pill and has nowhere to hang a dome.
		 The label path must stay `> * >` -- a descendant combinator let a hovered parent paint every label in its
		 open submenu, since those labels are all descendants of the same hovered li. */
	.site-header .wp-block-navigation__container > .wp-block-navigation-item:not(.ludi-nav-search) > * > .wp-block-navigation-item__label {
		position: relative;
	}

	/* A dome, not a dot -- height is half the width so the rounded top corners trace a true semicircle. bottom
		 reaches the pill's bottom edge (padding-block plus space-10 of label-to-row slack). Always present at
		 opacity 0 so the state rules below can fade it; Search's label is visually hidden, so it gets none. */
	.site-header .wp-block-navigation__container > .wp-block-navigation-item:not(.ludi-nav-search) > * > .wp-block-navigation-item__label::after {
		background-color: var(--wp--preset--color--accent);
		border-radius: 7px 7px 0 0;
		bottom: calc(-1 * var(--ludi-nav-pad-block) - var(--wp--preset--spacing--10));
		content: "";
		height: 7px;
		left: 50%;
		opacity: 0;
		pointer-events: none;
		position: absolute;
		transform: translateX(-50%);
		width: 14px;
	}

	@media (prefers-reduced-motion: no-preference) {
		.site-header .wp-block-navigation__container > .wp-block-navigation-item:not(.ludi-nav-search) > * > .wp-block-navigation-item__label::after {
			transition: opacity var(--ludi-motion-fast) var(--ludi-motion-ease);
		}
	}

	/* Ollie items carry a caret beside the label -- +6.64px centers on the label AND caret together, per the comp,
		 since the caret is a sibling of the label and not reachable by a plain 50%/translateX. Unconditional so the
		 dome doesn't slide while it fades. */
	.site-header .wp-block-navigation__container > .wp-block-ollie-mega-menu:not(.ludi-nav-search) > * > .wp-block-navigation-item__label::after {
		left: calc(50% + 6.64px);
	}

	.site-header .wp-block-navigation__container > .wp-block-navigation-item:hover > * > .wp-block-navigation-item__label::after,
	.site-header .wp-block-navigation__container > .wp-block-navigation-item:focus-within > * > .wp-block-navigation-item__label::after,
	.site-header .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > * > .wp-block-navigation-item__label::after,
	.site-header .wp-block-navigation__container > .wp-block-ollie-mega-menu:has([aria-expanded="true"]) > * > .wp-block-navigation-item__label::after {
		opacity: 1;
	}

	/* Dropdown panels come from Ollie Menu Designer; it owns open/close and ARIA, nav.js fills gaps like outside-click
		 close. */
	/* Backdrop behind an open dropdown, desktop only; layers stay in the DOM at opacity:0 so :has() below can
		 transition them. */

	body::before,
	body::after {
		content: "";
		inset: 0;
		opacity: 0;
		pointer-events: none;
		position: fixed;
	}

	/* Own layer, separate from the tint below -- mix-blend-mode isolates its element and breaks backdrop-filter on the
		 same one. */
	body::before {
		backdrop-filter: blur(6px);
		z-index: 500;
	}

	body::after {
		background-color: var(--wp--preset--color--gray-medium-light);
		mix-blend-mode: multiply;
		z-index: 501;
	}

	/* Not 0.7: opacity on a backdrop-filter element re-blends the blur with the sharp layer beneath, showing as a halo. */
	body:has(.wp-block-ollie-mega-menu__toggle[aria-expanded="true"])::before {
		opacity: 1;
	}

	body:has(.wp-block-ollie-mega-menu__toggle[aria-expanded="true"])::after {
		opacity: 0.3;
	}

	/* Four core-relative ancestors (item, nav, responsive container, dialog) step aside so the pill anchors the panel,
		 desktop-only since mobile needs the overlay's own position:fixed. */

	/* wp-block-ollie-mega-menu is on every Ollie item automatically, so this covers all five with no per-item class;
		 Stuff (core submenu) is unaffected. */
	.site-header .wp-block-navigation,
	.site-header .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation .wp-block-ollie-mega-menu {
		position: static;
	}

	/* Out-specifies core's own (0,3,0) rule; repeating :not(.is-menu-open) keeps the mobile overlay's position:fixed
		 intact. */
	.site-header .wp-block-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		position: static;
	}

	/* Drops space-10 below the pill's bottom edge; resolves against the pill for the wide panels + search, which keep
		 position:static. The two popovers re-anchor to their own trigger and add the pill padding back -- see below. */
	.site-header .wp-block-ollie-mega-menu__menu-container {
		top: calc(100% + var(--wp--preset--spacing--10));
	}

	/* Half the pill's width, flush right via justifyMenu; needs width:"content" not "custom" or view.js's inline width
		 wins. */
	.ludi-nav-search .wp-block-ollie-mega-menu__menu-container {
		width: 50%;
	}

	/* Resource Hub (promo panel) + Log in (popover) sit under their own trigger, not the pill. Re-relative the <li>
		 (the rule above statics every Ollie item so the wide panels anchor to the pill) and stretch it to the nav row
		 height. */
	.site-header .wp-block-navigation .wp-block-ollie-mega-menu.ludi-nav-item--resource-hub,
	.site-header .wp-block-navigation .wp-block-ollie-mega-menu.ludi-nav-item--login {
		align-self: stretch;
		position: relative;
	}

	/* Centred on the trigger; repeats .menu-justified-* to beat the plugin's rule. Adds the pill's padding-block
		 back so it lands level with the wide panels, whose static <li> resolves top:100% against the padded pill. */
	.ludi-nav-item--resource-hub .wp-block-ollie-mega-menu__menu-container.menu-justified-left,
	.ludi-nav-item--login .wp-block-ollie-mega-menu__menu-container.menu-justified-right {
		left: 50%;
		right: auto;
		top: calc(100% + var(--ludi-nav-pad-block) + var(--wp--preset--spacing--10));
		transform: translateX(-50%);
	}

	/* Shrink-to-fit would size against the narrow trigger <li>; needs width:"content" so view.js sets no inline width. */
	.ludi-nav-item--login .wp-block-ollie-mega-menu__menu-container {
		width: max-content;
	}

	.ludi-nav-item--support,
	.site-header .wp-block-navigation__container > .ludi-nav-item--support > .wp-block-navigation-item__content {
		color: var(--wp--preset--color--gray-medium);
		font-weight: 500;
	}

	/* Ollie only hides this for showOnHover items; hide it for all -- none of the comps show a close button on desktop
		 anyway. */

	.site-header .wp-block-ollie-mega-menu__menu-container .menu-container__close-button {
		display: none;
	}

	/* view.js sets an inline max-height/overflow-y with no attribute to opt out -- !important is the only way to beat
		 an inline style. */

	.ludi-nav-search .wp-block-ollie-mega-menu__menu-container {
		max-height: none !important;
		overflow-y: visible !important;
	}

}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
	body::before,
	body::after {
		transition: opacity var(--ludi-motion-slow) var(--ludi-motion-ease);
	}
}

@media (max-width: 1023px) {

	/* Footer -- 4 even link columns, Newsletter drops to its own full-width row. */
	.ludi-footer-menu {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.ludi-footer-newsletter {
		grid-column: 1 / -1;
		margin-inline-start: 0;
	}

}

/* No mobileMenuSlug set: that feature hides every sibling nav item, so core's own overlay carries Level 1 and
	 Ollie's CSS promotes an open panel to fullscreen Level 2 instead. */
@media (max-width: 899px) {

	/* Header pinned while the overlay is open, via :has() on the open container. */
	/* justify-content alone isn't enough -- the nav carries flex-grow:1 from selfStretch:fill, so the toggle would
		 still sit at the nav's own left edge. */
	.site-header .ludi-nav-bar > .wp-block-group {
		justify-content: space-between;
		width: 100%;
	}

	.site-header .ludi-nav-bar .wp-block-navigation {
		justify-content: flex-end;
	}

	.site-header:has(.wp-block-navigation__responsive-container.is-menu-open) {
		background-color: var(--wp--preset--color--blue-ludi-100);
		inset-inline: 0;
		position: fixed;
		top: var(--wp-admin--admin-bar--height, 0px);
		z-index: 100001;
	}

	/* Top moves to the pill's bottom edge; height comes from nav.js's --ludi-nav-header-height since it's
		 content-driven and CSS can't derive it. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--ludi-nav-header-height, 84px));
	}

	/* Core's own padding here resolves to nothing -- it references root-padding custom properties this theme never
		 defines, so the declaration is dropped. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) var(--wp--preset--spacing--30);
	}

	/* Comp puts the close X in the pill; core's own close button can't go there (clipped by the transformed, scrolling
		 overlay), so core's open button is restyled and wired to it in nav.js. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		display: none;
	}

	.site-header .wp-block-navigation:has(.is-menu-open) .wp-block-navigation__responsive-container-open svg {
		display: none;
	}

	.site-header .wp-block-navigation:has(.is-menu-open) .wp-block-navigation__responsive-container-open::before {
		background-color: currentColor;
		content: "";
		display: block;
		height: 20px;
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
		mask-repeat: no-repeat;
		mask-size: contain;
		width: 20px;
	}

	/* Percentage heights won't reach the pinned CTA row -- nothing in the chain has a definite height -- so it's flex;
		 margin/padding zeroed here is core's own close-button clearance. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
		flex-direction: column;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		display: flex;
		flex: 1;
		flex-direction: column;
		margin-block-start: 0;
		min-height: 0;
		padding-block-start: 0;
	}

	/* CTAs pinned via absolute placement -- sibling <li>s have no wrapper to make a row of, and column auto-margins
		 only move one item. */
	/* !important: beats core's generated layout-gap rule, which wins even at higher specificity. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: flex;
		flex: 1;
		flex-direction: column;
		gap: var(--wp--preset--spacing--60) !important;
		justify-content: flex-start;
		padding-block-end: 7rem;
		position: relative;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li {
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--xx-large);
		width: 100%;
	}

	/* Ollie's chevron points down (expand) by default; Level 1 items drill sideways into Level 2, so point it right
		 instead. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-ollie-mega-menu .wp-block-ollie-mega-menu__toggle-icon {
		transform: rotate(-90deg);
	}

	/* No arrows on Level 2's links -- desktop keeps them, this scopes to the mobile drill-down only. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .is-style-menu-links > li::after,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .is-style-menu-links ul > li::after {
		content: none;
	}

	/* Pinned CTAs keep the body font/small size -- the heading/xx-large rule above is for the plain link entries only. */
	/* Column flex here, so align-items is the horizontal axis: stretch so the <a> fills the pill width (not just its
		 text). */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid {
		align-items: stretch;
		border-radius: 9999px;
		bottom: 0;
		box-sizing: border-box;
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--small);
		justify-content: center;
		position: absolute;
		text-align: center;
		width: calc(50% - var(--wp--preset--spacing--10));
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid {
		inset-inline-start: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline {
		inset-inline-end: 0;
	}

	/* Core paints every overlay item background:transparent and inherits the nav's own text color, both !important, so
		 the pill needs both weights back to survive here. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid {
		background-color: var(--wp--preset--color--accent) !important;
		color: var(--wp--preset--color--white) !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline {
		border: 1.5px solid var(--wp--preset--color--navy);
		color: var(--wp--preset--color--navy);
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-ollie-mega-menu__submenu-toggle {
		align-items: center;
		bottom: 0;
		display: flex;
		height: auto;
		padding: 0;
		top: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline .wp-block-ollie-mega-menu__toggle-icon,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid .wp-block-ollie-mega-menu__toggle-icon {
		display: none;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline .wp-block-ollie-mega-menu__toggle,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid .wp-block-ollie-mega-menu__toggle {
		justify-content: center;
		text-align: center;
		width: 100%;
	}

	/* The dev-only "Stuff" submenu has no place in the designed mobile menu. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .wp-block-navigation-submenu {
		display: none;
	}

	/* Level 2's offsets resolve against the transformed overlay, not the viewport, which is why inset 0 lines it up
		 below the pill. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-ollie-mega-menu__menu-container {
		background-color: var(--wp--preset--color--blue-ludi-100);
		border-radius: 0;
		box-shadow: none;
		height: 100% !important;
		/* Resource Hub / Log in still carry view.js's desktop customWidth as an inline max-width, which was
			 pinning the popovers narrow on mobile since the plugin's width:100% !important has nothing to cap. */
		max-width: none !important;
		/* The plugin hardcodes overflow-y: scroll !important, so the gutter/thumb show even when the panel's
			 content is shorter than the overlay -- auto keeps Level 2 scrollable without a permanent scrollbar. */
		overflow-y: auto !important;
		/* padding-block-end clears the Back link, whose own inset-block-start is spacing-80 */
		padding: calc(var(--wp--preset--spacing--80) + 30px) var(--wp--preset--spacing--30) 7rem;
		/* Log in's trigger <li> is the pinned CTA pill, centred (text-align: center below) for its own button
			 label -- reset here so that doesn't inherit down into this panel's links too. */
		text-align: left;
		top: 0 !important;
	}

	/* Pinned CTAs stay above Level 2 (Ollie gives the panel z-index 100); search is Level 1 only, so it stays covered. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-outline,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .is-style-button-solid {
		z-index: 101;
	}

	/* No promo panel on mobile, and the columns become stacked sections. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-promo {
		display: none;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-panel,
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-cols {
		display: block;
	}

	/* The container already pads Level 2 (space-30 inline) -- the panel's own padding-inline (space-40 on promo
		 panels) was stacking on top of it, indenting text 20px past the back arrow. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-panel {
		padding-inline: 0;
	}

	/* Reset the inherited xx-large heading size (or the input + stretched button balloon), and drop the popover's
		 own padding so the field spans the overlay width like every other Level 1 item. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-panel--search {
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--small);
		padding: 0;
	}

	/* Reset explicitly -- Level 2's links otherwise inherit the heading font/xx-large size set on the Level 1 <li>
		 above them. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .is-style-menu-links > li > a {
		font-family: var(--wp--preset--font-family--body);
		font-size: var(--wp--preset--font-size--small);
		padding-block: var(--wp--preset--spacing--20);
	}

	/* No dangling rule under the last (or only) link in a column. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .is-style-menu-links > li:last-child > a {
		border-block-end: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-cols .is-style-eyebrow {
		border-block-end: 1px solid var(--wp--preset--color--gray-medium-translucent);
		padding-block-end: var(--wp--preset--spacing--20);
	}

	/* display:none doesn't remove the promo from the sibling chain, so its divider rule would otherwise still draw
		 here. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-cols {
		border-inline-start: 0;
		padding-inline-start: 0;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-menu-cols .wp-block-column + .wp-block-column {
		border-inline-start: 0;
		margin-block-start: var(--wp--preset--spacing--80);
		padding-inline-start: 0;
	}

	/* Close button doubles as "Back" here; Ollie hides it above its own hardcoded 600px, which would strand Level 2
		 between 600-899 without this. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .menu-container__close-button {
		backdrop-filter: none;
		background-color: transparent;
		color: var(--wp--preset--color--navy);
		display: flex;
		font-weight: 600;
		gap: 6px;
		inset-block-start: var(--wp--preset--spacing--80);
		inset-inline-start: var(--wp--preset--spacing--30);
		padding: 0;
		right: auto;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .menu-container__close-button svg {
		display: none;
	}

	/* FA "arrow-left"; the glyph's own tip sits at its viewBox edge, so with the button's padding:0 and flex-start
		 alignment, the tip lands exactly on the content column's left edge. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .menu-container__close-button::before {
		background-color: currentColor;
		content: "";
		display: block;
		height: 18px;
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288H480c17.7 0 32-14.3 32-32s-14.3-32-32-32H109.3L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z'/%3E%3C/svg%3E");
		mask-repeat: no-repeat;
		mask-size: contain;
		width: 18px;
	}

	/* Search stays inline at Level 1, not promoted to fullscreen; steps out while a content dropdown shows Level 2. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open:has(.wp-block-ollie-mega-menu__toggle[aria-expanded="true"]) .wp-block-navigation__container > .ludi-nav-search {
		display: none;
	}

	/* CTA row is 38px tall (measured, position:absolute; bottom:0) -- this clears it by space-30, rather than a bottom
		 guess independent of the CTAs' actual height. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > .ludi-nav-search {
		bottom: calc(38px + var(--wp--preset--spacing--30));
		inset-inline: 0;
		position: absolute;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-nav-search .wp-block-ollie-mega-menu__toggle {
		display: none;
	}

	/* max-width:none beats Ollie's .menu-width-content cap (--wp--style--global--content-size), so the panel fills the
		 overlay like every other Level 1 item rather than stopping at the content width. */
	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-nav-search .wp-block-ollie-mega-menu__menu-container {
		height: auto !important;
		max-width: none !important;
		opacity: 1;
		overflow: visible !important;
		padding: 0;
		position: static !important;
		visibility: visible;
		width: 100% !important;
	}

	.site-header .wp-block-navigation__responsive-container.is-menu-open .ludi-nav-search .menu-container__close-button {
		display: none;
	}

	/* Collapsed bar can overflow with more than two pills (Events' extra Reset + cross-link), so let it wrap;
		 the link's own right-margin push then drops it to its own row below. */
	.ludi-filter-bar {
		flex-wrap: wrap;
	}

	/* "Filter by" onto its own row, pills wrapping below it. Targets the bar's first-child <p> structurally,
		 not a bare > p, since Events' .ludi-event-scope-link is also a direct <p> child. */
	.ludi-filter-bar > p:first-child {
		flex-basis: 100%;
		margin-block-end: var(--wp--preset--spacing--10);
	}

	/* The overlay has a backdrop gap on 3 sides, so without this a scroll/wheel gesture
		 over that gap would move the page behind instead of the overlay's own content. */
	html.ludi-filter-scroll-lock {
		overflow: hidden;
	}

	/* Merged fullscreen filter overlay -- query-filter.js turns the bar into the panel itself. Header/footer are
		 separate, fixed body-level elements, since the Router's morph discards non-Preact children inside the bar. */
	.ludi-filter-bar.is-mobile-open {
		background-color: var(--wp--preset--color--base);
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
		bottom: 0;
		display: block;
		inset-inline: 0;
		margin-block-start: var(--wp--preset--spacing--40);
		margin-inline: var(--wp--preset--spacing--40);
		overflow-y: auto;
		/* !important -- the pattern's inline padding (the desktop pill's spacing) otherwise wins, since an
			 inline style beats any stylesheet declaration on the same box side. */
		padding-block: calc(var(--ludi-filter-header-h, 0px) + var(--wp--preset--spacing--10)) calc(var(--ludi-filter-footer-h, 0px) + var(--wp--preset--spacing--30)) !important;
		padding-inline: var(--wp--preset--spacing--40) !important;
		position: fixed;
		text-align: left;
		top: var(--wp-admin--admin-bar--height, 0px);
		/* !important -- the Events archive's width:100% override (below) isn't media-query-scoped, and a
			 percentage width on a fixed-position box resolves against the viewport, pushing the edge past the device. */
		width: auto !important;
		z-index: 100001;
	}

	/* Without this, the results grid jumps up when the bar goes position:fixed (removed from flow) and back down
		 on close. padding-block-start is additive -- min-height would sit below real content height and never engage. */
	.wp-block-query:has(> .ludi-filter-bar.is-mobile-open) {
		padding-block-start: var(--ludi-filter-bar-h, 0px);
	}

	/* Settle-into-place entrance/exit -- position:static/fixed can't be smoothly interpolated, so only opacity/
		 transform animate; query-filter.js's is-entering/is-closing supply the off-rest values directly. */
	@media (prefers-reduced-motion: no-preference) {
		.ludi-filter-bar.is-mobile-open {
			opacity: 1;
			transform: translateY(0);
			transition: opacity var(--ludi-motion-fast) var(--ludi-motion-ease), transform var(--ludi-motion-fast) var(--ludi-motion-ease);
		}

		/* Slides up on open; closing only fades (no slide back down) -- so is-closing
			 sets opacity alone, leaving transform at its is-mobile-open resting value. */
		.ludi-filter-bar.is-mobile-open.is-entering {
			opacity: 0;
			transform: translateY(var(--ludi-motion-distance));
			transition: none;
		}

		.ludi-filter-bar.is-mobile-open.is-closing {
			opacity: 0;
		}

		/* Softens the collapsed bar's reappearance once closing finishes -- query-filter.js's finishClose() adds
			 is-reappearing to force opacity:0 through the layout swap, then removes it after a forced reflow. */
		.ludi-filter-bar {
			transition: opacity var(--ludi-motion-fast) var(--ludi-motion-ease);
		}

		.ludi-filter-bar.is-reappearing {
			opacity: 0;
			transition: none;
		}
	}

	/* Reset stays in its native position (right after the pills, never relocated into the footer) rather than
		 joining the Apply bar visually -- set apart the same way a second taxonomy pill would be. */
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter-reset {
		border-block-start: 1px solid var(--wp--preset--color--gray-medium-translucent);
		display: block;
		margin-block-start: var(--wp--preset--spacing--30);
		padding-block-start: var(--wp--preset--spacing--30);
	}

	/* Independent of the bar's own box -- appended to body, so it's immune to containing-block quirks that
		 could otherwise leave a gap around the overlay visible. */
	.ludi-filter-backdrop {
		background-color: rgba(0, 0, 0, 0.4);
		display: none;
		inset: 0;
		position: fixed;
		z-index: 100000;
	}

	.ludi-filter-chrome.is-visible .ludi-filter-backdrop {
		display: block;
	}

	/* allow-discrete lets the display:none<->block flip defer to the opacity transition instead of cutting it
		 off -- same technique as core/tabs' panel cross-fade. */
	@media (prefers-reduced-motion: no-preference) {
		.ludi-filter-backdrop {
			opacity: 0;
			transition: display var(--ludi-motion-fast) allow-discrete, opacity var(--ludi-motion-fast) var(--ludi-motion-ease);
		}

		.ludi-filter-chrome.is-visible .ludi-filter-backdrop {
			opacity: 1;
		}

		@starting-style {
			.ludi-filter-chrome.is-visible .ludi-filter-backdrop {
				opacity: 0;
			}
		}
	}

	/* The original "Filter by" label is superseded by the JS-built header's "FILTERS" title floating above it. */
	.ludi-filter-bar.is-mobile-open > p:first-child {
		display: none;
	}

	/* Not a filter -- a page-level Upcoming/Past view switch -- so it has no place in
		 the merged filter list; stays visible in the collapsed bar underneath instead. */
	.ludi-filter-bar.is-mobile-open .ludi-event-scope-link {
		display: none;
	}

	/* A fixed sibling of the bar, not a child -- aligned to its top edge so it reads as the bar's own header
		 despite not being one in the DOM. */
	.ludi-filter-header {
		align-items: center;
		background-color: var(--wp--preset--color--base);
		border-top-left-radius: var(--wp--preset--border-radius--x-large);
		border-top-right-radius: var(--wp--preset--border-radius--x-large);
		display: none;
		inset-inline: var(--wp--preset--spacing--40);
		justify-content: space-between;
		padding-block: var(--wp--preset--spacing--20);
		padding-inline: var(--wp--preset--spacing--40);
		position: fixed;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--wp--preset--spacing--40));
		z-index: 100002;
	}

	.ludi-filter-chrome.is-visible .ludi-filter-header {
		display: flex;
	}

	.ludi-filter-title {
		color: var(--wp--preset--color--black-cool);
		font-size: var(--wp--preset--font-size--x-small);
		font-weight: 600;
		margin: 0;
		text-transform: uppercase;
	}

	.ludi-filter-close {
		background: none;
		border: 0;
		height: 20px;
		padding: 0;
		width: 20px;
	}

	.ludi-filter-close::before {
		background-color: var(--wp--preset--color--black-cool);
		content: "";
		display: block;
		height: 20px;
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath d='M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z'/%3E%3C/svg%3E");
		mask-repeat: no-repeat;
		mask-size: contain;
		width: 20px;
	}

	.ludi-filter-bar.is-mobile-open .wp-block-group {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--30);
		width: 100%;
	}

	/* Each taxonomy/post-type block's own wrapper -- without this it shrinks to its
		 content's width instead of filling the row, despite the parent's stretch/100%. */
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter {
		width: 100%;
	}

	/* Un-hides each pill's own showLabel:false label as the merged view's section
		 heading -- reuses the block's own text, core's screen-reader-text is !important. */
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter-taxonomy__label,
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter-post-type__label {
		clip: auto !important;
		clip-path: none !important;
		color: var(--wp--preset--color--gray-medium);
		display: block;
		font-size: var(--wp--preset--font-size--xxx-small);
		height: auto !important;
		margin: 0 0 var(--wp--preset--spacing--10);
		overflow: visible !important;
		position: static !important;
		text-transform: uppercase;
		white-space: normal !important;
		width: auto !important;
	}

	.ludi-filter-bar.is-mobile-open .wp-block-query-filter + .wp-block-query-filter {
		border-block-start: 1px solid var(--wp--preset--color--gray-medium-translucent);
		margin-block-start: var(--wp--preset--spacing--30);
		padding-block-start: var(--wp--preset--spacing--30);
	}

	/* No per-section collapse once merged -- every group reads as an always-visible list. */
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter__checkbox-dropdown-summary {
		display: none;
	}

	/* Strips the desktop pill shell (from both the plugin's CSS and this theme's base rule) so a merged
		 section reads as plain flat content, not a bordered box. */
	.ludi-filter-bar.is-mobile-open .wp-block-query-filter__checkbox-dropdown {
		background: none;
		border: 0;
		border-radius: 0;
	}

	.ludi-filter-bar.is-mobile-open .wp-block-query-filter__checkbox-group {
		background-color: transparent;
		border: 0;
		box-shadow: none;
		max-height: none;
		max-width: none;
		overflow-y: visible;
		padding: 0;
		position: static;
		width: 100%;
	}

	/* A fixed sibling of the bar, not a child -- aligned to its bottom edge. Reset stays in the bar's own
		 scrolling content instead of joining here, so this only ever holds Apply. */
	.ludi-filter-footer {
		align-items: center;
		background-color: var(--wp--preset--color--accent);
		bottom: 0;
		display: none;
		inset-inline: var(--wp--preset--spacing--40);
		padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
		position: fixed;
		z-index: 100002;
	}

	.ludi-filter-chrome.is-visible .ludi-filter-footer {
		display: flex;
	}

	/* Both always position:fixed (only display toggles), so allow-discrete + @starting-style is sufficient --
		 no JS assist needed. Slides up on open, same as the bar's is-entering, so all three move as one unit. */
	@media (prefers-reduced-motion: no-preference) {
		.ludi-filter-header,
		.ludi-filter-footer {
			opacity: 0;
			transition: display var(--ludi-motion-fast) allow-discrete, opacity var(--ludi-motion-fast) var(--ludi-motion-ease), transform var(--ludi-motion-fast) var(--ludi-motion-ease);
		}

		.ludi-filter-chrome.is-visible .ludi-filter-header,
		.ludi-filter-chrome.is-visible .ludi-filter-footer {
			opacity: 1;
			transform: translateY(0);
		}

		@starting-style {
			.ludi-filter-chrome.is-visible .ludi-filter-header,
			.ludi-filter-chrome.is-visible .ludi-filter-footer {
				opacity: 0;
				transform: translateY(var(--ludi-motion-distance));
			}
		}
	}

	/* Pill treatment matches the theme's is-style-button-outline convention rather than reading as plain text
		 on the blue bar. margin-inline-start:auto keeps it pinned right even as the footer's only child. */
	.ludi-filter-apply {
		align-items: center;
		background: none;
		border: 1.5px solid var(--wp--preset--color--white);
		border-radius: 9999px;
		color: var(--wp--preset--color--white);
		display: flex;
		font-weight: 600;
		gap: var(--wp--preset--spacing--10);
		margin-inline-start: auto;
		padding: 9.5px 14.5px;
	}

	/* Fixed width/height (not padding-driven) so it's a true circle, not an oval that
		 stretches with digit count -- realistic max is 2 (two pills), so no cramping. */
	.ludi-filter-apply-count:not([hidden]) {
		align-items: center;
		background-color: var(--wp--preset--color--blue-ludi-200);
		border-radius: 50%;
		color: var(--wp--preset--color--black-cool);
		display: inline-flex;
		font-size: var(--wp--preset--font-size--xxx-small);
		height: 1.64em;
		justify-content: center;
		width: 1.64em;
	}

}

/* Core's own columns-stacking breakpoint. */
@media (max-width: 781px) {

	/* Footer -- 2-column grid: Solutions + Learn stack in column 1, Company + Current Customers in column 2,
		 Newsletter spans both below. Fixed child count, so explicit :nth-child placement (cf. persona cards). */
	.ludi-footer-menu {
		column-gap: var(--wp--preset--spacing--40);
		grid-template-columns: 1fr 1fr;
	}

	.ludi-footer-menu > .ludi-footer-menu__col:nth-child(1) { grid-column: 1; grid-row: 1; }
	.ludi-footer-menu > .ludi-footer-menu__col:nth-child(2) { grid-column: 1; grid-row: 2; }
	.ludi-footer-menu > .ludi-footer-menu__col:nth-child(3) { grid-column: 2; grid-row: 1; }
	.ludi-footer-menu > .ludi-footer-menu__col:nth-child(4) { grid-column: 2; grid-row: 2; }
	.ludi-footer-menu > .ludi-footer-newsletter { grid-column: 1 / -1; grid-row: 3; }

	.ludi-footer-badges {
		flex-direction: column;
	}

	/* Social + app badges sit above the copyright/legal line on mobile. */
	.ludi-footer-bottom {
		align-items: flex-start;
		flex-direction: column-reverse;
	}

	.ludi-footer-meta {
		align-items: flex-start;
		flex-direction: column;
		row-gap: var(--wp--preset--spacing--40);
	}

	/* Columns */

	.wp-block-columns.is-style-column-reverse {
		flex-direction: column-reverse;
	}

	/* Stats Row -- the intro column needs more room above the stacked cards than the shared spacing-20 gap gives. */
	.ludi-stats-row .wp-block-columns > .wp-block-column:first-child {
		margin-block-end: var(--wp--preset--spacing--40);
	}

}

@media (max-width: 599px) {
	.is-style-callout-right,
	.is-style-callout-left {
		float: none;
		margin-inline: 0;
		width: auto;
	}

	/* Any future core/group using the Grid layout type also stacks here -- unlike
		 core/columns, WP core's Grid layout has no built-in responsive collapse of its own. */
	.wp-block-group.is-layout-grid {
		grid-template-columns: 1fr;
	}

}

/* Keyframes
---------------------------------------- */

@keyframes ludi-ticker-scroll {
	to {
		transform: translateX(calc(-1 * var(--ludi-ticker-shift, 50%)));
	}
}
