/*
 * style-content.css — generic content-page system (Pass A)
 * Scope: breadcrumbs, page hero, neon embed container, content-body typography.
 * Enqueued for all pages EXCEPT the art-directed builds (home, about, advisory-board, blog).
 * All values NOT IN DESIGN — proposed pending review (no mockups exist for the
 * generic content system); colors/type from the brandbook tokens.
 */

/* ---------------------------------------------------------------------------
 * Page hero
 * ------------------------------------------------------------------------- */

.ao-page-hero {
	background: var(--wp--preset--color--cream, #f3ede4);
	margin-top: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* breadcrumb trail inside the hero band — always on the title rail */
.ao-page-hero__crumbs {
	max-width: 840px;
	margin: 0 auto;
	padding: clamp(1.1rem, 2vw, 1.5rem) 1.25rem 0;
}

.ao-page-hero--has-media .ao-page-hero__crumbs {
	max-width: 1100px;
}

.ao-breadcrumbs__list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: rgba(34, 34, 34, 0.65);
}

.ao-breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 0.45em;
}

.ao-breadcrumbs__item + .ao-breadcrumbs__item::before {
	content: "/";
	color: var(--wp--preset--color--orange, #ef5023);
}

.ao-breadcrumbs__item a {
	color: inherit;
	text-decoration: none;
}

.ao-breadcrumbs__item a:hover,
.ao-breadcrumbs__item a:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
	text-decoration: underline;
}

.ao-breadcrumbs__item--current {
	color: var(--wp--preset--color--black, #1a1a1a);
	font-weight: 600;
}

/* crumbs + hero title: one band, tighter title padding when trail present */
.ao-page-hero__crumbs + .ao-page-hero__inner {
	padding-top: clamp(1.4rem, 3vw, 2.25rem);
}

.ao-page-hero__inner {
	max-width: 840px;
	margin: 0 auto;
	padding: clamp(3rem, 7vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 3.5rem);
}

.ao-page-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--mudstone-sans, sans-serif);
	font-weight: 900;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.05;
	color: var(--wp--preset--color--black, #1a1a1a);
}

