/**
 * AOS Blog — single post + blog index + archive + post patterns.
 * Loaded on home (posts index), archive, single-post, and search views.
 */

/* ── Common ────────────────────────────────────────────────────── */

.aos-blog,
.aos-post {
	font-family: "Instrument Sans", -apple-system, system-ui, sans-serif;
	color: var(--wp--preset--color--foreground, hsl(var(--fg)));
	background: var(--wp--preset--color--background, hsl(var(--bg)));
}

/* ── Blog index / archive ─────────────────────────────────────── */

.aos-blog__head {
	text-align: left;
	max-width: 900px;
	margin: 0 auto;
}
.aos-blog__title {
	font-family: var(--display);
	font-size: clamp(2.2rem, 4.2vw, 3.4rem);
	font-weight: 350;
	line-height: 1.04;
	letter-spacing: -0.022em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 12px 0 18px;
}
.aos-blog__title em {
	font-style: italic;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	font-weight: 350;
}

.aos-blog__feed .wp-block-post-template.aos-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px 28px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 960px) {
	.aos-blog__feed .wp-block-post-template.aos-blog__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 640px) {
	.aos-blog__feed .wp-block-post-template.aos-blog__grid { grid-template-columns: 1fr !important; }
}

.aos-blog__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.aos-blog__card-img {
	margin: 0 0 6px;
	border-radius: 10px;
	overflow: hidden;
}
.aos-blog__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 520ms cubic-bezier(.22,1,.36,1);
}
.aos-blog__card:hover .aos-blog__card-img img { transform: scale(1.03); }

.aos-blog__card-cat {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	margin: 0;
}
.aos-blog__card-cat a { color: inherit; text-decoration: none; }

.aos-blog__card-title {
	font-family: var(--display);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -0.018em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 0;
}
.aos-blog__card-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 95%;
	transition: background-size 240ms cubic-bezier(.22,1,.36,1);
}
.aos-blog__card-title a:hover { background-size: 100% 1px; }

.aos-blog__card-excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 0;
}
.aos-blog__card-meta {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	gap: 12px !important;
}

.aos-blog__pagination {
	margin-top: 56px;
	font-family: "JetBrains Mono", monospace;
	font-size: 13px;
	letter-spacing: 0.04em;
}
.aos-blog__empty {
	font-style: italic;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	padding: 80px 0;
	text-align: center;
}

/* ── Single post ─────────────────────────────────────────────── */

.aos-post__hero {
	max-width: 820px;
	margin: 0 auto;
	text-align: left;
}
.aos-post__cat {
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	margin: 0 0 14px;
}
.aos-post__cat a { color: inherit; text-decoration: none; }
.aos-post__title {
	font-family: var(--display) !important;
	font-size: clamp(2.4rem, 5vw, 3.8rem) !important;
	font-weight: 350 !important;
	line-height: 1.02 !important;
	letter-spacing: -0.024em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 0 20px !important;
}
.aos-post__deck {
	font-family: var(--display);
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	font-weight: 350;
	line-height: 1.45;
	letter-spacing: -0.012em;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 0 0 28px;
}
.aos-post__meta {
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	gap: 20px !important;
	padding-top: 20px;
	border-top: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
}
.aos-post__author { font-weight: 600; color: var(--wp--preset--color--foreground, hsl(var(--fg))); }

.aos-post__cover {
	margin: 36px auto 0;
}
.aos-post__cover img {
	border-radius: 12px;
}

