/* AG Pay Links marketing theme */

:root {
	--ag-purple: #6e00a8;
	--ag-ink: #2a0055;
	--ag-purple-light: #f3e8fa;
	--ag-muted: #5c5470;
	--ag-border: #e8e2ef;
	--ag-radius: 14px;
	--ag-shadow: 0 12px 40px rgba(42, 0, 85, 0.08);
}

/* Remove default theme/block spacing that creates top and section gaps */
html,
body {
	margin: 0;
	padding: 0;
}

.wp-site-blocks,
.wp-block-post-content,
main.wp-block-group {
	margin: 0;
	padding: 0;
}

.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Header */
.ag-site-header {
	border-bottom: 1px solid var(--ag-border);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	margin: 0;
}

.ag-site-header__logo img {
	height: 40px;
	width: auto;
	display: block;
}

.ag-site-header__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.ag-site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--ag-border);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	flex-shrink: 0;
}

.ag-site-header__toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	margin: 0 auto;
	background: var(--ag-ink);
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ag-site-header--open .ag-site-header__toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.ag-site-header--open .ag-site-header__toggle-bar:nth-child(2) {
	opacity: 0;
}

.ag-site-header--open .ag-site-header__toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.ag-site-header__nav-panel {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.ag-site-header__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 899px) {
	.ag-site-header {
		position: sticky;
	}

	.ag-site-header__inner {
		position: relative;
	}

	.ag-site-header__toggle {
		display: flex;
	}

	.ag-site-header__nav-panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		padding: 0 1.5rem 1.25rem;
		background: #fff;
		border-bottom: 1px solid var(--ag-border);
		box-shadow: 0 12px 24px rgba(42, 0, 85, 0.08);
	}

	.ag-site-header--open .ag-site-header__nav-panel {
		display: block;
	}

	.ag-site-header__nav {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding-top: 0.5rem;
	}

	.ag-site-header__nav li {
		border-top: 1px solid var(--ag-border);
	}

	.ag-site-header__nav a {
		display: block;
		padding: 0.875rem 0;
		font-size: 1rem;
	}

	.ag-site-header__nav .ag-btn {
		width: auto;
		align-self: flex-start;
		margin-top: 0.75rem;
		padding: 0.75rem 1.25rem;
		font-size: 0.9375rem;
	}

	body.ag-nav-open {
		overflow: hidden;
	}
}

@media (min-width: 900px) {
	.ag-site-header__inner {
		position: relative;
		flex-wrap: nowrap;
	}
}

.ag-site-header__nav a {
	text-decoration: none;
	color: var(--ag-ink);
	font-weight: 500;
	font-size: 0.9375rem;
}

.ag-site-header__nav a:hover {
	color: var(--ag-purple);
}

.ag-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.75rem 1.4rem;
	border-radius: var(--ag-radius);
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.ag-btn--primary {
	background: #000;
	color: #fff !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	font-size: 0.9rem;
}

.ag-btn--primary:hover {
	background: #111;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.ag-btn__apple-icon {
	font-size: 1.2rem;
	line-height: 1;
}

.ag-btn__apple-text-main {
	display: block;
	font-size: 0.7rem;
	font-weight: 500;
	line-height: 1.1;
}

.ag-btn__apple-text-sub {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
}

.ag-btn--secondary {
	background: rgba(255, 255, 255, 0.15);
	color: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.55);
}

.ag-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* Hero */
.ag-hero {
	background: radial-gradient(1000px 600px at 25% 15%, rgba(255, 0, 150, 0.5), transparent 60%),
		radial-gradient(1200px 800px at 85% 85%, rgba(30, 0, 80, 0.8), transparent 70%),
		linear-gradient(135deg, #ff0099 0%, #b000c4 35%, #6e00a8 65%, #2a0055 100%);
	background-size: 120% 120%;
	animation: agGradientPan 18s ease-in-out infinite;
	padding: clamp(3rem, 7vw, 5rem) 1.25rem clamp(3.75rem, 9vw, 6rem);
	margin: 0;
}

.ag-hero__inner {
	max-width: 1160px;
	margin: 0 auto;
	text-align: center;
}

.ag-hero__eyebrow {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.82);
	margin: 0 0 0.75rem;
}

.ag-hero h1 {
	font-size: clamp(2rem, 5vw, 3.25rem);
	line-height: 1.15;
	margin: 0 0 1.25rem;
	color: #fff;
	max-width: 22ch;
	margin-left: auto;
	margin-right: auto;
}

