/*
 * Structural CSS for parts and templates that block supports do not cover
 * (sticky header shrink, hero grid, footer bands, motif placement). Every
 * color/spacing/radius/shadow value below reads a `--wp--preset--*` or
 * `--wp--custom--*` custom property generated from tokens.json; nothing here
 * is a brand specific magic value. Logical properties throughout so the
 * layout is direction agnostic (the public site is US English LTR; the owner
 * panel in wp-admin is the only RTL surface, handled separately).
 */

/* ---------- Header ---------- */
.ae-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: var(--wp--preset--color--white);
	border-block-end: var(--wp--custom--border--width) solid var(--wp--custom--border--color-light);
}

.ae-header__bar {
	padding-inline: var(--wp--preset--spacing--4);
}

.ae-header__row {
	block-size: var(--wp--custom--header--height);
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: var(--wp--preset--spacing--3);
}

.ae-header__logo {
	flex: 0 0 auto;
}

.ae-header__logo a {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	text-decoration: none;
	white-space: nowrap;
}

.ae-header__wordmark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--h-4);
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--ink-900);
}

.ae-header__wordmark-light {
	font-weight: 500;
}

/* Desktop primary nav: plain markup, no core navigation block script. */
.ae-header__nav {
	display: none;
	overflow: hidden;
	min-inline-size: 0;
}

.ae-header__nav-list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}

.ae-header__nav-list::-webkit-scrollbar {
	display: none;
}

.ae-header__nav-list a {
	display: inline-block;
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--ink-600);
	text-decoration: none;
	padding-block: var(--wp--preset--spacing--2);
	padding-inline: var(--wp--preset--spacing--1);
	border-radius: var(--wp--custom--radius--sm);
}

.ae-header__nav-list a:hover,
.ae-header__nav-list a:focus-visible {
	color: var(--wp--preset--color--ink-900);
	background: var(--wp--preset--color--ink-50);
}

.ae-header__cta {
	flex: 0 0 auto;
	display: none;
}

.ae-header__cta .wp-block-button__link {
	white-space: nowrap;
	font-size: var(--wp--preset--font-size--small);
	padding-block: var(--wp--preset--spacing--2);
	padding-inline: var(--wp--preset--spacing--4);
	min-block-size: auto;
}

/* Mobile nav: native <details>/<summary> disclosure, no JavaScript. */
.ae-header__mobile-nav {
	flex: 0 0 auto;
	position: relative;
}

.ae-header__mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	cursor: pointer;
	color: var(--wp--preset--color--ink-900);
	list-style: none;
}

.ae-header__mobile-toggle::-webkit-details-marker {
	display: none;
}

.ae-header__mobile-panel {
	position: fixed;
	inset-block-start: var(--wp--custom--header--height-scrolled);
	inset-inline: 0;
	inset-block-end: 0;
	background: var(--wp--preset--color--white);
	border-block-start: var(--wp--custom--border--width) solid var(--wp--custom--border--color-light);
	padding: var(--wp--preset--spacing--4);
	overflow-y: auto;
	z-index: 60;
}

.ae-header__mobile-search-form {
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-header__mobile-search {
	inline-size: 100%;
	min-block-size: var(--wp--custom--input--height);
	border-radius: var(--wp--custom--input--radius);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-300);
	padding-inline: var(--wp--preset--spacing--3);
}

.ae-header__mobile-search:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-teal);
	outline-offset: 2px;
}

.ae-header__mobile-list {
	list-style: none;
	margin: 0 0 var(--wp--preset--spacing--4);
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ae-header__mobile-list a {
	display: block;
	padding-block: var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--body);
	color: var(--wp--preset--color--ink-900);
	text-decoration: none;
	border-block-end: 1px solid var(--wp--preset--color--ink-100);
}

.ae-header__mobile-cta {
	display: block;
	text-align: center;
	min-block-size: var(--wp--custom--button--height-mobile);
	line-height: var(--wp--custom--button--height-mobile);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-action);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	text-decoration: none;
}

@media (min-width: 1024px) {
	.ae-header__nav {
		display: block;
		flex: 1 1 auto;
		min-inline-size: 0;
	}

	.ae-header__cta {
		display: block;
	}

	.ae-header__mobile-nav {
		display: none;
	}
}

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline .wp-block-button__link {
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-300);
	color: var(--wp--preset--color--ink-900);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink-50);
}

