/*
Theme Name: PACCM
Theme URI: http://localhost/paccm
Author: PACCM
Description: Block theme for the Philippine American Community Center of Michigan. Tokens live in theme.json; this file holds only the few rules core blocks cannot express.
Version: 1.2.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: paccm
*/

/* Focus state (spec section 2): navy on light, yellow on navy/red. */
:where(a, button, input, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
}
.has-navy-background-color :where(a, button, input, .wp-element-button):focus-visible,
.has-red-background-color :where(a, button, input, .wp-element-button):focus-visible,
.paccm-hero :where(a, .wp-element-button):focus-visible,
.paccm-page-hero :where(a, .wp-element-button):focus-visible,
.paccm-topbar :where(a):focus-visible {
	outline-color: var(--wp--preset--color--yellow);
}

/* Header */
/* Sticky goes on the template-part wrapper: a sticky child of a same-height parent never sticks. */
.wp-block-template-part:has(> .paccm-header) { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-block-template-part:has(> .paccm-header) { top: var(--wp-admin--admin-bar--height, 32px); }
.paccm-header .wp-block-navigation-item.current-menu-item > a,
.paccm-header .wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--red);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.paccm-logo-sub { line-height: 1.2; }
.paccm-brand .wp-block-site-logo { flex-shrink: 0; }
.paccm-header .wp-block-button__link { white-space: nowrap; }

/* Flag ribbon: decorative stripe, CSS only so nothing is read by screen readers. */
.paccm-ribbon { position: relative; }
.paccm-ribbon::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 12px;
	background: linear-gradient(90deg, var(--wp--preset--color--red) 0 33%, var(--wp--preset--color--yellow) 33% 66%, var(--wp--preset--color--blue) 66%);
}

/* Cards: whole card is one link via the title link (spec UX #4). */
.paccm-card { position: relative; height: 100%; transition: box-shadow .2s ease, transform .2s ease; }
/* !important: the card's saved inline box-shadow would otherwise win. */
.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) { box-shadow: 0 12px 28px rgba(11, 42, 94, .16) !important; }
.paccm-card .paccm-card-link a { text-decoration: none; color: inherit; transition: color .2s ease; }
.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) .paccm-card-link a { color: var(--wp--preset--color--red); }
.paccm-card .paccm-card-link a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.paccm-card .paccm-card-link a:focus-visible { outline: none; }
.paccm-card:has(.paccm-card-link a:focus-visible) { outline: 3px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.wp-block-heading.paccm-arrow::after, p.paccm-arrow::after,
.wp-block-button.paccm-arrow .wp-block-button__link::after { content: "\2192"; display: inline-block; margin-left: .35em; transition: transform .2s ease; }
.paccm-rule { width: 80px; height: 4px !important; border: 0; margin-left: 0 !important; }

/* Quick links overlap the hero bottom on desktop. */
@media (min-width: 782px) {
	.paccm-quick-links { margin-top: -48px !important; position: relative; z-index: 2; }
}

/* Hero: match the banner's 2:1 ratio so the ribbon shows (core writes aspect-ratio:unset inline).
   Only from 1280px: below that the saved 640px min-height plus 2:1 forced a 1280px min-width (sideways scroll). */
@media (min-width: 782px) {
	.paccm-hero h1 mark { white-space: nowrap; }
}
@media (min-width: 1280px) {
	.paccm-hero { aspect-ratio: 2 / 1 !important; }
}
/* 782-1279px: the photo slides under the headline, so a navy gradient keeps the text column readable (spec UX #1). */
@media (min-width: 782px) and (max-width: 1279px) {
	.wp-block-cover.paccm-hero > .wp-block-cover__background.has-background-dim.has-background-dim-0 {
		opacity: 1;
		background-color: transparent !important;
		background-image: linear-gradient(90deg, rgba(11, 42, 94, .92) 0%, rgba(11, 42, 94, .85) 50%, rgba(11, 42, 94, 0) 80%);
	}
}

/* Impact band: photo fills its column so no navy shows beside it. Core saves height:280px inline, hence !important. */
.paccm-hero-media img { object-position: 50% 30%; }
@media (min-width: 782px) {
	.paccm-stack-mobile > .paccm-hero-media { align-self: stretch; display: flex; }
	.paccm-hero-media > .wp-block-image, .paccm-hero-media > .wp-block-cover { flex: 1; margin: 0; }
	.paccm-hero-media img { height: 100% !important; min-height: clamp(320px, 30vw, 600px); }
}

/* Program cards: placeholder block until a featured image is set. */
.paccm-program-card:not(:has(.wp-block-post-featured-image))::before {
	content: "";
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--wp--preset--color--border);
	border-radius: 12px 12px 0 0;
}
.paccm-program-card .wp-block-post-featured-image img { border-radius: 12px 12px 0 0; aspect-ratio: 16 / 9; object-fit: cover; }

