/*
Theme Name: Action Long Island
Theme URI: https://actionli.org
Author: Mithril Cloud
Author URI: https://mithril.cloud
Description: Custom block theme for Action Long Island (actionli.org).
Version: 0.9.11
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: action-long-island
*/

/* Display type is condensed (Archivo width axis) to match the brand's
   narrow, tall lettering. font-stretch maps to the variable wdth axis. */
:where(h1, h2, h3, h4, h5, h6, .wp-block-heading, .wp-block-site-title) {
	font-stretch: 75%;
}
:where(.has-xx-large-font-size, .has-x-large-font-size) {
	font-stretch: 64%;
}

/* Thin line icons used in the issues + how-we-work sections. */
.ali-icon {
	display: block;
	margin-bottom: 0.6rem;
}

/* Card / stat rows use CSS Grid instead of wp:columns flex. WordPress's
   column rules (with !important) collapse these to a single column at
   common widths and don't space images evenly; grid wraps predictably,
   keeps even gaps, and lets the images fill each cell. */
.ali-stats,
.ali-issues-cards,
.ali-howwework-cards,
.ali-news-cards,
.ali-split {
	display: grid !important;
	align-items: start;
}
.ali-stats {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1.5rem 2rem;
}
.ali-issues-cards {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem 1.5rem;
}
.ali-howwework-cards {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 2rem 2.5rem;
}
/* Sponsorship-level cards. The solid swatch beside each name matches the tile
   color the same tier gets on the spinning billboard above. --tier-accent is
   set per level by the .ali-tier--* modifiers below. */
.ali-tiers {
	gap: 1.25rem 1.5rem !important;
}
.ali-tier {
	border: 1px solid var(--wp--preset--color--border);
	border-top: 4px solid var(--tier-accent, var(--wp--preset--color--border));
	border-radius: 10px;
	background: var(--wp--preset--color--surface);
	padding: 1.1rem 1.15rem 1.2rem;
}
.ali-tier__name {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--secondary);
}
.ali-tier__name::before {
	content: "";
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 3px;
	background: var(--tier-accent, var(--wp--preset--color--border));
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
	flex: 0 0 auto;
}
.ali-tier__amount {
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.ali-tier--friend {
	--tier-accent: rgb(90, 143, 67);
}
.ali-tier--bronze {
	--tier-accent: rgb(176, 107, 44);
}
.ali-tier--silver {
	--tier-accent: rgb(139, 148, 156);
}
.ali-tier--gold {
	--tier-accent: rgb(189, 154, 31);
}
.ali-tier--platinum {
	--tier-accent: rgb(125, 147, 166);
}
.ali-tier--diamond {
	--tier-accent: rgb(63, 169, 207);
}
.ali-news-cards {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2.5rem;
}
/* About row: text column beside a slightly larger image. Kept wide enough that
   the three Connect/Focus/Move cards below the rotating text fit on one line. */
.ali-split {
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	gap: 2.5rem;
	align-items: center;
}
@media (max-width: 781px) {
	.ali-split {
		grid-template-columns: 1fr;
	}
}

/* Hero: headline beside the Long Island photo-map. Text column a touch
   narrower than the image so the island reads as the focal point. */
.ali-hero {
	display: grid !important;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 2.5rem;
	align-items: center;
}
.ali-hero > .wp-block-column {
	flex-basis: auto;
	margin: 0;
}
.ali-hero img {
	width: 100%;
	height: auto;
}
@media (max-width: 781px) {
	.ali-hero {
		grid-template-columns: 1fr;
	}
}

/* Grid cells: drop the flex-basis WordPress forces on columns, and make
   the card images fill the full width of their cell. */
.ali-stats > .wp-block-column,
.ali-issues-cards > .wp-block-column,
.ali-howwework-cards > .wp-block-column,
.ali-news-cards > .wp-block-column,
.ali-feature__items > .wp-block-column,
.ali-split > .wp-block-column {
	flex-basis: auto;
	margin: 0;
}
.ali-issues-cards img,
.ali-news-cards img,
.ali-split img {
	width: 100%;
}

/* Card titles: wrap within the cell as a last resort (never overflow into
   the neighbouring card), but don't hyphenate or break unless forced. */
.ali-issues-cards h3,
.ali-news-cards h3 {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: none;
}

/* Keep intro paragraphs to a comfortable reading measure even when their
   section spans the full wide width. */
.ali-measure {
	max-width: 46rem;
}

/* "Learn more / Read more" inline arrow links. */
.ali-cardlink {
	display: inline-block;
	margin-top: 0.25rem;
}

.ali-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border: 0;
}
.ali-logo:hover,
.ali-logo:focus {
	text-decoration: none;
	opacity: 0.85;
}
.ali-logo svg {
	overflow: visible;
}