.ao-page-hero__intro {
	margin: 1.25rem 0 0;
	max-width: 640px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: clamp(1rem, 1.6vw, 1.2rem);
	line-height: 1.55;
	color: var(--wp--preset--color--text, #222222);
}

/* ---------------------------------------------------------------------------
 * Content body typography (scraped/legacy copy renders through this)
 * ------------------------------------------------------------------------- */

.ao-content-body {
	padding: clamp(1.25rem, 2.5vw, 2rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
}

:is(.ao-content-body, .editor-styles-wrapper) :is(h2, h3, h4, h5, h6) {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	line-height: 1.12;
	color: var(--wp--preset--color--black, #1a1a1a);
	margin: 1.6em 0 0.6em; /* was 2em — 2026-10-07: tighter section rhythm */
}

:is(.ao-content-body, .editor-styles-wrapper) h2 {
	font-size: clamp(1.75rem, 3.4vw, 2.25rem);
	margin-top: 1.5em; /* was 2.3em (≈83px gap above section headings — Sasha 10/07: too much) */
}
/* h3 = the section headings of content pages. ONE heading font through content
   (Work Sans, per Sasha 2026-07-14 — supersedes the Mudstone experiment);
   Mudstone stays reserved for the page-title H1. */
:is(.ao-content-body, .editor-styles-wrapper) h3:not([class*="__title"]):not([class*="__name"]):not([class*="__heading"]) {
	font-size: clamp(1.4rem, 2.8vw, 1.65rem);
	margin-top: 1.6em; /* was 2.2em */
}
:is(.ao-content-body, .editor-styles-wrapper) h4 {
	font-size: 1.15rem;
	letter-spacing: 0.015em;
}
/* first heading in the content column sits close to the hero */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-post-content > :is(h2, h3, h4):first-child {
	margin-top: 0.25em;
}

:is(.ao-content-body, .editor-styles-wrapper) p,
:is(.ao-content-body, .editor-styles-wrapper) li {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--wp--preset--color--text, #222222);
}

:is(.ao-content-body, .editor-styles-wrapper) a {
	color: var(--wp--preset--color--orange, #ef5023);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

:is(.ao-content-body, .editor-styles-wrapper) a:hover,
:is(.ao-content-body, .editor-styles-wrapper) a:focus-visible {
	text-decoration-thickness: 2px;
}

:is(.ao-content-body, .editor-styles-wrapper) img {
	max-width: 100%;
	height: auto;
	border-radius: clamp(10px, 1.5vw, 16px);
}

:is(.ao-content-body, .editor-styles-wrapper) figcaption {
	font-size: 0.875rem;
	color: rgba(34, 34, 34, 0.7);
	text-align: center;
}

:is(.ao-content-body, .editor-styles-wrapper) blockquote {
	border-left: 4px solid var(--wp--preset--color--orange, #ef5023);
	margin: 1.5em 0;
	padding: 0.25em 0 0.25em 1.25em;
	font-style: italic;
}

:is(.ao-content-body, .editor-styles-wrapper) table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.95rem;
}

:is(.ao-content-body, .editor-styles-wrapper) :is(th, td) {
	border: 1px solid rgba(34, 34, 34, 0.15);
	padding: 0.5em 0.75em;
	text-align: left;
}

/* ---------------------------------------------------------------------------
 * Neon embed container
 * ------------------------------------------------------------------------- */

.ao-neon-embed {
	background: var(--wp--preset--color--cream, #f3ede4);
	padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.ao-neon-embed__card {
	max-width: 840px;
	margin: 0 auto;
	background: #ffffff;
	border-top: 6px solid var(--wp--preset--color--orange, #ef5023);
	border-radius: clamp(16px, 2.4vw, 28px);
	padding: clamp(1.75rem, 4vw, 3rem);
	box-shadow: 0 2px 14px rgba(26, 26, 26, 0.06);
}

/* Neon iframes fill the card responsively */
.ao-neon-embed__card iframe {
	width: 100%;
	border: 0;
}

.ao-neon-embed__label {
	margin: 0 0 0.35em;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--wp--preset--color--black, #1a1a1a);
}

.ao-neon-embed__note {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.975rem;
	color: rgba(34, 34, 34, 0.75);
}

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */



/* ---------------------------------------------------------------------------
 * Page cards (hub-cards + listing-grid) — Templates 2 & 4
 * ------------------------------------------------------------------------- */

.ao-hub-cards,
.ao-listing {
	background: var(--wp--preset--color--cream, #f3ede4);
	padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
}

.ao-hub-cards__inner,
.ao-listing__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.ao-hub-cards__heading {
	margin: 0 0 1.25em;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2rem);
	color: var(--wp--preset--color--black, #1a1a1a);
}

.ao-hub-cards__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.ao-page-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: clamp(14px, 2vw, 22px);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(26, 26, 26, 0.05);
}

.ao-page-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.ao-page-card__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ao-page-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
	padding: 1.25rem 1.4rem 1.5rem;
}

.ao-page-card__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 1.2rem;
	line-height: 1.2;
}

.ao-page-card__title a {
	color: var(--wp--preset--color--black, #1a1a1a);
	text-decoration: none;
}

.ao-page-card__title a:hover,
.ao-page-card__title a:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
}

.ao-page-card__excerpt {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--wp--preset--color--text, #222222);
}

.ao-page-card__more {
	margin-top: auto;
	align-self: flex-start;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--orange, #ef5023);
	text-decoration: none;
}

.ao-page-card__more:hover,
.ao-page-card__more:focus-visible {
	text-decoration: underline;
}

.ao-listing__pagination {
	margin-top: clamp(2rem, 4vw, 3rem);
}

.ao-listing__pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
}

.ao-listing__pagination .page-numbers li a,
.ao-listing__pagination .page-numbers li span {
	display: inline-block;
	padding: 0.45em 0.9em;
	border-radius: 999px;
	background: #ffffff;
	color: var(--wp--preset--color--black, #1a1a1a);
	text-decoration: none;
}

.ao-listing__pagination .page-numbers li span.current {
	background: var(--wp--preset--color--orange, #ef5023);
	color: #ffffff;
}

/* pages with no copy yet (new hub stubs): collapse the empty content band */
.ao-content-body:not(:has(*)) {
	display: none;
}

/* ---------------------------------------------------------------------------
 * Accordions (core/details — migrated from the old site's FAQ accordions)
 * ------------------------------------------------------------------------- */

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details {
	background: var(--wp--preset--color--cream, #f3ede4);
	border-radius: 12px;
	padding: 0;
	margin: 0.75rem 0;
	overflow: hidden;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details summary {
	cursor: pointer;
	list-style: none;
	position: relative;
	padding: 0.9rem 3rem 0.9rem 1.25rem;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 600;
	font-size: 1.0625rem;
	color: var(--wp--preset--color--black, #1a1a1a);
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details summary::-webkit-details-marker {
	display: none;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 1.1rem;
	top: 50%;
	transform: translateY(-50%);
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--wp--preset--color--orange, #ef5023);
	transition: transform 150ms ease;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details[open] summary::after {
	content: "–";
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details summary:hover,
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details summary:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details > :not(summary) {
	margin-left: 1.25rem;
	margin-right: 1.25rem;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details > :last-child {
	padding-bottom: 0.35rem;
	margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
 * Page hero — optional featured-image layout
 * ------------------------------------------------------------------------- */

.ao-page-hero--has-media .ao-page-hero__inner {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	max-width: 1100px;
}

.ao-page-hero--has-media .ao-page-hero__text {
	flex: 1 1 55%;
}

.ao-page-hero__media {
	flex: 0 1 40%;
	/* CSS clip-frame (not baked into the image) so uploads keep the styling */
	border-radius: clamp(14px, 2vw, 24px);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.ao-page-hero__media img,
.ao-page-hero__photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media (max-width: 720px) {
	.ao-page-hero--has-media .ao-page-hero__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.ao-page-hero__media {
		width: 100%;
		flex-basis: auto;
	}
}

/* ---------------------------------------------------------------------------
 * Decorator bands (insertable patterns, editable per page)
 * ------------------------------------------------------------------------- */

:is(.ao-content-body, .editor-styles-wrapper) .ao-band {
	margin: clamp(3rem, 6vw, 4.5rem) auto;
}

/* consecutive bands keep a clear gap (editor wraps blocks, margins don't collapse) */
.ao-band + .ao-band {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.ao-band__heading {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif) !important;
	font-weight: 700;
	font-size: clamp(1.4rem, 2.6vw, 1.75rem);
	margin: 0 0 1.2em;
}

/* testimonial — quote gets Mudstone as the spice */
.ao-band-testimonial {
	background: var(--wp--preset--color--mint, #75c6a0);
	border-radius: clamp(16px, 2.4vw, 28px);
	padding: clamp(2rem, 4.5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-testimonial__quote {
	font-family: var(--wp--preset--font-family--mudstone-sans, sans-serif);
	font-weight: 900;
	font-size: clamp(1.4rem, 3vw, 2rem);
	line-height: 1.25;
	color: var(--wp--preset--color--black, #1a1a1a);
	margin: 0 0 0.75em;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-testimonial__attribution {
	font-size: 0.95rem;
	margin: 0;
	color: rgba(26, 26, 26, 0.75);
}

/* stats — numbers get Mudstone as the spice */
.ao-band-stats__row {
	text-align: center;
	gap: 1.5rem;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-stats__number {
	font-family: var(--wp--preset--font-family--mudstone-sans, sans-serif);
	font-weight: 900;
	font-size: clamp(2.25rem, 5vw, 3.25rem);
	line-height: 1;
	color: var(--wp--preset--color--orange, #ef5023);
	margin: 0 0 0.2em;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-stats__label {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}

/* CTA — orange band */
.ao-band-cta {
	background: var(--wp--preset--color--orange, #ef5023);
	border-radius: clamp(16px, 2.4vw, 28px);
	padding: clamp(2rem, 4.5vw, 3rem) clamp(1.5rem, 4vw, 3rem);
	text-align: center;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-cta__heading {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 1em;
}

.ao-band-cta .wp-block-button__link {
	background: var(--wp--preset--color--yellow, #f8db4a);
	color: var(--wp--preset--color--black, #1a1a1a);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	padding: 0.7em 2em;
}

.ao-band-cta .wp-block-button__link:hover {
	background: #ffffff;
}

/* upcoming events cards */
.ao-event-card {
	background: var(--wp--preset--color--cream, #f3ede4);
	border-radius: clamp(14px, 2vw, 22px);
	padding: 1.4rem 1.5rem 1.5rem;
	height: 100%;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-event-card__kicker {
	font-family: var(--wp--preset--font-family--mudstone-sans, sans-serif);
	font-weight: 900;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange, #ef5023);
	margin: 0 0 0.5em;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-event-card__title {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif) !important;
	font-weight: 700;
	font-size: 1.15rem;
	margin: 0 0 0.4em;
}

.ao-event-card__title a {
	color: var(--wp--preset--color--black, #1a1a1a) !important;
	text-decoration: none;
}

.ao-event-card__title a:hover {
	color: var(--wp--preset--color--orange, #ef5023) !important;
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-event-card__meta {
	font-size: 0.925rem;
	margin: 0;
	color: rgba(34, 34, 34, 0.75);
}

/* yellow callout (page variant) */
.ao-band-callout {
	background: var(--wp--preset--color--yellow, #f8db4a);
	border-radius: clamp(16px, 2.4vw, 28px);
	padding: clamp(1.75rem, 4vw, 2.75rem);
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-callout__text {
	font-size: 1.0625rem;
	margin: 0 0 1em;
}

.ao-band-callout .wp-block-button__link {
	background: var(--wp--preset--color--orange, #ef5023);
	color: #ffffff;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	padding: 0.6em 1.8em;
}

/* photo strip */
.ao-band-photo-strip__gallery img {
	border-radius: clamp(10px, 1.5vw, 16px);
}

/* latest stories — query-loop cards reuse .ao-page-card */
.ao-band-stories .ao-page-card__media {
	margin: 0;
}

.ao-band-stories .wp-block-post-template {
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-band-stories__all {
	margin: 1.5rem 0 0;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Review status banner (pre-launch only)
 * ------------------------------------------------------------------------- */

.ao-review-banner {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	transform: translateX(-50%);
	z-index: 90;
	max-width: min(92vw, 560px);
	background: var(--wp--preset--color--blue, #99b9db);
	border: 2px solid var(--wp--preset--color--black, #1a1a1a);
	border-radius: 999px;
	padding: 0.55rem 1.5rem;
	text-align: center;
	box-shadow: 0 6px 22px rgba(26, 26, 26, 0.22);
	pointer-events: none; /* never blocks clicking/scrolling the page under it */
}

.ao-review-banner__text {
	margin: 0;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wp--preset--color--black, #1a1a1a);
}

/* hero media: slight zoom so photos with baked borders still fill the frame */
.ao-page-hero__media img,
.ao-page-hero__photo {
	transform: scale(1.12);
}

/* branded placeholder for cards without any image (echoes blog convention) */
.ao-page-card__media--empty {
	position: relative;
	background: var(--wp--preset--color--cream, #f3ede4);
	aspect-ratio: 3 / 2;
}

.ao-page-card__media--empty::after {
	content: "";
	position: absolute;
	top: 14%;
	right: 12%;
	width: 34%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--blue, #99b9db);
}

.ao-page-card__media--empty::before {
	content: "";
	position: absolute;
	bottom: -18%;
	left: -8%;
	width: 46%;
	aspect-ratio: 1;
	border-radius: 50%;
	border: 10px solid var(--wp--preset--color--orange, #ef5023);
}

/* ---------------------------------------------------------------------------
 * Page hero sits right under the header (sticky, in the page flow — style.css)
 * ------------------------------------------------------------------------- */

.wp-site-blocks > .ao-page-hero {
	margin-top: 0;
}

/* videos fill the content column (16:9) */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-embed {
	margin: 1.5em 0;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-embed__wrapper iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

/* pre-footer art-strip sits flush against the footer (kill block-gap sliver) */
.ao-art-strip + footer.wp-block-template-part,
.wp-site-blocks > .ao-art-strip {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* pre-footer testimonial: railed like the neon card, spaced off the footer */
.ao-band-testimonial--prefooter {
	max-width: 840px;
	margin: clamp(2.5rem, 5vw, 4rem) auto;
	padding-left: clamp(1.5rem, 4vw, 3rem);
	padding-right: clamp(1.5rem, 4vw, 3rem);
}

/* quote citations (teacher testimonials etc.) */
:is(.ao-content-body, .editor-styles-wrapper) blockquote cite {
	display: block;
	margin-top: 0.6em;
	font-style: normal;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--orange, #ef5023);
}

/* content images center by default (site practice); floated images exempt */
:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright) {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image:not(.alignleft):not(.alignright) img {
	margin-inline: auto;
}

/* tighter vertical rhythm around images */
:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image {
	margin-top: 1em;
	margin-bottom: 1em;
}

/* small floated images: text wraps beside them (old-site alignleft treatment).
   Constrained layouts float children against the OUTER container, so inset the
   float to the 840px text column; clear stacks consecutive floats vertically
   (one per section) instead of side-by-side. */
:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image.alignleft {
	float: left;
	clear: left;
	margin: 0.4em 1.5rem 0.75rem max(0px, calc((100% - 840px) / 2)) !important;
}

:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image.alignright {
	float: right;
	clear: right;
	margin: 0.4em max(0px, calc((100% - 840px) / 2)) 0.75rem 1.5rem !important;
}

/* new sections clear any running floats */
:is(.ao-content-body, .editor-styles-wrapper) :is(h2, h3):not([class*="__"]) {
	clear: both;
}

/* first content image sits close to the hero; headings right after an image
   don't add a second big gap */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-post-content > figure.wp-block-image:first-child {
	margin-top: 0;
}

:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image + h2,
:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image + h3:not([class*="__title"]):not([class*="__name"]):not([class*="__heading"]),
:is(.ao-content-body, .editor-styles-wrapper) figure.wp-block-image + h4 {
	margin-top: 1.1em;
}

/* ---------------------------------------------------------------------------
 * ao-slider — carousel treatment over a native gallery block (Meow Gallery
 * carousels from the old site). Scroll-snap + arrows; editable as a gallery.
 * ------------------------------------------------------------------------- */

.wp-block-gallery.ao-slider {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	position: relative;
	border-radius: clamp(10px, 1.5vw, 16px);
}

.wp-block-gallery.ao-slider::-webkit-scrollbar {
	display: none;
}

.wp-block-gallery.ao-slider {
	cursor: grab;
}

/* while dragging: no snap fighting the pointer, no accidental selection */
.wp-block-gallery.ao-slider.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	scroll-behavior: auto;
	user-select: none;
}

.wp-block-gallery.ao-slider > figure.wp-block-image {
	flex: 0 0 min(100%, 640px);
	scroll-snap-align: center;
	margin: 0 !important;
}

.wp-block-gallery.ao-slider > figure.wp-block-image img {
	width: 100%;
	height: 420px;
	object-fit: cover;
}

.ao-slider-shell {
	position: relative;
	margin: 1.25rem auto 2.25rem;
}

.ao-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transition: transform 140ms ease;
	z-index: 5;
}

.ao-slider-arrow img {
	width: 100%;
	height: 100%;
	display: block;
	filter: drop-shadow(0 2px 6px rgba(26, 26, 26, 0.18));
}

.ao-slider-arrow--left {
	left: -76px;
}

.ao-slider-arrow--right {
	right: -76px;
}

.ao-slider-arrow:hover {
	transform: translateY(-50%) scale(1.08);
}

/* narrow viewports: no room outside the column — overlay the edges instead */
@media (max-width: 1040px) {
	.ao-slider-arrow--left { left: 8px; }
	.ao-slider-arrow--right { right: 8px; }
	.ao-slider-arrow { width: 48px; height: 48px; }
}

/* breathing room above the slider too */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-gallery.ao-slider {
	margin-top: 1.25rem;
	margin-bottom: 0;
}

@media (max-width: 640px) {
	.wp-block-gallery.ao-slider > figure.wp-block-image img {
		height: 300px;
	}
}

/* ---------------------------------------------------------------------------
 * Artist entry headers (Studio Artists page) — name / studio / discipline
 * NOT IN DESIGN — proposed pending review.
 * ------------------------------------------------------------------------- */

.ao-artist-head {
	margin-top: clamp(3.5rem, 6vw, 5rem);
	padding-top: 1.4rem;
	border-top: 4px solid var(--wp--preset--color--orange, #ef5023);
}

.ao-artist-head__name {
	margin: 0 0 0.4rem !important;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 800;
	font-size: clamp(1.6rem, 3vw, 2rem) !important;
	line-height: 1.1;
	color: var(--wp--preset--color--black, #1a1a1a);
}

.ao-artist-head__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.1em;
	align-items: baseline;
}

.ao-artist-head__studio {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange, #ef5023);
}

.ao-artist-head__role {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-style: italic;
	font-size: 1rem;
	color: rgba(34, 34, 34, 0.75);
}


/* trailing arrow lives OUTSIDE the link — orange, never underlined */
.ao-link-arrow {
	display: inline-block;
	text-decoration: none;
	margin-left: 0.25em;
	color: var(--wp--preset--color--orange, #ef5023);
	font-style: normal;
	font-weight: 700;
}

/* standardize every "learn more →" link regardless of old em/heading nesting */
:is(.ao-content-body, .editor-styles-wrapper) p:has(.ao-link-arrow) {
	margin-top: 1.4em;
}

:is(.ao-content-body, .editor-styles-wrapper) p:has(.ao-link-arrow) a {
	font-family: var(--wp--preset--font-family--work-sans, sans-serif) !important;
	font-size: 1.0625rem !important;
	font-weight: 600;
	font-style: normal;
}

:is(.ao-content-body, .editor-styles-wrapper) p:has(.ao-link-arrow) :is(em, strong, b, i) {
	font-style: normal;
	font-weight: 600;
}

/* style.css zeroes margin-block-start on ao-* children of post-content (for
   art-directed sections) — restate the artist-divider space at equal
   specificity (this sheet loads later, so it wins) */
.wp-block-post-content > .ao-artist-head,
.editor-styles-wrapper .wp-block-post-content > .ao-artist-head {
	margin-block-start: clamp(3.5rem, 6vw, 5rem);
}

/* first artist entry: no divider line and no extra gap right under the hero */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-post-content > .ao-artist-head:first-child {
	border-top: 0;
	padding-top: 0;
	margin-block-start: 0.5rem;
}

/* logo-first pages: tighten the space around a leading centered image */
:is(.ao-content-body, .editor-styles-wrapper) .ao-content-body:has(> .wp-block-post-content > figure.wp-block-image:first-child),
.ao-content-body:has(> .wp-block-post-content > figure.wp-block-image:first-child) {
	padding-top: 0.75rem;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-post-content > figure.wp-block-image:first-child {
	margin-bottom: 0.5rem;
}

:is(.ao-content-body, .editor-styles-wrapper) .wp-block-post-content > figure.wp-block-image:first-child + :is(h2, h3) {
	margin-top: 0.75em;
}

/* Google Maps / Street View embeds — responsive framed map */
:is(.ao-content-body, .editor-styles-wrapper) .ao-map-embed {
	margin: clamp(1.5rem, 3vw, 2.5rem) auto;
	max-width: 840px;
	border-radius: clamp(10px, 1.5vw, 16px);
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(26, 26, 26, 0.08);
}

:is(.ao-content-body, .editor-styles-wrapper) .ao-map-embed iframe {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
}

/* ----------------------------------------------------------------------------
 * Class listing entries — Classes page (Sarah, Site Feedback 2026-07-29)
 * Copy first, large image last, orange divider between listings (mirrors the
 * .ao-artist-head treatment she liked on the studio artists page), generous
 * spacing between entries. Built by inc/transform-classes-page.php.
 * Selector restates margin at .wp-block-post-content > child specificity so
 * style.css's ao-* margin zeroing doesn't win (same trick as .ao-artist-head).
 * ------------------------------------------------------------------------- */
.ao-class-entry,
.wp-block-post-content > .ao-class-entry,
.editor-styles-wrapper .wp-block-post-content > .ao-class-entry {
	margin-top: clamp(3.5rem, 6vw, 5rem);
	padding-top: 1.6rem;
	border-top: 4px solid var(--wp--preset--color--orange, #ef5023);
}

.ao-class-entry > p {
	margin-top: 0;
}
.ao-class-entry > p + p {
	margin-top: 1em;
}

.ao-class-entry__image,
.ao-class-entry > figure.ao-class-entry__image {
	margin: 1.75rem 0 0;
}
.ao-class-entry__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: clamp(10px, 1.2vw, 16px);
}

/* Link hover → brand blue in content bodies (Sarah, 2026-07-29). The arrow
   glyph keeps its orange (it lives outside the <a>). */
:is(.ao-content-body, .editor-styles-wrapper) a:hover,
:is(.ao-content-body, .editor-styles-wrapper) a:focus-visible {
	color: var(--wp--preset--color--blue, #99b9db);
}

/* Section heading directly followed by a class entry: the entry's big top
   margin + the heading's bottom margin stacked into a ~95px gap — the orange
   line should sit just under the heading (Sasha review 2026-08-28). */
.wp-block-post-content > :is(h2, h3, h4) + .ao-class-entry,
.editor-styles-wrapper .wp-block-post-content > :is(h2, h3, h4) + .ao-class-entry {
	margin-top: 1.1rem;
}

/* Scraped raw <img> (wp:html blocks) are INLINE elements directly inside the
   constrained content column, so the layout's max-width/centering never
   applies — they render at natural size against the page's left padding and
   wide ones overflow the 840px column (Sasha review 2026-08-28, StudioBe).
   Behave like an image block: block-level, capped at the column width,
   centered in the column. Applies to every content-pipeline page. */
.ao-content-body .wp-block-post-content > img {
	display: block;
	max-width: min(100%, 840px);
	height: auto;
	margin: 1.5rem auto;
}

/* ---------------------------------------------------------------------------
 * Flush sections on generic pages (2026-10-06)
 * WordPress' 24px block gap between top-level sections showed as thin white
 * slivers between two cream bands (hero → cards, cards → footer). On pages
 * built from the generic templates (they all carry .ao-page-hero), coloured
 * bands now sit flush; white content keeps its own padding.
 * ------------------------------------------------------------------------- */
.wp-site-blocks > .ao-page-hero ~ :is(.ao-content-body, .ao-hub-cards, .ao-listing, .ao-directory, .ao-neon-embed, footer.wp-block-template-part) {
	margin-block-start: 0;
}

/* ---------------------------------------------------------------------------
 * Card placeholders in brand colour (2026-10-06)
 * Cards without a photo cycled cream-on-cream and disappeared into the cream
 * bands. They now rotate four brand-palette combinations (same ring + dot
 * motif). NOT IN DESIGN — proposed pending review (palette from brandbook).
 * ------------------------------------------------------------------------- */
:nth-child(4n+1) > .ao-page-card__media--empty { background: var(--wp--preset--color--blue, #99b9db); }
:nth-child(4n+1) > .ao-page-card__media--empty::after { background: var(--wp--preset--color--yellow, #f8db4a); }
:nth-child(4n+1) > .ao-page-card__media--empty::before { border-color: var(--wp--preset--color--orange, #ef5023); }

:nth-child(4n+2) > .ao-page-card__media--empty { background: var(--wp--preset--color--orange, #ef5023); }
:nth-child(4n+2) > .ao-page-card__media--empty::after { background: var(--wp--preset--color--blue, #99b9db); }
:nth-child(4n+2) > .ao-page-card__media--empty::before { border-color: var(--wp--preset--color--yellow, #f8db4a); }

:nth-child(4n+3) > .ao-page-card__media--empty { background: var(--wp--preset--color--yellow, #f8db4a); }
:nth-child(4n+3) > .ao-page-card__media--empty::after { background: var(--wp--preset--color--orange, #ef5023); }
:nth-child(4n+3) > .ao-page-card__media--empty::before { border-color: var(--wp--preset--color--blue, #99b9db); }

:nth-child(4n+4) > .ao-page-card__media--empty { background: var(--wp--preset--color--mint, #75c6a0); }
:nth-child(4n+4) > .ao-page-card__media--empty::after { background: var(--wp--preset--color--cream, #f3ede4); }
:nth-child(4n+4) > .ao-page-card__media--empty::before { border-color: var(--wp--preset--color--orange, #ef5023); }

/* ---------------------------------------------------------------------------
 * "Jump to" quick links (2026-10-06) — a core/buttons row with className
 * ao-jump-links, linking to #anchors further down a long page (first use:
 * Classes, so Upcoming classes aren't buried). Chip style = blog tag chips.
 * Anchored headings clear the 87px fixed header when jumped to.
 * NOT IN DESIGN — proposed pending review.
 * ------------------------------------------------------------------------- */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons.ao-jump-links {
	gap: 0.6rem;
	margin: 0 0 2rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-jump-links .wp-block-button__link {
	padding: 0.55em 1.05em;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	color: var(--wp--preset--color--orange, #ef5023);
	background: var(--wp--preset--color--cream, #f3ede4);
	border: 1.5px solid var(--wp--preset--color--orange, #ef5023);
	border-radius: 999px;
	text-decoration: none;
	transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-jump-links .wp-block-button__link::after {
	content: " ↓";
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-jump-links .wp-block-button__link:hover,
:is(.ao-content-body, .editor-styles-wrapper) .ao-jump-links .wp-block-button__link:focus-visible {
	color: var(--wp--preset--color--white, #fff);
	background: var(--wp--preset--color--blue, #99b9db);
	border-color: var(--wp--preset--color--blue, #99b9db);
}
.ao-content-body :is(h2, h3, h4)[id] {
	scroll-margin-top: 110px;
}
html {
	scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------------------
 * Third-party donation form (Zeffy) on the Give page (2026-10-07) — same
 * card treatment as the Neon form slot; fixed height because the form lives
 * in a cross-origin iframe (Zeffy's own embed uses 1200px).
 * ------------------------------------------------------------------------- */
:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed {
	position: relative;
	height: 1200px;
	margin: 2rem 0 0;
	border-radius: 16px;
	overflow: hidden;
	background: var(--wp--preset--color--white, #fff);
	box-shadow: 0 2px 18px rgba(26, 26, 26, 0.08);
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
@media (max-width: 600px) {
	:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed {
		height: 1350px;
	}
}

/* ---------------------------------------------------------------------------
 * Call-to-action buttons in page content (2026-10-07) — the old site's buttons
 * ("Click here to register", "Sponsorship information", "Submit your
 * application") ported as core/buttons. Same pill as the calendar's primary
 * actions (Find Events / Register): orange, white uppercase Work Sans 700,
 * hover blue with black text. Jump-link chips keep their own style above.
 * NOT IN DESIGN — proposed pending review.
 * ------------------------------------------------------------------------- */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons:not(.ao-jump-links) {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.75rem 0;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons:not(.ao-jump-links) .wp-block-button {
	margin: 0;
	width: auto;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons:not(.ao-jump-links) .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem 1.6rem;
	background: var(--wp--preset--color--orange, #ef5023);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons:not(.ao-jump-links) .wp-block-button__link:hover,
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-buttons:not(.ao-jump-links) .wp-block-button__link:focus-visible {
	background: var(--wp--preset--color--blue, #99b9db);
	color: var(--wp--preset--color--black, #1a1a1a);
}

/* Optional hero call to action (ao_page_hero_cta filter, 2026-10-07) — first use:
   Events → "See the full events calendar". Same pill as the content buttons
   above. NOT IN DESIGN — proposed pending review. */
.ao-page-hero__cta {
	margin: 1.75rem 0 0;
}
.ao-page-hero__cta-link {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0.7rem 1.6rem;
	background: var(--wp--preset--color--orange, #ef5023);
	color: var(--wp--preset--color--white, #fff);
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}
.ao-page-hero__cta-link:hover,
.ao-page-hero__cta-link:focus-visible {
	background: var(--wp--preset--color--blue, #99b9db);
	color: var(--wp--preset--color--black, #1a1a1a);
}

/* Floated images inside an accordion panel (2026-10-07) — the float inset above
   resolves to 0 in the narrower panel and its !important beat the panel's
   1.25rem side margin, so the image sat on the panel edge. Keep the inset. */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details > figure.wp-block-image.alignleft {
	margin: 0.4em 1.5rem 0.75rem 1.25rem !important;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-details > figure.wp-block-image.alignright {
	margin: 0.4em 1.25rem 0.75rem 1.5rem !important;
}

/* ---------------------------------------------------------------------------
 * Card grid (2026-10-16) — long vendor / participant lists as compact cards
 * (Holiday Bazaar vendors, Clayworks potters; Katie: "condense… a grid view").
 * Native group with grid layout; each card = photo + name + small details, all
 * regular blocks, so cards can be edited, duplicated or removed in the editor.
 * NOT IN DESIGN — proposed pending review.
 * ------------------------------------------------------------------------- */
:is(.ao-content-body, .editor-styles-wrapper) .ao-card-grid {
	margin: 1.5rem 0 2.25rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card {
	background: var(--wp--preset--color--cream, #f3ede4);
	border-radius: 14px;
	padding: 0.7rem 0.7rem 1rem;
	height: 100%;
	box-sizing: border-box;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card figure.wp-block-image {
	margin: 0 0 0.6rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card figure.wp-block-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
}
/* two photos in one card (e.g. a duo) sit side by side */
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__photos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.4rem;
	margin: 0 0 0.6rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__photos figure.wp-block-image {
	margin: 0;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.25;
	letter-spacing: 0.01em;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__title a {
	color: inherit;
	text-decoration: none;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__title a:hover,
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__title a:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
	text-decoration: underline;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__meta {
	margin: 0.15rem 0 0;
	font-size: 0.85rem;
	color: var(--wp--preset--color--text, #222222);
	opacity: 0.8;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card p:not(.ao-card__meta) {
	margin: 0.45rem 0 0;
	font-size: 0.92rem;
	line-height: 1.55;
}

/* Photo grid (2026-10-16) — a native gallery of past-event photos (Paint It
   Orange, Uproar); images open full size on click (lightbox), so artwork that
   the square tiles crop is still seen whole. */
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-gallery.ao-photo-grid {
	margin: 1.75rem 0 2rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-gallery.ao-photo-grid img {
	border-radius: 10px;
}
:is(.ao-content-body, .editor-styles-wrapper) .wp-block-gallery.ao-photo-grid .blocks-gallery-caption {
	font-size: 0.9rem;
	opacity: 0.8;
	margin-top: 0.6rem;
}
/* card bio toggle ("Read bio") — a plain text toggle inside the card, not the
   full cream accordion panel */
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .wp-block-details.ao-card__more {
	background: transparent;
	border-radius: 0;
	margin: 0.4rem 0 0;
	overflow: visible;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__more summary {
	padding: 0.3rem 1.4rem 0.3rem 0;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--wp--preset--color--orange, #ef5023);
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .ao-card__more summary::after {
	right: 0;
	font-size: 1.05rem;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .wp-block-details.ao-card__more > :not(summary) {
	margin-left: 0;
	margin-right: 0;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-card .wp-block-details.ao-card__more > :last-child {
	margin-bottom: 0.25rem;
	padding-bottom: 0;
}
/* vendor cards: two per row on phones (the grid's 11rem minimum would leave one) */
@media (max-width: 600px) {
	:is(.ao-content-body, .editor-styles-wrapper) .ao-card-grid--vendors {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.75rem !important;
	}
	:is(.ao-content-body, .editor-styles-wrapper) .ao-card-grid--vendors .ao-card {
		padding: 0.5rem 0.5rem 0.8rem;
	}
	:is(.ao-content-body, .editor-styles-wrapper) .ao-card-grid--vendors .ao-card__title {
		font-size: 0.85rem;
	}
}

/* ---------------------------------------------------------------------------
 * Heading colour on text pages (Katie's August ask; Sasha 2026-10-20: every
 * heading but the page title, on text-heavy pages only). The switch is the
 * `ao-text-page` body class (functions.php → ao_is_text_page()): standard
 * content pages, plus section pages whose own body is long-form. Section
 * landings ("Explore this section"), listings and the art-directed pages
 * don't get it. To revert: drop this block (or the body class) — no content
 * is touched.
 * Component headings (ao-…__title / __name / __heading: cards, bands, artist
 * and board names) keep their own colours.
 * Contrast: brand orange is 3.6:1 on white, so it only goes on "large text"
 * (18.66px+ bold): h4 grows 18.4 → 19px, h5 renders at 20px; h6 is small,
 * so it takes a deeper orange (5.2:1).
 * ------------------------------------------------------------------------- */
.ao-text-page .ao-content-body .wp-block-post-content :is(h2, h3, h4, h5, h6):not([class*="ao-"][class*="__"]) {
	color: var(--ao-subheading-color, var(--wp--preset--color--orange, #ef5023));
}
.ao-text-page .ao-content-body h6 {
	--ao-subheading-color: #c63c12;
}
:is(.ao-content-body, .editor-styles-wrapper) h4:where(:not([class*="ao-"][class*="__"])) {
	font-size: 1.1875rem; /* same specificity as the base h4 rule, so component h4 sizes still win */
}

/* Neon donation form (Give page, replaces Zeffy 2026-10-16). Neon's script
   writes its own iframe and sets the height as the form loads, and the form
   brings its own bordered box — so no fixed height and no card around it.
   Off artsorange.org a note + link stands in (inc/neon-embeds.php). */
:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed--neon {
	height: auto;
	overflow: visible;
	border-radius: 0;
	background: none;
	box-shadow: none;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-neon-preview-note {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--wp--preset--color--blue, #99b9db);
	border-radius: 12px;
	background: var(--wp--preset--color--cream, #f3ede4);
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed--neon iframe {
	position: static;
	inset: auto;
	display: block;
}
@media (max-width: 600px) {
	:is(.ao-content-body, .editor-styles-wrapper) .ao-donation-embed--neon {
		height: auto;
	}
}
/* Any other embedded Neon form (Volunteer, …): same treatment as the donation form. */
:is(.ao-content-body, .editor-styles-wrapper) .ao-neon-form {
	margin: 2rem 0 0;
}
:is(.ao-content-body, .editor-styles-wrapper) .ao-neon-form iframe {
	display: block;
}

/* A page with nothing in its body (e.g. Subscribe: hero intro + hero button only)
   skips the empty white content band. */
.ao-content-body:not(:has(.wp-block-post-content > *)) {
	display: none;
}

/* Contact form (Gravity Forms, Orbital theme; tools/contact-form.php) — agency
   setup: no "* indicates required fields" legend, the button is the site's
   orange pill (GF paints its own button, hence the !important). */
.ao-contact-form .gform_required_legend {
	display: none;
}
.ao-contact-form .gform_wrapper .gform_footer .gform_button,
.ao-contact-form .gform_wrapper button.gform_button {
	min-height: 48px;
	padding: 0.7rem 1.6rem !important;
	background: var(--wp--preset--color--orange, #ef5023) !important;
	color: var(--wp--preset--color--white, #fff) !important;
	border: 0 !important;
	border-radius: 999px !important;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif) !important;
	font-weight: 700 !important;
	font-size: 0.95rem !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
}
.ao-contact-form .gform_wrapper .gform_footer .gform_button:hover,
.ao-contact-form .gform_wrapper .gform_footer .gform_button:focus-visible {
	background: var(--wp--preset--color--blue, #99b9db) !important;
	color: var(--wp--preset--color--black, #1a1a1a) !important;
}

/* Page not found (templates/404.html): the search button as our orange pill. */
.ao-404 .wp-block-search__button {
	min-height: 48px;
	padding: 0.7rem 1.6rem;
	background: var(--wp--preset--color--orange, #ef5023);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ao-404 .wp-block-search__button:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--blue, #99b9db);
	color: var(--wp--preset--color--black, #1a1a1a);
}
.ao-404 .wp-block-search__input {
	min-height: 48px;
	border-radius: 8px;
}

/* Classes page card lists ([ao_class_cards], inc/class-cards.php): break out of the
   840px text column so three or four classes sit side by side (Katie: "see more
   than one at a time"). */
.ao-content-body .ao-class-cards {
	/* centred on its parent whatever that parent's width is; !important beats the
	   block layout's `margin-inline: auto !important` on content children */
	width: min(1200px, 100vw - 2.5rem);
	max-width: none !important;
	margin: 0.5rem 0 2.5rem calc(50% - min(600px, 50vw - 1.25rem)) !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.ao-content-body .ao-class-details {
	font-size: 1rem;
	line-height: 1.6;
}
/* the two list headings line up with the wider card grid */
.ao-content-body :is(#ongoing-classes, #upcoming-classes) {
	width: min(1200px, 100vw - 2.5rem);
	max-width: none !important;
	margin-left: calc(50% - min(600px, 50vw - 1.25rem)) !important;
}

/* ---------------------------------------------------------------------------
 * Classes v2 (Sasha 10/20): filter bar, equal-height cards with facts + hover,
 * hero links, and the info panel on class pages (inc/class-cards.php).
 * NOT IN DESIGN — built on the site's cards, pills and colours.
 * ------------------------------------------------------------------------- */
.ao-page-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.5rem;
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.95rem;
}
.ao-page-hero__links a {
	font-weight: 700;
	color: var(--wp--preset--color--orange, #c63c12);
	text-underline-offset: 3px;
}
.ao-content-body .ao-class-list {
	width: min(1200px, 100vw - 2.5rem);
	max-width: none !important;
	margin: 0 0 2rem calc(50% - min(600px, 50vw - 1.25rem)) !important;
}
.ao-class-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 1.75rem;
}
.ao-class-filter__btn {
	min-height: 44px;
	padding: 0.55rem 1.3rem;
	border: 1.5px solid var(--wp--preset--color--orange, #ef5023);
	border-radius: 999px;
	background: transparent;
	color: var(--wp--preset--color--black, #1a1a1a);
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 700;
	font-size: 0.9rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 160ms ease, color 160ms ease;
}
.ao-class-filter__btn:hover,
.ao-class-filter__btn:focus-visible {
	background: #fde4da;
}
.ao-class-filter__btn.is-active {
	background: var(--wp--preset--color--orange, #ef5023);
	color: var(--wp--preset--color--white, #fff);
}
.ao-class-filter__faq {
	margin-left: auto;
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--wp--preset--color--orange, #c63c12);
	text-underline-offset: 3px;
}
.ao-content-body .ao-class-list__heading {
	margin: 0 0 1rem;
	color: var(--wp--preset--color--orange, #ef5023);
	clear: none;
}
.ao-class-list__section + .ao-class-list__section {
	margin-top: 2.75rem;
}
.ao-class-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
}
.ao-class-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--wp--preset--color--white, #fff);
	border-radius: 16px;
	box-shadow: 0 2px 14px rgba(26, 26, 26, 0.08);
	transition: transform 200ms ease, box-shadow 200ms ease;
}
.ao-class-card:hover,
.ao-class-card:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(26, 26, 26, 0.16);
}
.ao-class-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--wp--preset--color--cream, #f3ede4);
}
.ao-class-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}
.ao-class-card:hover .ao-class-card__media img {
	transform: scale(1.05);
}
.ao-class-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	background: var(--wp--preset--color--white, #fff);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--black, #1a1a1a);
}
.ao-class-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1.1rem 1.25rem 1.25rem;
}
.ao-content-body .ao-class-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	clear: none;
}
.ao-class-card__link {
	color: inherit;
	text-decoration: none;
}
.ao-class-card__link::after { /* the whole card is the link */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.ao-class-card__link:focus-visible {
	outline: none;
}
.ao-class-card:focus-within {
	outline: 3px solid var(--wp--preset--color--blue, #99b9db);
	outline-offset: 2px;
}
.ao-class-card:hover .ao-class-card__title {
	color: var(--wp--preset--color--orange, #ef5023);
}
.ao-content-body .ao-class-card__teacher {
	margin: 0;
	font-size: 0.95rem;
	color: #5d5650;
}
.ao-content-body .ao-class-card__note {
	margin: 0;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	background: #fbf0bd;
	font-size: 0.85rem;
	line-height: 1.35;
}
.ao-class-card__facts {
	display: grid;
	gap: 0.35rem;
	margin: 0.2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.92rem;
	line-height: 1.35;
}
.ao-class-card__facts li {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	margin: 0;
}
.ao-class-icon {
	flex: 0 0 auto;
	margin-top: 0.05em;
	color: var(--wp--preset--color--orange, #ef5023);
}
.ao-class-card__more {
	margin-top: auto;
	padding-top: 0.5rem;
	font-size: 0.85rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange, #c63c12);
}
.ao-class-card__more::after {
	content: " →";
}

/* class page: info panel above the description */
.ao-content-body .ao-class-facts {
	margin: 0 0 2rem;
	padding: clamp(1rem, 2.5vw, 1.5rem);
	border-radius: 16px;
	background: #faf6f0;
	border: 1px solid #ece3d6;
}
.ao-class-facts__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem 1.5rem;
	margin: 0;
}
.ao-class-facts__item dt {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.2rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5d5650;
}
.ao-class-facts__item dd {
	margin: 0;
	font-size: 1rem;
	line-height: 1.45;
}
.ao-content-body .ao-class-facts__note {
	margin: 0 0 1rem;
	padding: 0.5rem 0.8rem;
	border-radius: 8px;
	background: #fbf0bd;
	font-weight: 600;
}
.ao-content-body .ao-class-facts__teacher {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 1rem 0 0;
	padding-top: 0.9rem;
	border-top: 1px solid #ece3d6;
}
.ao-content-body .ao-class-register {
	margin-top: 2rem;
}
/* card titles dark, orange on hover — same as the section cards on the Events page */
.ao-content-body .ao-class-card__title .ao-class-card__link {
	color: var(--wp--preset--color--black, #1a1a1a);
}
.ao-content-body .ao-class-card:is(:hover, :focus-within) .ao-class-card__title .ao-class-card__link {
	color: var(--wp--preset--color--orange, #ef5023);
}

/* Eno Arts Mill logo at the top of a page (tools/eam-logo-swap.php): a little air
   below the hero — the "first image sits close to the hero" rule above pulls it up */
.ao-content-body .wp-block-post-content > figure.wp-block-image.ao-eam-logo:first-child {
	margin-top: clamp(1.25rem, 3vw, 2rem);
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------------------------------------------------------------------------
 * Classes (Katie 10/30): filter bar like the Artist Directory's (search ·
 * medium · Upcoming / Ongoing / All, opens on Upcoming), and the top image
 * that rotates through the upcoming classes with a link to the one shown.
 * NOT IN DESIGN — spotlight chip proposed pending review.
 * ------------------------------------------------------------------------- */

.ao-class-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem;
	margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
}

.ao-class-filters__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1 1 200px;
	max-width: 280px;
}

.ao-class-filters__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wp--preset--color--black, #1a1a1a);
}

.ao-class-filters input,
.ao-class-filters select {
	min-height: 44px;
	padding: 0.6em 0.85em;
	border: 1px solid rgba(34, 34, 34, 0.2);
	border-radius: 10px;
	background: #ffffff;
	font: inherit;
	font-size: 0.95rem;
	color: var(--wp--preset--color--text, #222222);
}

.ao-class-filters .ao-class-filter__faq {
	margin-left: auto;
	align-self: center;
}

.ao-class-card[hidden],
.ao-class-list__section[hidden],
.ao-class-list__empty[hidden] {
	display: none !important;
}

.ao-page-hero__media--rotate {
	position: relative;
	background: var(--wp--preset--color--cream, #f3ede4);
}

.ao-page-hero__spotlight {
	position: absolute;
	left: 0.85rem;
	bottom: 0.85rem;
	right: 0.85rem;
	max-width: max-content;
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.55rem 0.95rem 0.6rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--wp--preset--color--black, #1a1a1a);
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-weight: 600;
	font-size: 0.9rem;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(26, 26, 26, 0.18);
	z-index: 2;
}

.ao-page-hero__spotlight:hover,
.ao-page-hero__spotlight:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
}

.ao-page-hero__spotlight-kicker {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #c63c12;
}

/* ---------------------------------------------------------------------------
 * Grant cards: "Open now" label (Katie 10/30; inc/open-now.php). Same pill as
 * the class-card badge, in brand yellow so it stands out (black on #f8db4a ≈ 13:1).
 * ------------------------------------------------------------------------- */
.ao-page-card {
	position: relative;
}

.ao-page-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	background: var(--wp--preset--color--yellow, #f8db4a);
	font-family: var(--wp--preset--font-family--work-sans, sans-serif);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--black, #1a1a1a);
	box-shadow: 0 2px 8px rgba(26, 26, 26, 0.15);
}

/* ---------------------------------------------------------------------------
 * Featured Stories: current columns as featured cards (Katie 10/30;
 * [ao_current_columns], inc/column-authors.php). Columnist portrait in the
 * blue ring, same as the author strip on posts. NOT IN DESIGN — proposed.
 * ------------------------------------------------------------------------- */
.ao-current-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.75rem);
	margin: 1rem 0 clamp(2rem, 4vw, 3rem);
}

.ao-current-column {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 1.75rem);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	border-radius: clamp(14px, 2vw, 22px);
	background: var(--wp--preset--color--cream, #f3ede4);
}

.ao-current-column__portrait {
	position: relative;
	flex: 0 0 auto;
	width: clamp(104px, 12vw, 136px);
	aspect-ratio: 1000 / 1038;
	margin: 0;
}

.ao-current-column__portrait img {
	position: absolute;
	top: 3%;
	left: 3%;
	width: 94%;
	height: 94%;
	object-fit: cover;
	border-radius: 50%;
	z-index: 1;
}

.ao-current-column__portrait::after {
	content: "";
	position: absolute;
	inset: 0;
	background: url("assets/img/dome-ring-blue.png") center / contain no-repeat;
	pointer-events: none;
	z-index: 2;
}

.ao-current-column__body > * {
	margin: 0;
}

.ao-content-body .ao-current-column__name {
	margin: 0 0 0.35rem;
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.2;
}

.ao-current-column__name a {
	color: var(--wp--preset--color--black, #1a1a1a);
	text-decoration: none;
}

.ao-current-column__name a:hover,
.ao-current-column__name a:focus-visible {
	color: var(--wp--preset--color--orange, #ef5023);
}

.ao-current-column__line,
.ao-current-column__by,
.ao-current-column__latest {
	font-size: 0.95rem;
	line-height: 1.45;
}

.ao-current-column__by {
	margin-top: 0.15rem !important;
	font-weight: 600;
}

.ao-current-column__latest {
	margin-top: 0.6rem !important;
}

.ao-current-column__latest span {
	font-weight: 700;
}

.ao-current-column__more {
	display: inline-block;
	margin-top: 0.6rem;
	font-weight: 700;
	color: var(--wp--preset--color--orange, #ef5023);
	text-decoration: none;
}

.ao-current-column__more:hover,
.ao-current-column__more:focus-visible {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * Logo Usage: Arts Orange logo examples (Katie 10/30; tools/refresh-logo-usage.php).
 * Each version on its own tile with its download link; the white version on
 * brand orange so it shows. NOT IN DESIGN — proposed, checking with Arts Orange.
 * ------------------------------------------------------------------------- */
.ao-content-body .ao-logo-examples {
	gap: 1rem;
	margin: 0.75rem 0 2.25rem;
}

.ao-content-body .ao-logo-example {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	margin: 0;
}

.ao-content-body .ao-logo-example .ao-logo-example__img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	margin: 0 !important;
	padding: 1.25rem;
	border: 1px solid rgba(34, 34, 34, 0.12);
	border-radius: 14px;
	background: #ffffff;
}

.ao-content-body .ao-logo-example--on-orange .ao-logo-example__img {
	border-color: transparent;
	background: var(--wp--preset--color--orange, #ef5023);
}

.ao-content-body .ao-logo-example .ao-logo-example__img img {
	width: auto;
	max-width: 100%;
	max-height: 6.5rem; /* fits the 16:9 tile; square marks (AO) stay small */
	object-fit: contain;
}

.ao-content-body .ao-logo-example__label {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
}

/* Artist sign-up page (Katie 10/30): space between the intro and the form */
.ao-content-body .ao-artist-signup {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}