/* Event date badge */
.paccm-event-date { font-family: var(--wp--preset--font-family--poppins); font-weight: 600; color: var(--wp--preset--color--red); }

/* Newsletter: Fluent Forms form #3 (patterns/newsletter.php). Update the ID here if the form is recreated. */
.fluent_form_3 fieldset { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.fluent_form_3 .ff-el-group { margin-bottom: 0; }
.fluent_form_3 .ff-el-group:not(.ff_submit_btn_wrapper) { flex: 1 1 16rem; }
.fluent_form_3 .ff-el-input--label label { font-weight: 600; }
.fluent_form_3 .ff-el-form-control {
	min-height: 48px;
	padding: 0 1.25rem;
	border: 2px solid var(--wp--preset--color--muted);
	border-radius: 999px;
	font: inherit;
	color: var(--wp--preset--color--ink);
}
.fluent_form_3 .ff-btn-submit {
	min-height: 48px; padding: 0 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--wp--preset--color--navy); color: #fff;
	font-family: var(--wp--preset--font-family--poppins); font-weight: 600; font-size: 1rem;
}
/* Fluent Forms fades its buttons to .8 opacity on hover/focus; the theme darkens instead. */
.fluent_form_3 .ff-btn-submit:is(:hover, :focus) { background: var(--wp--preset--color--navy-dark); opacity: 1; }

/* Mobile (spec section 4) */
@media (max-width: 781px) {
	.paccm-topbar .paccm-topbar-welcome, .paccm-logo-sub { display: none; }
	.paccm-brand .wp-block-site-logo img { width: 48px; height: auto; }
	/* Family sits behind the text on phones: dim the photo with the navy overlay so copy stays readable. */
	/* Specificity must beat core's (0,4,0) .has-background-dim-0 { opacity: 0 }. */
	.wp-block-cover.paccm-hero > .wp-block-cover__background.has-background-dim.has-background-dim-0 { opacity: .75; }
	.paccm-hero .wp-block-buttons, .paccm-stack-mobile .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.paccm-hero .wp-block-button, .paccm-stack-mobile .wp-block-button { width: 100%; }
	.paccm-quick-links .paccm-card-desc { display: none; }
	.fluent_form_3 .ff-el-group:not(.ff_submit_btn_wrapper) { flex-basis: 100%; }
	.fluent_form_3 .ff_submit_btn_wrapper, .fluent_form_3 .ff-btn-submit { width: 100%; }
	/* Stacked: show the whole festival photo at 3:2 instead of the saved 280px. */
	.paccm-hero-media img { height: auto !important; aspect-ratio: 3 / 2; }
}

/* Logo + title + menu toggle + Donate must fit one row down to 320px (288px usable). */
@media (max-width: 399px) {
	.paccm-header .is-layout-flex:has(> .paccm-brand),
	.paccm-brand + .wp-block-group { gap: .75rem; }
	.paccm-header .paccm-brand { gap: .5rem; }
	.paccm-brand .wp-block-site-logo img { width: 40px; }
	.paccm-header .wp-block-button__link { padding-left: 1rem; padding-right: 1rem; }
}

/* Responsive header and footer (1.1.1) */

/* Hamburger below 1024px: core switches at 600px, and the six links wrap to two rows at tablet widths. */
@media (min-width: 600px) and (max-width: 1023px) {
	.paccm-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.paccm-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
.paccm-header :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) { width: 44px; height: 44px; align-items: center; justify-content: center; }
/* Open menu: left-aligned, full-width 56px rows with dividers. */
.paccm-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; }
.paccm-header .is-menu-open :is(.wp-block-navigation__responsive-container-content, .wp-block-navigation__container) { align-items: stretch !important; gap: 0 !important; width: 100%; }
.paccm-header .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.paccm-header .is-menu-open .wp-block-navigation-item__content { display: flex !important; align-items: center; justify-content: flex-start; min-height: 56px; font-size: 1.25rem; }