/* ---- Content rotators -----------------------------------------------------
   Three areas on the front page auto-alternate between content sets.
   Progressive enhancement: without JS the panels simply stack (all visible).
   rotator.js adds .ali-rotator--ready, which stacks the panels in one cell
   and cross-fades between them. */

/* No-JS / pre-enhancement fallback: panels stack with a gap. Scoped to
   :not(--ready) so it never adds margin once panels share one grid cell
   (otherwise it would push later panels down inside the shared cell). */
.ali-rotator:not(.ali-rotator--ready) .ali-rotator__viewport > .ali-rotator__panel + .ali-rotator__panel {
	margin-top: 3rem;
}

/* Once enhanced, all panels share a single CSS Grid cell (grid-area 1/1).
   The cell auto-sizes to the TALLEST panel, so the box never grows/shrinks
   when cross-fading, and every panel's content starts at the cell's top edge
   — so the first line of text is on the same line across all sets. No absolute
   positioning and no JS height management needed. */
.ali-rotator--ready .ali-rotator__viewport {
	display: grid;
}
.ali-rotator--ready .ali-rotator__panel {
	grid-area: 1 / 1;
	margin-top: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.ali-rotator--ready .ali-rotator__panel.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.5s ease;
}
.ali-rotator--ready .ali-rotator__panel > :first-child {
	margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
	.ali-rotator--ready .ali-rotator__viewport,
	.ali-rotator--ready .ali-rotator__panel {
		transition: none;
	}
}

/* Dot controls. */
.ali-rotator__dots {
	display: flex;
	gap: 0.6rem;
	justify-content: center;
	margin-top: 2rem;
}
.ali-rotator__dot {
	width: 11px;
	height: 11px;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--primary-dark);
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.ali-rotator__dot[aria-selected="true"] {
	background: var(--wp--preset--color--primary-dark);
}
.ali-rotator__dot:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
}

/* ---- Feature row: heading column beside an items column ------------------- */
.ali-feature {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 2.15fr);
	gap: 2.5rem;
	align-items: start;
}
.ali-feature__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
}
.ali-feature__items img {
	width: 100%;
}
@media (max-width: 781px) {
	.ali-feature {
		grid-template-columns: 1fr;
	}
}

/* ---- Vertical timeline (pattern kit) --------------------------------------
   A single vertical rail with era markers (large filled dots) and milestone
   markers (small hollow dots). Used on the Our History page; reusable anywhere
   a chronology needs a strong visual spine. Markers are centred on the rail so
   the layout stays robust at any width (no fragile left/right alternation). */