.ag-hero__lead {
	font-size: clamp(1.0625rem, 2vw, 1.25rem);
	color: rgba(255, 255, 255, 0.88);
	max-width: 42rem;
	margin: 0 auto 2.25rem;
	line-height: 1.55;
}

.ag-hero__lead a {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.85);
	text-underline-offset: 2px;
}

.ag-hero__lead a:hover {
	color: #ffd7ff;
	text-decoration-color: #ffd7ff;
}

.ag-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 3rem;
}

/* Providers — hero emphasis */
.ag-providers {
	margin: 0 auto;
	max-width: 960px;
	padding-top: 0.5rem;
}

.ag-providers__label {
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #c99cff;
	margin: 0 0 0.5rem;
}

.ag-providers__title {
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.35rem;
}

.ag-providers__subtitle {
	color: rgba(255, 255, 255, 0.84);
	margin: 0 0 1.5rem;
	font-size: 1rem;
}

.ag-providers__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	text-align: left;
}

.ag-providers__grid .ag-provider-card {
	flex: 1 1 calc((100% - 2rem) / 3);
	max-width: calc((100% - 2rem) / 3);
	box-sizing: border-box;
}

@media (max-width: 720px) {
	.ag-providers__grid .ag-provider-card {
		flex: 1 1 calc((100% - 1rem) / 2);
		max-width: calc((100% - 1rem) / 2);
	}
}

@media (max-width: 480px) {
	.ag-providers__grid .ag-provider-card {
		flex: 1 1 100%;
		max-width: 100%;
	}
}

.ag-provider-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem 1.35rem;
	background: #fff;
	border: 2px solid var(--ag-border);
	border-radius: var(--ag-radius);
	text-decoration: none;
	color: inherit;
	box-shadow: var(--ag-shadow);
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ag-provider-card:hover {
	border-color: var(--ag-purple);
	transform: translateY(-2px);
	box-shadow: 0 16px 48px rgba(110, 0, 168, 0.12);
	color: inherit;
}

.ag-provider-card__name {
	font-size: 1.0625rem;
	font-weight: 700;
	color: var(--ag-ink);
	margin: 0;
}

.ag-provider-card__meta {
	font-size: 0.875rem;
	color: var(--ag-muted);
	margin: 0;
	line-height: 1.45;
}

.ag-provider-card__link {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ag-purple);
	margin-top: auto;
}

.ag-providers__note {
	margin-top: 1.25rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.82);
}

.ag-providers__note a {
	font-weight: 600;
	color: #fff;
	text-decoration: underline;
}

/* Feature sections */
.ag-section {
	padding: clamp(3.5rem, 8vw, 6rem) 1.5rem;
}

.ag-section--alt {
	background: var(--ag-purple-light);
}

.ag-section__inner {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 900px) {
	.ag-section__inner {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}

	.ag-section--reverse .ag-section__inner {
		direction: rtl;
	}

	.ag-section--reverse .ag-section__inner > * {
		direction: ltr;
	}
}

.ag-section__content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 1.25rem;
	color: var(--ag-ink);
}

.ag-section__content p {
	color: var(--ag-muted);
	margin: 0 0 1.25rem;
	line-height: 1.65;
}

.ag-section__content ul {
	margin: 0;
	padding-left: 1.25rem;
	color: var(--ag-muted);
	line-height: 1.75;
}

.ag-section__content li + li {
	margin-top: 0.35rem;
}

.ag-section__visual {
	display: flex;
	justify-content: center;
}

/* iPhone mockup */
.ag-iphone {
	width: min(280px, 85vw);
}

.ag-iphone__frame {
	position: relative;
	background: #1a1a1a;
	border-radius: 44px;
	padding: 12px;
	box-shadow: 0 24px 64px rgba(42, 0, 85, 0.2);
}

.ag-iphone__screen {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 32px;
	background: var(--ag-purple-light);
}

/* Two-phone feature mockup (App Store style) */
.ag-iphone-pair {
	position: relative;
	width: min(420px, 92vw);
	height: min(380px, 72vw);
	margin: 0 auto;
}

.ag-iphone-pair__back,
.ag-iphone-pair__front {
	position: absolute;
	top: 50%;
	width: min(240px, 58vw);
}

.ag-iphone-pair__back {
	left: 0;
	transform: translateY(-50%) rotate(-4deg);
	z-index: 1;
}

.ag-iphone-pair__front {
	right: 0;
	transform: translateY(-50%) rotate(3deg);
	z-index: 2;
}