/* Quick links: 2x2 below 1024px so titles like "Membership" fit. */
@media (max-width: 1023px) {
	.paccm-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* 44px touch targets: top bar on phones, footer links and social icons. */
@media (max-width: 781px) {
	.paccm-topbar { padding-top: 0 !important; padding-bottom: 0 !important; }
	.paccm-topbar a { display: inline-block; padding-block: .7rem; }
}
footer.paccm-ribbon .wp-block-list a { display: inline-block; padding-block: .3rem; }
footer.paccm-ribbon .wp-block-social-link a { padding: 10px; }

/* Footer: brand row plus a 2x2 grid on tablets instead of one long column or five squeezed ones. */
@media (min-width: 600px) and (max-width: 1023px) {
	footer.paccm-ribbon > .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	footer.paccm-ribbon > .wp-block-columns > .wp-block-column:first-child { grid-column: 1 / -1; }
}

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

/* ==========================================================================
   Interactions (1.1.0). Colour and focus changes always apply; anything that
   moves sits inside prefers-reduced-motion: no-preference. Only transform,
   translate and opacity are animated.
   ========================================================================== */

/* Buttons: an inset tint darkens them on hover, because core marks the preset colour classes !important. */
.wp-block-button__link, .fluent_form_3 .ff-btn-submit {
	transition: box-shadow .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}
.wp-block-button__link:is(:hover, :focus-visible),
.fluent_form_3 .ff-btn-submit:is(:hover, :focus-visible) {
	box-shadow: 0 6px 16px rgba(11, 42, 94, .18), inset 0 0 0 100vmax rgba(0, 0, 0, .1);
}
.wp-block-button__link.has-white-background-color:is(:hover, :focus-visible) {
	box-shadow: 0 6px 16px rgba(11, 42, 94, .18), inset 0 0 0 100vmax rgba(11, 42, 94, .07);
}
.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible) {
	box-shadow: 0 6px 16px rgba(11, 42, 94, .18), inset 0 0 0 100vmax color-mix(in srgb, currentColor 14%, transparent);
}
.fluent_form_3 .ff-btn-submit:focus-visible { background: var(--wp--preset--color--navy-dark); }

/* Nav links: colour shift plus a sliding underline (the current page keeps its static underline). */
.paccm-header .wp-block-navigation-item__content { transition: color .2s ease; }
.paccm-header .wp-block-navigation-item__content:is(:hover, :focus-visible) { color: var(--wp--preset--color--red); }
.paccm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:not([aria-current]) { position: relative; }
.paccm-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:not([aria-current])::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -6px;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
}
.paccm-header .wp-block-navigation-item__content:is(:hover, :focus-visible)::after { transform: scaleX(1); }
/* Mobile overlay is navy: red fails contrast there, so hover and current page use yellow. */
.paccm-header .is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--wp--preset--color--yellow); }

/* Links on navy (top bar, footer, incl. social icons): white to yellow. */
.paccm-topbar a, .paccm-ribbon a { transition: color .2s ease; }
.paccm-topbar a:is(:hover, :focus-visible),
.paccm-ribbon a:where(:not(.wp-element-button)):is(:hover, :focus-visible) { color: var(--wp--preset--color--yellow); }
.wp-block-social-link:hover { transform: none; } /* replaces core's scale(1.1) with the lift below */

/* Quick-link icons: red line icon in a soft red circle; fills red with a white icon on card hover/focus. */
.paccm-card-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 999px;
	background: rgba(210, 20, 28, .08); color: var(--wp--preset--color--red);
	transition: background-color .2s ease, color .2s ease, transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) .paccm-card-icon { background: var(--wp--preset--color--red); color: #fff; }
@media (max-width: 781px) {
	.paccm-card-icon { width: 40px; height: 40px; }
	.paccm-card-icon svg { width: 20px; height: 20px; }
}

/* Program card photo zoom stays inside the card. */
.paccm-program-card .wp-block-post-featured-image { overflow: hidden; border-radius: 12px 12px 0 0; }
.paccm-program-card .wp-block-post-featured-image img { transition: transform .4s ease; }

/* Header gains a soft shadow once the page scrolls (class set by assets/js/interactions.js). */
.paccm-header { position: relative; }
.paccm-header::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 100%;
	height: 12px;
	background: linear-gradient(rgba(11, 42, 94, .14), rgba(11, 42, 94, 0));
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease;
}
.is-scrolled .paccm-header::after { opacity: 1; }