.wp-block-button__link {
	min-block-size: var(--wp--custom--button--height-mobile);
}

@media (min-width: 768px) {
	.wp-block-button__link {
		min-block-size: var(--wp--custom--button--height-desktop);
	}
}

/* ---------- Hero ---------- */
.ae-hero {
	padding-block: var(--wp--preset--spacing--7) var(--wp--preset--spacing--6);
	padding-inline: var(--wp--preset--spacing--4);
}

.ae-hero__row {
	align-items: center;
	gap: var(--wp--preset--spacing--6);
}

.ae-hero__copy {
	max-inline-size: 640px;
	flex: 1 1 480px;
}

.ae-eyebrow {
	color: var(--wp--preset--color--accent-action);
	margin-block-end: var(--wp--preset--spacing--2);
}

.ae-hero__subline {
	color: var(--wp--preset--color--ink-600);
	margin-block: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
	max-inline-size: 56ch;
}

.ae-hero__buttons {
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-hero__trust {
	color: var(--wp--preset--color--ink-600);
}

.ae-hero__motif {
	flex: 0 0 auto;
	inline-size: 100%;
	max-inline-size: 220px;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.ae-hero__motif {
		max-inline-size: 280px;
		margin-inline: 0;
	}
}

.ae-hero__motif svg {
	inline-size: 100%;
	block-size: auto;
}

/* ---------- Sections ---------- */
.ae-section {
	padding-block: var(--wp--preset--spacing--6);
	padding-inline: var(--wp--preset--spacing--4);
}

/* ---------- Footer ---------- */
.ae-footer a {
	color: var(--wp--preset--color--ink-300);
	text-decoration: none;
}

.ae-footer a:hover {
	color: var(--wp--preset--color--white);
}

.ae-footer__newsletter,
.ae-footer__columns,
.ae-footer__bottom {
	padding-inline: var(--wp--preset--spacing--4);
	padding-block: var(--wp--preset--spacing--5);
}

.ae-footer__newsletter {
	border-block-end: 1px solid var(--wp--preset--color--ink-700);
}

.ae-footer__bottom {
	border-block-start: 1px solid var(--wp--preset--color--ink-700);
}

.ae-footer__heading {
	/* ink 400 on ink 900 is 7.4 to 1; ink 500 was 4.0 to 1 and failed WCAG AA for 12 px text. */
	color: var(--wp--preset--color--ink-400);
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
}

.ae-footer__muted {
	color: var(--wp--preset--color--ink-400);
}

.ae-footer__form {
	display: flex;
	gap: var(--wp--preset--spacing--2);
	flex-wrap: wrap;
	inline-size: 100%;
}

@media (min-width: 768px) {
	.ae-footer__form {
		inline-size: auto;
	}
}

.ae-footer__input {
	flex: 1 1 220px;
	min-block-size: 44px;
	border-radius: var(--wp--custom--radius--pill);
	border: 1px solid var(--wp--preset--color--ink-700);
	background: var(--wp--preset--color--ink-800);
	color: var(--wp--preset--color--white);
	padding-inline: var(--wp--preset--spacing--4);
}

.ae-footer__input::placeholder {
	color: var(--wp--preset--color--ink-500);
}

.ae-footer__submit {
	min-block-size: 44px;
	border-radius: var(--wp--custom--radius--pill);
	border: none;
	background: var(--wp--preset--color--accent-action);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	padding-inline: var(--wp--preset--spacing--5);
	cursor: pointer;
}

.ae-footer__submit:hover {
	background: var(--wp--preset--color--accent-action-hover);
}

/* ---------- 404 ---------- */
.ae-404 {
	text-align: center;
	padding-block: var(--wp--preset--spacing--8);
}

.ae-404__motif {
	margin-inline: auto;
	margin-block-end: var(--wp--preset--spacing--5);
	max-inline-size: 160px;
}

.ae-404 .wp-block-buttons {
	justify-content: center;
}

/* ---------- Global safety net: no horizontal scroll on small viewports ---------- */
html,
body {
	overflow-x: hidden;
	max-inline-size: 100%;
}

img,
svg {
	max-inline-size: 100%;
	block-size: auto;
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: var(--wp--custom--border--width, 2px) solid var(--wp--preset--color--ink-900);
	outline-offset: 2px;
}

/* ---------- Content page anatomy: 720px reading column + 320px rail (spec 2.4, 8.2) ----------
 * Mobile and tablet: single column, rail content follows the article. Desktop (>= 1024px):
 * two column grid. `.ae-page-layout` is the grid; `.ae-reading-column` and `.ae-rail` are its
 * two children in source order (rail after the content, so the reading column is announced
 * first to screen readers and keyboard users regardless of viewport).
 */
.ae-page-layout {
	display: block;
	max-inline-size: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--4);
	padding-block: var(--wp--preset--spacing--6);
	gap: var(--wp--preset--spacing--8);
}