.ali-timeline {
	position: relative;
	margin-top: 2.5rem;
	padding-left: 2.5rem;
}
.ali-timeline::before {
	content: "";
	position: absolute;
	left: calc(0.5rem - 1px);
	top: 0.5rem;
	bottom: 0.5rem;
	width: 2px;
	background: var(--wp--preset--color--border);
}
.ali-timeline__era {
	position: relative;
	margin: 2.75rem 0 1.25rem;
	font-stretch: 64%;
	line-height: 1;
}
.ali-timeline__era:first-child {
	margin-top: 0;
}
.ali-timeline__era::before {
	content: "";
	position: absolute;
	left: -2rem;
	top: 0.5em;
	transform: translate(-50%, -50%);
	width: 15px;
	height: 15px;
	border-radius: 50%;
	/* Navy era markers contrast with the green milestone dots below — the
	   brand's two accent colours working together on the timeline spine. */
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
}
.ali-timeline__item {
	position: relative;
	padding-bottom: 1.5rem;
}
.ali-timeline__item:last-child {
	padding-bottom: 0;
}
.ali-timeline__item::before {
	content: "";
	position: absolute;
	left: -2rem;
	top: 0.45rem;
	transform: translateX(-50%);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--primary-dark);
}
.ali-timeline__item h3 {
	margin: 0 0 0.2rem;
}
.ali-timeline__item p {
	margin: 0;
}
.ali-timeline__year {
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--secondary);
}

/* ---- Interactive horizontal timeline (Our History) ------------------------
   Progressive enhancement: the authored markup is a plain vertical <ol> of
   dated events. timeline.js hides that list and builds a horizontally-scrolling,
   zoomable track. Green = standard milestones, navy = headline milestones, so
   the brand duotone carries the page. */

/* No-JS / pre-enhancement fallback: a readable vertical list. */
.ali-timeline-h__list {
	margin: 2.5rem 0 0;
	padding-left: 1.1rem;
}
.ali-timeline-h__list > li + li {
	margin-top: 1.5rem;
}
.ali-timeline-h__list .ali-timeline-h__title {
	margin: 0 0 0.25rem;
	font-size: 1.05rem;
}
.ali-timeline-h__list .ali-timeline-h__blurb {
	margin: 0;
	color: var(--wp--preset--color--muted);
}
/* Once enhanced, the fallback list is removed from view (kept for AT). */
.ali-timeline-h__list--enhanced {
	display: none;
}

/* Timeline section: a slow-drifting collage of Long Island photography sits
   behind the content as a thematic backdrop. A light scrim over it keeps the
   heading, intro, and cards legible. (Interim treatment — to be replaced by a
   high-res video collage once footage is available.) */
.ali-timeline-section {
	position: relative;
	overflow: hidden;
}
.ali-timeline-section > :not(.ali-timeline-collage) {
	position: relative;
	z-index: 1;
}
.ali-timeline-collage {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
/* Light scrim: warm off-white over the photos so dark text stays readable. */
.ali-timeline-collage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--wp--preset--color--base);
	opacity: 0.86;
}
.ali-timeline-collage__track {
	display: flex;
	height: 100%;
	width: max-content;
	will-change: transform;
	animation: ali-collage-drift 90s linear infinite;
}
.ali-timeline-collage__track img {
	height: 100%;
	width: auto;
	flex: 0 0 auto;
	object-fit: cover;
	filter: grayscale(0.2) saturate(0.9);
}
@keyframes ali-collage-drift {
	from {
		transform: translateX(0);
	}
	to {
		/* exactly one of the two identical halves — seamless wrap */
		transform: translateX(-50%);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ali-timeline-collage__track {
		animation: none;
	}
}

/* Controls bar. */
.ali-timeline-h__controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 2rem;
}
.ali-timeline-h__hint {
	margin: 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}
.ali-timeline-h__nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.ali-timeline-h__navbtn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1.5px solid var(--wp--preset--color--primary-dark);
	background: transparent;
	color: var(--wp--preset--color--primary-dark);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ali-timeline-h__navbtn:hover:not(:disabled),
.ali-timeline-h__navbtn:focus-visible:not(:disabled) {
	background: var(--wp--preset--color--primary-dark);
	color: var(--wp--preset--color--surface);
}
.ali-timeline-h__navbtn:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
.ali-timeline-h__navbtn:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Scrolling viewport + absolutely-positioned track. */
.ali-timeline-h__viewport {
	position: relative;
	overflow-x: auto;
	overflow-y: hidden;
	margin-top: 1.25rem;
	padding-bottom: 0.5rem;
	cursor: grab;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	border-top: 1px solid var(--wp--preset--color--border);
	border-bottom: 1px solid var(--wp--preset--color--border);
	overscroll-behavior-x: contain;
}
.ali-timeline-h__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
}
.ali-timeline-h__viewport:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: -2px;
}
/* The track is a left-to-right flex row of milestone cards with era dividers
   interleaved. A single rail line runs behind the markers. */