/* Back-to-top button (created by the script, so it only exists when JS runs). */
.paccm-to-top {
	position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
	width: 48px; height: 48px; padding: 0;
	border: 2px solid #fff; border-radius: 999px; cursor: pointer; /* border keeps it visible over the navy footer */
	background: var(--wp--preset--color--navy); color: #fff;
	font-size: 1.25rem; line-height: 1;
	box-shadow: 0 4px 16px rgba(11, 42, 94, .25);
	opacity: 0; visibility: hidden;
	transition: opacity .2s ease, visibility .2s, transform .2s ease, background-color .2s ease;
}
.paccm-to-top.is-shown { opacity: 1; visibility: visible; }
body[tabindex="-1"]:focus { outline: none; } /* focus target after back-to-top, not a control */
.paccm-to-top:is(:hover, :focus-visible) { background: var(--wp--preset--color--navy-dark); }
/* Two-tone ring: yellow shows on the navy footer, navy shows on white sections. */
.paccm-to-top:focus-visible { outline: 3px solid var(--wp--preset--color--yellow); outline-offset: 0; box-shadow: 0 0 0 6px var(--wp--preset--color--navy); }

/* In-page anchors land below the sticky header. */
html { scroll-padding-top: 10rem; }

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

	/* Lift, then press down. */
	:is(.wp-block-button__link, .fluent_form_3 .ff-btn-submit, .paccm-to-top.is-shown):is(:hover, :focus-visible) { transform: translateY(-2px); }
	:is(.wp-block-button__link, .fluent_form_3 .ff-btn-submit, .paccm-to-top.is-shown):active { transform: translateY(0) scale(.97); transition-duration: .08s; }
	.wp-block-social-link:is(:hover, :focus-within) { transform: translateY(-2px); }

	/* Arrow nudge. */
	.wp-block-button.paccm-arrow .wp-block-button__link:is(:hover, :focus-visible)::after,
	.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) .paccm-arrow::after { transform: translateX(4px); }

	/* Cards lift and the photo zooms. */
	.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) { transform: translateY(-4px); }
	.paccm-card:active { transform: translateY(-1px); transition-duration: .08s; }
	.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) .paccm-card-icon { transform: scale(1.08); }
	.paccm-card:is(:hover, :has(.paccm-card-link a:focus-visible)) .wp-block-post-featured-image img { transform: scale(1.05); }

	.paccm-header .wp-block-navigation-item__content::after { transition: transform .2s ease; }

	/* Hero entrance: eyebrow, headline, lead, buttons rise in turn. CSS only, ends fully visible. */
	.paccm-hero .wp-block-cover__inner-container > .wp-block-group > * { animation: paccm-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.paccm-hero .wp-block-cover__inner-container > .wp-block-group > :nth-child(2) { animation-delay: .1s; }
	.paccm-hero .wp-block-cover__inner-container > .wp-block-group > :nth-child(3) { animation-delay: .2s; }
	.paccm-hero .wp-block-cover__inner-container > .wp-block-group > :nth-child(4) { animation-delay: .3s; }
}
@keyframes paccm-rise { from { opacity: 0; transform: translateY(16px); } }

/* Scroll reveal. The script adds .paccm-reveal only to below-the-fold elements and only when JS runs
   and motion is allowed, so no-JS users, crawlers and print see everything. `translate` (not transform)
   keeps it independent of the card hover lift. */
@media screen and (prefers-reduced-motion: no-preference) {
	.js .paccm-reveal { transition: opacity .6s ease var(--paccm-delay, 0s), translate .6s cubic-bezier(.2, .7, .2, 1) var(--paccm-delay, 0s); }
	.js .paccm-card.paccm-reveal { transition: opacity .6s ease var(--paccm-delay, 0s), translate .6s cubic-bezier(.2, .7, .2, 1) var(--paccm-delay, 0s), transform .2s ease, box-shadow .2s ease; }
	.js .paccm-reveal:not(.is-visible) { opacity: 0; translate: 0 24px; }
}

/* ==========================================================================
   Internal pages (1.2.0). Shared banner, cards, placeholder and prose.
   Used by the About page now; other internal pages adopt the classes later.
   ========================================================================== */
:root {
	--paccm-page-hero-pad-y: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
	--paccm-fs-page-h1: clamp(2rem, 1.5rem + 2.2vw, 3rem);
	--paccm-radius-card: 12px;
	--paccm-ribbon-h: 12px;
}