@media (min-width: 1024px) {
	.ae-page-layout {
		display: grid;
		grid-template-columns: minmax(0, 720px) minmax(0, 320px);
		align-items: start;
		justify-content: center;
	}
}

.ae-reading-column {
	max-inline-size: 720px;
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.ae-reading-column {
		margin-inline: 0;
	}
}

.ae-reading-column > * + * {
	margin-block-start: var(--wp--preset--spacing--5);
}

.ae-rail {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--5);
	max-inline-size: 720px;
	margin-inline: auto;
}

@media (min-width: 1024px) {
	.ae-rail {
		position: sticky;
		inset-block-start: calc(var(--wp--custom--header--height-scrolled) + var(--wp--preset--spacing--5));
		max-inline-size: 320px;
		margin-inline: 0;
	}
}

.ae-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--1);
	color: var(--wp--preset--color--ink-600);
	font-size: var(--wp--preset--font-size--caption);
	margin: 0 0 var(--wp--preset--spacing--3);
}

.ae-breadcrumbs a {
	color: var(--wp--preset--color--ink-600);
}

.ae-breadcrumbs svg {
	inline-size: 16px;
	block-size: 16px;
	flex: 0 0 auto;
}

.ae-meta-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--2);
	margin: var(--wp--preset--spacing--3) 0;
}

/* ---------- Archive directory shells (broker directory, tools hub) ---------- */
.ae-archive-header {
	background: var(--wp--preset--color--ink-50);
	padding-block: var(--wp--preset--spacing--6);
	padding-inline: var(--wp--preset--spacing--4);
}

.ae-archive-search {
	display: flex;
	gap: var(--wp--preset--spacing--2);
	max-inline-size: 560px;
	margin-block-start: var(--wp--preset--spacing--4);
}

.ae-archive-search input[type="search"] {
	flex: 1 1 auto;
	min-block-size: var(--wp--custom--input--height);
	border-radius: var(--wp--custom--input--radius);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-300);
	padding-inline: var(--wp--preset--spacing--3);
}

.ae-archive-search input[type="search"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-teal);
	outline-offset: 2px;
}

.ae-archive-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--5);
	max-inline-size: 1200px;
	margin-inline: auto;
	padding-inline: var(--wp--preset--spacing--4);
	padding-block: var(--wp--preset--spacing--6);
}

@media (min-width: 768px) {
	.ae-archive-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ae-archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ae-archive-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--4);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	box-shadow: var(--wp--custom--shadow--soft);
}

.ae-archive-card:hover {
	box-shadow: var(--wp--custom--shadow--card);
}

.ae-archive-empty {
	text-align: center;
	padding-block: var(--wp--preset--spacing--8);
	color: var(--wp--preset--color--ink-600);
}

/* ---------- Search ---------- */
.ae-search-form {
	display: flex;
	gap: var(--wp--preset--spacing--2);
	max-inline-size: 560px;
}

.ae-search-form input[type="search"] {
	flex: 1 1 auto;
	min-block-size: var(--wp--custom--input--height);
	border-radius: var(--wp--custom--input--radius);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-300);
	padding-inline: var(--wp--preset--spacing--3);
}

.ae-search-results-count {
	color: var(--wp--preset--color--ink-600);
	margin-block: var(--wp--preset--spacing--4);
}