.aos-post__body {
	max-width: 740px;
	margin: 0 auto;
	font-size: 18px;
	line-height: 1.7;
}
.aos-post__body p {
	margin: 0 0 24px;
	color: var(--wp--preset--color--foreground, hsl(var(--fg)));
}
.aos-post__body h2 {
	font-family: var(--display);
	font-size: 30px;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin: 40px 0 14px;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
}
.aos-post__body h3 {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 28px 0 10px;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
}
.aos-post__body a {
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.aos-post__body ul, .aos-post__body ol {
	padding-left: 1.4em;
	margin: 0 0 24px;
}
.aos-post__body li { margin: 4px 0; }

/* ── Footer: tags + related ─────────────────────────────────── */

.aos-post__foot {
	max-width: 1160px;
	margin: 0 auto;
	border-top: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
}
.aos-post__tags {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0 0 48px;
}
.aos-post__tags a {
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	text-decoration: none;
	margin: 0 6px;
}
.aos-post__tags a:hover { color: var(--wp--preset--color--navy, hsl(var(--aos-navy))); }

.aos-post__related-h {
	font-family: var(--display) !important;
	font-size: 28px !important;
	font-weight: 400 !important;
	letter-spacing: -0.02em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 0 24px !important;
}
/* No related stories → hide the orphaned "Keep reading" heading + empty grid. */
.aos-post__foot:has(.aos-post__related:empty) .aos-post__related-h,
.aos-post__foot:has(.aos-post__related:empty) .aos-post__related {
	display: none !important;
}
.aos-post__related .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 900px) {
	.aos-post__related .wp-block-post-template { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.aos-post__related .wp-block-post-template { grid-template-columns: 1fr !important; }
}
.aos-post__rel-img img {
	border-radius: 8px;
	aspect-ratio: 3/2;
	object-fit: cover;
}
.aos-post__rel-cat {
	font-family: "JetBrains Mono", monospace;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	margin: 10px 0 4px;
}
.aos-post__rel-title {
	font-family: var(--display);
	font-size: 19px;
	line-height: 1.25;
	font-weight: 400;
	margin: 0 0 4px;
}
.aos-post__rel-title a { color: var(--wp--preset--color--navy, hsl(var(--aos-navy))); text-decoration: none; }
.aos-post__rel-date {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ── Post patterns ──────────────────────────────────────────── */

/* TL;DR */
.aos-tldr {
	background: linear-gradient(135deg, hsl(var(--aos-yellow-soft)) 0%, hsl(var(--bg)) 120%);
	border: 1px solid hsl(var(--aos-yellow) / 0.4);
	border-left: 4px solid var(--wp--preset--color--yellow, hsl(var(--aos-yellow)));
	border-radius: 10px;
	padding: 18px 22px;
	margin: 0 0 30px;
}
.aos-tldr__label {
	font-family: "JetBrains Mono", monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	margin: 0 0 6px;
}
.aos-tldr__body {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 0;
}

/* Pullquote */
.aos-postquote {
	margin: 44px 0;
	padding: 24px 32px;
	border-left: 3px solid var(--wp--preset--color--rose, hsl(var(--aos-rose)));
	background: transparent;
}
.aos-postquote__mark {
	font-family: var(--display);
	font-size: 72px;
	font-weight: 350;
	line-height: 0.6;
	color: var(--wp--preset--color--rose, hsl(var(--aos-rose)));
	margin: 0 0 8px;
	opacity: 0.4;
}
.aos-postquote__body {
	font-family: var(--display);
	font-size: clamp(1.35rem, 2vw, 1.8rem);
	font-weight: 350;
	font-style: italic;
	line-height: 1.3;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 0 0 16px;
}
.aos-postquote__by {
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0;
}

/* Figure */
.aos-postfig {
	margin: 40px 0;
}
.aos-postfig__img img {
	border-radius: 12px;
	width: 100%;
}
.aos-postfig__cap {
	font-family: var(--display);
	font-style: italic;
	font-size: 14px;
	line-height: 1.45;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 10px 0 0;
	text-align: center;
}

/* Callout */
.aos-postcallout {
	background: hsl(var(--paper));
	border: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	border-radius: 12px;
	padding: 20px 24px;
	margin: 30px 0;
	box-shadow: 0 1px 3px hsl(var(--fg) / 0.04);
}
.aos-postcallout__title {
	font-family: var(--display);
	font-size: 19px !important;
	font-weight: 500 !important;
	margin: 0 0 8px !important;
	letter-spacing: -0.015em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
}
.aos-postcallout__body {
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 0;
}

/* FAQ */
.aos-postfaq {
	margin: 40px 0;
}
.aos-postfaq__title {
	font-family: var(--display);
	font-size: 26px !important;
	font-weight: 400 !important;
	letter-spacing: -0.02em;
	margin: 0 0 18px !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
}
.aos-postfaq__item {
	border-top: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	padding: 16px 0;
}
.aos-postfaq__item:last-child {
	border-bottom: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
}
.aos-postfaq__item summary:focus { outline: none; }
.aos-postfaq__item summary:focus-visible { outline: 2px solid hsl(var(--aos-blue, 204 100% 33%)); outline-offset: 2px; }
.aos-postfaq__item summary {
	font-family: var(--display);
	font-size: 18px;
	font-weight: 500;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	cursor: pointer;
	list-style: none;
	padding-right: 24px;
	position: relative;
}
.aos-postfaq__item summary::-webkit-details-marker { display: none; }
.aos-postfaq__item summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-weight: 300;
	font-size: 22px;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	transition: transform 200ms;
}
.aos-postfaq__item[open] summary::after { transform: rotate(45deg); }
.aos-postfaq__item p {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
}

@media (prefers-reduced-motion: reduce) {
	.aos-blog__card-img img,
	.aos-blog__card-title a,
	.aos-postfaq__item summary::after {
		transition: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════════
   NEWS PAGE — editorial index served by templates/home.html
   Hero · featured-via-:first-child · grid · pagination · signup band
   ══════════════════════════════════════════════════════════════════ */

.aos-news {
	background: var(--wp--preset--color--background, hsl(var(--bg)));
}

/* ── Hero ─────────────────────────────────────────────────────── */

.aos-news__hero {
	position: relative;
	text-align: left;
	max-width: 1040px;
}
.aos-news__title {
	font-family: var(--display) !important;
	font-size: clamp(2.4rem, 6vw, 4.2rem) !important;
	font-weight: 350 !important;
	line-height: 0.98 !important;
	letter-spacing: -0.028em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 0 18px !important;
	padding: 0 !important;
	max-width: 18ch;
	text-wrap: balance;
}
.aos-news__title em {
	font-style: italic;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	font-weight: 350;
}

.aos-news__deck {
	font-family: var(--display);
	font-size: clamp(1.08rem, 1.4vw, 1.28rem);
	font-weight: 350;
	line-height: 1.5;
	letter-spacing: -0.008em;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	max-width: 56ch;
	margin: 0;
	text-wrap: pretty;
}

/* ── Section divider between hero and feed ─────────────────── */

.aos-news__feed { max-width: 1240px; margin: 0 auto; position: relative; }
.aos-news__feed::before {
	content: "";
	display: block;
	height: 1px;
	background: var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	margin-bottom: 48px;
}

/* ── Grid: equal-weight responsive. Adapts to count. ──────────── */

.aos-news__feed .wp-block-post-template.aos-news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 56px 32px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 960px) {
	.aos-news__feed .wp-block-post-template.aos-news__grid { gap: 44px 24px !important; }
}

/* Each card is equal-weight — no special first-child treatment. */
.aos-news__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.aos-news__card-media {
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(135deg, hsl(var(--aos-navy)) 0%, hsl(var(--aos-blue)) 100%);
	aspect-ratio: 3/2;
	position: relative;
}
.aos-news__card-media > .wp-block-post-featured-image,
.aos-news__card-media > .wp-block-post-featured-image > a {
	display: block;
	height: 100%;
	margin: 0;
}
.aos-news__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 620ms cubic-bezier(.22,1,.36,1), filter 420ms;
}
.aos-news__card:hover .aos-news__card-img img {
	transform: scale(1.04);
	filter: saturate(1.05);
}

.aos-news__card-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aos-news__card-cat {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	margin: 0;
}
.aos-news__card-cat a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 160ms, color 160ms;
}
.aos-news__card-cat a:hover {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	border-bottom-color: var(--wp--preset--color--yellow, hsl(var(--aos-yellow)));
}

.aos-news__card-title {
	font-family: var(--display) !important;
	font-size: clamp(1.35rem, 1.9vw, 1.65rem) !important;
	font-weight: 400 !important;
	line-height: 1.16 !important;
	letter-spacing: -0.018em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 !important;
	padding: 0 !important;
}
.aos-news__card-title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0 1px;
	background-position: 0 100%;
	transition: background-size 320ms cubic-bezier(.22,1,.36,1);
	padding-bottom: 1px;
}
.aos-news__card:hover .aos-news__card-title a { background-size: 100% 1px; }

