/*!
 * AppAgentix - Blog listing.
 *
 * Loaded only where page-blog-list.php renders: the Blog page and the
 * category, tag and post-search archives (inc/scripts.php). Every
 * selector is scoped to an aa-blog- class, so nothing here reaches
 * another template. Reads the brand tokens from layout.css, with
 * fallbacks.
 *
 * The Quick enquiry in the sidebar is the site's shared lead form
 * (lp-components.css). It is restyled here only inside .aa-blog-enquiry,
 * so the same form keeps its own look in the popup and on Contact Us.
 *
 * The buttons follow the homepage's .ao-btn language (10px radius,
 * dark solid and outlined pair) without loading homepage.css for them.
 *
 * Contents
 *   1. Tokens and base
 *   2. Shared pieces: container, eyebrow, gradient text, buttons, icons, tags
 *   3. Introduction, search, trending and the most-read box
 *   4. Media, badges and the fallback cover
 *   5. Featured stories
 *   6. Toolbar: category filters and sort
 *   7. Layout: article column and sidebar
 *   8. Article grid and cards
 *   9. Sidebar: Quick enquiry and Follow AppAgentix
 *  10. Inline call to action (off by default)
 *  11. Load More and pagination
 *  12. Empty states
 *  13. Closing call to action
 *  14. Motion
 *  15. Responsive
 *  16. Reduced motion
 */

/* =====================================================================
 * 1. Tokens and base
 * ================================================================== */