.ag-iphone-pair .ag-iphone {
	width: 100%;
}

@media (max-width: 899px) {
	.ag-section:has(.ag-iphone-pair) {
		overflow-x: clip;
	}

	.ag-section__visual:has(.ag-iphone-pair) {
		padding-top: 2.5rem;
		padding-bottom: 2.5rem;
		overflow-x: clip;
		max-width: 100%;
	}

	.ag-iphone-pair {
		width: min(300px, 86vw);
		height: min(360px, 72vw);
		margin-top: 0.5rem;
		margin-bottom: 0.5rem;
	}

	.ag-iphone-pair__back,
	.ag-iphone-pair__front {
		width: min(150px, 38vw);
	}

	.ag-iphone-pair__back {
		transform: translateY(-50%) rotate(-3deg);
	}

	.ag-iphone-pair__front {
		transform: translateY(-50%) rotate(2deg);
	}

	.ag-iphone-pair .ag-iphone__frame {
		padding: 8px;
		border-radius: 32px;
		box-shadow: 0 16px 40px rgba(42, 0, 85, 0.18);
	}

	.ag-iphone-pair .ag-iphone__screen {
		border-radius: 24px;
	}
}

@media (min-width: 900px) {
	.ag-iphone-pair {
		width: min(480px, 100%);
		height: min(420px, 38vw);
	}

	.ag-iphone-pair__back,
	.ag-iphone-pair__front {
		width: min(260px, 54%);
	}
}

/* Security band */
.ag-security {
	background: var(--ag-ink);
	color: #fff;
	padding: clamp(3.5rem, 8vw, 5.5rem) 1.5rem;
	margin-top: 0;
}

.ag-security__inner {
	max-width: 1160px;
	margin: 0 auto;
	text-align: center;
}

.ag-security h2 {
	color: #fff;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	margin: 0 0 0.75rem;
}

.ag-security__subtitle {
	color: rgba(255, 255, 255, 0.9);
	max-width: 36rem;
	margin: 0 auto 1.25rem;
	font-size: 1.125rem;
	line-height: 1.5;
}

.ag-security__lead {
	color: rgba(255, 255, 255, 0.85);
	max-width: 40rem;
	margin: 0 auto 3rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.ag-security__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.75rem;
	text-align: left;
}

.ag-security__card {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: var(--ag-radius);
	padding: 1.5rem;
}

.ag-security__card h3 {
	color: #fff;
	font-size: 1.125rem;
	margin: 0 0 0.5rem;
}

.ag-security__card p {
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ag-security__footer {
	margin-top: 2rem;
}

.ag-security__footer a {
	color: #fff;
	font-weight: 600;
}

/* Pricing */
.ag-pricing__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
	max-width: 800px;
	margin: 0 auto;
}

.ag-pricing-card {
	background: #fff;
	border: 2px solid var(--ag-border);
	border-radius: var(--ag-radius);
	padding: 2rem;
	text-align: center;
	box-shadow: var(--ag-shadow);
}

.ag-pricing-card--pro {
	border-color: var(--ag-purple);
	background: linear-gradient(180deg, var(--ag-purple-light) 0%, #fff 40%);
}

.ag-pricing-card h3 {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	color: var(--ag-ink);
}

.ag-pricing-card .ag-price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--ag-purple);
	margin: 0.5rem 0;
}

.ag-pricing-card ul {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	text-align: left;
	color: var(--ag-muted);
}

.ag-pricing-card li {
	padding: 0.35rem 0;
	padding-left: 1.5rem;
	position: relative;
}

.ag-pricing-card li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--ag-success);
	font-weight: 700;
}

/* Pricing section wrapper spacing */
.ag-section:has(.ag-pricing__grid) {
	padding-bottom: clamp(4rem, 9vw, 6.5rem);
}

.ag-section:has(.ag-pricing__grid) h2 {
	margin-bottom: 0.75rem;
}

.ag-section:has(.ag-pricing__grid) > .ag-section__inner > p {
	margin-bottom: 2.5rem;
}

/* CTA */
.ag-cta {
	text-align: center;
	padding: clamp(3rem, 7vw, 5rem) 1.5rem;
	background: var(--ag-purple-light);
	margin: 0;
}

.ag-cta h2 {
	margin: 0 0 1rem;
	color: var(--ag-ink);
}

.ag-cta__lead {
	color: var(--ag-muted);
	max-width: 36rem;
	margin: 0 auto 2rem;
	line-height: 1.6;
	text-align: center;
}