.ae-search-result {
	padding-block: var(--wp--preset--spacing--4);
	border-block-end: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
}

.ae-search-result__type {
	display: inline-block;
	margin-block-end: var(--wp--preset--spacing--1);
	font-size: var(--wp--preset--font-size--caption);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent-action);
}

/* ---------- Group tiles / start here / tools strip (home + hub patterns) ---------- */
.ae-tile-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--wp--preset--spacing--4);
}

@media (min-width: 768px) {
	.ae-tile-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ae-tile {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--4);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	text-decoration: none;
	color: var(--wp--preset--color--ink-900);
}

.ae-tile:hover {
	box-shadow: var(--wp--custom--shadow--card);
}

.ae-tile__icon {
	inline-size: 40px;
	block-size: 40px;
	border-radius: var(--wp--custom--radius--sm);
	background: var(--wp--preset--color--accent-teal-soft);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent-action);
}

.ae-start-here {
	counter-reset: ae-start-here;
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--4);
}

@media (min-width: 768px) {
	.ae-start-here {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ae-start-here__card {
	position: relative;
	padding: var(--wp--preset--spacing--5);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
}

.ae-start-here__num {
	counter-increment: ae-start-here;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 32px;
	block-size: 32px;
	border-radius: 50%;
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-start-here__num::before {
	content: counter(ae-start-here);
}

/* ---------- Data Broker Index teaser (home, ink 900 band) ---------- */
.ae-index-band {
	padding-block: var(--wp--preset--spacing--7);
	padding-inline: var(--wp--preset--spacing--4);
}

.ae-index-band__row {
	align-items: center;
	gap: var(--wp--preset--spacing--6);
}

.ae-index-band__copy {
	flex: 1 1 420px;
	max-inline-size: 560px;
}

.ae-index-band__eyebrow {
	color: var(--wp--preset--color--accent-teal-deep);
	margin-block-end: var(--wp--preset--spacing--2);
}

.ae-index-band__body {
	color: var(--wp--preset--color--ink-200);
	margin-block: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
	max-inline-size: 56ch;
}

.ae-index-band .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: var(--wp--preset--color--ink-600);
	color: var(--wp--preset--color--white);
}

.ae-index-band .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--ink-800);
}

.ae-index-band__chart {
	flex: 0 0 auto;
	inline-size: 100%;
	max-inline-size: 280px;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.ae-index-band__chart {
		margin-inline: 0;
	}
}

/* ---------- Query loop cards (home: comparisons, guides) ---------- */
.ae-card-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--5);
}

@media (min-width: 640px) {
	.ae-card-grid .wp-block-post-template {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.ae-card-grid.ae-card-grid--3 .wp-block-post-template {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ae-card-grid .wp-block-post-template > li {
	list-style: none;
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--4);
	background: var(--wp--preset--color--white);
}

.ae-card-grid .wp-block-post-template > li:hover {
	box-shadow: var(--wp--custom--shadow--card);
}

.ae-empty-state {
	padding: var(--wp--preset--spacing--5);
	border: 1px dashed var(--wp--preset--color--ink-300);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--ink-600);
	text-align: center;
}

/* ---------- Group playbook authored sections (spec 4.15) -----------------------------------
 * These sections are composed by the writer or agent directly in the post body with core
 * blocks plus the classes below, the same way the reading column's other prose is authored;
 * only the 7 day plan (ae/timeline) and the standard content blocks (ae/callout for "Your
 * rights", ae/faq, ae/sources) are meta driven today. See the Phase 1 report for the two
 * meta-driven blocks proposed as follow up work: ae/resources (hotlines first for survivors,
 * from ae_resources) and ae/recommended-stack (from the already registered ae_service_ids).
 */
.ae-risk-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--3);
}

.ae-risk-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
}

.ae-stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--4);
}

@media (min-width: 768px) {
	.ae-stack {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ae-stack__card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--5);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
}

.ae-stack__reason {
	color: var(--wp--preset--color--ink-600);
}

.ae-resource-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--3);
}

.ae-resource-list__item {
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border-radius: var(--wp--custom--radius--card);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
}

/* Survivors group: hotlines lead the resources list with a visible priority marker, not just
 * source order, so the meaning survives a screen reader or a printed page. */