.aos-news__card-excerpt {
	font-size: 15px;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 0;
}

.aos-news__card-meta {
	display: flex !important;
	align-items: center;
	gap: 10px !important;
	margin-top: 4px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	min-width: 0;
}
.aos-news__card-date { white-space: nowrap; }

/* ── Pagination ───────────────────────────────────────────────── */

.aos-news__pagination {
	margin-top: 64px;
	gap: 4px !important;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 13px;
	letter-spacing: 0.02em;
}
.aos-news__pagination a,
.aos-news__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	color: var(--wp--preset--color--foreground, hsl(var(--fg)));
	text-decoration: none;
	transition: background 160ms, color 160ms, transform 160ms;
}
.aos-news__pagination a:hover {
	background: var(--wp--preset--color--yellow-soft, hsl(var(--aos-yellow-soft)));
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	transform: translateY(-1px);
}
.aos-news__pagination .page-numbers.current {
	background: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	color: var(--wp--preset--color--background, hsl(var(--bg)));
	font-weight: 600;
}

/* ── Empty state ──────────────────────────────────────────────── */

.aos-news__empty {
	padding: 80px 0;
	text-align: center;
	font-style: italic;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
}

/* ── Newsletter signup band ───────────────────────────────────── */

.aos-news__signup {
	position: relative;
	padding: 88px 24px 96px;
	background:
		radial-gradient(circle at 10% 20%, hsl(var(--aos-yellow) / 0.10) 0%, transparent 40%),
		radial-gradient(circle at 90% 110%, hsl(var(--aos-blue) / 0.08) 0%, transparent 40%),
		var(--wp--preset--color--background-alt, hsl(var(--bg-alt)));
	overflow: hidden;
}
.aos-news__signup::before {
	/* a single hairline at the top so the band cleanly separates from the grid */
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--border, hsl(var(--border))), transparent);
}

.aos-news__signup-inner {
	max-width: 1080px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: end;
}
@media (max-width: 820px) {
	.aos-news__signup-inner { grid-template-columns: 1fr !important; gap: 28px !important; align-items: start; }
}

.aos-news__signup-eyebrow {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	margin: 0 0 14px;
}
.aos-news__signup-title {
	font-family: var(--display) !important;
	font-size: clamp(1.8rem, 3vw, 2.6rem) !important;
	font-weight: 350 !important;
	line-height: 1.08 !important;
	letter-spacing: -0.022em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 0 14px !important;
}
.aos-news__signup-sub {
	font-size: 16px;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	max-width: 44ch;
	margin: 0;
}

.aos-news__signup-form { width: 100%; }
.aos-news__signup-label {
	display: block;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0 0 10px;
}

.aos-news__signup-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
	background: hsl(var(--paper));
	border: 1px solid var(--wp--preset--color--border, hsl(var(--border)));
	border-radius: 999px;
	padding: 6px;
	box-shadow: 0 1px 3px hsl(var(--fg) / 0.04);
	transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}
.aos-news__signup-row:focus-within {
	border-color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	box-shadow: 0 0 0 4px hsl(var(--aos-blue) / 0.10);
}
.aos-news__signup-row input[type="email"] {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 10px 16px;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 15px;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	outline: 0;
	min-width: 0;
}
.aos-news__signup-row input[type="email"]::placeholder {
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
}
.aos-news__signup-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	color: var(--wp--preset--color--background, hsl(var(--bg)));
	border: 0;
	padding: 10px 22px;
	border-radius: 999px;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 160ms, transform 160ms;
	white-space: nowrap;
}
.aos-news__signup-btn:hover:not(:disabled) {
	background: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	transform: translateY(-1px);
}
.aos-news__signup-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}
.aos-news__signup-btn-arrow {
	transition: transform 200ms cubic-bezier(.22,1,.36,1);
}
.aos-news__signup-btn:hover:not(:disabled) .aos-news__signup-btn-arrow {
	transform: translateX(3px);
}

.aos-news__signup-note {
	font-size: 12.5px;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 12px 4px 0;
	transition: color 200ms;
}
.aos-news__signup-note[data-state="success"] {
	color: hsl(var(--ok));
	font-weight: 500;
}
.aos-news__signup-note[data-state="error"] {
	color: var(--wp--preset--color--rose, hsl(var(--aos-rose)));
	font-weight: 500;
}
.aos-news__signup-note[data-state="pending"] {
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
}
.aos-news__signup-form.is-done .aos-news__signup-row {
	border-color: hsl(var(--ok) / 0.5);
	box-shadow: 0 0 0 4px hsl(var(--ok) / 0.12);
}

/* ── Reduced-motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.aos-news__card-img img,
	.aos-news__card-title a,
	.aos-news__signup-btn,
	.aos-news__signup-btn-arrow,
	.aos-news__pagination a {
		transition: none !important;
	}
	.aos-news__card:hover .aos-news__card-img img,
	.aos-news__signup-btn:hover:not(:disabled),
	.aos-news__pagination a:hover {
		transform: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════════
   PERFECTION PASS
   typography discipline · entrance motion · reading time chip
   focus-within · back-to-top · reading progress · prev/next
   empty-state · missing-image fallback
   ══════════════════════════════════════════════════════════════════ */

/* Typography: balance display headings, avoid orphans in prose */
.aos-news__title,
.aos-news__card-title,
.aos-news__signup-title,
.aos-post__title,
.aos-post__deck,
.aos-blog__title,
.aos-blog__card-title,
.aos-news__empty-title {
	text-wrap: balance;
}
.aos-news__deck,
.aos-news__card-excerpt,
.aos-news__signup-sub,
.aos-post__body p,
.aos-postcallout__body,
.aos-postquote__body {
	text-wrap: pretty;
}