.ali-timeline-h__track {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	padding: 24px 24px 36px;
	min-height: clamp(360px, 46vh, 460px);
	width: max-content;
}
.ali-timeline-h__rail {
	position: absolute;
	left: 0;
	right: 0;
	top: 78px;
	height: 4px;
	border-radius: 3px;
	background: linear-gradient(
		90deg,
		var(--wp--preset--color--secondary),
		var(--wp--preset--color--primary)
	);
}

/* Era dividers: a dashed vertical line with a decade label, dropped between
   groups in the sequence. */
.ali-timeline-h__era-divider {
	position: relative;
	flex: 0 0 auto;
	align-self: stretch;
	display: flex;
	padding: 8px 0.4rem 0 1rem;
	border-left: 2px dashed var(--wp--preset--color--border);
}
.ali-timeline-h__era-divider span {
	font-stretch: 64%;
	font-size: 1.2rem;
	font-weight: 800;
	line-height: 1.1;
	color: var(--wp--preset--color--secondary);
	white-space: nowrap;
}

/* Milestone cards: a marker dot sitting on the rail, a short stem, and the
   card body below. Significance tier drives size/emphasis only — nothing is
   hidden. Dot centre and rail centre are both at 80px from the track's inner
   top (track padding-top 24 + node-relative dot offset). */
.ali-timeline-h__node {
	position: relative;
	flex: 0 0 auto;
	width: 230px;
	padding: 112px 0 0;
	margin: 0;
	border: 0;
	background: none;
	text-align: center;
	cursor: pointer;
	scroll-snap-align: start;
}
.ali-timeline-h__node--tier1 {
	width: 270px;
}
.ali-timeline-h__node--tier3 {
	width: 200px;
}
.ali-timeline-h__dot {
	position: absolute;
	top: 48px;
	left: 50%;
	transform: translateX(-50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	border: 2px solid var(--wp--preset--color--base);
	box-shadow: 0 0 0 2px var(--wp--preset--color--primary);
	transition: transform 0.15s ease;
	z-index: 2;
}
.ali-timeline-h__node--tier1 .ali-timeline-h__dot {
	top: 45px;
	width: 22px;
	height: 22px;
	background: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary);
}
/* Context markers (the wider Long Island story) read as quieter, hollow
   outline dots so the solid ALI markers stay the visual through-line. */
.ali-timeline-h__node--context .ali-timeline-h__dot {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--muted);
	box-shadow: 0 0 0 2px var(--wp--preset--color--muted);
}
.ali-timeline-h__node--context.ali-timeline-h__node--tier1 .ali-timeline-h__dot {
	background: var(--wp--preset--color--surface);
	box-shadow: 0 0 0 2px var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
}
.ali-timeline-h__node:hover .ali-timeline-h__dot,
.ali-timeline-h__node:focus-visible .ali-timeline-h__dot {
	transform: translateX(-50%) scale(1.25);
}
.ali-timeline-h__node:focus-visible {
	outline: none;
}
.ali-timeline-h__node:focus-visible .ali-timeline-h__card {
	outline: 2px solid var(--wp--preset--color--primary-dark);
	outline-offset: 2px;
}
/* Short connector from the rail down to the card top. */
.ali-timeline-h__stem {
	position: absolute;
	top: 56px;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	height: 56px;
	background: var(--wp--preset--color--primary);
	z-index: 1;
}
.ali-timeline-h__node--tier1 .ali-timeline-h__stem {
	background: var(--wp--preset--color--secondary);
}
.ali-timeline-h__node--context .ali-timeline-h__stem {
	background: var(--wp--preset--color--muted);
	opacity: 0.6;
}
.ali-timeline-h__card {
	display: block;
	height: 100%;
	text-align: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	padding: 0.8rem 0.9rem;
	box-shadow: 0 4px 14px rgba(19, 41, 75, 0.06);
}
.ali-timeline-h__node--tier1 .ali-timeline-h__card {
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 6px 20px rgba(19, 41, 75, 0.12);
}
.ali-timeline-h__node--context .ali-timeline-h__card {
	border-style: dashed;
}
.ali-timeline-h__year {
	display: block;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 0.2rem;
}
.ali-timeline-h__node-title {
	display: block;
	font-stretch: 75%;
	font-weight: 700;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
}
.ali-timeline-h__node--tier1 .ali-timeline-h__node-title {
	font-size: 1.1rem;
}
.ali-timeline-h__node-blurb {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--wp--preset--color--muted);
}