.ae-resource-list__item--hotline {
	border-inline-start: 2px solid var(--wp--preset--color--status-exposed);
	background: var(--wp--preset--color--status-exposed-soft);
}

.ae-resource-list__phone {
	unicode-bidi: isolate;
	font-weight: 600;
}

/* ---------- Trust pages: sticky TOC reading column already comes from ae-page-layout /
 * ae-reading-column / ae-rail (page.html). The pieces below are additions for the About,
 * Methodology and Editorial policy pages (spec 4.19): the process diagram in the stack motif,
 * the reviewer profile card, and the contact form markup (About; the POST handler is an engine
 * add, see DECISIONS / the Phase report). ------------------------------------------------- */

.ae-process {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--4) 0;
	margin-block: var(--wp--preset--spacing--6) var(--wp--preset--spacing--5);
	padding: 0;
	list-style: none;
}

.ae-process__step {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 104px;
}

.ae-process__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--ink-100);
	min-width: 128px;
}

.ae-process__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 28px;
	block-size: 28px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-teal);
	color: var(--wp--preset--color--ink-900);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 13px;
}

.ae-process__label {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
}

.ae-process__connector {
	flex: 0 1 40px;
	min-inline-size: 16px;
	block-size: 2px;
	background: var(--wp--preset--color--ink-200);
	margin-inline: var(--wp--preset--spacing--2);
}

@media (max-width: 767px) {
	.ae-process {
		flex-direction: column;
		align-items: stretch;
	}
	.ae-process__step {
		flex-direction: column;
		align-items: stretch;
	}
	.ae-process__connector {
		display: none;
	}
}

.ae-reviewer-card {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--4);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
	margin-block-end: var(--wp--preset--spacing--5);
}

.ae-reviewer-card__mark {
	flex: 0 0 auto;
	inline-size: 48px;
	block-size: 48px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink-900);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ae-reviewer-card__name {
	font-weight: 600;
	color: var(--wp--preset--color--ink-900);
}

.ae-reviewer-card__role {
	color: var(--wp--preset--color--ink-600);
	font-size: var(--wp--preset--font-size--small);
}

.ae-reviewer-card__placeholder {
	color: var(--wp--preset--color--status-warn);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.ae-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--5);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--white);
}

.ae-contact-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--3);
}

@media (min-width: 600px) {
	.ae-contact-form__row {
		grid-template-columns: 1fr 1fr;
	}
}

.ae-contact-form label {
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--ink-900);
	margin-block-end: var(--wp--preset--spacing--1);
}

.ae-contact-form input,
.ae-contact-form textarea {
	inline-size: 100%;
	padding: var(--wp--preset--spacing--3);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-300);
	border-radius: var(--wp--custom--radius--sm);
	font: inherit;
	color: var(--wp--preset--color--ink-900);
	background: var(--wp--preset--color--white);
}

.ae-contact-form input:focus-visible,
.ae-contact-form textarea:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-action);
	outline-offset: 2px;
}

/* ---------- Hub page additions (spec 4.10): tool CTA card and related hubs -------------- */

.ae-tool-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--5);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--ink-100);
}

.ae-tool-cta__copy {
	max-inline-size: 520px;
}

.ae-tool-cta__eyebrow {
	color: var(--wp--preset--color--accent-teal-deep);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ae-tool-cta .wp-block-button__link {
	background: var(--wp--preset--color--accent-action);
	color: var(--wp--preset--color--white);
}

.ae-related-hubs {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--3);
}

@media (min-width: 768px) {
	.ae-related-hubs {
		grid-template-columns: repeat(4, 1fr);
	}
}

.ae-related-hubs a {
	display: block;
	padding: var(--wp--preset--spacing--4);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	color: var(--wp--preset--color--ink-900);
	font-weight: 600;
	text-decoration: none;
}

.ae-related-hubs a:hover,
.ae-related-hubs a:focus-visible {
	border-color: var(--wp--preset--color--accent-teal);
	color: var(--wp--preset--color--accent-action);
}

/* ---------- Newsletter landing (spec 4.18) ------------------------------------------------ */