/* Entrance animation for grid cards. Initial hidden, revealed by IO. */
.aos-news__card {
	opacity: 0;
	transform: translateY(14px);
	transition:
		opacity   520ms cubic-bezier(.22,1,.36,1),
		transform 520ms cubic-bezier(.22,1,.36,1);
	will-change: opacity, transform;
}
.aos-news__card.is-in-view {
	opacity: 1;
	transform: none;
}
/* Stagger the first row a touch so it feels choreographed, not mechanical. */
.aos-news__grid > li:nth-child(1) .aos-news__card,
.aos-news__grid > .aos-news__card:nth-child(1) { transition-delay: 0ms; }
.aos-news__grid > li:nth-child(2) .aos-news__card,
.aos-news__grid > .aos-news__card:nth-child(2) { transition-delay: 60ms; }
.aos-news__grid > li:nth-child(3) .aos-news__card,
.aos-news__grid > .aos-news__card:nth-child(3) { transition-delay: 120ms; }
.aos-news__grid > li:nth-child(4) .aos-news__card,
.aos-news__grid > .aos-news__card:nth-child(4) { transition-delay: 180ms; }

/* Reading time chip — injected via {{reading_time}} in home.html meta */
.aos-news__card-read {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0;
	padding: 2px 8px;
	background: hsl(var(--aos-yellow) / 0.14);
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	border-radius: 4px;
	white-space: nowrap;
}
/* Collapse the '·' divider when card-read sits inside the meta row — chip has its own visual separation */
.aos-news__card-meta .aos-news__card-read::before {
	content: none;
}

/* Focus-within: entire card shows a cohesive focus ring when any child is focused */
.aos-news__card:focus-within {
	outline: 0;
}
.aos-news__card:focus-within .aos-news__card-media {
	box-shadow: 0 0 0 3px var(--wp--preset--color--yellow, hsl(var(--aos-yellow))), 0 0 0 5px var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	border-radius: 12px;
}
.aos-news__card:focus-within .aos-news__card-title a {
	background-size: 100% 1px;
}
.aos-news__card:focus-within .aos-news__card-cta {
	opacity: 1;
	transform: none;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
}
/* Remove UA outlines from in-card links; the cohesive ring replaces them */
.aos-news__card a:focus { outline: 0; }
.aos-news__card a:focus-visible { outline: 0; }

/* Featured card — the card-media needs softer focus ring shape */
.aos-news__grid > li:first-child .aos-news__card:focus-within .aos-news__card-media,
.aos-news__grid > .aos-news__card:first-child:focus-within .aos-news__card-media {
	border-radius: 14px;
}

/* Reading progress bar (single post) */
.aos-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: transparent;
	z-index: 9999;
	pointer-events: none;
}
.aos-progress__bar {
	display: block;
	height: 100%;
	width: 100%;
	background: linear-gradient(90deg, var(--wp--preset--color--navy, hsl(var(--aos-navy))), var(--wp--preset--color--blue, hsl(var(--aos-blue))) 60%, var(--wp--preset--color--yellow, hsl(var(--aos-yellow))));
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform 80ms linear;
	will-change: transform;
}

/* Back-to-top button */
.aos-back-top {
	position: fixed;
	bottom: 28px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	color: var(--wp--preset--color--background, hsl(var(--bg)));
	border: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 8px 24px hsl(var(--fg) / 0.20), 0 2px 6px hsl(var(--fg) / 0.12);
	opacity: 0;
	transform: translateY(16px) scale(0.9);
	pointer-events: none;
	transition: opacity 260ms cubic-bezier(.22,1,.36,1), transform 260ms cubic-bezier(.22,1,.36,1), background 160ms;
	z-index: 99;
}
.aos-back-top.is-visible {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
.aos-back-top:hover {
	background: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	transform: translateY(-2px);
}
.aos-back-top:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px var(--wp--preset--color--yellow, hsl(var(--aos-yellow))), 0 8px 24px hsl(var(--fg) / 0.20);
}
@media (max-width: 640px) {
	.aos-back-top { bottom: 16px; right: 16px; }
}

/* Prev/next navigation on single post footer */
.aos-post__nav {
	margin: 0 0 48px;
	padding: 24px 0;
	border-top: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	border-bottom: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	gap: 16px !important;
}
.aos-post__nav a,
.aos-post__nav-prev,
.aos-post__nav-next {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--display);
	font-size: 17px;
	font-weight: 400;
	letter-spacing: -0.015em;
	line-height: 1.2;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	text-decoration: none;
	max-width: 46%;
	transition: color 160ms;
}
.aos-post__nav a:hover { color: var(--wp--preset--color--blue, hsl(var(--aos-blue))); }
.aos-post__nav-next { margin-left: auto; text-align: right; }
/* The core post-navigation-link block wraps its arrow in a span — push arrows outward on hover */
.aos-post__nav a .wp-block-post-navigation-link__arrow-previous,
.aos-post__nav a .wp-block-post-navigation-link__arrow-next,
.aos-post__nav-prev .wp-block-post-navigation-link__arrow-previous,
.aos-post__nav-next .wp-block-post-navigation-link__arrow-next {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	font-weight: 500;
	transition: transform 240ms cubic-bezier(.22,1,.36,1);
	flex-shrink: 0;
}
.aos-post__nav a:hover .wp-block-post-navigation-link__arrow-previous,
.aos-post__nav-prev:hover .wp-block-post-navigation-link__arrow-previous { transform: translateX(-4px); }
.aos-post__nav a:hover .wp-block-post-navigation-link__arrow-next,
.aos-post__nav-next:hover .wp-block-post-navigation-link__arrow-next { transform: translateX(4px); }

/* Polished empty state */
.aos-news__empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 100px 20px 80px;
	text-align: center;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
}
.aos-news__empty-svg {
	color: var(--wp--preset--color--border-strong, hsl(var(--border-strong)));
	margin-bottom: 8px;
}
.aos-news__empty-title {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 0;
}
.aos-news__empty-sub {
	font-size: 15px;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0;
	font-style: italic;
}

/* Archive empty state — same shape as .aos-news__empty so the warm
   voice carries through both the news index and category archives. */
