/* ==========================================================================
   ACP theme - styles for the Figma homepage design and inner pages.
   Colors and fonts come from theme.json (CSS custom properties).
   ========================================================================== */

:root {
	--acp-green: var(--wp--preset--color--primary, #00793d);
	--acp-green-dark: var(--wp--preset--color--primary-dark, #005a2d);
	--acp-clover: var(--wp--preset--color--clover, #2fb865);
	--acp-accent: var(--wp--preset--color--accent, #e3be92);
	/* Fine monochrome noise tile, blended over solid green areas for a bit of texture. */
	--acp-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	--acp-grain-opacity: .16;
	--acp-card-bg: var(--wp--preset--color--base, #fff);
	--acp-card-border: var(--wp--preset--color--border, #d3e8da);
	--acp-header-h: 86px;
	--acp-gap: 1.75rem;
}

html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}
/* Scattered ACP clovers, faint brand green, behind everything (opaque blocks like cards cover it). */
body::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background: url("../images/acp-clover-tile.svg") 0 0 / 720px 720px repeat;
	opacity: .035;
}
img { max-width: 100%; height: auto; }
a { transition: color .15s ease; }
::selection { background: var(--acp-green); color: #fff; }

/* Screen-reader helper (used by templates) */
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	margin: -1px; padding: 0; border: 0; word-wrap: normal !important;
}

/* --------------------------------------------------------------------------
   Header: transparent while it floats over the hero; a solid ACP green bar with grain
   and a sand hairline once scrolled and on every inner page. Logo and links stay white.
   -------------------------------------------------------------------------- */
.acp-site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	color: var(--wp--preset--color--base);
	background: transparent;
	border-bottom: 2px solid transparent;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
/* Logged in, the admin bar is fixed across the top of the viewport and WordPress compensates by
   putting a margin-top on <html>. A position:fixed header is positioned against the viewport, not
   the document, so it never sees that margin and renders underneath the bar. Offsetting by the
   bar's own custom property covers both of its heights -- it redefines itself to 46px below 782px
   -- so the breakpoint does not need restating here.

   Below 600px the bar is position:absolute and scrolls away with the page, so a standing offset
   would leave a permanent gap once scrolled. There it only needs to clear the bar while the page
   is at the top, and header.js already tracks that (it adds .is-scrolled past 24px). */
body.admin-bar .acp-site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) {
	body.admin-bar .acp-site-header.is-scrolled { top: 0; }
}

.acp-site-header.is-scrolled,
body:not(.acp-has-hero) .acp-site-header {
	background: var(--acp-green);
	border-bottom-color: var(--acp-accent);
	box-shadow: 0 6px 24px rgba(0, 40, 20, .18);
}
/* Grain over the solid bar only (fades in with it). No backdrop-filter here: it would become the
   containing block for the fixed mobile menu overlay. */
.acp-site-header::after {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: var(--acp-grain); mix-blend-mode: overlay; opacity: 0; transition: opacity .25s ease;
}
.acp-site-header.is-scrolled::after,
body:not(.acp-has-hero) .acp-site-header::after { opacity: var(--acp-grain-opacity); }
.acp-site-header.is-scrolled .acp-header { padding-top: .75rem; padding-bottom: .75rem; }
/* An open search panel forces the bar solid. On the front page the header is transparent over
   the hero video, and a dark panel hanging off nothing reads as a dialog that lost its window.
   Kept as its own rule rather than added to the .is-scrolled lists above: a browser that does
   not understand :has() drops the whole selector list it appears in, which would take the
   scrolled header down with it. (:has() is already relied on for .acp-logo further down.) */
.acp-site-header:has(.acp-search[open]) {
	background: var(--acp-green);
	border-bottom-color: var(--acp-accent);
	box-shadow: 0 6px 24px rgba(0, 40, 20, .18);
}
.acp-site-header:has(.acp-search[open])::after { opacity: var(--acp-grain-opacity); }
/* No block gap above the hero: it must start at the very top of the page. */
.wp-site-blocks > .acp-main--home { margin-block-start: 0; }

/* Layout: logo on the left, menu + Join grouped on the right. */
.acp-header { position: relative; z-index: 1; padding-top: 1.25rem; padding-bottom: 1.25rem; transition: padding .25s ease; }
.acp-header__inner { display: flex; align-items: center; gap: 2rem; }
/* The group is a flow layout, so core adds block-gap top margins to the nav and button: remove them
   so all three sit on one centre line. */
.acp-header__inner > * { margin-block-start: 0; margin-block-end: 0; }
.acp-header__inner > .acp-logo { margin-right: auto; }

/* Logo: the uploaded site logo when set, otherwise the bundled (white) ACP submark. */
.acp-logo { display: flex; align-items: center; }
.acp-logo .acp-logo__custom img { height: 40px; width: auto; display: block; }
/* The home-link block renders <li><a>ACP</a></li>; the SVG goes on the anchor so the whole mark is clickable. */
.acp-logo .acp-logo__default { list-style: none; margin: 0; padding: 0; }
.acp-logo .acp-logo__default > a {
	display: block;
	width: 113px; height: 40px;
	background: url("../images/acp-submark.svg") no-repeat left center / contain;
	text-indent: -9999px; overflow: hidden; white-space: nowrap;
	transition: opacity .15s ease;
}
.acp-logo .acp-logo__default > a:hover { opacity: .8; }
.acp-logo .acp-logo__default > a:focus-visible { outline: 2px solid var(--acp-accent); outline-offset: 4px; }
.acp-logo:has(.acp-logo__custom img) .acp-logo__default { display: none; }

/* Navigation: white sentence-case links with generous vertical padding; hovered and current
   items turn sand. Core forces links to `color: inherit`, so colour is set on the li. */
/* Same face and weight as the Join button (Obviously 700), sentence case. */
.acp-nav {
	font-family: var(--wp--preset--font-family--obviously);
	/* Eight top-level items share this row with the logo, the search and the Join button. At a
	   flat 1rem/2rem they only fitted on a wide desktop and crowded everything else from about
	   1400px down, so both scale with the viewport instead and reach their full size when there
	   is room for it. Obviously is a display face, so .82rem is as small as it stays legible. */
	font-size: clamp(.82rem, .55rem + .42vw, .95rem);
	font-weight: 700; font-style: normal;
	text-transform: none; letter-spacing: .01em;
}
.acp-nav .wp-block-navigation__container { gap: clamp(.9rem, .2rem + 1.1vw, 1.6rem); }
.acp-nav .wp-block-navigation-item { transition: color .15s ease; }
.acp-nav .wp-block-navigation-item__content {
	position: relative; display: inline-block; text-decoration: none; padding: .8rem 0;
}
.acp-nav .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .45rem; height: 2px;
	background: var(--acp-accent); opacity: 0; transition: opacity .15s ease;
}
.acp-nav .wp-block-navigation-item:hover,
.acp-nav .current-menu-item,
.acp-nav .current_page_item { color: var(--acp-accent); }
.acp-nav .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.acp-nav .current-menu-item > .wp-block-navigation-item__content::after,
.acp-nav .current_page_item > .wp-block-navigation-item__content::after { opacity: 1; }
.acp-nav .wp-block-navigation__responsive-container-open,
.acp-nav .wp-block-navigation__responsive-container-close { color: inherit; }
/* Mobile overlay (green, set on the block): larger links. */
.acp-nav .wp-block-navigation__responsive-container.is-menu-open { font-size: 1.4rem; }
.acp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .75rem; }
.acp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: .5rem 0; }

/* Submenu (Hall of Fame -> ACP Saga). Core's default dropdown is a white card with black text,
   which reads as a foreign element hanging off a solid green header, so it is restated in the
   header's own colours: white until hovered, then sand, like the strip above it.

   Two core rules have to be out-ranked, and both are 0,3,0:
     .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container
     .wp-block-navigation:not(.has-text-color)  .wp-block-navigation__submenu-container
   .acp-nav is on the same element as .wp-block-navigation, so the class is repeated to clear
   them outright rather than relying on this file happening to load last. */
.acp-nav.acp-nav .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
	background: var(--acp-green-dark);
	border: 1px solid rgba(255, 255, 255, .18);
	color: var(--wp--preset--color--base);
	min-width: 13rem;
	padding: .35rem 0;
}
/* Core forces the link itself to `color: inherit`, so the row colour is set on the li - and it
   is set explicitly rather than inherited, so that hovering the parent to open the dropdown
   cannot tint the items inside it. */
.acp-nav.acp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item { color: var(--wp--preset--color--base); }
.acp-nav.acp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item:hover { color: var(--acp-accent); }
.acp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; padding: .55rem 1rem; }
/* The sand underline is a device for the header strip; in the dropdown a row just changes colour. */
.acp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { content: none; }
/* In the mobile overlay core stacks the submenu inline, where a bordered card would look wrong. */
.acp-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background: transparent; border: 0; min-width: 0; padding: 0 0 0 1rem;
}

/* Header Join button: the theme's standard button, smaller. */
.acp-join-btn--small .wp-block-button__link { font-size: .85rem; letter-spacing: .06em; padding: .7rem 1.25rem; }