.ae-newsletter-hero {
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--ink-100);
	padding-block: var(--wp--preset--spacing--8) var(--wp--preset--spacing--7);
	text-align: center;
}

.ae-newsletter-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--1) var(--wp--preset--spacing--3);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink-800);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-700);
	color: var(--wp--preset--color--accent-teal-deep);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--4);
}

.ae-newsletter-hero__dot {
	inline-size: 6px;
	block-size: 6px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-teal-deep);
}

.ae-newsletter-form {
	max-inline-size: 480px;
	margin-inline: auto;
	margin-block-start: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--5);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--ink-800);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-700);
	text-align: start;
}

.ae-newsletter-form__row {
	display: flex;
	gap: var(--wp--preset--spacing--2);
	flex-wrap: wrap;
}

.ae-newsletter-form input[type="email"] {
	flex: 1 1 200px;
	padding: var(--wp--preset--spacing--3);
	border-radius: var(--wp--custom--radius--sm);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-700);
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--white);
	font: inherit;
}

.ae-newsletter-form input[type="email"]:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-teal);
	outline-offset: 2px;
}

.ae-newsletter-form button {
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--5);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--accent-action);
	color: var(--wp--preset--color--white);
	font-weight: 600;
	border: 0;
	cursor: pointer;
}

.ae-newsletter-form button:hover {
	background: var(--wp--preset--color--accent-action-hover);
}

.ae-newsletter-form__note {
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--ink-400);
	margin-block-start: var(--wp--preset--spacing--3);
}

.ae-newsletter-tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--4);
}

@media (min-width: 768px) {
	.ae-newsletter-tiles {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ae-newsletter-tiles__tile {
	padding: var(--wp--preset--spacing--5);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--white);
}

.ae-newsletter-tiles__num {
	font-family: var(--wp--preset--font-family--mono, monospace);
	color: var(--wp--preset--color--accent-action);
	font-weight: 700;
}

.ae-sample-issue {
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--panel);
	overflow: clip;
	box-shadow: var(--wp--custom--shadow--card, none);
}

.ae-sample-issue__badge {
	display: inline-block;
	padding: 2px var(--wp--preset--spacing--2);
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--status-warn-soft);
	color: var(--wp--preset--color--ink-900);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-sample-issue__head {
	background: var(--wp--preset--color--ink-900);
	color: var(--wp--preset--color--ink-100);
	padding: var(--wp--preset--spacing--4) var(--wp--preset--spacing--5);
}

.ae-sample-issue__body {
	padding: var(--wp--preset--spacing--5);
}

.ae-past-issues {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--3);
}

.ae-past-issues__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--4);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
}

/* ---------- Author page (spec 4.20) ------------------------------------------------------- */

.ae-author-header {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--4);
	padding: var(--wp--preset--spacing--6) 0;
	border-block-end: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	margin-block-end: var(--wp--preset--spacing--5);
}

.ae-author-header__mark {
	flex: 0 0 auto;
	inline-size: 72px;
	block-size: 72px;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--ink-900);
	display: flex;
	align-items: center;
	justify-content: center;
}

.ae-author-header__role {
	color: var(--wp--preset--color--ink-600);
}

/* ---------- State privacy law tracker table (spec 3.1) ------------------------------------ */

.ae-state-table {
	inline-size: 100%;
	border-collapse: collapse;
	font-size: var(--wp--preset--font-size--small);
}

.ae-state-table caption {
	text-align: start;
	color: var(--wp--preset--color--ink-600);
	margin-block-end: var(--wp--preset--spacing--3);
}

.ae-state-table th,
.ae-state-table td {
	padding: var(--wp--preset--spacing--3);
	border-block-end: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	text-align: start;
}

.ae-state-table th {
	color: var(--wp--preset--color--ink-600);
	font-size: var(--wp--preset--font-size--caption);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* ---------- Blog index dated cards (home.html) --------------------------------------------- */

.ae-blog-card {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	padding: var(--wp--preset--spacing--5);
	border: var(--wp--custom--border--width) solid var(--wp--preset--color--ink-200);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--white);
}

.ae-blog-card__date {
	color: var(--wp--preset--color--ink-500);
	font-size: var(--wp--preset--font-size--caption);
}