:is(.aos-post, .aos-blog) .aos-blog__empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 100px 20px 80px;
	text-align: center;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
}
:is(.aos-post, .aos-blog) .aos-blog__empty-svg {
	color: var(--wp--preset--color--border-strong, hsl(var(--border-strong)));
	margin-bottom: 8px;
}
:is(.aos-post, .aos-blog) .aos-blog__empty-title {
	font-family: var(--display);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	margin: 0;
}
:is(.aos-post, .aos-blog) .aos-blog__empty-sub {
	font-size: 15px;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0;
	font-style: italic;
}
:is(.aos-post, .aos-blog) .aos-blog__empty-sub a {
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	text-decoration: underline;
	text-underline-offset: 3px;
}
:is(.aos-post, .aos-blog) .aos-blog__empty-sub a:hover {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
}

/* Missing-image fallback — editorial initial over a category gradient */
.aos-news__card-img--empty {
	display: grid;
	place-items: center;
	color: hsl(var(--paper) / 0.92);
	text-decoration: none;
	height: 100%;
	width: 100%;
	position: relative;
	overflow: hidden;
}
.aos-news__card-img--empty::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 18% 18%, hsl(var(--paper) / 0.14), transparent 55%),
		radial-gradient(circle at 82% 82%, hsl(var(--paper) / 0.08), transparent 60%);
	pointer-events: none;
}
.aos-news__card-img-init {
	font-family: var(--display);
	font-size: clamp(48px, 9vw, 96px);
	font-weight: 350;
	line-height: 1;
	letter-spacing: -0.03em;
	mix-blend-mode: screen;
	opacity: 0.95;
	position: relative;
	z-index: 1;
}

/* Reduced-motion overrides for the new primitives */
@media (prefers-reduced-motion: reduce) {
	.aos-news__card {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.aos-back-top,
	.aos-progress__bar,
	.aos-post__nav a,
	.aos-post__nav a .wp-block-post-navigation-link__arrow-previous,
	.aos-post__nav a .wp-block-post-navigation-link__arrow-next {
		transition: none !important;
	}
	.aos-back-top:hover {
		transform: none !important;
	}
}

/* ══════════════════════════════════════════════════════════════════
   SINGLE-POST BODY PERFECTION
   drop cap · lead paragraph · refined links · pullquote polish
   figure hairline · heading anchors (#) · scroll-linked TOC
   ══════════════════════════════════════════════════════════════════ */

/* ── Lead paragraph + drop cap ────────────────────────────────── */

.aos-post__lead {
	font-family: var(--display) !important;
	font-size: 20px !important;
	line-height: 1.52 !important;
	letter-spacing: -0.008em !important;
	color: var(--wp--preset--color--foreground, hsl(var(--fg))) !important;
	margin: 0 0 28px !important;
}
.aos-post__lead::first-letter {
	font-family: var(--display);
	font-size: 5em;
	line-height: 0.82;
	font-weight: 400;
	float: left;
	margin: 0.08em 0.1em 0 -0.04em;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	font-feature-settings: "kern" 1;
}
@media (max-width: 560px) {
	.aos-post__lead { font-size: 18px !important; }
	.aos-post__lead::first-letter { font-size: 4em; }
}

/* ── Refined inline links inside the post body ───────────────── */

.aos-post__body a {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	text-decoration: none !important;
	background-image: linear-gradient(
		to right,
		var(--wp--preset--color--yellow, hsl(var(--aos-yellow))) 0%,
		var(--wp--preset--color--yellow, hsl(var(--aos-yellow))) 100%
	);
	background-repeat: no-repeat;
	background-size: 100% 4px;
	background-position: 0 92%;
	padding-bottom: 1px;
	transition: background-size 220ms cubic-bezier(.22,1,.36,1), color 180ms;
}
.aos-post__body a:hover {
	background-size: 100% 100%;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
}
.aos-post__body a:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	outline-offset: 3px;
	border-radius: 2px;
}

/* ── Heading anchors (#) — hover / focus reveal ──────────────── */

.aos-post__body h2,
.aos-post__body h3 {
	position: relative;
	scroll-margin-top: 80px;
	transition: background-color 420ms ease-out;
	border-radius: 6px;
}
.aos-post__body h2.is-focused,
.aos-post__body h3.is-focused {
	background-color: hsl(var(--aos-yellow) / 0.18);
	transition: background-color 120ms ease-in;
}
.aos-anchor {
	position: absolute;
	left: -1.1em;
	top: 0.18em;
	opacity: 0;
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep))) !important;
	text-decoration: none !important;
	background-image: none !important;
	padding-bottom: 0 !important;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.55em;
	font-weight: 500;
	transition: opacity 180ms;
}
.aos-post__body h2:hover .aos-anchor,
.aos-post__body h3:hover .aos-anchor,
.aos-anchor:focus-visible {
	opacity: 0.75;
}
.aos-anchor:hover { opacity: 1 !important; }
.aos-anchor.is-copied::after {
	content: "copied ✓";
	position: absolute;
	left: 1.6em;
	top: 0;
	font-size: 0.9em;
	font-weight: 500;
	color: hsl(var(--ok));
	white-space: nowrap;
	animation: aosCopyFade 1400ms ease forwards;
}
@keyframes aosCopyFade {
	0% { opacity: 0; transform: translateX(-4px); }
	15%,60% { opacity: 1; transform: translateX(0); }
	100% { opacity: 0; transform: translateX(4px); }
}

/* ── Pullquote polish (already styled in post-patterns block) ── */

.aos-postquote {
	margin: 56px auto !important;
	padding: 0 !important;
	border-left: 0 !important;
	max-width: 640px;
	position: relative;
}
.aos-postquote::before {
	/* Decorative vertical accent rail */
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 0;
	width: 3px;
	background: linear-gradient(to bottom, var(--wp--preset--color--rose, hsl(var(--aos-rose))) 0%, transparent 100%);
	border-radius: 2px;
}
.aos-postquote__mark {
	font-family: var(--display) !important;
	font-size: 96px !important;
	line-height: 0.6 !important;
	font-weight: 350 !important;
	letter-spacing: -0.04em !important;
	color: var(--wp--preset--color--rose, hsl(var(--aos-rose))) !important;
	opacity: 0.32;
	margin: 0 0 -18px 28px !important;
	padding: 0 !important;
}
.aos-postquote__body {
	font-family: var(--display) !important;
	font-size: clamp(1.35rem, 2.1vw, 1.75rem) !important;
	font-weight: 350 !important;
	font-style: italic !important;
	line-height: 1.3 !important;
	letter-spacing: -0.014em !important;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	margin: 0 0 14px 28px !important;
}
.aos-postquote__by {
	font-family: "JetBrains Mono", ui-monospace, monospace !important;
	font-size: 11.5px !important;
	font-weight: 500 !important;
	letter-spacing: 0.11em !important;
	text-transform: uppercase !important;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle))) !important;
	margin: 0 0 0 28px !important;
}