/* Detail modal. */
body.ali-modal-open {
	overflow: hidden;
}
.ali-timeline-h__modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}
.ali-timeline-h__modal[hidden] {
	display: none;
}
.ali-timeline-h__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(19, 41, 75, 0.55);
}
.ali-timeline-h__dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 85vh;
	overflow: auto;
	background: var(--wp--preset--color--surface);
	border-radius: 12px;
	padding: 2rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.ali-timeline-h__close {
	position: absolute;
	top: 0.5rem;
	right: 0.7rem;
	border: 0;
	background: none;
	font-size: 1.7rem;
	line-height: 1;
	color: var(--wp--preset--color--muted);
	cursor: pointer;
}
.ali-timeline-h__close:hover {
	color: var(--wp--preset--color--contrast);
}
.ali-timeline-h__modal-kind {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
}
.ali-timeline-h__modal-kind--ali {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--surface);
}
.ali-timeline-h__modal-kind--context {
	background: transparent;
	color: var(--wp--preset--color--muted);
	border: 1px solid var(--wp--preset--color--muted);
}
.ali-timeline-h__modal-year {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
}
.ali-timeline-h__modal-title {
	margin: 0 0 0.75rem;
}
.ali-timeline-h__modal-outcome {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	border-left: 3px solid var(--wp--preset--color--primary);
	background: rgba(19, 41, 75, 0.05);
	border-radius: 0 4px 4px 0;
	font-size: 0.95rem;
}
.ali-timeline-h__modal-outcome span {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 0.1rem;
}
@media (prefers-reduced-motion: reduce) {
	.ali-timeline-h__viewport {
		scroll-behavior: auto;
	}
	.ali-timeline-h__dot {
		transition: none;
	}
}

/* ---- "How we organize" sub-items under the About heading ------------------ */
.ali-about-items {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem 1.75rem;
	margin-top: 1.75rem;
}
@media (max-width: 600px) {
	.ali-about-items {
		grid-template-columns: 1fr;
	}
}

/* ---- Past-sponsor / supporter roster (Sponsors page) ---------------------- */
.ali-sponsor-roster {
	list-style: none;
	margin: var(--wp--preset--spacing--40) 0 0;
	padding: 0;
	columns: 3;
	column-gap: 2.5rem;
}
@media (max-width: 781px) {
	.ali-sponsor-roster {
		columns: 2;
	}
}
@media (max-width: 480px) {
	.ali-sponsor-roster {
		columns: 1;
	}
}
.ali-sponsor-roster li {
	break-inside: avoid;
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast);
}

/* ---- Sponsors hero image placeholder ------------------------------------- */
.ali-hero-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	aspect-ratio: 5 / 4;
	border: 1px dashed var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--muted);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
}

/* ---- Spinning sponsor "dreidel" (JS-enhanced roster) --------------------- */
/* A vertical-axis 3D prism: each face carries the next 9 names and the whole
   object rotates through every face. Falls back to the static .ali-sponsor-roster
   list when JS is off, there are too few names, or prefers-reduced-motion. */