.aa-blog {
	--aa-blog-brand: var(--brand, #654dff);
	--aa-blog-brand-deep: #4f37e6;
	--aa-blog-ink: var(--ink, #14121c);
	--aa-blog-ink-soft: var(--ink-soft, #3f3d4d);
	--aa-blog-muted: #5f6475;
	--aa-blog-line: #e9e6f2;
	--aa-blog-line-strong: #d9d5e8;
	--aa-blog-soft: #f6f4fc;
	--aa-blog-lavender: #f1edff;
	--aa-blog-night: #120e28;
	--aa-blog-gradient-text: linear-gradient(90deg, #5b3df5 0%, #8d55ff 52%, #c45ad8 100%);
	--aa-blog-radius: 18px;
	--aa-blog-shadow: 0 1px 2px rgba(20, 18, 28, 0.04), 0 10px 28px rgba(28, 21, 66, 0.06);
	--aa-blog-ring: 0 0 0 3px rgba(101, 77, 255, 0.4);
	--aa-blog-ease: cubic-bezier(0.22, 1, 0.36, 1);

	/* Positioned so absolutely placed descendants (the screen-reader text
	   in particular) are clipped here rather than widening the page. */
	position: relative;
	display: block;
	overflow-x: clip;
	background: #fff;
	color: var(--aa-blog-ink);
	font-family: "Poppins", sans-serif;
}

.aa-blog *,
.aa-blog *::before,
.aa-blog *::after {
	box-sizing: border-box;
}

.aa-blog img {
	max-width: 100%;
	height: auto;
}

.aa-blog h1,
.aa-blog h2,
.aa-blog h3 {
	color: var(--aa-blog-ink);
	font-family: inherit;
}

.aa-blog a:focus-visible,
.aa-blog button:focus-visible,
.aa-blog select:focus-visible {
	outline: 3px solid rgba(101, 77, 255, 0.55);
	outline-offset: 3px;
}

.aa-blog-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* =====================================================================
 * 2. Shared pieces
 * ================================================================== */

.aa-blog-container {
	width: min(100% - (var(--gutter, 20px) * 2), var(--container, 1200px));
	margin-inline: auto;
}

.aa-blog-eyebrow {
	margin: 0 0 10px;
	color: var(--aa-blog-brand-deep);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.aa-blog-gradient {
	background: var(--aa-blog-gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--aa-blog-brand);
	-webkit-text-fill-color: transparent;
	/* Each wrapped line carries the whole gradient, not a slice of it. */
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.aa-blog-heading {
	margin: 0;
	font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.875rem);
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

/* Buttons */
.aa-blog-btn {
	position: relative;
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition:
		transform 0.28s var(--aa-blog-ease),
		box-shadow 0.28s ease,
		background-color 0.28s ease,
		border-color 0.28s ease,
		color 0.28s ease;
}

/* The display above would otherwise beat the hidden attribute. */
.aa-blog-btn[hidden] {
	display: none;
}

.aa-blog-btn:hover {
	transform: translateY(-2px);
}

.aa-blog-btn--dark {
	background: var(--aa-blog-ink);
	box-shadow: 0 10px 24px -14px rgba(20, 18, 28, 0.75);
	color: #fff;
}

.aa-blog-btn--dark:hover,
.aa-blog-btn--dark:focus-visible {
	background: #2a2445;
	box-shadow: 0 16px 30px -16px rgba(74, 40, 140, 0.7);
	color: #fff;
}

.aa-blog-btn--outline {
	border-color: rgba(20, 18, 28, 0.18);
	background: #fff;
	color: var(--aa-blog-ink);
}

.aa-blog-btn--outline:hover,
.aa-blog-btn--outline:focus-visible {
	border-color: var(--aa-blog-brand);
	color: var(--aa-blog-brand-deep);
	box-shadow: 0 12px 26px -18px rgba(101, 77, 255, 0.8);
}

.aa-blog-btn .ai-ico {
	transition: transform 0.28s var(--aa-blog-ease);
}

.aa-blog-btn:hover .ai-ico,
.aa-blog-btn:focus-visible .ai-ico {
	transform: translateX(3px);
}

/* Registry icons, unanimated: this page does not load the shared icon layer. */
.aa-blog .ai-ico {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--ai-size, 24px);
	height: var(--ai-size, 24px);
}

.aa-blog .ai-ico--xs { --ai-size: 16px; }
.aa-blog .ai-ico--sm { --ai-size: 20px; }
.aa-blog .ai-ico--md { --ai-size: 24px; }
.aa-blog .ai-ico--lg { --ai-size: 28px; }

.aa-blog .ai-svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Tag chips: "Trending" in the introduction. */
.aa-blog-tag {
	display: inline-flex;
	align-items: center;
	padding: 5px 12px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--aa-blog-soft);
	color: var(--aa-blog-ink-soft);
	font-size: 0.8rem;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.aa-blog-tag:hover {
	border-color: rgba(101, 77, 255, 0.35);
	background: var(--aa-blog-lavender);
	color: var(--aa-blog-brand-deep);
}


/* =====================================================================
 * 3. Introduction, search and trending
 * ================================================================== */

.aa-blog-hero {
	position: relative;
	isolation: isolate;
	padding-block: clamp(28px, 4.5vw, 56px) clamp(24px, 3vw, 40px);
}

.aa-blog-hero__glow {
	position: absolute;
	z-index: -1;
	top: -220px;
	right: -140px;
	width: min(760px, 90vw);
	height: 560px;
	background:
		radial-gradient(closest-side, rgba(141, 85, 255, 0.16), transparent 72%),
		radial-gradient(closest-side at 30% 70%, rgba(255, 161, 92, 0.12), transparent 70%);
	pointer-events: none;
}

.aa-blog-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 16px;
	padding: 0;
	color: var(--aa-blog-muted);
	font-size: 0.82rem;
	line-height: 1.5;
	list-style: none;
}

.aa-blog-crumbs li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.aa-blog-crumbs li + li::before {
	content: "/";
	color: #b9b5c9;
}

.aa-blog-crumbs a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aa-blog-crumbs a:hover {
	color: var(--aa-blog-brand-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog-crumbs [aria-current] {
	color: var(--aa-blog-ink);
	font-weight: 500;
}

.aa-blog-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 6px 13px;
	border-radius: 999px;
	background: var(--aa-blog-lavender);
	color: var(--aa-blog-brand-deep);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
}

.aa-blog-pill__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--aa-blog-brand);
	box-shadow: 0 0 0 3px rgba(101, 77, 255, 0.18);
}

.aa-blog-hero__title {
	max-width: 15em;
	margin: 0;
	font-size: clamp(2rem, 1.35rem + 2.3vw, 3.125rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.1;
	text-wrap: balance;
}

.aa-blog-hero__row {
	display: grid;
	gap: 18px 48px;
	align-items: end;
	margin-top: 16px;
}

.aa-blog-hero__intro {
	max-width: 62ch;
	margin: 0;
	color: var(--aa-blog-muted);
	font-size: 1.02rem;
	line-height: 1.7;
}

.aa-blog-search {
	margin: 0;
}

.aa-blog-search__field {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 6px 6px 14px;
	border: 1px solid var(--aa-blog-line-strong);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px -12px rgba(28, 21, 66, 0.18);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aa-blog-search__field:focus-within {
	border-color: var(--aa-blog-brand);
	box-shadow: 0 0 0 4px rgba(101, 77, 255, 0.16), 0 8px 24px -12px rgba(28, 21, 66, 0.18);
}

.aa-blog-search.has-error .aa-blog-search__field {
	border-color: #c8102e;
}

.aa-blog-search__icon {
	display: inline-flex;
	color: var(--aa-blog-muted);
}

.aa-blog-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 4px;
	border: 0;
	background: transparent;
	color: var(--aa-blog-ink);
	/* 16px stops iOS zooming the page on focus. */
	font: inherit;
	font-size: 1rem;
	outline: none;
	appearance: none;
}

.aa-blog-search__input::placeholder {
	color: #8a8698;
	opacity: 1;
}

.aa-blog-search__input::-webkit-search-cancel-button {
	cursor: pointer;
}

.aa-blog-search__button {
	flex: none;
	padding: 11px 18px;
	border: 0;
	border-radius: 10px;
	background: var(--aa-blog-brand);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.2s ease;
}

.aa-blog-search__button:hover,
.aa-blog-search__button:focus-visible {
	background: var(--aa-blog-brand-deep);
}

.aa-blog-search__msg {
	margin: 8px 4px 0;
	color: #b4122b;
	font-size: 0.82rem;
	line-height: 1.4;
}

.aa-blog-search__msg:empty {
	display: none;
}

.aa-blog-trending {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
}

.aa-blog-trending__label {
	color: var(--aa-blog-ink-soft);
	font-size: 0.8rem;
	font-weight: 600;
}

/* With the most-read box: copy on the left, the box on the right. */
.aa-blog-hero__layout {
	display: grid;
	gap: 28px 56px;
	align-items: center;
}

.aa-blog-hero__main {
	min-width: 0;
}

/* Most read this month (or Recommended reading, until there are reads). */
.aa-blog-mostread {
	padding: 20px 22px 8px;
	border: 1px solid var(--aa-blog-line);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: var(--aa-blog-shadow);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.aa-blog .aa-blog-mostread__title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

.aa-blog-mostread__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-blog-mostread__item {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding: 13px 0;
}

.aa-blog-mostread__item + .aa-blog-mostread__item {
	border-top: 1px solid var(--aa-blog-line);
}

.aa-blog-mostread__num {
	color: #c4b9ff;
	font-size: 1.55rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.03em;
	line-height: 1.05;
	transition: color 0.2s ease;
}

.aa-blog-mostread__item:hover .aa-blog-mostread__num,
.aa-blog-mostread__item:focus-within .aa-blog-mostread__num {
	color: var(--aa-blog-brand);
}

.aa-blog .aa-blog-mostread__name {
	margin: 0 0 4px;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	line-height: 1.4;
}

.aa-blog-mostread__name a,
.aa-blog-side__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.aa-blog-mostread__name a:hover,
.aa-blog-mostread__name a:focus-visible,
.aa-blog-side__title a:hover,
.aa-blog-side__title a:focus-visible {
	color: var(--aa-blog-brand-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog-mostread__meta,
.aa-blog-side__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 6px;
	margin: 0;
	color: var(--aa-blog-muted);
	font-size: 0.75rem;
	line-height: 1.45;
}

/* A category's colour in the compact lists, matching its fallback cover. */
.aa-blog-tone {
	font-weight: 600;
	text-decoration: none;
}

a.aa-blog-tone:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.aa-blog-tone--1 { color: #4f37e6; }
.aa-blog-tone--2 { color: #9a2fb3; }
.aa-blog-tone--3 { color: #c2531c; }
.aa-blog-tone--4 { color: #1f4fd0; }
.aa-blog-tone--5 { color: #b8325e; }

/* =====================================================================
 * 4. Media, badges and the fallback cover
 * ================================================================== */

.aa-blog-media {
	position: relative;
	display: block;
	overflow: hidden;
	isolation: isolate;
	/* Sizes the cover's lettering to the box it sits in. */
	container-type: inline-size;
	background: #ece8f8;
}

.aa-blog-media__link {
	display: block;
	width: 100%;
	height: 100%;
}

/* Two classes deep, to beat `.aa-blog img { height: auto }`: the image
   must fill its frame whatever its own proportions. */
.aa-blog .aa-blog-media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--aa-blog-ease);
}

.aa-blog-badge {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 24px);
	overflow: hidden;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(20, 18, 28, 0.74);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background-color 0.2s ease;
}

.aa-blog-badge:hover,
.aa-blog-badge:focus-visible {
	background: var(--aa-blog-brand-deep);
	color: #fff;
}

/* No featured image: a brand gradient with the topic set large. */
.aa-blog-cover {
	position: relative;
	display: flex;
	width: 100%;
	height: 100%;
	align-items: flex-start;
	justify-content: flex-end;
	overflow: hidden;
	padding: 7% 7%;
	background: var(--aa-blog-cover-bg, linear-gradient(135deg, #1a1442 0%, #3b2aa6 48%, #7c55ff 100%));
	transition: transform 0.7s var(--aa-blog-ease);
}

.aa-blog-cover::before,
.aa-blog-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.aa-blog-cover::before {
	background:
		radial-gradient(110% 90% at 88% 6%, rgba(255, 255, 255, 0.26), transparent 52%),
		radial-gradient(90% 80% at 6% 104%, rgba(8, 6, 18, 0.45), transparent 60%);
}

.aa-blog-cover::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
	-webkit-mask-image: radial-gradient(80% 70% at 75% 30%, #000, transparent 75%);
	mask-image: radial-gradient(80% 70% at 75% 30%, #000, transparent 75%);
}

.aa-blog-cover__word {
	position: relative;
	z-index: 1;
	max-width: 92%;
	color: rgba(255, 255, 255, 0.5);
	font-size: 2.5rem;
	font-size: clamp(0.8rem, 13cqi, 4.25rem);
	font-weight: 600;
	letter-spacing: -0.05em;
	line-height: 0.95;
	overflow-wrap: anywhere;
	text-align: right;
}

.aa-blog-cover--1 { --aa-blog-cover-bg: linear-gradient(135deg, #17123d 0%, #3b2aa6 50%, #7c55ff 100%); }
.aa-blog-cover--2 { --aa-blog-cover-bg: linear-gradient(135deg, #24104a 0%, #6a2bb8 52%, #c45ad8 100%); }
.aa-blog-cover--3 { --aa-blog-cover-bg: linear-gradient(135deg, #2a1032 0%, #8c3a5e 50%, #ffa15c 100%); }
.aa-blog-cover--4 { --aa-blog-cover-bg: linear-gradient(135deg, #0d173f 0%, #2453d6 55%, #654dff 100%); }
.aa-blog-cover--5 { --aa-blog-cover-bg: linear-gradient(135deg, #1c0e2c 0%, #5b1f66 50%, #d4587f 100%); }

/* =====================================================================
 * 5. Featured stories
 *
 * A dark card for the main story - image left, story right - with the
 * smaller stories stacked beside it. Stacks on narrow screens.
 * ================================================================== */

.aa-blog-featured {
	padding-top: clamp(4px, 1.5vw, 12px);
}

.aa-blog-featured__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 24px;
	margin-bottom: 16px;
}

.aa-blog-featured__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--aa-blog-brand-deep);
	font-size: 0.88rem;
	font-weight: 600;
	text-decoration: none;
}

.aa-blog-featured__all:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog-featured__layout {
	display: grid;
	gap: 18px;
}

/* The smaller stories */
.aa-blog-side {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-blog-side__item {
	position: relative;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--aa-blog-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--aa-blog-shadow);
	transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--aa-blog-ease);
}

.aa-blog-side__item:hover {
	border-color: rgba(101, 77, 255, 0.3);
	box-shadow: 0 2px 4px rgba(20, 18, 28, 0.04), 0 18px 36px -18px rgba(28, 21, 66, 0.3);
	transform: translateY(-2px);
}

.aa-blog-side__item:focus-within {
	border-color: rgba(101, 77, 255, 0.55);
}

.aa-blog-side__thumb {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

.aa-blog-side__item:hover .aa-blog-media__img,
.aa-blog-side__item:hover .aa-blog-cover {
	transform: scale(1.06);
}

.aa-blog-side__body {
	min-width: 0;
}

.aa-blog-side__kicker {
	margin-bottom: 5px;
}

.aa-blog .aa-blog-side__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: -0.008em;
	line-height: 1.38;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.aa-blog-feature {
	position: relative;
	display: grid;
	overflow: hidden;
	border-radius: 24px;
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(101, 77, 255, 0.34), transparent 58%),
		linear-gradient(150deg, #19133a 0%, var(--aa-blog-night) 100%);
	box-shadow: 0 30px 60px -32px rgba(18, 13, 38, 0.65);
	color: #fff;
}

.aa-blog-feature__media {
	aspect-ratio: 16 / 10;
	margin: 12px 12px 0;
	border-radius: 16px;
}

.aa-blog-feature:hover .aa-blog-media__img,
.aa-blog-feature:hover .aa-blog-cover {
	transform: scale(1.035);
}

.aa-blog-feature__flag {
	position: absolute;
	z-index: 2;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94);
	color: var(--aa-blog-ink);
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
}

.aa-blog-feature__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 22px 22px 26px;
}

.aa-blog-feature__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 0.8rem;
	line-height: 1.4;
}

.aa-blog-feature__cat {
	color: #7ee2b8;
	font-weight: 600;
	text-decoration: none;
}

.aa-blog-feature__cat:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog .aa-blog-feature__title {
	margin: 0 0 12px;
	color: #fff;
	font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.125rem);
	font-weight: 600;
	letter-spacing: -0.028em;
	line-height: 1.2;
	text-wrap: balance;
}

.aa-blog-feature__excerpt {
	max-width: 56ch;
	margin: 0 0 22px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.98rem;
	line-height: 1.65;
}

.aa-blog-feature__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
}

.aa-blog-feature .aa-blog-meta__text,
.aa-blog-feature .aa-blog-meta__author::after {
	color: rgba(255, 255, 255, 0.64);
}

.aa-blog-feature .aa-blog-meta__author {
	color: #fff;
}

.aa-blog-feature__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.aa-blog-feature__more .ai-ico {
	transition: transform 0.28s var(--aa-blog-ease);
}

.aa-blog-feature__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog-feature:hover .aa-blog-feature__more .ai-ico,
.aa-blog-feature__more:focus-visible .ai-ico {
	transform: translateX(3px);
}

.aa-blog-feature a:focus-visible {
	outline-color: rgba(255, 255, 255, 0.85);
}

/* Title links: an underline that draws in on hover and focus. */
.aa-blog-feature__title a,
.aa-blog-card__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0 1.5px;
	transition: background-size 0.35s var(--aa-blog-ease), color 0.2s ease;
}

.aa-blog-feature__title a:hover,
.aa-blog-feature__title a:focus-visible,
.aa-blog-card__title a:hover,
.aa-blog-card__title a:focus-visible {
	background-size: 100% 1.5px;
}

.aa-blog-card__title a:hover,
.aa-blog-card__title a:focus-visible {
	color: var(--aa-blog-brand-deep);
}

/* =====================================================================
 * 6. Toolbar: category filters and sort
 * ================================================================== */

.aa-blog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--aa-blog-line);
}

.aa-blog-cats {
	position: relative;
	flex: 1 1 320px;
	min-width: 0;
}

/* Scroll arrows over the faded ends of the row. */
.aa-blog-cats__arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	display: inline-grid;
	width: 36px;
	height: 36px;
	place-items: center;
	padding: 0;
	border: 1px solid var(--aa-blog-line-strong);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 16px -8px rgba(28, 21, 66, 0.4);
	color: var(--aa-blog-ink);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.aa-blog-cats__arrow--prev {
	left: 0;
}

.aa-blog-cats__arrow--next {
	right: 0;
}

.aa-blog-cats__arrow:hover,
.aa-blog-cats__arrow:focus-visible {
	border-color: var(--aa-blog-brand);
	background: var(--aa-blog-lavender);
	color: var(--aa-blog-brand-deep);
}

/* Nothing more that way: out of sight and out of reach. */
.aa-blog-cats__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.aa-blog-cats__arrow[hidden] {
	display: none;
}

.aa-blog-cats__scroller {
	/* The containing block for the chips' hidden count labels, so they
	   scroll with the row instead of stretching the page sideways. */
	position: relative;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.aa-blog-cats__scroller::-webkit-scrollbar {
	display: none;
}

/* Faded edges tell a swiping visitor there is more in that direction. */
.aa-blog-cats__scroller.has-more-right {
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

.aa-blog-cats__scroller.has-more-left {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 48px);
	mask-image: linear-gradient(90deg, transparent, #000 48px);
}

.aa-blog-cats__scroller.has-more-left.has-more-right {
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}

.aa-blog-cats__list {
	display: flex;
	gap: 8px;
	width: max-content;
	margin: 0;
	padding: 4px 2px;
	list-style: none;
}

.aa-blog-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 8px 7px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--aa-blog-soft);
	color: var(--aa-blog-ink-soft);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.aa-blog-chip:hover {
	border-color: rgba(101, 77, 255, 0.35);
	background: var(--aa-blog-lavender);
	color: var(--aa-blog-brand-deep);
}

.aa-blog-chip__count {
	min-width: 24px;
	padding: 2px 7px;
	border-radius: 999px;
	background: #fff;
	color: var(--aa-blog-muted);
	font-size: 0.72rem;
	font-weight: 600;
	text-align: center;
}

.aa-blog-chip.is-active {
	border-color: var(--aa-blog-brand);
	background: var(--aa-blog-brand);
	box-shadow: 0 8px 18px -10px rgba(101, 77, 255, 0.85);
	color: #fff;
}

.aa-blog-chip.is-active .aa-blog-chip__count {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.aa-blog-sort {
	display: flex;
	flex: none;
	align-items: center;
	gap: 10px;
	margin: 0;
}

.aa-blog-sort__label {
	color: var(--aa-blog-muted);
	font-size: 0.85rem;
	white-space: nowrap;
}

.aa-blog-sort__control {
	position: relative;
	display: inline-flex;
}

.aa-blog-sort__select {
	padding: 8px 36px 8px 14px;
	border: 1px solid var(--aa-blog-line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--aa-blog-ink);
	cursor: pointer;
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.3;
	appearance: none;
}

.aa-blog-sort__select:hover {
	border-color: rgba(101, 77, 255, 0.5);
}

.aa-blog-sort__chevron {
	position: absolute;
	top: 50%;
	right: 12px;
	display: inline-flex;
	color: var(--aa-blog-muted);
	pointer-events: none;
	transform: translateY(-50%);
}

.aa-blog-sort__apply {
	padding: 8px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--aa-blog-ink);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
}

/* =====================================================================
 * 7. Layout: article column and sidebar
 * ================================================================== */

.aa-blog-latest {
	padding-block: clamp(32px, 4.5vw, 56px) clamp(48px, 6vw, 80px);
	scroll-margin-top: 70px;
}

.aa-blog-layout {
	display: grid;
	gap: 48px;
}

.aa-blog-main {
	min-width: 0;
}

.aa-blog-latest__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 24px;
	margin-bottom: 22px;
}

.aa-blog-latest__count {
	margin: 0;
	color: var(--aa-blog-muted);
	font-size: 0.86rem;
}

/* =====================================================================
 * 8. Article grid and cards
 * ================================================================== */

.aa-blog-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 36px 24px;
}

/* Open cards: a rounded image with the text set directly beneath it. */
.aa-blog-card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.aa-blog-card__media {
	aspect-ratio: 3 / 2;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(20, 18, 28, 0.05), 0 8px 22px -12px rgba(28, 21, 66, 0.28);
	transition: box-shadow 0.35s ease, transform 0.35s var(--aa-blog-ease);
}

.aa-blog-card:hover .aa-blog-card__media {
	box-shadow: 0 2px 4px rgba(20, 18, 28, 0.05), 0 18px 36px -14px rgba(28, 21, 66, 0.4);
	transform: translateY(-3px);
}

/* The clamped title would clip a focus outline, so a keyboard user sees
   the ring on the image and the underline on the title instead. */
.aa-blog-card:focus-within .aa-blog-card__media {
	box-shadow: var(--aa-blog-ring), 0 18px 36px -14px rgba(28, 21, 66, 0.4);
}

.aa-blog-card:hover .aa-blog-media__img,
.aa-blog-card:hover .aa-blog-cover {
	transform: scale(1.05);
}

.aa-blog-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding-top: 16px;
}

.aa-blog-card__title {
	display: -webkit-box;
	margin: 0 0 8px;
	overflow: hidden;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.012em;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.aa-blog-card__title a:focus-visible {
	outline: none;
}

.aa-blog-card__excerpt {
	display: -webkit-box;
	margin: 0 0 10px;
	overflow: hidden;
	color: var(--aa-blog-muted);
	font-size: 0.9rem;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.aa-blog-card__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	color: var(--aa-blog-brand-deep);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.aa-blog-card__more .ai-ico {
	transition: transform 0.28s var(--aa-blog-ease);
}

.aa-blog-card__more:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.aa-blog-card:hover .aa-blog-card__more .ai-ico,
.aa-blog-card__more:focus-visible .ai-ico {
	transform: translateX(3px);
}

/* Pinned to the bottom so the meta rows of a grid row line up. */
.aa-blog-card__footer {
	margin-top: auto;
	padding-top: 14px;
}

/* Author, date and reading time, on one line: avatar · name · date · time */
.aa-blog-meta {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
}

.aa-blog-avatar {
	display: inline-grid;
	flex: none;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, #654dff 0%, #b05ad8 100%);
	color: #fff;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* One line, always: an unusually long name is shortened, never wrapped. */
.aa-blog-meta__text {
	display: flex;
	min-width: 0;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0 6px;
	color: var(--aa-blog-muted);
	font-size: 0.78rem;
	line-height: 1.5;
}

.aa-blog-meta__author {
	min-width: 0;
	overflow: hidden;
	color: var(--aa-blog-ink);
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aa-blog-meta__author::after {
	content: "\00B7";
	margin-left: 6px;
	color: var(--aa-blog-muted);
	font-weight: 400;
}

.aa-blog-meta__line {
	display: inline-flex;
	flex: none;
	gap: 0 6px;
	white-space: nowrap;
}

/* =====================================================================
 * 9. Sidebar: Quick enquiry and Follow AppAgentix
 * ================================================================== */

.aa-blog-sidebar {
	display: grid;
	align-content: start;
	gap: 16px;
	min-width: 0;
}

/* The card around the shared lead form. */
.aa-blog-enquiry {
	position: relative;
	isolation: isolate;
	overflow: visible;
	padding: 18px 18px 16px;
	border-radius: 20px;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(196, 90, 216, 0.35), transparent 60%),
		linear-gradient(160deg, #5b3df5 0%, #4a2fd4 100%);
	box-shadow: 0 24px 48px -28px rgba(74, 40, 180, 0.8);
	color: #fff;
	scroll-margin-top: 80px;
}

.aa-blog .aa-blog-enquiry__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.aa-blog-enquiry__text {
	margin: 0 0 12px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.84rem;
	line-height: 1.5;
}

/* The shared form, flattened into this card: no second card, glow or padding. */
.aa-blog-enquiry .lp-form-card {
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.aa-blog-enquiry .lp-form-glow {
	display: none;
}

.aa-blog-enquiry .lp-form-inner {
	padding: 0;
}

/* One field per row: the sidebar is too narrow for two. */
.aa-blog-enquiry .lp-form-row {
	grid-template-columns: minmax(0, 1fr);
}

.aa-blog-enquiry .lp-form-field {
	margin-bottom: 8px;
}

.aa-blog-enquiry .lp-form-field label {
	margin-bottom: 4px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 500;
}

.aa-blog-enquiry .lp-req {
	color: #fff;
	opacity: 0.75;
}

.aa-blog-enquiry .lp-form-field input,
.aa-blog-enquiry .lp-form-field select,
.aa-blog-enquiry .lp-form-field textarea,
.aa-blog-enquiry .lp-cc__toggle {
	border: 1px solid transparent;
	border-radius: 10px;
	background: #fff;
	color: var(--aa-blog-ink);
	font-size: 0.92rem;
}

.aa-blog-enquiry .lp-form-field input,
.aa-blog-enquiry .lp-form-field select,
.aa-blog-enquiry .lp-form-field textarea {
	padding: 9px 12px;
}

.aa-blog-enquiry .lp-cc__toggle {
	padding: 9px 10px;
}

/* Three lines rather than the form's usual four; it still grows if dragged. */
.aa-blog-enquiry .lp-form-field textarea {
	height: 76px;
	min-height: 60px;
}

.aa-blog-enquiry .lp-form-field input::placeholder,
.aa-blog-enquiry .lp-form-field textarea::placeholder {
	color: #8a8698;
}

.aa-blog-enquiry .lp-cc__caret {
	border-color: var(--aa-blog-muted);
}

.aa-blog-enquiry .lp-form-field input:focus,
.aa-blog-enquiry .lp-form-field select:focus,
.aa-blog-enquiry .lp-form-field textarea:focus,
.aa-blog-enquiry .lp-cc__toggle:focus-visible {
	border-color: #fff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.aa-blog-enquiry .lp-cc__toggle:hover {
	background: #f6f4fc;
}

.aa-blog-enquiry .lp-cc__panel {
	width: min(290px, calc(100vw - 56px));
}

.aa-blog-enquiry .lp-form-field.has-error input,
.aa-blog-enquiry .lp-form-field.has-error select,
.aa-blog-enquiry .lp-form-field.has-error textarea,
.aa-blog-enquiry .lp-form-field.has-error .lp-cc__toggle {
	border-color: #ffb4b4;
	background: #fff5f5;
	box-shadow: 0 0 0 2px rgba(255, 180, 180, 0.6);
}

.aa-blog-enquiry .lp-form-err {
	color: #ffe3e3;
	font-size: 0.78rem;
}

.aa-blog-enquiry .lp-form-alert {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 0.85rem;
}

/* The shared .lp-btn skin is not loaded on this page, so the button is
   drawn in full here. */
.aa-blog-enquiry .lp-form-submit {
	display: flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
	padding: 12px 18px;
	border-radius: 10px;
	background: var(--aa-blog-ink);
	box-shadow: 0 12px 24px -14px rgba(10, 6, 30, 0.9);
	color: #fff;
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	transition: background-color 0.2s ease, transform 0.28s var(--aa-blog-ease);
}

.aa-blog-enquiry .lp-form-submit:hover {
	background: #2a2445;
	transform: translateY(-1px);
}

.aa-blog-enquiry .lp-form-submit:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

.aa-blog-enquiry .lp-form-note {
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.74rem;
	line-height: 1.5;
}

.aa-blog-enquiry .lp-form-note a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Follow AppAgentix */
.aa-blog-widget {
	padding: 16px 18px 18px;
	border: 1px solid var(--aa-blog-line);
	border-radius: 20px;
	background: #fff;
}

.aa-blog .aa-blog-widget__title {
	margin: 0 0 12px;
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.4;
}

.aa-blog-follow {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-blog-follow__link {
	display: inline-grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 12px;
	background: var(--aa-blog-lavender);
	color: var(--aa-blog-brand-deep);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.28s var(--aa-blog-ease);
}

.aa-blog-follow__link svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.aa-blog-follow__link:hover,
.aa-blog-follow__link:focus-visible {
	background: var(--aa-blog-brand);
	color: #fff;
	transform: translateY(-2px);
}

/* =====================================================================
 * 10. Inline call to action (off by default)
 *
 * Only rendered when appagentix_blog_show_inline_cta() is true.
 * ================================================================== */

.aa-blog-cta-inline {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	overflow: hidden;
	padding: clamp(22px, 3vw, 32px) clamp(22px, 3.5vw, 40px);
	border: 1px solid #e6dbfc;
	border-radius: 20px;
	background: linear-gradient(100deg, #f3eeff 0%, #f6ecfb 55%, #fff1e6 100%);
}

.aa-blog-cta-inline__copy {
	flex: 1 1 320px;
}

.aa-blog-cta-inline__title {
	margin: 0 0 6px;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.3;
}

.aa-blog-cta-inline p {
	max-width: 62ch;
	margin: 0;
	color: var(--aa-blog-ink-soft);
	font-size: 0.95rem;
	line-height: 1.6;
}

.aa-blog-cta-inline__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* =====================================================================
 * 11. Load More and pagination
 *
 * One row under the grid: the page numbers, then Load More.
 * ================================================================== */

.aa-blog-pager {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 18px;
	margin-top: 40px;
}

.aa-blog-more__button {
	min-width: 200px;
}

.aa-blog-more__spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: aa-blog-spin 0.8s linear infinite;
}

.aa-blog-more__button.is-loading {
	cursor: progress;
}

.aa-blog-more__button.is-loading .aa-blog-more__spinner {
	display: inline-block;
}

.aa-blog-more__note {
	flex-basis: 100%;
	margin: 0;
	color: var(--aa-blog-muted);
	font-size: 0.9rem;
	text-align: center;
}

.aa-blog-more__note.is-error {
	color: #b4122b;
}

.aa-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aa-blog-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 12px;
	border: 1px solid var(--aa-blog-line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--aa-blog-ink-soft);
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.aa-blog-pagination a.page-numbers:hover {
	border-color: var(--aa-blog-brand);
	color: var(--aa-blog-brand-deep);
}

.aa-blog-pagination .page-numbers.current {
	border-color: var(--aa-blog-brand);
	background: var(--aa-blog-brand);
	color: #fff;
	font-weight: 600;
}

.aa-blog-pagination .page-numbers.dots {
	min-width: 24px;
	padding: 0;
	border-color: transparent;
	background: transparent;
}

.aa-blog-pagination .prev,
.aa-blog-pagination .next {
	padding: 0 14px;
}

/* =====================================================================
 * 12. Empty states
 * ================================================================== */

.aa-blog-empty {
	padding: clamp(32px, 6vw, 56px) 20px;
	border: 1px dashed #d6d0ea;
	border-radius: 20px;
	background: #fcfbff;
	text-align: center;
}

.aa-blog-empty__icon {
	display: inline-grid;
	width: 56px;
	height: 56px;
	place-items: center;
	margin-bottom: 14px;
	border-radius: 16px;
	background: #efeaff;
	color: var(--aa-blog-brand-deep);
}

.aa-blog-empty__title {
	margin: 0 0 8px;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.35;
}

.aa-blog-empty p {
	max-width: 48ch;
	margin: 0 auto 20px;
	color: var(--aa-blog-muted);
	line-height: 1.65;
}

.aa-blog-empty__topics {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}

.aa-blog-empty__topics .aa-blog-chip {
	padding-right: 15px;
}

/* =====================================================================
 * 13. Closing call to action
 * ================================================================== */

.aa-blog-closing {
	position: relative;
	padding-block: clamp(60px, 8vw, 104px);
	border-top: 1px solid #f0ecfa;
	background:
		radial-gradient(60% 90% at 50% 130%, rgba(217, 198, 245, 0.8), transparent 70%),
		radial-gradient(40% 70% at 88% 110%, rgba(253, 234, 205, 0.85), transparent 70%),
		radial-gradient(35% 60% at 10% 110%, rgba(220, 230, 255, 0.8), transparent 70%),
		linear-gradient(180deg, #fff 0%, #fbf9ff 100%);
}

.aa-blog-closing__inner {
	max-width: 780px;
	text-align: center;
}

.aa-blog-closing__title {
	margin: 0 0 14px;
	font-size: clamp(1.875rem, 1.35rem + 2vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.12;
	text-wrap: balance;
}

/* The second sentence takes its own line, as in the design. */
.aa-blog-closing__accent {
	display: inline-block;
}

.aa-blog-closing__text {
	max-width: 58ch;
	margin: 0 auto 28px;
	color: var(--aa-blog-ink-soft);
	font-size: 1.05rem;
	line-height: 1.7;
}

.aa-blog-closing__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* =====================================================================
 * 14. Motion
 * ================================================================== */

/*
 * Reveal on scroll. blog-listing.js adds .aa-blog--js, and marks anything
 * already on screen visible first, so nothing above the fold ever
 * flashes. Without the script nothing is hidden.
 *
 * An animation rather than a transition, with no fill after it ends,
 * so the card hover transform is never delayed or overridden.
 */
.aa-blog--js [data-aa-blog-reveal]:not(.is-visible) {
	opacity: 0;
}

.aa-blog--js [data-aa-blog-reveal].is-revealing,
.aa-blog-card--new {
	animation: aa-blog-rise 0.65s var(--aa-blog-ease) var(--aa-blog-delay, 0ms) backwards;
}

@keyframes aa-blog-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes aa-blog-spin {
	to {
		transform: rotate(360deg);
	}
}

/* =====================================================================
 * 15. Responsive
 *
 *   < 640    one column; the sidebar follows the articles
 *   640+     two-column grid; sidebar cards side by side under it
 *   768+     introduction copy beside the search
 *   900+     featured story: image beside text
 *   1024+    sidebar beside the grid (grid stays two columns)
 *   1600+    wide container: three-column grid
 * ================================================================== */

@media (min-width: 640px) {
	.aa-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.aa-blog-sidebar {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		align-items: start;
	}

	/* Below the main story, the smaller ones sit three across, image on top. */
	.aa-blog-side {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aa-blog-side__item {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.aa-blog-side__thumb {
		aspect-ratio: 16 / 10;
	}
}

@media (min-width: 768px) {
	.aa-blog-hero__row {
		grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
	}
}

@media (min-width: 900px) {
	.aa-blog-feature {
		grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
		align-items: stretch;
	}

	.aa-blog-feature__media {
		min-height: 340px;
		margin: 14px 0 14px 14px;
		aspect-ratio: auto;
	}

	.aa-blog-feature__flag {
		top: 14px;
		left: 14px;
	}

	.aa-blog-feature__body {
		padding: 36px 40px;
	}
}

@media (min-width: 1024px) {
	/* Introduction copy on the left, the most-read box on the right. */
	.aa-blog-hero__layout--split {
		grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
	}

	.aa-blog-hero__layout--split .aa-blog-hero__row {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-blog-hero__layout--split .aa-blog-hero__find {
		max-width: 540px;
	}

	/* The main story, with the smaller ones stacked beside it. */
	.aa-blog-featured__layout {
		grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
		gap: 22px;
		align-items: stretch;
	}

	.aa-blog-featured__layout--solo {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-blog-side {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-rows: 1fr;
	}

	/* One or two stories keep their own height rather than stretching to the main card's. */
	.aa-blog-side--few {
		grid-auto-rows: auto;
		align-content: start;
	}

	.aa-blog-side__item {
		grid-template-columns: 104px minmax(0, 1fr);
		align-items: center;
	}

	.aa-blog-side__thumb {
		aspect-ratio: 4 / 3;
	}

	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature__title {
		font-size: clamp(1.35rem, 0.95rem + 0.9vw, 1.75rem);
	}

	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature__excerpt {
		font-size: 0.94rem;
	}

	.aa-blog-layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 40px 48px;
		align-items: start;
	}

	/*
	 * The sidebar stays in view while the articles scroll, stopping at the
	 * end of the article area. blog-listing.js sets the offset: just under
	 * the sticky site header, so the whole form shows from its heading
	 * down; on a short window the Follow box below it is what runs off.
	 */
	.aa-blog-sidebar {
		position: sticky;
		top: var(--aa-blog-sticky-top, 84px);
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-blog-grid {
		gap: 40px 28px;
	}
}

/* Beside the smaller stories the main card is too narrow to split until
   1200px, so in between it keeps its image on top. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature__media {
		min-height: 0;
		margin: 12px 12px 0;
		aspect-ratio: 16 / 9;
	}

	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature__body {
		padding: 22px 24px 26px;
	}
}

@media (min-width: 1200px) {
	.aa-blog-featured__layout:not(.aa-blog-featured__layout--solo) .aa-blog-feature__body {
		padding: 30px 32px;
	}
}

/* Large screens: match the 90% container layout.css switches to. */
@media (min-width: 1600px) {
	/* Same ceiling as layout.css, so zooming out cannot stretch the page. */
	.aa-blog-container {
		width: min(90%, var(--container-wide, 1728px));
	}

	.aa-blog-closing__inner {
		width: min(90%, 780px);
	}

	.aa-blog-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.aa-blog-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
	}
}

/* Phones */
@media (max-width: 639px) {
	.aa-blog-hero__intro {
		font-size: 1rem;
	}

	.aa-blog-search__button {
		padding-inline: 14px;
	}

	.aa-blog-cta-inline__actions,
	.aa-blog-cta-inline__actions .aa-blog-btn,
	.aa-blog-closing__actions .aa-blog-btn,
	.aa-blog-more__button {
		width: 100%;
	}

	.aa-blog-sort {
		width: 100%;
		justify-content: flex-end;
	}

	/* 16px stops iOS zooming the page when a field gets focus. */
	.aa-blog-enquiry .lp-form-field input,
	.aa-blog-enquiry .lp-form-field textarea,
	.aa-blog-enquiry .lp-cc__toggle {
		font-size: 1rem;
	}
}

/* Small phones: the page arrows keep their words for screen readers only. */
@media (max-width: 479px) {
	.aa-blog-pagination .page-numbers {
		min-width: 38px;
		height: 38px;
		padding: 0 10px;
	}

	.aa-blog-pagination__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* =====================================================================
 * 16. Reduced motion
 * ================================================================== */

@media (prefers-reduced-motion: reduce) {
	.aa-blog--js [data-aa-blog-reveal]:not(.is-visible) {
		opacity: 1;
	}

	.aa-blog--js [data-aa-blog-reveal].is-revealing,
	.aa-blog-card--new {
		animation: none;
	}

	.aa-blog-card:hover .aa-blog-card__media,
	.aa-blog-side__item:hover,
	.aa-blog-btn:hover,
	.aa-blog-enquiry .lp-form-submit:hover {
		transform: none;
	}

	.aa-blog-side__item:hover .aa-blog-media__img,
	.aa-blog-side__item:hover .aa-blog-cover {
		transform: none;
	}

	.aa-blog-card:hover .aa-blog-media__img,
	.aa-blog-card:hover .aa-blog-cover,
	.aa-blog-feature:hover .aa-blog-media__img,
	.aa-blog-feature:hover .aa-blog-cover {
		transform: none;
	}

	.aa-blog-cats__scroller {
		scroll-behavior: auto;
	}

	.aa-blog-more__spinner {
		animation-duration: 1.6s;
	}
}