/* ── Figure captions with a hairline ────────────────────────── */

.aos-postfig {
	margin: 48px 0 !important;
}
.aos-postfig__img {
	margin: 0 0 14px !important;
}
.aos-postfig__cap {
	position: relative;
	padding-top: 12px !important;
	border-top: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	font-family: var(--display) !important;
	font-style: italic !important;
	font-size: 13.5px !important;
	line-height: 1.45 !important;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted))) !important;
	margin: 0 !important;
	max-width: 560px;
	text-align: left !important;
}
.aos-postfig__cap::before {
	/* Tiny yellow accent above the hairline */
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 36px;
	height: 1px;
	background: var(--wp--preset--color--yellow, hsl(var(--aos-yellow)));
}

/* ── Callout polish (tightens existing) ─────────────────────── */

.aos-postcallout {
	border-left: 3px solid var(--wp--preset--color--yellow, hsl(var(--aos-yellow))) !important;
}

/* ── List + blockquote + hr: small editorial touches ────────── */

.aos-post__body ul,
.aos-post__body ol {
	padding-left: 1.2em !important;
	margin: 20px 0 28px !important;
}
.aos-post__body ul li::marker { color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep))); }
.aos-post__body ol li::marker { color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle))); font-family: "JetBrains Mono", monospace; font-size: 0.85em; }

.aos-post__body hr {
	border: 0;
	display: flex;
	justify-content: center;
	margin: 44px auto;
	padding: 0;
	height: 16px;
	position: relative;
	max-width: 80px;
}
.aos-post__body hr::before,
.aos-post__body hr::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 24px;
	height: 1px;
	background: var(--wp--preset--color--border, hsl(var(--border)));
}
.aos-post__body hr::before { left: 0; }
.aos-post__body hr::after  { right: 0; }
.aos-post__body hr {
	background: radial-gradient(circle, var(--wp--preset--color--yellow, hsl(var(--aos-yellow))) 2.5px, transparent 3px) center/16px 16px no-repeat;
}

/* ── Table of contents (sticky sidebar on wide screens) ───── */

.aos-toc {
	display: none;
	box-sizing: border-box;
}
.aos-toc__title {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	display: flex;
	align-items: center;
	gap: 10px;
}
.aos-toc__title::before {
	content: "";
	display: inline-block;
	width: 20px;
	height: 1px;
	background: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
}
.aos-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	counter-reset: aos-toc;
}
.aos-toc__list li {
	counter-increment: aos-toc;
	position: relative;
}
.aos-toc__link {
	display: block;
	padding: 4px 0 4px 22px;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	text-decoration: none;
	border-left: 2px solid transparent;
	margin-left: -14px;
	padding-left: 14px;
	transition: color 180ms, border-color 180ms, transform 200ms cubic-bezier(.22,1,.36,1);
}
.aos-toc__link::before {
	content: counter( aos-toc, decimal-leading-zero );
	position: absolute;
	left: 0;
	top: 4px;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10px;
	color: var(--wp--preset--color--border-strong, hsl(var(--border-strong)));
	font-weight: 500;
	transition: color 180ms;
}
.aos-toc__link:hover {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	transform: translateX(2px);
}
.aos-toc__link.is-active {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	border-left-color: var(--wp--preset--color--yellow, hsl(var(--aos-yellow)));
	font-weight: 500;
}
.aos-toc__link.is-active::before {
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
}
.aos-toc__link:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	outline-offset: 2px;
	border-radius: 2px;
}

/* Show the TOC only when viewport has room to the left of the post body. */
@media (min-width: 1280px) {
	.aos-toc.is-visible {
		display: block !important;
		position: fixed;
		top: 112px;
		left: max(24px, calc(50% - 590px));
		width: 200px;
		max-height: calc(100vh - 160px);
		overflow-y: auto;
		scrollbar-width: thin;
		z-index: 5;
	}
}

/* ── Reduced-motion for the body polish ─────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.aos-post__body a,
	.aos-anchor,
	.aos-toc__link,
	.aos-post__body h2,
	.aos-post__body h3 {
		transition: none !important;
	}
	.aos-toc__link:hover { transform: none !important; }
	.aos-anchor.is-copied::after { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════════════
   SHARE BAR  ·  BYLINE  ·  RELATED CARDS  ·  TIME-LEFT CHIP
   ══════════════════════════════════════════════════════════════════ */

/* ── Time-left chip inside the TOC title ────────────────────── */

.aos-toc__remaining {
	margin-left: auto;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: none;
	padding: 2px 7px;
	border-radius: 999px;
	background: hsl(var(--aos-yellow) / 0.16);
	color: var(--wp--preset--color--yellow-deep, hsl(var(--aos-yellow-deep)));
	transition: background 240ms, color 240ms;
}
.aos-toc__remaining[data-state="done"] {
	background: hsl(var(--ok) / 0.14);
	color: hsl(var(--ok));
}
.aos-toc__remaining[data-state="full"] {
	background: hsl(var(--aos-blue) / 0.10);
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
}

/* ── Share bar (mirror of TOC, right side) ──────────────────── */