.ag-cta p:not(.ag-cta__lead):not(.ag-cta__note) {
	color: var(--ag-muted);
	margin: 0 0 2rem;
	line-height: 1.6;
}

.ag-cta .ag-btn--primary {
	margin: 0 auto;
}

.ag-cta__note {
	margin: 1.25rem 0 0;
	font-size: 0.875rem;
	color: var(--ag-muted);
}

.ag-cta__note--providers {
	margin-top: 2rem !important;
	padding-top: 0.25rem;
}

.ag-cta__note a {
	color: var(--ag-muted);
	font-weight: 600;
}

/* Footer */
.ag-site-footer {
	background: #262335;
	color: rgba(255, 255, 255, 0.85);
	padding: 2.75rem 1.5rem 2rem;
	font-size: 0.9375rem;
	margin: 0;
}

.ag-site-footer__inner {
	max-width: 1160px;
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
}

@media (min-width: 768px) {
	.ag-site-footer__inner {
		grid-template-columns: 1.4fr 0.9fr 1.4fr;
		align-items: start;
	}
}

.ag-site-footer__meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.ag-site-footer__col p {
	margin: 0 0 0.75rem;
}

.ag-site-footer__subhead {
	margin-top: 1.75rem !important;
}

.ag-site-footer a {
	color: #fff;
	text-decoration: none;
}

.ag-site-footer a:hover {
	text-decoration: underline;
}

.ag-site-footer__brand img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 64px;
	object-fit: contain;
	margin-bottom: 0.75rem;
	filter: brightness(0) invert(1);
}

.ag-site-footer__nav {
	list-style: none;
	padding: 0;
	margin: 0;
}

.ag-site-footer__nav li {
	margin-bottom: 0.5rem;
}

.ag-site-footer__bottom {
	max-width: 1160px;
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	text-align: center;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.6);
}

.ag-site-footer__bottom p {
	margin: 0;
}

.ag-site-footer__trademark {
	margin-top: 0.5rem !important;
}

/* Legal / About prose */
.ag-prose {
	max-width: 720px;
	margin: 0 auto;
	padding: 2rem 1.25rem 4rem;
}

.ag-prose h1 {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.ag-prose h2 {
	font-size: 1.25rem;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.ag-prose p,
.ag-prose li {
	color: var(--ag-muted);
	line-height: 1.65;
}

.ag-prose .ag-updated {
	font-size: 0.875rem;
	color: var(--ag-muted);
	margin-bottom: 2rem;
}

.ag-changelog__release {
	margin: 2rem 0 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--ag-border);
}

.ag-changelog__release:last-of-type {
	border-bottom: 0;
}

.ag-changelog__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
	margin-bottom: 0.75rem;
}

.ag-changelog__header h2 {
	margin: 0;
}

.ag-changelog__meta {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ag-purple);
}

.ag-changelog__cta {
	margin-top: 2.5rem;
}

/* Blog */
.ag-blog-header {
	text-align: center;
	padding: clamp(2.5rem, 6vw, 4rem) 1.5rem clamp(2rem, 4vw, 2.75rem);
	background: var(--ag-purple-light);
	border-bottom: 1px solid var(--ag-border);
}

.ag-blog-header__eyebrow {
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ag-purple) !important;
	margin: 0 0 0.5rem !important;
}

.ag-blog-header h1,
.ag-blog-header .wp-block-query-title {
	margin: 0;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	color: var(--ag-ink);
	line-height: 1.15;
}

.ag-blog-header__lead {
	margin: 0.75rem auto 0 !important;
	max-width: 32rem;
	color: var(--ag-muted) !important;
	font-size: 1.0625rem !important;
	line-height: 1.5;
}

.ag-blog__content {
	max-width: 960px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(3rem, 7vw, 5rem);
}

.ag-blog__list,
.ag-blog__list.wp-block-post-template,
.wp-block-post-template.ag-blog__list {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ag-blog__list > li {
	margin: 0;
	min-width: 0;
	height: 100%;
}

.ag-blog-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--ag-border);
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow);
	transition: border-color 0.15s ease-out, transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.ag-blog-card:hover {
	border-color: rgba(110, 0, 168, 0.35);
	transform: translateY(-2px);
	box-shadow: 0 16px 48px rgba(42, 0, 85, 0.12);
}

.ag-blog-card .wp-block-post-featured-image,
.ag-blog-card__media {
	display: none;
}

.ag-blog-card__body {
	padding: 1.75rem 1.85rem 1.9rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.ag-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.75rem;
	margin: 0 0 0.65rem;
}