/* Header search: a magnifier in the bar, a panel hanging under it.
   The panel is positioned against .acp-header rather than living in the flex row, so it can run
   the full width of the bar without competing with the nav for space. It has to read over the
   transparent header on the front page as well as the solid green one everywhere else, so it is
   dressed in the header's own colours -- the same green-dark card the nav submenu uses -- rather
   than in the mint-on-white the rest of the site's inputs wear. */
.acp-search { flex: 0 0 auto; }
.acp-search__toggle {
	display: flex; align-items: center; justify-content: center;
	width: 2.25rem; height: 2.25rem;
	cursor: pointer; list-style: none;
	color: inherit;
	transition: color .15s ease;
}
.acp-search__toggle::-webkit-details-marker { display: none; }
.acp-search__toggle:hover { color: var(--acp-accent); }
.acp-search__toggle:focus-visible { outline: 2px solid var(--acp-accent); outline-offset: 2px; }
.acp-search__icon { display: block; }
/* One <summary>, two glyphs: the magnifier swaps for a cross while the panel is open. */
.acp-search__icon--close { display: none; }
.acp-search[open] .acp-search__icon--find { display: none; }
.acp-search[open] .acp-search__icon--close { display: block; }

.acp-search__panel {
	position: absolute; left: 0; right: 0; top: 100%;
	background: var(--acp-green-dark);
	border-top: 1px solid rgba(255, 255, 255, .18);
	border-bottom: 2px solid var(--acp-accent);
	box-shadow: 0 6px 24px rgba(0, 40, 20, .18);
	z-index: 2;
}
.acp-search__panel-inner {
	max-width: var(--wp--style--global--content-size, 1200px);
	margin: 0 auto;
	padding: 1rem var(--wp--style--root--padding-right, 1.5rem);
}
.acp-search__form .wp-block-search__inside-wrapper { gap: .5rem; }
.acp-search__form .wp-block-search__input {
	flex: 1 1 auto; min-width: 0; width: auto;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .28);
	color: var(--wp--preset--color--base);
	padding: .7rem .9rem;
}
.acp-search__form .wp-block-search__input::placeholder { color: rgba(255, 255, 255, .6); }
.acp-search__form .wp-block-search__input:focus {
	outline: 2px solid var(--acp-accent); outline-offset: 0;
	background: rgba(255, 255, 255, .14);
}
/* Colour comes from the header's own .wp-element-button rule further down -- white on green,
   turning sand on hover, exactly like the Join button beside it. Only the size is set here. */
.acp-search__form .wp-block-search__button { padding: .7rem 1.4rem; }

/* A seven-item menu set in Obviously needs about 1100px before the logo, the magnifier and the
   Join button. Core only swaps in the hamburger below 600px, which left two broken bands: the
   labels wrapped mid-phrase ("Hall of / Fame" over three lines) from roughly 780 to 1150, and
   below 780 the row overflowed the viewport outright, clipping the last items and pushing the
   search and Join off the side of the screen. So the overlay is brought forward to 1024px, and
   labels never break mid-phrase at any width. */
.acp-nav .wp-block-navigation-item__content { white-space: nowrap; }

@media (max-width: 1100px) {
	/* The nav's own size and gap are fluid above, so only the row around it is stepped here --
	   restating them would override the clamp with a larger value at the narrower width. */
	.acp-header__inner { gap: 1.25rem; }
}

/* Hamburger band. Core hides the toggle and lays the menu out inline from 600px up
   (min-width:600px in wp-includes/blocks/navigation/style.css); both of its rules are 0,3,0, so
   .acp-nav is repeated to out-rank them outright rather than relying on load order -- the same
   trick, for the same reason, as the submenu rules above. The open overlay needs no help: core
   positions it fixed from the base rule, outside that media query. */