.aos-share {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	background: hsl(var(--paper));
	border: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	border-radius: 999px;
	box-shadow: 0 4px 12px hsl(var(--fg) / 0.06), 0 1px 3px hsl(var(--fg) / 0.04);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 320ms cubic-bezier(.22,1,.36,1), transform 320ms cubic-bezier(.22,1,.36,1);
	z-index: 5;
}
.aos-share.is-visible {
	opacity: 1;
	transform: none;
}
.aos-share__label {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	margin-bottom: 4px;
}
.aos-share__btn {
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	border-radius: 50%;
	display: grid;
	place-items: center;
	cursor: pointer;
	position: relative;
	transition: background 160ms, color 160ms, transform 160ms;
}
.aos-share__btn:hover {
	background: var(--wp--preset--color--yellow-soft, hsl(var(--aos-yellow-soft)));
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	transform: translateY(-1px);
}
.aos-share__btn:focus-visible {
	outline: 0;
	background: var(--wp--preset--color--yellow-soft, hsl(var(--aos-yellow-soft)));
	box-shadow: 0 0 0 3px hsl(var(--aos-blue) / 0.25);
}
.aos-share__btn.is-copied::after {
	content: "copied ✓";
	position: absolute;
	right: calc(100% + 10px);
	top: 50%;
	transform: translateY(-50%);
	font-family: "JetBrains Mono", monospace;
	font-size: 10px;
	font-weight: 600;
	color: hsl(var(--ok));
	background: hsl(var(--paper));
	border: 1px solid hsl(var(--ok) / 0.3);
	padding: 4px 8px;
	border-radius: 4px;
	white-space: nowrap;
	animation: aosShareCopied 1400ms ease forwards;
}
@keyframes aosShareCopied {
	0%   { opacity: 0; transform: translate(4px, -50%); }
	15%,70% { opacity: 1; transform: translate(0, -50%); }
	100% { opacity: 0; transform: translate(-4px, -50%); }
}

@media (min-width: 1280px) {
	.aos-share {
		display: flex !important;
		position: fixed;
		top: 120px;
		right: max(24px, calc(50% - 590px));
	}
}
/* Below 1280px: inline share bar at the foot of the article body. */
@media (max-width: 1279px) {
	.aos-share {
		display: flex !important;
		flex-direction: row !important;
		border-radius: 999px;
		max-width: 320px;
		margin: 32px auto 0;
		padding: 8px 14px;
		opacity: 1;
		transform: none;
		position: static;
	}
	.aos-share__label {
		writing-mode: initial;
		transform: none;
		margin: 0 10px 0 0;
	}
}

/* ── Author byline card ─────────────────────────────────────── */

.aos-byline {
	margin: 48px 0 !important;
	padding: 28px 28px;
	background: linear-gradient(
		135deg,
		hsl(var(--aos-yellow) / 0.06) 0%,
		hsl(var(--aos-blue) / 0.04) 100%
	);
	border: 1px solid var(--wp--preset--color--border-soft, hsl(var(--border-soft)));
	border-radius: 14px;
}
.aos-byline__inner {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 22px;
	align-items: start;
}
@media (max-width: 520px) {
	.aos-byline__inner {
		grid-template-columns: 64px 1fr !important;
		gap: 16px !important;
	}
}
.aos-byline__avatar,
.aos-byline .avatar {
	width: 80px !important;
	height: 80px !important;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 4px 12px hsl(var(--fg) / 0.10);
}
@media (max-width: 520px) {
	.aos-byline__avatar,
	.aos-byline .avatar { width: 64px !important; height: 64px !important; }
}
.aos-byline__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.aos-byline__eyebrow {
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
}
.aos-byline__name {
	font-family: var(--display);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.018em;
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy)));
	line-height: 1.2;
}
.aos-byline__bio {
	font-size: 14.5px;
	line-height: 1.55;
	color: var(--wp--preset--color--foreground-muted, hsl(var(--fg-muted)));
	margin: 2px 0 6px;
	max-width: 60ch;
}
.aos-byline__more {
	font-family: "Instrument Sans", system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue))) !important;
	text-decoration: none !important;
	background-image: none !important;
	padding-bottom: 0 !important;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	transition: color 160ms, transform 200ms cubic-bezier(.22,1,.36,1);
}
.aos-byline__more:hover {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	transform: translateX(2px);
}

/* ── Related posts (rewritten grid) ─────────────────────────── */

.aos-post__related {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	list-style: none;
	padding: 0;
	margin: 0;
}
@media (max-width: 900px) {
	.aos-post__related { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
	.aos-post__related { grid-template-columns: 1fr !important; }
}
.aos-post__rel {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.aos-post__rel-img {
	display: block;
	aspect-ratio: 3/2;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(135deg, hsl(var(--aos-navy)), hsl(var(--aos-blue)));
	position: relative;
	isolation: isolate;
}
.aos-post__rel-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 520ms cubic-bezier(.22,1,.36,1);
}
.aos-post__rel:hover .aos-post__rel-img img { transform: scale(1.04); }
.aos-post__rel-init {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-size: 56px;
	font-weight: 350;
	color: hsl(var(--paper) / 0.92);
	mix-blend-mode: screen;
}
.aos-post__rel-cat {
	font-family: "JetBrains Mono", monospace;
	font-size: 10.5px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--wp--preset--color--blue, hsl(var(--aos-blue)));
	font-weight: 500;
}
.aos-post__rel-cat a {
	color: inherit;
	text-decoration: none;
	background-image: none !important;
	padding-bottom: 0 !important;
}
.aos-post__rel-title {
	font-family: var(--display) !important;
	font-size: 19px !important;
	line-height: 1.22 !important;
	font-weight: 400 !important;
	letter-spacing: -0.018em !important;
	margin: 0 !important;
	padding: 0 !important;
}
.aos-post__rel-title a {
	color: var(--wp--preset--color--navy, hsl(var(--aos-navy))) !important;
	text-decoration: none !important;
	background-image: linear-gradient(currentColor, currentColor) !important;
	background-repeat: no-repeat !important;
	background-size: 0 1px !important;
	background-position: 0 100% !important;
	padding-bottom: 1px !important;
	transition: background-size 320ms cubic-bezier(.22,1,.36,1) !important;
}
.aos-post__rel:hover .aos-post__rel-title a { background-size: 100% 1px !important; }
.aos-post__rel-date {
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--foreground-subtle, hsl(var(--fg-subtle)));
}