/* Page hero: navy banner, sun watermark (::before), flag ribbon (::after from .paccm-ribbon). */
.paccm-page-hero { overflow: hidden; padding-top: var(--paccm-page-hero-pad-y); padding-bottom: calc(var(--paccm-page-hero-pad-y) + var(--paccm-ribbon-h)); }
.paccm-page-hero > * { position: relative; z-index: 1; }
.paccm-page-hero::before {
	content: ""; position: absolute; right: -6rem; top: 50%; width: 22rem; aspect-ratio: 1;
	translate: 0 -50%; background: url(assets/images/sun.svg) center / contain no-repeat; opacity: .12; pointer-events: none;
}
.paccm-page-hero h1 { font-size: var(--paccm-fs-page-h1); line-height: 1.1; }
.paccm-page-hero .paccm-page-lead { max-width: 60ch; }
.paccm-page-hero .wp-block-breadcrumbs { font-family: var(--wp--preset--font-family--poppins); font-weight: 600; }
.paccm-page-hero .wp-block-breadcrumbs a { color: #fff; display: inline-block; padding-block: .25rem; } /* >=24px target (2.5.8) */
.paccm-page-hero .wp-block-breadcrumbs a:is(:hover, :focus-visible) { color: var(--wp--preset--color--yellow); }
.paccm-page-hero .wp-block-breadcrumbs [aria-current] { color: rgba(255, 255, 255, .85); }
.paccm-page-hero .paccm-event-date { color: var(--wp--preset--color--yellow); }
.paccm-page-hero .paccm-event-register a {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; border-radius: 999px;
	background: var(--wp--preset--color--yellow); color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--poppins); font-weight: 600; text-decoration: none;
}
/* Media variant: an empty photo column (e.g. no featured image) is dropped so the text goes full width. */
.paccm-page-hero--media .wp-block-column:not(:has(*)) { display: none; }
.paccm-page-hero--media :is(.wp-block-post-featured-image, .wp-block-image) img { border-radius: var(--paccm-radius-card); }

/* Info cards: same look as link cards, but static (no lift, no icon fill). */
.paccm-info-card { height: 100%; }

/* Placeholder: obvious to staff and QA, still readable if it ships. */
.paccm-placeholder { border: 2px dashed var(--wp--preset--color--muted); border-radius: var(--paccm-radius-card); padding: 1rem 1.25rem; color: var(--wp--preset--color--muted); }

/* Page body: full-bleed sections sit flush against the hero, each other and the CTA. */
.paccm-page-body > .alignfull:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--60)); }
.paccm-page-body > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--60)); }
.paccm-page-body > .alignfull + .alignfull { margin-block-start: 0; }

/* Prose: direct children of post content only, so section patterns keep their own spacing. */
.wp-block-post-content > h2 { margin-top: var(--wp--preset--spacing--50); }
.wp-block-post-content > h3 { margin-top: var(--wp--preset--spacing--40); }
.wp-block-post-content > :where(ul, ol) { padding-left: 1.25rem; }
.wp-block-post-content > :where(ul, ol) li + li { margin-top: .5rem; }
.wp-block-post-content > ul li::marker { color: var(--wp--preset--color--red); }
.wp-block-post-content > ol li::marker { color: var(--wp--preset--color--navy); font-family: var(--wp--preset--font-family--poppins); font-weight: 600; }
.wp-block-quote { border-left: 4px solid var(--wp--preset--color--red); margin-left: 0; padding-left: 1.5rem; font-family: var(--wp--preset--font-family--poppins); font-weight: 600; font-size: var(--wp--preset--font-size--lead); color: var(--wp--preset--color--navy); }
.wp-block-quote cite { display: block; margin-top: .5rem; font-family: var(--wp--preset--font-family--inter); font-weight: 400; font-style: normal; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table :where(th, td) { padding: .75rem 1rem; border: 1px solid var(--wp--preset--color--border); text-align: left; }
.wp-block-table th { background: var(--wp--preset--color--navy); color: #fff; font-family: var(--wp--preset--font-family--poppins); font-weight: 600; }
.wp-block-table tbody tr:nth-child(even) { background: var(--wp--preset--color--surface-alt); }
.wp-block-post-content .wp-block-image img { border-radius: var(--paccm-radius-card); }

@media (max-width: 781px) {
	.paccm-page-hero::before { display: none; }
	.paccm-page-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: .75rem; }
	.paccm-page-hero .wp-block-button { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
	/* Same entrance as the homepage hero. Media variant: text column children in turn, then the photo. */
	.paccm-page-hero:not(.paccm-page-hero--media) > *,
	.paccm-page-hero--media .wp-block-column > * { animation: paccm-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
	.paccm-page-hero:not(.paccm-page-hero--media) > :nth-child(2), .paccm-page-hero--media .wp-block-column:first-child > :nth-child(2) { animation-delay: .1s; }
	.paccm-page-hero:not(.paccm-page-hero--media) > :nth-child(3), .paccm-page-hero--media .wp-block-column:first-child > :nth-child(3) { animation-delay: .2s; }
	.paccm-page-hero:not(.paccm-page-hero--media) > :nth-child(n+4), .paccm-page-hero--media .wp-block-column:first-child > :nth-child(n+4),
	.paccm-page-hero--media .wp-block-column + .wp-block-column > * { animation-delay: .3s; }
}