@media (max-width: 1024px) {
	.acp-nav.acp-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.acp-nav.acp-nav .wp-block-navigation__responsive-container-open { display: flex; }

	.acp-header { padding-top: .75rem; padding-bottom: .75rem; }
	.acp-header__inner { gap: 1rem; }
	/* The menu is a button now, so there is room for Join again; it reads left of the two icons. */
	.acp-header__inner > .acp-header__cta { display: block; }
	.acp-header__inner > .acp-search { order: 2; }
	.acp-header__inner > .acp-nav { order: 3; }
	.acp-logo .acp-logo__default > a { width: 102px; height: 36px; }
	.acp-search__panel-inner { padding-top: .8rem; padding-bottom: .8rem; }
	:root { --acp-header-h: 66px; }
}
@media (max-width: 599px) {
	.acp-join-btn--small .wp-block-button__link { font-size: .8rem; padding: .6rem 1rem; white-space: nowrap; }
	.acp-search__toggle { width: 2rem; height: 2rem; }
	.acp-search__form .wp-block-search__button { font-size: .8rem; padding: .6rem .9rem; }
}
@media (max-width: 400px) {
	.acp-header__inner > .acp-header__cta { display: none; }
}
/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.acp-hero {
	position: relative;
	isolation: isolate;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding-top: calc(var(--acp-header-h) + clamp(1.5rem, 5vw, 3.5rem));
	padding-bottom: clamp(3rem, 8vw, 6rem);
	background: var(--acp-green);
	overflow: hidden;
}
.acp-hero__bg {
	position: absolute; inset: 0; z-index: -2; margin: 0 !important; max-width: none !important; width: 100%;
	background: var(--acp-hero-image, radial-gradient(ellipse 75% 75% at 50% 50%, var(--acp-green) 0%, #001c06 100%)) center / cover no-repeat;
	will-change: transform;
}
.acp-hero__video {
	width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; position: relative; z-index: 0;
	filter: grayscale(1) contrast(1.1) blur(8px);
	transform: scale(1.1);
}
/* Green overlay: hard-light radial from ACP green #00793d (centre) to deep green #001c06 (edges) over the B&W footage */
.acp-hero__tint {
	position: absolute; inset: 0; z-index: 1;
	background: radial-gradient(ellipse 75% 75% at 50% 50%, var(--acp-green) 0%, #001c06 100%);
	mix-blend-mode: hard-light;
}
/* Grain sits above the tinted footage and below the wordmark/button. */
.acp-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--acp-grain); mix-blend-mode: overlay; opacity: calc(var(--acp-grain-opacity) * 1.5);
}

.acp-hero__wordmark { margin: 0 auto; }
.acp-hero__wordmark img {
	width: min(1042px, 92vw);
	height: auto;
	display: block;
	filter: drop-shadow(0 10px 40px rgba(0, 0, 0, .55));
}
.acp-hero__cta { margin-top: clamp(1.75rem, 5vw, 3.5rem); }

/* Scroll cue: a faint chevron on the fold line, drifting down and back.
   It sits absolutely rather than in the flex column so it stays pinned to the bottom of the hero
   however tall the wordmark and button end up, and it fades out once the page has been scrolled
   -- it has made its point by then, and header.js already tracks that on the header above. */
.acp-hero__scroll {
	position: absolute; left: 50%; bottom: clamp(1.1rem, 4vh, 2.5rem); z-index: 2;
	display: grid; place-items: center;
	width: 4.25rem; height: 4.25rem;
	color: var(--wp--preset--color--base, #fff);
	opacity: .5;
	transform: translateX(-50%);
	transition: opacity .3s ease;
}
.acp-hero__scroll:hover,
.acp-hero__scroll:focus-visible { opacity: 1; }
.acp-hero__scroll:focus-visible { outline: 2px solid var(--acp-accent); outline-offset: 4px; border-radius: 50%; }
/* Two chevrons, drawn as the span's own ::before and ::after so the pattern stays one element.
   The span is the moving part and carries no transform of its own: the drift is the separate
   `translate` property, which the browser applies *before* `transform`, so the chevrons' 45deg
   rotation below never tips the movement off vertical. */
.acp-hero__scroll-arrow {
	position: relative; display: block;
	width: 2.05rem; height: 2.05rem;
	animation: acp-scroll-cue 2.4s ease-in-out infinite;
}
/* Each chevron is a 1.4rem square showing only its right and bottom borders, turned 45deg. That
   puts its ink in the *lower half* of its own box -- from the box's centre down to .99rem below
   it (side x 1/root2) -- so the two are offset by 1.04rem and pulled up by half a side to sit
   flush with the top of the span. Offsetting by the box height instead would overlap the strokes.
   box-sizing is stated because the theme sets no global border-box: left to content-box the
   borders would grow the square past 1.4rem and close the gap the offset above is counting on. */
.acp-hero__scroll-arrow::before,
.acp-hero__scroll-arrow::after {
	content: ""; position: absolute; left: 50%;
	box-sizing: border-box;
	width: 1.4rem; height: 1.4rem; margin-left: -.7rem;
	border-right: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
	transform: rotate(45deg);
}
/* The leading chevron is lighter, so the pair reads as pointing down rather than as two rules. */
.acp-hero__scroll-arrow::before { top: -.7rem; opacity: .6; }
.acp-hero__scroll-arrow::after  { top: .34rem; }
@keyframes acp-scroll-cue {
	0%, 100% { translate: 0 -22%; opacity: .55; }
	50%      { translate: 0 22%;  opacity: 1; }
}
/* The header covers the top of whatever the cue scrolls to. */
#acp-start { scroll-margin-top: calc(var(--acp-header-h) + 1rem); }
.acp-site-header.is-scrolled ~ .acp-main .acp-hero__scroll { opacity: 0; pointer-events: none; }

/* Join button */
.wp-element-button {
	line-height: 1.1;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.acp-join-btn .wp-block-button__link { font-size: clamp(1.25rem, 1.8vw, 1.6rem); padding: 1.1rem 3.75rem; }
.acp-join-btn .wp-block-button__link:hover { transform: translateY(-2px); }
/* On green surfaces (hero, footer, header while it floats over the hero) buttons flip to white
   with green text. Hover is sand with ink text everywhere, matching theme.json. */
.acp-hero .wp-element-button,
.acp-site-footer .wp-element-button,
.acp-site-header .wp-element-button { background: var(--wp--preset--color--base); color: var(--acp-green); }
.acp-hero .wp-element-button:hover,
.acp-site-footer .wp-element-button:hover,
.acp-site-header .wp-element-button:hover { background: var(--acp-accent); color: var(--wp--preset--color--contrast); }

@media (prefers-reduced-motion: reduce) {
	.acp-hero__video { display: none; }
	html { scroll-behavior: auto; }
	/* The cue stays -- it is the only thing saying the page continues -- but it stops moving. */
	.acp-hero__scroll-arrow { animation: none; translate: 0; }
}

/* --------------------------------------------------------------------------
   Sections + cards
   -------------------------------------------------------------------------- */
.acp-main--home > .acp-section--featured { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.acp-section { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.acp-main--home > .acp-section:last-child { margin-bottom: 0; padding-bottom: clamp(4rem, 10vw, 8rem); }

.acp-section__title,
.wp-block-query-title.acp-section__title {
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	border-left: .28em solid var(--acp-green);
	padding-left: .55em;
	margin: 0 0 1.25rem;
}

.acp-card {
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: border-color .2s ease;
}
.acp-card:hover { border-color: var(--acp-green); }

.acp-card__media { margin: 0; overflow: hidden; }
.acp-card__media img,
.acp-card__media .acp-card__placeholder {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.acp-card--featured .acp-card__media img,
.acp-card--featured .acp-card__media .acp-card__placeholder { aspect-ratio: 3.75 / 1; }
.acp-card:hover .acp-card__media img { transform: scale(1.03); }
.acp-card__placeholder {
	background:
		radial-gradient(ellipse at 30% 40%, var(--acp-clover) 0%, rgba(47, 184, 101, 0) 60%),
		radial-gradient(ellipse at 80% 70%, var(--acp-green) 0%, rgba(0, 121, 61, 0) 60%),
		var(--wp--preset--color--surface);
}

/* Title card: the hero plate with the headline over it, for posts with no featured image.
   It keeps .acp-card__placeholder alongside .acp-titlecard so every shape rule above already
   applies -- 16/9, the featured 3.75/1 override, the 680px collapse and the 96x64 mini card --
   and the placeholder's gradient stays underneath as the fallback if the plate ever 404s.

   Sized in container query units so one formula serves all four widths. Viewport units cannot:
   the featured banner, the grid cards and the sidebar thumbnails all render at one viewport
   width, so what matters is the width of the card, not of the window.

   Two properties rather than one, because they come from different places and must compose: the
   context sets --acp-tc-base (how big type is on this shape of card) and PHP sets --acp-tc-fit
   inline (how much to shrink for this particular title's length). A single property would mean
   the inline value silently beat every context rule below. */
.acp-titlecard {
	container: acp-titlecard / inline-size;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	text-decoration: none;
	--acp-tc-base: 9.5cqw;
	--acp-tc-lines: 3;
}
/* The plate sits on the pseudo-element so it can zoom on hover without dragging the text with
   it, the way .acp-card__media img already does. */
.acp-titlecard::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(ellipse 90% 90% at 50% 50%, rgba(0, 20, 10, .10) 0%, rgba(0, 20, 10, .45) 100%),
		url("../images/card-plate.jpg") center / cover no-repeat;
	transition: transform .4s ease;
}
.acp-card:hover .acp-titlecard::before { transform: scale(1.03); }

/* Taken out of flow rather than centred in it. The card's shape comes from the aspect-ratio
   rules above, and in-flow text would stretch the box past them the moment a title ran to a
   third line; inset + margin:auto centres it in both axes without ever resizing the card.
   width:100% is what keeps a long line wrapping inside the box instead of sizing to its own
   content and spilling out of the side. box-sizing is stated because the theme sets no global
   border-box, the same reason .acp-card does at line 366. */
.acp-titlecard__text {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	height: max-content;
	max-height: 100%;
	box-sizing: border-box;
	padding: 0 11cqw;
	font-family: var(--wp--preset--font-family--obviously);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--wp--preset--color--base, #fff);
	text-align: center;
	text-wrap: balance;
	overflow-wrap: anywhere;
	text-shadow: 0 .35cqw 2.2cqw rgba(0, 0, 0, .55);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	-webkit-line-clamp: var(--acp-tc-lines);
	line-clamp: var(--acp-tc-lines);
	/* Browsers with no container query units (pre-2023) would resolve cqw against the viewport,
	   which on a 96px thumbnail is catastrophic. They get this and stop reading. */
	font-size: 1.1rem;
	font-size: calc(var(--acp-tc-base) * var(--acp-tc-fit, 1));
}

/* The wide banner is a much shorter box, so smaller type and fewer lines. Under 680px it goes
   back to 16/9 and the standard scale applies again. */
.acp-card--featured .acp-titlecard { --acp-tc-base: 6.5cqw; --acp-tc-lines: 2; }
@media (max-width: 680px) {
	.acp-card--featured .acp-titlecard { --acp-tc-base: 9.5cqw; --acp-tc-lines: 3; }
}

/* Too small to read anything, and the headline is already printed alongside it, so the mini card
   shows a clean crop of the plate. Two rules: the container query catches any future small
   context on its own, the class rule works without container query support. */
@container acp-titlecard (max-width: 200px) {
	.acp-titlecard__text { display: none; }
}
.acp-mini-card__media .acp-titlecard__text { display: none; }

.acp-card__body { padding: 1.5rem 1.5rem 3.25rem; }
.acp-card__body > * { margin-top: 0; margin-bottom: 0; }
.acp-card__body > * + * { margin-top: .35rem; }

.acp-card__date,
.wp-block-post-date.acp-card__date {
	color: var(--acp-green);
	font-size: .85rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .05em;
}
.acp-card__title { font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.1; }
.acp-card--featured .acp-card__title { font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.acp-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.acp-card__title a:hover { color: var(--acp-green); }

.acp-card__author { font-size: .95rem; font-weight: 700; color: var(--acp-green); }
.acp-card__author::before { content: "By "; font-weight: 500; color: var(--wp--preset--color--muted); }
.acp-card__author + .acp-card__more { margin-top: 1.25rem; }
.acp-card__author a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.acp-card__author a:hover { color: var(--acp-green-dark); border-bottom-color: currentColor; }

.acp-card__more,
a.wp-block-read-more.acp-card__more {
	display: inline-block;
	color: var(--acp-green);
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	text-decoration: none;
}
.acp-card__more:hover { color: var(--acp-green-dark); }

/* 2-column grid (falls back to one column on small screens) */
.wp-block-query.acp-grid .wp-block-post-template.is-layout-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--acp-gap);
}
.wp-block-query.acp-grid .wp-block-post-template.is-layout-grid > li { height: 100%; }

/* Hub sections (Catalogs, Party Guides): heading row with "view all", 4-up compact cards */
.acp-section__head { margin-bottom: 1.25rem; gap: 1rem; }
.acp-section__head .acp-section__title { margin-bottom: 0; }
.acp-section__more { margin: 0; }
.acp-section__more a {
	color: var(--acp-green); text-decoration: none; font-weight: 700; text-transform: uppercase;
	font-size: .8rem; letter-spacing: .06em; white-space: nowrap;
}
.acp-section__more a:hover { color: var(--acp-green-dark); text-decoration: underline; text-underline-offset: .25em; }
.wp-block-query.acp-grid--4 .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.acp-card--compact .acp-card__body { padding: 1rem 1rem 1.5rem; }
.acp-card--compact .acp-card__title { font-size: 1.05rem; line-height: 1.2; }
.acp-card--compact .acp-card__date { font-size: .72rem; }
.acp-card--compact .acp-card__author { font-size: .85rem; }
@media (max-width: 1000px) {
	.wp-block-query.acp-grid--4 .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.wp-block-query.acp-grid--4 .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
	.acp-section__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 680px) {
	.wp-block-query.acp-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; }
	.acp-card--featured .acp-card__media img,
	.acp-card--featured .acp-card__media .acp-card__placeholder { aspect-ratio: 16 / 9; }
	.acp-card__body { padding-bottom: 2rem; }
}

/* Pagination */
/* Pagination (archives + comments): square number tiles like the buttons, current page solid green,
   prev/next as the tracked green labels used on cards. Three grid columns keep the numbers centred
   even when only one of prev/next exists. */
.acp-pagination.wp-block-query-pagination,
.acp-pagination.wp-block-comments-pagination {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
	margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--acp-card-border);
}
.acp-pagination > * { margin: 0; }
.acp-pagination .wp-block-query-pagination-previous,
.acp-pagination .wp-block-comments-pagination-previous { grid-column: 1; justify-self: start; }
.acp-pagination .wp-block-query-pagination-numbers,
.acp-pagination .wp-block-comments-pagination-numbers { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .4rem; }
.acp-pagination .wp-block-query-pagination-next,
.acp-pagination .wp-block-comments-pagination-next { grid-column: 3; justify-self: end; }
.acp-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem;
	font-family: var(--wp--preset--font-family--obviously); font-weight: 700; font-size: .95rem; line-height: 1;
	color: var(--wp--preset--color--contrast); background: var(--acp-card-bg); border: 1px solid var(--acp-card-border);
	text-decoration: none; transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.acp-pagination a.page-numbers:hover { border-color: var(--acp-green); color: var(--acp-green); }
.acp-pagination .page-numbers.current { background: var(--acp-green); border-color: var(--acp-green); color: var(--wp--preset--color--base); }
.acp-pagination .page-numbers.dots { min-width: 1.25rem; padding: 0; border: 0; background: none; color: var(--wp--preset--color--muted); }
.acp-pagination .wp-block-query-pagination-previous,
.acp-pagination .wp-block-query-pagination-next,
.acp-pagination .wp-block-comments-pagination-previous,
.acp-pagination .wp-block-comments-pagination-next {
	display: inline-flex; align-items: center; gap: .45em;
	font-family: var(--wp--preset--font-family--proxima-nova); font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .08em; white-space: nowrap;
	color: var(--acp-green); text-decoration: none;
}
.acp-pagination .wp-block-query-pagination-previous:hover,
.acp-pagination .wp-block-query-pagination-next:hover,
.acp-pagination .wp-block-comments-pagination-previous:hover,
.acp-pagination .wp-block-comments-pagination-next:hover { color: var(--acp-green-dark); }
.acp-pagination .wp-block-query-pagination-previous::before,
.acp-pagination .wp-block-comments-pagination-previous::before { content: "←"; }
.acp-pagination .wp-block-query-pagination-next::after,
.acp-pagination .wp-block-comments-pagination-next::after { content: "→"; }
@media (max-width: 680px) {
	.acp-pagination.wp-block-query-pagination,
	.acp-pagination.wp-block-comments-pagination { grid-template-columns: 1fr 1fr; }
	.acp-pagination .wp-block-query-pagination-numbers,
	.acp-pagination .wp-block-comments-pagination-numbers { grid-column: 1 / -1; grid-row: 1; }
	.acp-pagination .wp-block-query-pagination-previous,
	.acp-pagination .wp-block-comments-pagination-previous { grid-column: 1; grid-row: 2; }
	.acp-pagination .wp-block-query-pagination-next,
	.acp-pagination .wp-block-comments-pagination-next { grid-column: 2; grid-row: 2; }
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */
.acp-main:not(.acp-main--home) { padding-top: calc(var(--acp-header-h) + clamp(1.5rem, 4vw, 3rem)); padding-bottom: clamp(3rem, 8vw, 6rem); }

/* .acp-single__title is sized in the "Single post" section below. */
.acp-single .wp-block-post-content,
.acp-page .wp-block-post-content { font-size: 1.05rem; line-height: 1.75; margin-top: 2rem; }
.acp-single .wp-block-post-content a,
.acp-page .wp-block-post-content a { color: var(--acp-green); }
.acp-single .wp-block-post-content h2,
.acp-page .wp-block-post-content h2 { margin-top: 2.5rem; }
.acp-single__terms { color: var(--wp--preset--color--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 2rem; }
.acp-single__terms a { color: var(--acp-green); text-decoration: none; }

.acp-single__nav { border-top: 1px solid var(--acp-card-border); padding-top: 1.5rem; margin-top: 2.5rem; font-weight: 700; text-transform: uppercase; font-size: .9rem; }
.acp-single__nav a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.acp-single__nav a:hover { color: var(--acp-green); }

/* Comments + forms */
.acp-comments { margin-top: 3rem; border-top: 1px solid var(--acp-card-border); padding-top: 2rem; }
.acp-comment { border: 1px solid var(--acp-card-border); background: var(--acp-card-bg); padding: 1.25rem; margin-bottom: 1rem; }
.acp-comment .wp-block-comment-date { color: var(--wp--preset--color--muted); font-size: .85rem; }
.acp-comment .wp-block-comment-author-name { font-weight: 700; }

/* The reply form is a cross-origin iframe served by jetpack.wordpress.com, so nothing inside it --
   the Comment button, the avatar and gear row, its own padding -- can be reached from a stylesheet
   here. Jetpack exposes a light/dark colour scheme and nothing else, which is why that button stays
   grey rather than green however much one would prefer otherwise.

   What is ours is the box around it, and left alone it reads as a foreign widget dropped into the
   column: a browser-default grey frame sitting under the green-tinted comment cards above it, and a
   heading pressed right up against it. These rules settle it into the page. */
.acp-comments .comment-respond { margin-top: 2rem; }

.acp-comments .comment-reply-title {
	margin: 0 0 1rem;
	line-height: 1.2;
}

/* The heading carries a <small> holding "Cancel reply", which only appears when replying to someone.
   Without this it inherits the heading's uppercase display size and shouts. */
.acp-comments .comment-reply-title small {
	display: block;
	margin-top: .35rem;
	font-size: .8rem;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.acp-comments .comment-form { margin: 0; }

/* The iframe carries an inline `width:100%; height:...; border:0`, so width has to be restated to
   fill the column and height is left to Jetpack, which resizes the frame from inside as the form
   grows.

   No border here on purpose. Jetpack draws its own frame around the textarea *inside* the iframe,
   so a border on the element would sit outside that one and read as a double rule. Beating the
   inline `border:0` would take !important, and the result would look worse than leaving it.

   The site sets jetpack_comment_form_color_scheme to "transparent" (an option, not a theme file)
   so the iframe does not paint its own white panel over the card behind it. */
.acp-comments #jetpack_remote_comment {
	display: block;
	width: 100%;
	max-width: 100%;
}
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
	color: var(--wp--preset--color--contrast);
	padding: .75rem 1rem;
	font: inherit;
	width: 100%;
	max-width: 100%;
}
input:focus, textarea:focus { outline: 2px solid var(--acp-green); outline-offset: 0; }
input[type="submit"], .wp-block-search__button {
	background: var(--acp-green);
	color: var(--wp--preset--color--base);
	border: 0;
	font-family: var(--wp--preset--font-family--obviously);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	padding: .75rem 1.5rem;
	cursor: pointer;
}
input[type="submit"]:hover, .wp-block-search__button:hover { background: var(--acp-accent); color: var(--wp--preset--color--contrast); }
.wp-block-search__inside-wrapper { border: 0; gap: .5rem; }

/* --------------------------------------------------------------------------
   ACP Saga: the page furniture around the timeline.
   The timeline itself is the acp/saga block, and its styling ships with the
   plugin (acp-saga/assets/saga.css). What is left here dresses the ordinary
   page blocks that sit above it - the intro and crest, and the Trophy Case and
   League Awards panels - which the plugin knows nothing about.
   -------------------------------------------------------------------------- */
.acp-saga__intro { text-align: center; margin-bottom: calc(var(--acp-gap) * 1.5); }
.acp-saga__lead { margin-bottom: .25rem; }
.acp-saga__range { color: var(--wp--preset--color--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; }
/* min() rather than a flat 420px: on a phone the flat cap is wider than the column it sits in,
   and the crest was the one thing making this page scroll sideways at 400px. */
.acp-saga__crest img { max-width: min(420px, 100%); }
.acp-saga__previous a { color: var(--acp-green); font-weight: 700; }

/* Trophy Case and League Awards, side by side above the timeline. */
.acp-saga__honours { margin-top: 0; }
/* The rule that closes the prologue, under the trophies. */
.acp-saga__rule { border: 0; border-top: 1px solid var(--acp-card-border); opacity: 1; margin: calc(var(--acp-gap) * 1.5) 0 0; }
.acp-saga-panel { background: var(--acp-card-bg); border: 1px solid var(--acp-card-border); padding: clamp(1.25rem, 2.5vw, 2rem); height: 100%; }
/* The plugin's .acp-saga__month-title carries the same treatment, stated there rather than
   shared from here so the month panels still read correctly if the theme is swapped out. */
.acp-saga-panel__title { font-size: 1rem; letter-spacing: .04em; border-left: .3em solid var(--acp-green); padding-left: .55em; margin: 0 0 1rem; }
.acp-saga-panel__art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.acp-saga-panel__items { list-style: none; margin: 1rem 0 0; padding: 0; }
.acp-saga-panel__items li { border-top: 1px solid var(--acp-card-border); padding: .5rem 0; font-size: .95rem; }
.acp-saga-panel__items li:first-child { border-top: 0; }

/* --------------------------------------------------------------------------
   Footer: a single solid-green strip with grain (copyright + back to top).
   The page is a min-height column so the strip sits at the bottom of short pages.
   -------------------------------------------------------------------------- */
.wp-site-blocks { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.acp-site-footer {
	position: relative; isolation: isolate;
	margin-top: auto;
	background: var(--acp-green);
	color: var(--wp--preset--color--base);
	overflow: hidden;
}
.acp-site-footer::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--acp-grain); mix-blend-mode: overlay; opacity: var(--acp-grain-opacity);
}
.acp-footer { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.acp-footer__bottom > * { margin-block-start: 0; }
.acp-footer__copy { color: rgba(255, 255, 255, .8); font-size: .85rem; margin: 0; }
.acp-footer__credit { color: rgba(255, 255, 255, .8); font-size: .85rem; margin: 0; }
.acp-footer__heart { color: var(--acp-accent); font-weight: 700; }
.acp-footer__top { margin: 0; }
.acp-footer__top a {
	color: var(--wp--preset--color--base); text-decoration: none;
	font-family: var(--wp--preset--font-family--obviously); font-weight: 700; font-size: .85rem;
}
.acp-footer__top a:hover { color: var(--acp-accent); }

/* --------------------------------------------------------------------------
   Single post: article column + widget sidebar (templates/single.html, parts/sidebar.html,
   patterns/widget-*.php). Columns stack below 782px via core CSS: article first, sidebar below.
   -------------------------------------------------------------------------- */
.acp-main .acp-post-layout { gap: clamp(2rem, 4vw, 3.5rem); margin-bottom: 0; }
.acp-post-layout__main { min-width: 0; }
/* The article and the comments are white cards like the widgets, so the column does not float on the tile. */
.acp-post-layout__main .acp-single,
.acp-post-layout__main .acp-comments {
	background: var(--acp-card-bg); border: 1px solid var(--acp-card-border);
	padding: clamp(1.25rem, 2.5vw, 2rem);
}
.acp-post-layout__main .acp-single > :first-child { margin-top: 0; }
.acp-post-layout__main .acp-comments { margin-top: 1.5rem; }
.acp-post-layout__main .acp-comments > :first-child,
.acp-post-layout__main .acp-comments .comment-reply-title { margin-top: 0; }
.acp-post-layout__main .acp-comment { background: var(--wp--preset--color--surface); }
/* Core pins the aside with an inline flex-basis; narrow it on small laptops and tablets. */
@media (min-width: 782px) and (max-width: 1100px) {
	.acp-post-layout > .acp-post-layout__aside { flex-basis: 290px !important; }
}

/* Post header: category pills, title, meta row, sand rule */
.acp-post-header { padding-bottom: 1.25rem; border-bottom: 3px solid var(--acp-accent); }
.acp-post-header > * { margin-top: 0; margin-bottom: 0; }
.acp-post-header__kicker { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.acp-post-header__kicker .wp-block-post-terms__separator { display: none; }
.acp-post-header__kicker a {
	display: inline-block; padding: .3rem .7rem; border-radius: 999px;
	background: var(--wp--preset--color--surface); border: 1px solid var(--acp-card-border);
	color: var(--acp-green); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.acp-post-header__kicker a:hover { background: var(--acp-green); border-color: var(--acp-green); color: var(--wp--preset--color--base); }
.acp-single__title { font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.02; }
.acp-post-meta { margin-top: .9rem; gap: .35rem 1rem; font-size: .9rem; color: var(--wp--preset--color--muted); }
.acp-post-meta > * { margin: 0; }
.acp-post-meta__author { font-weight: 700; color: var(--wp--preset--color--contrast); }
.acp-post-meta__author::before { content: "By "; font-weight: 500; color: var(--wp--preset--color--muted); }
.acp-post-meta__author a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--acp-card-border); }
.acp-post-meta__author a:hover { color: var(--acp-green); border-bottom-color: currentColor; }
.acp-post-meta__date,
.wp-block-post-date.acp-post-meta__date { color: var(--acp-green); font-size: .85rem; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.acp-post-meta__comments a { color: var(--wp--preset--color--muted); text-decoration: none; }
.acp-post-meta__comments a:hover { color: var(--acp-green); }
/* Legacy tables from the import can be wider than the column. */
.acp-single .wp-block-post-content table { display: block; max-width: 100%; overflow-x: auto; }
/* Fixed header: keep in-page anchors (e.g. #comments) visible when jumped to. */
.acp-single [id] { scroll-margin-top: calc(var(--acp-header-h) + 1rem); }

/* Widget chrome: white card with a mint border; a small green-bar title */
.acp-widget { background: var(--acp-card-bg); border: 1px solid var(--acp-card-border); padding: 1.35rem 1.35rem 1.5rem; }
.acp-widget > * { margin-top: 0; margin-bottom: 0; }
.acp-widget > * + * { margin-top: .9rem; }
.acp-widget > .acp-widget__title + * { margin-top: 1.1rem; }
.acp-widget__title {
	font-size: 1rem; font-weight: 800; line-height: 1; letter-spacing: .05em; text-transform: uppercase;
	border-left: .3em solid var(--acp-green); padding-left: .6em;
}
.acp-widget__blurb { font-size: .95rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.acp-widget__more a {
	display: inline-block; color: var(--acp-green); font-size: .8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.acp-widget__more a:hover { color: var(--acp-green-dark); }

/* Brand card: solid ACP green with grain; the white wordmark only ever sits on green. */
.acp-widget--brand {
	position: relative; isolation: isolate; overflow: hidden; border: 0; padding: 1.6rem 1.5rem 1.75rem;
	background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(47, 184, 101, .55) 0%, rgba(47, 184, 101, 0) 60%), var(--acp-green);
	color: var(--wp--preset--color--base);
}
.acp-widget--brand::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: var(--acp-grain); mix-blend-mode: overlay; opacity: var(--acp-grain-opacity);
}
.acp-widget__wordmark { margin: 0; }
.acp-widget__wordmark img { display: block; width: 100%; height: auto; aspect-ratio: 1042 / 308; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .25)); }
.acp-widget__tagline {
	font-family: var(--wp--preset--font-family--obviously-condensed);
	font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .03em;
	font-size: 1.2rem; line-height: 1.1; color: var(--acp-accent);
}
.acp-widget--brand > .acp-widget__wordmark + .acp-widget__tagline { margin-top: 1.25rem; }
.acp-widget--brand .acp-widget__blurb { color: rgba(255, 255, 255, .85); }
.acp-widget--brand .acp-widget__cta { margin-top: 1.25rem; }
/* On green the Join button is white with green text (same as over the hero); hover goes sand. */
.acp-widget--brand .wp-element-button { background: var(--wp--preset--color--base); color: var(--acp-green); }
.acp-widget--brand .wp-element-button:hover { background: var(--acp-accent); color: var(--wp--preset--color--contrast); }

/* Latest news / most viewed: compact thumbnail rows */
.acp-widget__list .wp-block-post-template { list-style: none; padding: 0; margin: 0; }
.acp-widget__list .wp-block-post-template > li + li { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--acp-card-border); }
.acp-mini-card { gap: .85rem; }
.acp-mini-card__media,
.wp-block-post-featured-image.acp-mini-card__media { flex: 0 0 96px; width: 96px; height: 64px; margin: 0; }
.acp-mini-card__media img,
.acp-mini-card__media .acp-card__placeholder { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.acp-mini-card__body { min-width: 0; }
.acp-mini-card__body > * { margin: 0; }
.acp-mini-card__date,
.wp-block-post-date.acp-mini-card__date { font-size: .72rem; }
.acp-mini-card__title {
	font-family: var(--wp--preset--font-family--proxima-nova);
	font-size: .98rem; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: 0; margin-top: .15rem;
}
.acp-mini-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.acp-mini-card__title a:hover { color: var(--acp-green); }

/* Search + archives */
.acp-widget__search .wp-block-search__input { font-size: .95rem; padding: .65rem .9rem; }
.acp-widget__search .wp-block-search__button { padding: .65rem .9rem; }
.acp-widget__search .wp-block-search__button svg { fill: currentColor; }
.acp-widget__archives select {
	width: 100%; padding: .65rem .9rem; font: inherit; font-size: .95rem; border-radius: 0;
	background: var(--wp--preset--color--surface); border: 1px solid var(--acp-card-border); color: var(--wp--preset--color--contrast);
}
.acp-widget__archives select:focus { outline: 2px solid var(--acp-green); outline-offset: 0; }

/* Community links (optional pattern): green pills with labels */
.acp-widget__social { gap: .6rem; }
.acp-widget__social .wp-social-link { background: var(--acp-green); color: var(--wp--preset--color--base); border-radius: 999px; transition: background-color .15s ease; }
.acp-widget__social .wp-social-link a { padding: .4rem .95rem .4rem .55rem; gap: .45rem; color: inherit; }
.acp-widget__social .wp-social-link svg { fill: currentColor; }
.acp-widget__social .wp-block-social-link-label { font-size: .9rem; font-weight: 700; }
.acp-widget__social .wp-social-link:hover { background: var(--acp-green-dark); transform: none; }

/* Next Event card (acp/next-event, inc/next-event.php). The cover is a Discord event banner,
   2.5:1 and shown whole (cropping loses the text Discord puts on it); the rest is the same ladder as the pin widget: kicker, name,
   detail lines, a button. Live events get a pulsing dot on the kicker. */
.acp-event__figure {
	display: block; overflow: hidden;
	background: var(--wp--preset--color--surface, #f2f8f4); border: 1px solid var(--acp-card-border);
	text-decoration: none; transition: border-color .15s ease;
}
a.acp-event__figure:hover, a.acp-event__figure:focus-visible { border-color: var(--acp-green); }
.acp-event__figure img { display: block; width: 100%; height: auto; transition: transform .2s ease; }
a.acp-event__figure:hover img { transform: scale(1.03); }
.acp-event__body > * { margin: 0; }
.acp-event__kicker {
	display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
	color: var(--acp-green); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.acp-event__division {
	display: inline-block; padding: .25em .6em; background: var(--acp-green); color: var(--wp--preset--color--base, #fff);
}
.acp-event__relative { color: var(--wp--preset--color--muted); }
.acp-widget--event-live .acp-event__relative { color: #b32d2e; }
.acp-widget--event-live .acp-event__relative::before {
	content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .4em; border-radius: 50%;
	background: currentColor; animation: acp-event-pulse 1.4s ease-in-out infinite;
}
@keyframes acp-event-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.acp-event__name {
	margin-top: .35rem;
	font-family: var(--wp--preset--font-family--obviously); font-size: 1.25rem; font-weight: 700; line-height: 1.15;
}
.acp-event__name a { color: inherit; text-decoration: none; }
.acp-event__name a:hover { color: var(--acp-green); }
.acp-event__when { margin-top: .5rem; font-size: .95rem; font-weight: 700; }
.acp-widget--event-localised .acp-event__when time { cursor: help; border-bottom: 1px dotted var(--acp-card-border); }
.acp-event__where { margin-top: .15rem; color: var(--wp--preset--color--muted); font-size: .9rem; }
.acp-event__cta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
.acp-event__button {
	display: inline-block; padding: .7rem 1.25rem; background: var(--acp-green); color: var(--wp--preset--color--base, #fff);
	font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
	transition: background-color .15s ease;
}
.acp-event__button:hover, .acp-event__button:focus-visible { background: var(--acp-green-dark); color: var(--wp--preset--color--base, #fff); }
@media (prefers-reduced-motion: reduce) {
	.acp-event__figure img, .acp-widget--event-live .acp-event__relative::before { transition: none; animation: none; }
	a.acp-event__figure:hover img { transform: none; }
}

/* Top Ten card (acp/top-ten, inc/top-ten.php): ACP's own row only - a big rank number and one
   plain stat line beneath it, same title/more ladder as every other widget. Only rendered on
   the front end while ACP is ranked 1st-3rd. */
.acp-widget--top-ten .acp-tt-body { display: flex; flex-direction: column; gap: .35rem; }
.acp-tt-rank {
	font-family: var(--wp--preset--font-family--obviously, inherit); font-size: 2.75rem; font-weight: 800; line-height: 1;
	color: var(--acp-green);
}


@media (max-width: 781px) {
	.acp-post-layout__aside { margin-top: .5rem; }
	.acp-sidebar { border-top: 1px solid var(--acp-card-border); padding-top: 1.5rem; }
	.acp-widget { padding: 1.15rem; }
}

/* --------------------------------------------------------------------------
   Legacy content: WordPress default palette classes used by imported posts.
   The theme hides the default palette in the editor, so define them here.
   -------------------------------------------------------------------------- */
.wp-block-post-content .has-black-color { color: #000; }
/* CoBlocks "dynamic separator" (imported posts used it as a spacer): keep its inline height, draw nothing. */
.wp-block-post-content hr.wp-block-coblocks-dynamic-separator {
	border: 0; background: none; margin: 0; padding: 0; width: 100%;
}
.wp-block-post-content hr.wp-block-coblocks-dynamic-separator::before,
.wp-block-post-content hr.wp-block-coblocks-dynamic-separator::after { content: none; }
.wp-block-post-content .has-cyan-bluish-gray-color { color: #abb8c3; }
.wp-block-post-content .has-white-color { color: #fff; }
.wp-block-post-content .has-pale-pink-color { color: #f78da7; }
.wp-block-post-content .has-vivid-red-color { color: #e03c3c; }
.wp-block-post-content .has-luminous-vivid-orange-color { color: #ff6900; }
.wp-block-post-content .has-luminous-vivid-amber-color { color: #fcb900; }
.wp-block-post-content .has-light-green-cyan-color { color: #7bdcb5; }
.wp-block-post-content .has-vivid-green-cyan-color { color: #00d084; }
.wp-block-post-content .has-pale-cyan-blue-color { color: #8ed1fc; }
.wp-block-post-content .has-vivid-cyan-blue-color { color: #2ea6f0; }
.wp-block-post-content .has-vivid-purple-color { color: #b177ea; }
.wp-block-post-content .has-white-background-color { background-color: #fff; color: #111; }
.wp-block-post-content .has-black-background-color { background-color: #000; }
.wp-block-post-content .has-pale-cyan-blue-background-color { background-color: #8ed1fc; color: #111; }
.wp-block-post-content .has-cyan-bluish-gray-background-color { background-color: #abb8c3; color: #111; }
.wp-block-post-content .has-pale-pink-background-color { background-color: #f78da7; color: #111; }
.wp-block-post-content .has-luminous-vivid-amber-background-color { background-color: #fcb900; color: #111; }
.wp-block-post-content table { border-collapse: collapse; }
.wp-block-post-content td, .wp-block-post-content th { border: 1px solid var(--acp-card-border); padding: .4rem .6rem; }
.wp-block-post-content iframe { max-width: 100%; }

/* Post images: centred by default, no border. Inline emoji/smileys stay inline. */
.wp-block-post-content img { border: 0; }
.wp-block-post-content .wp-block-image,
.wp-block-post-content figure:not(.alignleft):not(.alignright),
.wp-block-post-content .wp-caption:not(.alignleft):not(.alignright) { margin-left: auto; margin-right: auto; text-align: center; }
.wp-block-post-content .wp-block-image img,
.wp-block-post-content img.aligncenter,
.wp-block-post-content img.alignnone,
.wp-block-post-content img[class*="size-"]:not(.alignleft):not(.alignright),
.wp-block-post-content p > img:only-child { display: block; margin-left: auto; margin-right: auto; }
.wp-block-post-content img.emoji,
.wp-block-post-content img.wp-smiley { display: inline; margin: 0 .07em; vertical-align: -0.1em; }

/* --------------------------------------------------------------------------
   Image lightbox (post content)
   -------------------------------------------------------------------------- */
.acp-zoomable { cursor: zoom-in; }
.acp-lightbox[hidden] { display: none; }
.acp-lightbox-open { overflow: hidden; }
.acp-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 20, 8, .92);
	padding: 3.5rem 4.5rem;
	animation: acp-lightbox-in .18s ease-out;
}
@keyframes acp-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.acp-lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.acp-lightbox__img {
	max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto;
	display: block; object-fit: contain; cursor: default;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.acp-lightbox__caption { color: #fff; font-size: .9rem; text-align: center; max-width: 60ch; }
.acp-lightbox__close,
.acp-lightbox__nav {
	position: absolute; border: 0; cursor: pointer;
	background: rgba(255, 255, 255, .1); color: #fff;
	width: 2.75rem; height: 2.75rem; border-radius: 50%;
	font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
	transition: background-color .15s ease;
}
.acp-lightbox__close:hover, .acp-lightbox__nav:hover { background: var(--acp-green); }
.acp-lightbox__close:focus-visible, .acp-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.acp-lightbox__close { top: 1rem; right: 1rem; }
.acp-lightbox__nav { top: 50%; transform: translateY(-50%); }
.acp-lightbox__nav--prev { left: 1rem; }
.acp-lightbox__nav--next { right: 1rem; }
.acp-lightbox--single .acp-lightbox__nav, .acp-lightbox--single .acp-lightbox__count { display: none; }
.acp-lightbox__count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .8rem; letter-spacing: .06em; }
@media (max-width: 640px) {
	.acp-lightbox { padding: 3.5rem .75rem; }
	.acp-lightbox__img { max-height: calc(100vh - 8rem); }
	.acp-lightbox__nav { width: 2.25rem; height: 2.25rem; font-size: 1.5rem; }
	.acp-lightbox__nav--prev { left: .35rem; }
	.acp-lightbox__nav--next { right: .35rem; }
}

/* --------------------------------------------------------------------------
   Author archives (/author/<slug>/): the page a byline links to.
   -------------------------------------------------------------------------- */
.acp-author-head {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: 1.5rem;
	margin-bottom: var(--acp-gap);
}
.acp-author-head__monogram {
	flex: 0 0 auto;
	width: 4.5rem; height: 4.5rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--acp-green);
	color: var(--wp--preset--color--base, #fff);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 2rem; font-weight: 800; line-height: 1;
	border-radius: 50%;
}
/* Sized and shaped to match the monogram it stands in for, so the header does not shift depending
   on whether the author happens to have uploaded a portrait. */
.acp-author-head__avatar {
	flex: 0 0 auto;
	width: 4.5rem; height: 4.5rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

.acp-author-head__text { min-width: 0; }

/* No green rule on this one. The bar is what marks a section heading on a page that has several;
   the author header is a card with one title in it, and the bar reads as a stray mark next to the
   portrait rather than as structure. Scoped here rather than changed on .acp-section__title,
   which nine other templates and patterns rely on. */
.acp-author-head .acp-section__title,
.acp-author-head .wp-block-query-title.acp-section__title {
	margin-bottom: .4rem;
	border-left: 0;
	padding-left: 0;
}
.acp-author-head__count {
	margin: 0;
	color: var(--acp-green);
	font-size: .8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
}
.acp-author-head__bio { margin: .6rem 0 0; color: var(--wp--preset--color--muted); font-size: .95rem; max-width: 60ch; }

/* --- Several authors on one post --------------------------------------------
   The "Written by" label moves out of the cards and sits once above them: repeated over every
   card it reads as though each person wrote a different article. The cards then stack with a
   tighter gap than the 2.5rem that separates the whole group from the article, so they group
   visually rather than looking like three unrelated boxes. */
.acp-author-boxes { margin-top: 2.5rem; }
.acp-author-boxes__kicker {
	margin: 0 0 .6rem;
	color: var(--wp--preset--color--muted);
	font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
}
.acp-author-boxes .acp-author-box { margin-top: 0; }
.acp-author-boxes .acp-author-box + .acp-author-box { margin-top: .75rem; }

/* --- The author box under a single post ------------------------------------
   Same card furniture as .acp-author-head, so the two read as the same object in two places. The
   space above it is what separates it from the article; it needs no rule of its own. */
.acp-author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: 1.5rem;
	margin-top: 2.5rem;
}
.acp-author-box__portrait { flex: 0 0 auto; display: block; line-height: 0; }
.acp-author-box__avatar {
	width: 4.5rem; height: 4.5rem;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}
.acp-author-box__monogram {
	width: 4.5rem; height: 4.5rem;
	display: flex; align-items: center; justify-content: center;
	background: var(--acp-green);
	color: var(--wp--preset--color--base, #fff);
	font-family: var(--wp--preset--font-family--heading, inherit);
	font-size: 2rem; font-weight: 800; line-height: 1;
	border-radius: 50%;
}
.acp-author-box__text { min-width: 0; }
.acp-author-box__kicker {
	margin: 0;
	color: var(--wp--preset--color--muted);
	font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .08em;
}
.acp-author-box__name {
	margin: .15rem 0 0;
	font-size: 1.35rem; font-weight: 800;
	text-transform: uppercase; line-height: 1.1;
}
.acp-author-box__name a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.acp-author-box__name a:hover { color: var(--acp-green); }
.acp-author-box__bio { margin: .5rem 0 0; color: var(--wp--preset--color--muted); font-size: .95rem; max-width: 60ch; }
.acp-author-box__more { margin: .6rem 0 0; }
.acp-author-box__more a {
	color: var(--acp-green); text-decoration: none; font-weight: 700;
	text-transform: uppercase; font-size: .78rem; letter-spacing: .06em;
}
.acp-author-box__more a:hover { color: var(--acp-green-dark); text-decoration: underline; text-underline-offset: .25em; }

/* On a phone the portrait beside the text leaves the bio in a column too narrow to read. */
@media (max-width: 600px) {
	.acp-author-box { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* Author cards swap the (identical) byline for the post's category. */
.acp-card__terms { font-size: .85rem; }
.acp-card__terms .wp-block-post-terms__separator { display: none; }
.acp-card__terms a {
	color: var(--wp--preset--color--muted); text-decoration: none;
	text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; font-weight: 700;
	margin-right: .6rem;
}
.acp-card__terms a:hover { color: var(--acp-green); }
.acp-card__terms + .acp-card__more { margin-top: 1.25rem; }

@media (max-width: 600px) {
	.acp-author-head { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; }
	.acp-author-head__monogram { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; }
}


/* --------------------------------------------------------------------------
   Document furniture

   The parts /uniform/ still wants. It is a long reference page set as a document rather than
   a card grid, and copying these under a second set of names is how two design systems start.
   Anything genuinely particular to one page stays in that page's own section. The Nation and
   Records plugins each carry their own copy, because a plugin that styles itself out of a
   theme's stylesheet renders unstyled under any other theme.
   -------------------------------------------------------------------------- */

/* A subheading below .acp-section__title and above the body: Obviously at a real size over a
   sand rule. Deliberately not tracked micro-caps -- that reads as a second type system. */
.acp-doc__sub {
	margin: 2.25rem 0 1rem;
	padding-bottom: .55rem;
	border-bottom: 2px solid var(--acp-accent);
	color: var(--acp-green);
	font-family: var(--wp--preset--font-family--obviously);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .01em;
	text-transform: uppercase;
}
/* The first subhead in a section follows the h2 rather than a block of content, so it needs less
   room above it, or the two headings read as a stack. */
.acp-doc__sub:first-of-type { margin-top: 2rem; }
/* A subhead opening a nested block is not that case: it follows content, so it keeps the full
   gap. Declared after the rule above, which it ties with on specificity. */
.acp-doc-block > .acp-doc__sub { margin-top: 2.25rem; }

/* A ledger row. Only the hairline is shared: padding is set per list, because a territory with a
   two-line note and a one-line ally want different density. */
.acp-ledger__row { border-bottom: 1px solid var(--acp-card-border); }
.acp-ledger__row:last-child { border-bottom: 0; }

/* A chronology: the year runs down the left rail and prints only when it changes, so a run of
   entries in one year reads as a group. Used by the war record and the classic uniforms. */
.acp-chrono { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.acp-chrono__row {
	display: grid;
	grid-template-columns: 4rem 1fr;
	gap: 0 1.25rem;
	padding: .85rem 0;
}
/* A new year opens a group: a heavier rule, and the year printed in the rail. */
.acp-chrono__row--group { border-top: 3px solid var(--acp-accent); margin-top: 1.5rem; padding-top: 1rem; }
.acp-chrono__row--group:first-child { margin-top: 0; }
.acp-chrono__year {
	font-family: var(--wp--preset--font-family--obviously);
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--acp-green);
	font-variant-numeric: tabular-nums;
}
.acp-chrono__body { min-width: 0; }

@media (max-width: 680px) {
	.acp-chrono__row { grid-template-columns: 2.75rem 1fr; gap: 0 .9rem; }
}

/* --------------------------------------------------------------------------
   Nation page (the ACP Nation plugin)

   The statehood page is four blocks now, and its styling travels with them in
   wp-content/plugins/acp-nation/assets/nation.css. What is left here is the
   page furniture the blocks cannot own: the card the document sits in, which is
   the same treatment /uniform/ and /records/ get.
   -------------------------------------------------------------------------- */

.acp-page:has(.acp-nation) {
	max-width: 960px;
	margin-inline: auto;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: clamp(1.25rem, 2.5vw, 2rem);
}
.acp-page:has(.acp-nation) > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   Uniform page (patterns/uniform.php)

   A kit page rather than a document: someone is here to find a code and copy it into a chat
   bar, so the codes are the loudest thing on the page after the two figures. Shares the
   subhead, ledger row and chronology from "Document furniture" above.
   -------------------------------------------------------------------------- */

.acp-page:has(.acp-uniform) {
	max-width: 960px;
	margin-inline: auto;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: clamp(1.25rem, 2.5vw, 2rem);
}
.acp-page:has(.acp-uniform) > :first-child { margin-top: 0; }

/* Doubled because the margin resets below would otherwise win on
   equal specificity and collapse the rhythm. */
.acp-uniform.acp-uniform > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.acp-uniform.acp-uniform > .acp-uniform-sec { margin-top: clamp(3.25rem, 6vw, 5rem); }
.acp-uniform-sec { scroll-margin-top: calc(var(--acp-header-h) + 1.5rem); }
.acp-uniform .acp-uniform-sec > .acp-section__title { margin-top: 0; }

/* --- The two uniforms ----------------------------------------------------------
   Both figures up front, so "what am I aiming for" is answered before any instructions and
   the order of the sections below stops mattering. Penguins are small and transparent, so
   they sit on the mint ground rather than on white, where they would float.
   -------------------------------------------------------------------------- */
.acp-uniform__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	/* Both penguins are portrait and about 250px wide at this height. Across the full 900px
	   column each would sit in 200px of empty mint; capped, the frame fits the figure. */
	max-width: 600px;
	margin-inline: auto;
}
.acp-uniform__figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
}
.acp-uniform__figure img {
	display: block;
	width: 100%;
	height: 260px;
	object-fit: contain;
	padding: 1.5rem 1rem .5rem;
	box-sizing: border-box;
}
.acp-uniform__figure figcaption {
	padding: .7rem 1rem .8rem;
	border-top: 1px solid var(--acp-card-border);
	color: var(--acp-green);
	font-family: var(--wp--preset--font-family--obviously);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-align: center;
}


/* --- Codes --------------------------------------------------------------------
   The reason the page exists. A code is a monospace chip on the mint ground with a green
   rule under it, and assets/js/uniform.js puts a Copy button beside each one.
   -------------------------------------------------------------------------- */
.acp-kit__code {
	display: inline-block;
	padding: .3rem .6rem;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
	border-bottom: 2px solid var(--acp-green);
	color: var(--wp--preset--color--contrast);
	font-family: ui-monospace, "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
	font-size: .9rem;
	line-height: 1.3;
	white-space: nowrap;
}
.acp-kit__codewrap { display: inline-flex; align-items: center; gap: .5rem; }
.acp-kit__copy {
	padding: .3rem .55rem;
	background: none;
	border: 1px solid var(--acp-card-border);
	color: var(--wp--preset--color--muted);
	font: inherit;
	font-size: .72rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	/* The label swaps between Copy and Copied; fixing the width stops the row twitching. */
	min-width: 5.2em;
	transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.acp-kit__copy:hover { color: var(--acp-green); border-color: var(--acp-green); }
.acp-kit__copy:focus-visible { outline: 2px solid var(--acp-green); outline-offset: 1px; }
.acp-kit__copy.is-copied {
	background: var(--acp-green);
	border-color: var(--acp-green);
	color: var(--wp--preset--color--base);
}

/* The one-command route, given the weight it deserves: this is what most people came for. */
.acp-kit__primary {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
	border-left: 4px solid var(--acp-green);
	padding: clamp(1rem, 2.5vw, 1.5rem);
}
.acp-kit__primary .acp-kit__code {
	font-size: clamp(1.1rem, 2.4vw, 1.5rem);
	padding: .45rem .8rem;
	background: var(--acp-card-bg);
}
.acp-kit__primary .acp-kit__copy { font-size: .78rem; padding: .45rem .7rem; }
.acp-kit__primary-note {
	margin: .9rem 0 0;
	color: var(--wp--preset--color--muted);
	font-size: .95rem;
	line-height: 1.6;
}

.acp-kit { list-style: none; margin: 0; padding: 0; }
.acp-kit__row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem .9rem;
	padding: .65rem 0;
}
/* The item's own art, keyed by the id in its code. Sat on the mint tile like the shopping list,
   so a row of transparent penguin items reads as a row rather than as floating shapes. */
.acp-kit__icon {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
}
.acp-kit__icon img { max-width: 34px; max-height: 34px; width: auto; height: auto; display: block; }

.acp-kit__label {
	flex: 0 0 auto;
	/* Widest is "Background"; a fixed column keeps every code on one left edge. */
	min-width: 7em;
	font-family: var(--wp--preset--font-family--obviously);
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
}
.acp-kit__item { flex: 1 1 12rem; color: var(--wp--preset--color--muted); font-size: .95rem; }
.acp-kit--codes .acp-kit__codewrap { margin-left: auto; }

/* --- CPJourney shopping list ------------------------------------------------------ */

.acp-shop { list-style: none; margin: 0; padding: 0; }
.acp-shop__row {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: .8rem 0;
}
.acp-shop__thumb {
	width: 64px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
}
.acp-shop__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.acp-shop__body { min-width: 0; }
.acp-shop__name {
	display: block;
	font-family: var(--wp--preset--font-family--obviously);
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}
.acp-shop__where {
	display: block;
	margin-top: .2rem;
	max-width: 60ch;
	color: var(--wp--preset--color--muted);
	font-size: .9rem;
	line-height: 1.5;
}
.acp-shop__cost {
	font-family: var(--wp--preset--font-family--obviously);
	font-size: 1.1rem;
	font-weight: 700;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
/* The total is a sum of the rows above it, so it reads as one: a rule, not a row. */
.acp-shop__row--total {
	border-top: 2px solid var(--acp-accent);
	padding-top: .9rem;
}
.acp-shop__row--total .acp-shop__thumb { background: none; border: 0; }
.acp-shop__row--total .acp-shop__cost { color: var(--acp-green); font-size: 1.35rem; font-weight: 800; }


/* --- Classic uniforms -------------------------------------------------------------
   The shared chronology carries the year rail; each era pairs its figure with the story.
   -------------------------------------------------------------------------- */
.acp-era__body { display: grid; grid-template-columns: 170px 1fr; gap: 1.5rem; }
.acp-era__figure {
	margin: 0;
	align-self: start;
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--acp-card-border);
	padding: 1rem;
	/* Explicit rather than sized by its content: these images are lazy, and until one loads the
	   figure would otherwise collapse to its own padding and jump the text beside it on arrival. */
	width: 100%;
	box-sizing: border-box;
}
.acp-era__figure img { display: block; width: 100%; height: auto; }
.acp-era__text { min-width: 0; }

/* One voice for the narrative. These were two sizes in two colours with a third for the quote and
   a fourth for the link in its attribution, which made every entry look like four things stuck
   together. Same size, same colour, spaced apart -- the quote is set off by its rule, not by
   being a different grey. */
.acp-era__lede,
.acp-era__after {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
	line-height: 1.65;
}
.acp-era__after { margin-top: 1rem; }

/* A pull quote, in Oagalthorp's words: the sand rule marks it as a voice rather than the page. */
.acp-quote {
	margin: 1rem 0 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--acp-accent);
}
.acp-quote p {
	margin: 0;
	color: var(--wp--preset--color--contrast);
	font-size: 1rem;
	font-style: italic;
	line-height: 1.65;
}
.acp-quote cite {
	display: block;
	margin-top: .6rem;
	color: var(--wp--preset--color--muted);
	font-size: .85rem;
	font-style: normal;
}
/* The attribution link stays in the muted tone it sits in: a green word here would be the only
   other colour in the entry, and it is a credit rather than a call to action. */
.acp-uniform .acp-quote cite a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--acp-card-border); }
.acp-uniform .acp-quote cite a:hover { color: var(--acp-green); border-bottom-color: currentColor; }

/* --- Responsive -------------------------------------------------------------------- */

@media (max-width: 782px) {
	.acp-era__body { grid-template-columns: 130px 1fr; gap: 1.15rem; }
}

@media (max-width: 680px) {
	.acp-uniform__pair { grid-template-columns: 1fr; }
	.acp-uniform__figure img { height: 220px; }
	.acp-era__body { grid-template-columns: 1fr; }
	.acp-era__figure { max-width: 170px; }
	.acp-shop__row { grid-template-columns: 48px 1fr; }
	.acp-shop__thumb { width: 48px; height: 48px; }
	/* The cost drops under the description rather than squeezing it to a column of one word. */
	.acp-shop__cost { grid-column: 2; text-align: left; }
	/* The code and its button drop to their own line as one unit rather than splitting up. */
	.acp-kit--codes .acp-kit__codewrap { margin-left: 0; flex-basis: 100%; }
	.acp-kit__label { min-width: 5.5em; }
}

/* --------------------------------------------------------------------------
   Search results (/?s=): the heading, the search-again box and the empty state.
   The header's own search is dressed for a green bar; this one sits on the page,
   so it keeps the mint-on-white the rest of the site's inputs wear.
   -------------------------------------------------------------------------- */
.acp-search-head { margin-bottom: 1.25rem; }
.acp-search-head .acp-section__title,
.acp-search-head .wp-block-query-title.acp-section__title { margin-bottom: .4rem; }
/* Matches .acp-author-head__count: the same small green line under a page heading. */
.acp-search-head__count {
	margin: 0;
	color: var(--acp-green);
	font-size: .8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
}

.acp-search-again { max-width: 34rem; margin-bottom: var(--acp-gap); }

.acp-search-empty {
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: 1.75rem;
	max-width: 60ch;
}
.acp-search-empty > * { margin-top: 0; }
.acp-search-empty > * + * { margin-top: .9rem; }
.acp-search-empty__lead {
	font-family: var(--wp--preset--font-family--obviously);
	font-size: 1.15rem; font-weight: 700;
}
.acp-search-empty__heading {
	font-size: .8rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid var(--acp-card-border);
	padding-top: 1.1rem;
}
.acp-search-empty__links {
	list-style: none; padding: 0;
	display: flex; flex-wrap: wrap; gap: .5rem .75rem;
}
.acp-search-empty__links a {
	display: inline-block;
	color: var(--acp-green); text-decoration: none;
	font-size: .9rem; font-weight: 700;
	border: 1px solid var(--acp-card-border);
	padding: .4rem .75rem;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.acp-search-empty__links a:hover {
	background: var(--acp-green); border-color: var(--acp-green);
	color: var(--wp--preset--color--base);
}

/* --------------------------------------------------------------------------
   Records page (the ACP Records plugin)

   The record book itself is a block now, and its styling travels with it in
   wp-content/plugins/acp-records/assets/records.css. What is left here is the
   page furniture the block cannot own: the card the document sits in, which is
   the same treatment /nation/ and /uniform/ get above, and the two paragraphs
   of page copy either side of the block.
   -------------------------------------------------------------------------- */

.acp-page:has(.acp-records) {
	max-width: 960px;
	margin-inline: auto;
	background: var(--acp-card-bg);
	border: 1px solid var(--acp-card-border);
	padding: clamp(1.25rem, 2.5vw, 2rem);
}
.acp-page:has(.acp-records) > :first-child { margin-top: 0; }

/* The lede and the credit are ordinary page copy sitting either side of the block rather than
   inside it, so the rhythm between the three is set on them rather than by a flow rule the block
   would have to own. */
.acp-records__lede {
	margin: 0 0 clamp(2rem, 4vw, 3rem);
	max-width: 62ch;
	font-size: 1.08rem;
	line-height: 1.7;
}
.acp-records__credit {
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--acp-card-border);
	color: var(--wp--preset--color--muted);
	font-size: .9rem;
	font-style: italic;
}