@media (prefers-reduced-motion: reduce) {
	.aos-share,
	.aos-share__btn,
	.aos-byline__more,
	.aos-post__rel-img img,
	.aos-post__rel-title a,
	.aos-toc__remaining {
		transition: none !important;
	}
	.aos-share__btn:hover,
	.aos-byline__more:hover,
	.aos-post__rel:hover .aos-post__rel-img img {
		transform: none !important;
	}
	.aos-share__btn.is-copied::after { animation: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
 * Single template variations — Editorial / Magazine cover / Photo essay
 * ═════════════════════════════════════════════════════════════════════════ */

.aos-post__title--xl {
	font-size: clamp(2.4rem, 4.6vw, 4.4rem) !important;
	letter-spacing: -0.025em !important;
	line-height: 1.02 !important;
	max-width: 18ch;
}

.aos-post--magazine .aos-post__cover-hero { margin: 0; }
.aos-post--magazine .aos-post__cover-hero .wp-block-cover__inner-container {
	max-width: var(--container, min(100%, 1680px));
	margin: 0 auto;
	padding: 0 var(--gutter, clamp(1.25rem, 4vw, 4rem));
	text-align: center;
}
.aos-post__title--cover {
	font-family: var(--display);
	font-weight: 350;
	font-size: clamp(2.6rem, 6.4vw, 6rem);
	line-height: 1;
	letter-spacing: -0.028em;
	color: hsl(var(--paper)) !important;
	max-width: 22ch;
	margin: 0 auto 24px !important;
	font-variation-settings: "opsz" 60;
	text-shadow: 0 2px 24px hsl(var(--fg) / 0.45);
}
.aos-post__title--cover em { color: hsl(48 100% 64%); font-style: italic; font-weight: 350; }
.aos-post__deck--cover {
	font-family: var(--display);
	font-style: italic; font-weight: 300;
	font-size: clamp(1.05rem, 2vw, 1.4rem); line-height: 1.55;
	color: hsl(var(--paper) / 0.92) !important;
	max-width: 50ch; margin: 0 auto 28px !important;
	text-shadow: 0 1px 16px hsl(var(--fg) / 0.4);
}
.aos-post__cat--inverse {
	color: hsl(48 100% 64%) !important;
	letter-spacing: 0.16em; text-transform: uppercase;
	font-size: 11.5px; font-weight: 700;
	display: inline-block; margin-bottom: 18px !important;
}
.aos-post__meta--cover {
	color: hsl(var(--paper) / 0.74);
	font-size: 12.5px; font-weight: 500; letter-spacing: 0.06em;
	gap: 24px;
	justify-content: center !important;
}
.aos-post__meta--cover .aos-post__author,
.aos-post__meta--cover .aos-post__date,
.aos-post__meta--cover .aos-post__read { color: hsl(var(--paper) / 0.86) !important; }
.aos-post__body--magazine {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 5rem) var(--gutter, clamp(1.25rem, 4vw, 4rem));
	font-size: 17.5px; line-height: 1.78;
}
.aos-post__body--magazine > :first-child {
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	line-height: 1.55;
	font-family: var(--display);
	font-weight: 350; letter-spacing: -0.012em;
	color: hsl(195 7% 11%);
	margin-bottom: 1.5em;
	font-variation-settings: "opsz" 36;
}

.aos-post--photo-essay .aos-post__essay-cover {
	margin: 0; max-height: 86vh; overflow: hidden;
}
.aos-post--photo-essay .aos-post__essay-cover img {
	display: block; width: 100%; height: 100%; max-height: 86vh; object-fit: cover;
}
.aos-post__essay-credits {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	max-width: var(--container, min(100%, 1680px));
	margin: 0 auto;
	padding: 24px var(--gutter, clamp(1.25rem, 4vw, 4rem));
	border-bottom: 1px solid hsl(190 12% 91%);
}
.aos-post--photo-essay .aos-post__essay-hero {
	max-width: var(--container, min(100%, 1680px));
	margin: 0 auto;
	padding: clamp(3rem, 6vw, 5rem) var(--gutter, clamp(1.25rem, 4vw, 4rem)) clamp(2.5rem, 5vw, 4rem);
}
.aos-post__essay-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 5rem);
	align-items: end;
}
.aos-post__title--essay {
	font-family: var(--display);
	font-weight: 320;
	font-size: clamp(2.4rem, 5.4vw, 5rem);
	line-height: 1.02;
	letter-spacing: -0.026em;
	color: hsl(195 7% 11%);
	margin: 0;
	max-width: 20ch;
	font-variation-settings: "opsz" 60;
}
.aos-post__title--essay em { color: hsl(192 91% 36%); font-style: italic; font-weight: 320; }
.aos-post__deck--essay {
	font-family: var(--display);
	font-style: italic; font-weight: 320;
	font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55;
	color: hsl(194 7% 38%);
	margin: 0 0 1em !important;
	max-width: 38ch;
}
.aos-post__meta--essay {
	display: flex; flex-direction: column; gap: 4px;
	font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
	color: hsl(200 5% 56%);
}
.aos-post__body--essay {
	max-width: 720px;
	margin: 0 auto;
	padding: clamp(2rem, 4vw, 3.5rem) var(--gutter, clamp(1.25rem, 4vw, 4rem)) clamp(4rem, 7vw, 6rem);
	font-size: 17.5px; line-height: 1.78;
}

@media (max-width: 900px) {
	.aos-post__essay-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
	.aos-post__title--essay { max-width: none; }
	.aos-post--magazine .aos-post__cover-hero { min-height: 64vh !important; }
	.aos-post__title--cover { font-size: clamp(2rem, 9vw, 3.4rem); }
	.aos-post__deck--cover { font-size: 1rem; }
	.aos-post__meta--cover { gap: 12px !important; flex-direction: column !important; }
}

/* ── Post reading column (live-site parity) ──────────────────────────────
   The prose measure was 1080px — far past comfortable reading length, and it
   collided with the fixed TOC rail, whose left offset (calc(50% - 590px)) was
   designed around a ~720px column. Match the live agency-os.ai post layout:
   breadcrumb, hero, and body share a 720px column; the cover stays wide. */
.aos-post .aos-breadcrumb--post,
.aos-post__hero > *,
.aos-post__body > .wp-block-post-content {
	max-width: 720px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}