.ag-blog-card__date,
.ag-blog-card__body .wp-block-post-date,
.ag-blog-card__cats,
.ag-blog-card__body .wp-block-post-terms {
	font-size: 0.875rem;
	color: var(--ag-muted);
	margin: 0;
	line-height: 1.3;
}

.ag-blog-card__cats a,
.ag-blog-card__body .wp-block-post-terms a {
	color: var(--ag-purple);
	font-weight: 600;
	text-decoration: none;
}

.ag-blog-card__cats a:hover,
.ag-blog-card__body .wp-block-post-terms a:hover {
	color: var(--ag-ink);
	text-decoration: underline;
}

.ag-blog-card__body .wp-block-post-title {
	font-size: 1.4rem;
	margin: 0 0 0.75rem;
	line-height: 1.3;
}

.ag-blog-card__body .wp-block-post-title a {
	color: var(--ag-ink);
	text-decoration: none;
}

.ag-blog-card__body .wp-block-post-title a:hover {
	color: var(--ag-purple);
}

.ag-blog-card__body .wp-block-post-excerpt {
	margin: 0;
	color: var(--ag-muted);
	font-size: 1rem;
	line-height: 1.6;
	flex: 1;
}

.ag-blog-card__body .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.ag-blog-card__body .wp-block-post-excerpt__more-link {
	display: inline-block;
	margin-top: 1rem;
	color: var(--ag-purple);
	font-weight: 600;
	text-decoration: none;
}

.ag-blog-card__body .wp-block-post-excerpt__more-link:hover {
	color: var(--ag-ink);
}

@media (max-width: 700px) {
	.ag-blog__list,
	.ag-blog__list.wp-block-post-template,
	.wp-block-post-template.ag-blog__list {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.ag-blog-card__body {
		padding: 1.5rem 1.4rem 1.6rem;
	}

	.ag-blog-card__body .wp-block-post-title {
		font-size: 1.25rem;
	}
}

.ag-blog-empty {
	text-align: center;
	padding: 2.5rem 1.5rem;
	color: var(--ag-muted);
	background: var(--ag-purple-light);
	border-radius: var(--ag-radius);
	border: 1px solid var(--ag-border);
}

.ag-blog-empty p {
	margin: 0;
}

.ag-blog-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 2rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ag-border);
}

.ag-blog-pagination .wp-block-query-pagination-previous,
.ag-blog-pagination .wp-block-query-pagination-next,
.ag-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--ag-ink);
	background: #fff;
	border: 1px solid var(--ag-border);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.ag-blog-pagination a.page-numbers:hover,
.ag-blog-pagination .wp-block-query-pagination-previous a:hover,
.ag-blog-pagination .wp-block-query-pagination-next a:hover {
	border-color: var(--ag-purple);
	color: var(--ag-purple);
}

.ag-blog-pagination .page-numbers.current {
	background: var(--ag-purple);
	border-color: var(--ag-purple);
	color: #fff;
}

/* Single post */
.ag-blog-single-header {
	text-align: center;
	padding: clamp(2rem, 5vw, 3rem) 1.5rem clamp(1.5rem, 3vw, 2rem);
	background: var(--ag-purple-light);
	border-bottom: 1px solid var(--ag-border);
}

.ag-blog-back {
	margin: 0 0 1rem !important;
	font-size: 0.875rem;
}

.ag-blog-back a {
	color: var(--ag-purple);
	font-weight: 600;
	text-decoration: none;
}

.ag-blog-back a:hover {
	color: var(--ag-ink);
}

.ag-blog-single-header .wp-block-post-title {
	max-width: 40rem;
	margin: 0 auto 0.75rem;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	line-height: 1.15;
	color: var(--ag-ink);
}

.ag-blog-single-header__date,
.ag-blog-single-header .wp-block-post-date {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ag-muted);
}

.ag-blog-single-content {
	padding-top: 2rem;
}

.ag-blog-single-featured {
	margin: 0 0 2rem;
	border-radius: var(--ag-radius);
	overflow: hidden;
	box-shadow: var(--ag-shadow);
}

.ag-blog-single-featured img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* WordPress block editor alignment */
.wp-block-group.ag-section {
	margin: 0;
}

@keyframes agGradientPan {
	0% {
		background-position: 0% 0%, 100% 100%, 0% 50%;
	}
	50% {
		background-position: 20% 10%, 80% 90%, 100% 50%;
	}
	100% {
		background-position: 0% 0%, 100% 100%, 0% 50%;
	}
}