.ali-billboard {
	margin-top: var(--wp--preset--spacing--40);
}
.ali-billboard--live .ali-billboard__stage {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto 1.75rem;
	/* The stage is the masking "window": perspective lives here and overflow
	   clips the faces as they swing, so the cube can't bleed over the heading
	   or out into the margins. JS also sets a perspective tuned to the radius. */
	perspective: 1200px;
	overflow: hidden;
	border-radius: 10px;
}
.ali-billboard__drum {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	/* JS sets transform: translateZ(-radius) rotateY(angle) — the pull-back
	   keeps the front face at the window plane so it isn't magnified. */
	transform: rotateY(0deg);
	transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.2, 1);
}
.ali-billboard__face {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1 / 1; /* a square "Rubik's" face */
	/* JS sets transform: rotateY(...) translateZ(...) about the stage centre. */
	transform-origin: 50% 50% 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	/* The base tone shows through the grid gaps as "grout" between tiles. */
	background: var(--wp--preset--color--base);
	border-radius: 10px;
	backface-visibility: hidden;
}
/* Each sponsor is one square tile, like a Rubik's-cube sticker. */
.ali-billboard__cell {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0.35rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 9px;
	background: var(--wp--preset--color--surface);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
	font-weight: 600;
	font-size: 0.72rem;
	line-height: 1.15;
	color: var(--wp--preset--color--contrast);
	overflow: hidden;
	hyphens: auto;
}
/* Each tile is color-coded to a sponsor level. billboard.js stamps every cell
   with a data-tier — the sponsor's real level when the roster <li> carries a
   data-tier attribute, otherwise a value cycled through the palette so the cube
   stays colourful. The light wash + matching border echo the solid swatch shown
   on the matching tier card under "Sponsorship Levels". */
.ali-billboard__cell[data-tier="friend"] {
	background: rgba(90, 143, 67, 0.16);
	border-color: rgba(90, 143, 67, 0.55);
}
.ali-billboard__cell[data-tier="bronze"] {
	background: rgba(176, 107, 44, 0.16);
	border-color: rgba(176, 107, 44, 0.55);
}
.ali-billboard__cell[data-tier="silver"] {
	background: rgba(139, 148, 156, 0.2);
	border-color: rgba(139, 148, 156, 0.6);
}
.ali-billboard__cell[data-tier="gold"] {
	background: rgba(189, 154, 31, 0.18);
	border-color: rgba(189, 154, 31, 0.6);
}
.ali-billboard__cell[data-tier="platinum"] {
	background: rgba(125, 147, 166, 0.18);
	border-color: rgba(125, 147, 166, 0.6);
}
.ali-billboard__cell[data-tier="diamond"] {
	background: rgba(63, 169, 207, 0.18);
	border-color: rgba(63, 169, 207, 0.6);
}
.ali-billboard__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}
.ali-billboard__btn {
	appearance: none;
	border: 1px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--secondary);
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ali-billboard__btn:hover,
.ali-billboard__btn:focus-visible {
	background: var(--wp--preset--color--secondary);
	border-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--surface);
}
/* Keep a clearly visible focus ring for keyboard users (WCAG 2.4.7/2.4.11).
   A dark ring offset off the button reads against both the green fill and the
   page surface. */
.ali-billboard__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}
.ali-billboard__btn--play::before {
	content: "\275A\275A"; /* pause bars */
	font-size: 0.8rem;
	letter-spacing: -1px;
}
.ali-billboard__btn--play.is-paused::before {
	content: "\25B6"; /* play triangle */
	font-size: 0.85rem;
}
.ali-billboard__status {
	min-width: 3.2rem;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--muted);
	font-variant-numeric: tabular-nums;
}

/* ---- Support ALI page: the four-paths cards ------------------------------- */
.ali-paths {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	margin-top: var(--wp--preset--spacing--40);
}
@media (max-width: 781px) {
	.ali-paths {
		grid-template-columns: 1fr;
	}
}
.ali-path {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	padding: 1.75rem 1.75rem 2rem;
	display: flex;
	flex-direction: column;
}
.ali-path__eyebrow {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	font-weight: 700;
	color: var(--wp--preset--color--primary);
	margin: 0 0 0.35rem;
}
.ali-path--member .ali-path__eyebrow,
.ali-path--taskforce .ali-path__eyebrow {
	color: var(--wp--preset--color--secondary);
}
.ali-path__title {
	font-size: 1.35rem;
	line-height: 1.2;
	margin: 0 0 0.6rem;
	color: var(--wp--preset--color--contrast);
}
.ali-path__body {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--muted);
	font-size: 0.97rem;
	line-height: 1.55;
}
.ali-path__list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}
.ali-path__list li {
	position: relative;
	padding: 0.3rem 0 0.3rem 1.4rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--wp--preset--color--contrast);
}
.ali-path__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.7rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
}
.ali-path--member .ali-path__list li::before,
.ali-path--taskforce .ali-path__list li::before {
	background: var(--wp--preset--color--secondary);
}
.ali-path__price {
	display: block;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	margin-bottom: 0.2rem;
}
.ali-path__foot {
	margin-top: auto;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted);
}

/* ---- Support ALI page: the interest form --------------------------------- */
.ali-support-form {
	max-width: 640px;
	margin: var(--wp--preset--spacing--40) auto 0;
	text-align: left;
}
.ali-support-form fieldset {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.25rem 1.5rem 1.5rem;
	margin: 0 0 1.5rem;
}
.ali-support-form legend {
	font-weight: 700;
	padding: 0 0.5rem;
	color: var(--wp--preset--color--contrast);
}
.ali-support-form .ali-check {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	padding: 0.45rem 0;
	font-size: 0.95rem;
}
.ali-support-form .ali-check input {
	margin-top: 0.2rem;
	width: 1.05rem;
	height: 1.05rem;
	flex: 0 0 auto;
}
.ali-support-form label.ali-field {
	display: block;
	margin: 0 0 1rem;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--contrast);
}
.ali-support-form input[type="text"],
.ali-support-form input[type="email"],
.ali-support-form input[type="tel"],
.ali-support-form textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	background: var(--wp--preset--color--surface);
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--contrast);
}
.ali-support-form textarea {
	min-height: 110px;
	resize: vertical;
}
.ali-support-form input:focus,
.ali-support-form textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--primary);
}

/* ---- Footer: contact details + social icons ----------------------------- */
.ali-contact {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	margin: 0.75rem 0 1rem;
	font-size: 0.9rem;
}
.ali-contact a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
}
.ali-contact a:hover,
.ali-contact a:focus-visible {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}
.ali-social {
	display: flex;
	gap: 0.6rem;
}
.ali-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border);
	color: var(--wp--preset--color--secondary);
	background: var(--wp--preset--color--surface);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ali-social__link:hover,
.ali-social__link:focus-visible {
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
	color: #fff;
	outline: none;
}
.ali-social__link svg {
	width: 1.15rem;
	height: 1.15rem;
	fill: currentColor;
	display: block;
}

/* ---- Footer: column link lists ------------------------------------------ */
ul.ali-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
ul.ali-footer-links li {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
}
ul.ali-footer-links a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}
ul.ali-footer-links a:hover,
ul.ali-footer-links a:focus-visible {
	color: var(--wp--preset--color--primary-dark);
	text-decoration: underline;
}

/* ---- News & Insights: post cards + read-more ---------------------------- */
.wp-block-read-more {
	display: inline-block;
	margin-top: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary-dark);
	text-decoration: none;
}
.wp-block-read-more:hover,
.wp-block-read-more:focus-visible {
	text-decoration: underline;
}
.wp-block-post-template.is-layout-grid {
	gap: 2.25rem;
}
.ali-news-loop .wp-block-post-title {
	margin-top: 0.15rem;
}
.ali-news-loop .wp-block-post-title a {
	text-decoration: none;
}
.ali-news-loop .wp-block-post-title a:hover,
.ali-news-loop .wp-block-post-title a:focus-visible {
	text-decoration: underline;
}
