/* =========================================================
 * PsalMix Blog — Components
 * Buttons, badges, cards, glass surfaces, forms, header, footer.
 * ========================================================= */

/* ─────────────────────────────────────────────────────
 * Buttons
 * ───────────────────────────────────────────────────── */
.psx-btn,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--psx-space-sm);
	min-height: var(--psx-touch-min);
	padding: 12px var(--psx-space-lg);
	border-radius: var(--psx-radius-full);
	font-family: var(--psx-font-sans);
	font-weight: 600;
	font-size: var(--psx-text-sm);
	letter-spacing: -0.005em;
	line-height: 1;
	cursor: pointer;
	border: 1px solid transparent;
	background: var(--psx-text);
	color: var(--psx-bg) !important;
	text-decoration: none !important;
	box-shadow: var(--psx-shadow-sm);
	transition: transform var(--psx-duration-fast) var(--psx-ease),
	            box-shadow var(--psx-duration-base) var(--psx-ease),
	            background var(--psx-duration-base) var(--psx-ease),
	            color var(--psx-duration-base) var(--psx-ease);
}
.psx-btn:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: var(--psx-shadow-md);
	background: #000;
}
[data-theme="dark"] .psx-btn:hover {
	background: #fff;
	color: var(--psx-text) !important;
}
.psx-btn:active { transform: scale(0.97); }

/* Primary purple button — solid color, no gradient */
.psx-btn--primary {
	background: var(--psx-accent) !important;
	color: #fff !important;
	box-shadow: 0 2px 6px rgba(123, 59, 191, 0.20);
}
.psx-btn--primary:hover {
	background: var(--psx-accent-hover) !important;
	color: #fff !important;
	box-shadow: 0 6px 14px rgba(123, 59, 191, 0.28);
	transform: translateY(-1px);
}

/* Ghost button */
.psx-btn--ghost,
.is-style-outline .wp-block-button__link {
	background: var(--psx-surface) !important;
	border: 1px solid var(--psx-border-secondary);
	color: var(--psx-text) !important;
	box-shadow: var(--psx-shadow-xs);
}
.psx-btn--ghost:hover {
	border-color: var(--psx-accent);
	background: var(--psx-surface) !important;
	color: var(--psx-text) !important;
	box-shadow: var(--psx-shadow-sm);
}

.psx-btn--small {
	min-height: 38px;
	padding: 10px var(--psx-space-md);
	font-size: var(--psx-text-xs);
	letter-spacing: 0.01em;
}

/* ─────────────────────────────────────────────────────
 * Badge / category pill
 * ───────────────────────────────────────────────────── */
.psx-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 11px;
	background: var(--psx-accent-soft);
	color: var(--psx-accent);
	border-radius: var(--psx-radius-full);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--psx-tracking-widest);
	text-transform: uppercase;
	text-decoration: none !important;
	border: 1px solid transparent;
	transition: background var(--psx-duration-base) var(--psx-ease),
	            color var(--psx-duration-base) var(--psx-ease);
}
.psx-badge:hover {
	background: var(--psx-accent);
	color: #fff !important;
	text-decoration: none !important;
}

/* ─────────────────────────────────────────────────────
 * Glass surface
 * ───────────────────────────────────────────────────── */
.psx-glass {
	background: var(--psx-glass);
	border: 1px solid var(--psx-glass-border);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-radius: var(--psx-radius-lg);
}

/* ─────────────────────────────────────────────────────
 * Post card
 * ───────────────────────────────────────────────────── */
.psx-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--psx-surface);
	border: 1px solid var(--psx-border);
	border-radius: var(--psx-radius-lg);
	box-shadow: var(--psx-shadow-xs);
	transition: transform var(--psx-duration-slow) var(--psx-ease-out),
	            box-shadow var(--psx-duration-slow) var(--psx-ease-out),
	            border-color var(--psx-duration-base) var(--psx-ease);
}
.psx-card:hover {
	transform: translateY(-4px);
	border-color: transparent;
	box-shadow: var(--psx-shadow-card-hover);
}

.psx-card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--psx-surface-alt);
	display: block;
}
.psx-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 700ms var(--psx-ease-out);
}
.psx-card:hover .psx-card__media img { transform: scale(1.05); }

/* Generated cover for posts without a featured image */
.psx-card__media--placeholder {
	background: var(--psx-cat-default);
	position: relative;
	overflow: hidden;
}
.psx-card__media--placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 40% at 30% 30%, rgba(255, 255, 255, 0.25), transparent 70%),
		radial-gradient(ellipse 40% 50% at 70% 70%, rgba(0, 0, 0, 0.15), transparent 70%);
}
.psx-card__media--placeholder::after {
	content: '';
	position: absolute;
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 80px; height: 80px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.55'><path d='M3 12h2l2-7 4 14 3-7h7'/></svg>");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 700ms var(--psx-ease-out);
}
.psx-card:hover .psx-card__media--placeholder::after { transform: translate(-50%, -50%) scale(1.1); }

/* Per-category placeholder colors */
.psx-card[data-cat="songs"]          .psx-card__media--placeholder { background: var(--psx-cat-songs); }
.psx-card[data-cat="stories"]        .psx-card__media--placeholder { background: var(--psx-cat-stories); }
.psx-card[data-cat="faith"]          .psx-card__media--placeholder { background: var(--psx-cat-faith); }
.psx-card[data-cat="behind-the-app"] .psx-card__media--placeholder { background: var(--psx-cat-behind); }
.psx-card[data-cat="worship"]        .psx-card__media--placeholder { background: var(--psx-cat-worship); }
.psx-card[data-cat="acoustic"]       .psx-card__media--placeholder { background: var(--psx-cat-acoustic); }

.psx-card__body {
	padding: var(--psx-space-lg) var(--psx-space-lg) calc(var(--psx-space-lg) + 4px);
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}
.psx-card__category { margin-bottom: 0; }
.psx-card__title {
	font-size: var(--psx-text-xl);
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	color: var(--psx-text);
	letter-spacing: var(--psx-tracking-tight);
}
.psx-card__title a {
	color: inherit;
	text-decoration: none;
}
.psx-card__title a:hover { color: var(--psx-accent); }
.psx-card__excerpt {
	color: var(--psx-text-muted);
	font-size: var(--psx-text-sm);
	line-height: var(--psx-leading-snug);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.psx-card__meta {
	margin-top: auto;
	padding-top: var(--psx-space-md);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--psx-text-xs);
	color: var(--psx-text-muted);
	border-top: 1px solid var(--psx-border);
}
.psx-card__meta-dot {
	width: 3px; height: 3px;
	background: var(--psx-text-disabled);
	border-radius: 50%;
}

/* Featured (oversized first card) */
.psx-card--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
	.psx-card--featured {
		flex-direction: row;
		align-items: stretch;
		min-height: 400px;
	}
	.psx-card--featured .psx-card__media {
		flex: 1 1 58%;
		aspect-ratio: auto;
	}
	.psx-card--featured .psx-card__body {
		flex: 1 1 42%;
		padding: var(--psx-space-2xl);
		justify-content: center;
		gap: var(--psx-space-md);
	}
	.psx-card--featured .psx-card__title {
		font-size: clamp(1.75rem, 2.6vw, 2.25rem);
		line-height: 1.15;
	}
	.psx-card--featured .psx-card__excerpt {
		font-size: var(--psx-text-md);
		-webkit-line-clamp: 4;
	}
}

/* ─────────────────────────────────────────────────────
 * Forms / inputs
 * ───────────────────────────────────────────────────── */
input[type='text'],
input[type='email'],
input[type='url'],
input[type='search'],
input[type='password'],
textarea,
select {
	width: 100%;
	padding: 12px var(--psx-space-md);
	min-height: var(--psx-touch-min);
	background: var(--psx-surface);
	color: var(--psx-text);
	border: 1px solid var(--psx-border-secondary);
	border-radius: var(--psx-radius-md);
	font-family: var(--psx-font-sans);
	font-size: var(--psx-text-base);
	transition: border-color var(--psx-duration-base) var(--psx-ease),
	            box-shadow var(--psx-duration-base) var(--psx-ease);
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--psx-accent);
	box-shadow: var(--psx-focus-ring);
}
::placeholder { color: var(--psx-text-disabled); }
label {
	display: block;
	margin-bottom: var(--psx-space-xs);
	font-size: var(--psx-text-sm);
	font-weight: 600;
	color: var(--psx-text-secondary);
}

.search-form,
.wp-block-search__inside-wrapper {
	display: flex;
	gap: var(--psx-space-sm);
	background: var(--psx-surface);
	border: 1px solid var(--psx-border-secondary);
	border-radius: var(--psx-radius-full);
	padding: 4px;
	box-shadow: var(--psx-shadow-xs);
}
.search-form .search-field,
.wp-block-search__input {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding-inline: var(--psx-space-md);
	min-height: 36px;
}
.search-form .search-submit,
.wp-block-search__button { border-radius: var(--psx-radius-full) !important; }

/* ─────────────────────────────────────────────────────
 * HEADER
 * ───────────────────────────────────────────────────── */
.psx-header {
	position: sticky;
	top: 0;
	z-index: var(--psx-z-header);
	width: 100%;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background var(--psx-duration-base) var(--psx-ease),
	            border-color var(--psx-duration-base) var(--psx-ease),
	            backdrop-filter var(--psx-duration-base) var(--psx-ease);
}
.psx-header.is-scrolled {
	background: var(--psx-overlay);
	border-bottom-color: var(--psx-border);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
}

.psx-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--psx-space-lg);
	min-height: var(--psx-header-height);
	padding-block: var(--psx-space-sm);
}

.psx-header__brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--psx-text);
	font-weight: 800;
	font-size: var(--psx-text-lg);
	letter-spacing: var(--psx-tracking-tight);
	text-decoration: none;
}
.psx-header__brand:hover { text-decoration: none; }
.psx-header__brand-logo {
	height: 42px;
	width: auto;
	display: block;
	/* Logo PNG is white-on-transparent. Invert in light mode so it reads black. */
	filter: invert(1);
	transition: filter var(--psx-duration-base) var(--psx-ease);
}
[data-theme="dark"] .psx-header__brand-logo { filter: none; }

.psx-nav { display: none; }
@media (min-width: 940px) {
	.psx-nav {
		display: flex;
		align-items: center;
		gap: var(--psx-space-sm);
	}
}
.psx-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.psx-nav a {
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--psx-radius-full);
	color: var(--psx-text-tertiary);
	font-size: var(--psx-text-sm);
	font-weight: 500;
	text-decoration: none;
	transition: color var(--psx-duration-base) var(--psx-ease),
	            background var(--psx-duration-base) var(--psx-ease);
}
.psx-nav a:hover,
.psx-nav .current-menu-item > a,
.psx-nav .current_page_item > a {
	color: var(--psx-text);
	background: var(--psx-accent-soft);
}

.psx-header__actions {
	display: inline-flex;
	align-items: center;
	gap: var(--psx-space-sm);
}

.psx-header__cta { display: none; }
@media (min-width: 600px) { .psx-header__cta { display: inline-flex; } }

/* Theme toggle — clear icon button */
.psx-theme-toggle {
	width: 42px; height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--psx-surface);
	border: 1px solid var(--psx-border);
	border-radius: var(--psx-radius-full);
	color: var(--psx-text);
	cursor: pointer;
	box-shadow: var(--psx-shadow-xs);
	transition: all var(--psx-duration-base) var(--psx-ease);
}
.psx-theme-toggle:hover {
	color: var(--psx-accent);
	border-color: var(--psx-accent);
	transform: translateY(-1px);
	box-shadow: var(--psx-shadow-sm);
}
.psx-theme-toggle svg {
	stroke: currentColor;
	width: 22px !important;
	height: 22px !important;
	min-width: 22px;
	flex-shrink: 0;
	stroke-width: 2.2;
}
.psx-theme-toggle .icon-sun  { display: none; }
.psx-theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .psx-theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .psx-theme-toggle .icon-moon { display: none; }
.psx-theme-toggle .icon-sun { display: none; }
.psx-theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .psx-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .psx-theme-toggle .icon-moon { display: none; }

/* Mobile menu toggle */
.psx-header__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 1px solid var(--psx-border);
	border-radius: var(--psx-radius-full);
	background: var(--psx-surface);
	color: var(--psx-text);
	cursor: pointer;
	transition: border-color var(--psx-duration-base) var(--psx-ease);
}
.psx-header__toggle:hover { border-color: var(--psx-accent); }
@media (min-width: 940px) { .psx-header__toggle { display: none; } }

.psx-header__toggle-icon,
.psx-header__toggle-icon::before,
.psx-header__toggle-icon::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--psx-duration-base) var(--psx-ease),
	            opacity var(--psx-duration-base) var(--psx-ease);
}
.psx-header__toggle-icon { position: relative; }
.psx-header__toggle-icon::before,
.psx-header__toggle-icon::after {
	content: '';
	position: absolute;
	left: 0;
}
.psx-header__toggle-icon::before { top: -6px; }
.psx-header__toggle-icon::after  { top: 6px; }
.psx-header.is-menu-open .psx-header__toggle-icon { background: transparent; }
.psx-header.is-menu-open .psx-header__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.psx-header.is-menu-open .psx-header__toggle-icon::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.psx-mobile-nav {
	display: none;
	position: fixed;
	top: var(--psx-header-height);
	inset-inline: 0;
	bottom: 0;
	z-index: var(--psx-z-overlay);
	background: var(--psx-overlay);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	padding: var(--psx-space-2xl) var(--psx-space-lg);
	overflow-y: auto;
	animation: psx-fade-in var(--psx-duration-base) var(--psx-ease);
}
.psx-header.is-menu-open .psx-mobile-nav { display: block; }
.psx-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.psx-mobile-nav a {
	display: block;
	padding: var(--psx-space-md);
	border-radius: var(--psx-radius-md);
	color: var(--psx-text);
	font-size: var(--psx-text-lg);
	font-weight: 600;
	text-decoration: none;
}
.psx-mobile-nav a:hover { background: var(--psx-accent-soft); color: var(--psx-accent); }
.psx-mobile-nav .psx-btn { margin-top: var(--psx-space-lg); width: 100%; }

@keyframes psx-fade-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────
 * Reading progress bar
 * ───────────────────────────────────────────────────── */
.psx-reading-progress {
	position: fixed;
	top: 0; left: 0;
	height: 3px;
	width: 0%;
	background: var(--psx-gradient-hero);
	z-index: calc(var(--psx-z-header) + 10);
	transition: width 80ms linear;
	pointer-events: none;
}

/* ─────────────────────────────────────────────────────
 * FOOTER
 * ───────────────────────────────────────────────────── */
.psx-footer {
	margin-top: var(--psx-space-4xl);
	background: var(--psx-bg-secondary);
	border-top: 1px solid var(--psx-border);
	color: var(--psx-text-muted);
	padding-block: var(--psx-space-3xl) var(--psx-space-lg);
	font-size: var(--psx-text-sm);
}
.psx-footer__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--psx-space-2xl);
	padding-bottom: var(--psx-space-2xl);
	border-bottom: 1px solid var(--psx-border);
}
@media (min-width: 700px) {
	.psx-footer__top {
		grid-template-columns: 2fr 1fr 1fr;
	}
}
.psx-footer__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--psx-text);
	text-decoration: none;
	margin-bottom: var(--psx-space-md);
}
.psx-footer__brand-link:hover { color: var(--psx-text); text-decoration: none; }
.psx-footer__brand-logo {
	height: 36px;
	width: auto;
	display: block;
	margin-bottom: var(--psx-space-md);
	filter: invert(1);
	transition: filter var(--psx-duration-base) var(--psx-ease);
}
[data-theme="dark"] .psx-footer__brand-logo { filter: none; }
.psx-footer__tagline {
	color: var(--psx-text-muted);
	max-width: 360px;
	margin: 0 0 var(--psx-space-md);
	line-height: var(--psx-leading-snug);
}
.psx-footer__heading {
	color: var(--psx-text);
	font-size: var(--psx-text-xs);
	font-weight: 700;
	letter-spacing: var(--psx-tracking-widest);
	text-transform: uppercase;
	margin: 0 0 var(--psx-space-md);
}
.psx-footer__list {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--psx-space-sm);
}
.psx-footer__list a {
	color: var(--psx-text-tertiary);
	text-decoration: none;
}
.psx-footer__list a:hover { color: var(--psx-accent); }

.psx-footer__bottom {
	margin-top: var(--psx-space-lg);
	display: flex;
	flex-direction: column;
	gap: var(--psx-space-sm);
	align-items: center;
	justify-content: space-between;
	color: var(--psx-text-muted);
	font-size: var(--psx-text-xs);
}
@media (min-width: 600px) {
	.psx-footer__bottom { flex-direction: row; }
}
.psx-footer__socials {
	display: flex;
	gap: var(--psx-space-sm);
	list-style: none;
	margin: 0; padding: 0;
}
.psx-footer__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: var(--psx-radius-full);
	background: var(--psx-surface);
	border: 1px solid var(--psx-border);
	color: var(--psx-text-tertiary);
	transition: color var(--psx-duration-base) var(--psx-ease),
	            border-color var(--psx-duration-base) var(--psx-ease),
	            transform var(--psx-duration-base) var(--psx-ease);
}
.psx-footer__socials a:hover {
	color: var(--psx-accent);
	border-color: var(--psx-accent);
	transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────
 * Pagination
 * ───────────────────────────────────────────────────── */
.psx-pagination {
	display: flex;
	gap: 4px;
	justify-content: center;
	flex-wrap: wrap;
	margin: var(--psx-space-2xl) 0 0;
}
.psx-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding-inline: var(--psx-space-md);
	background: var(--psx-surface);
	border: 1px solid var(--psx-border);
	border-radius: var(--psx-radius-full);
	color: var(--psx-text-secondary);
	font-weight: 600;
	font-size: var(--psx-text-sm);
	text-decoration: none;
	transition: all var(--psx-duration-base) var(--psx-ease);
}
.psx-pagination .page-numbers:hover {
	border-color: var(--psx-accent);
	color: var(--psx-accent);
}
.psx-pagination .page-numbers.current {
	background: var(--psx-accent);
	border-color: transparent;
	color: #fff;
	box-shadow: var(--psx-shadow-glow);
}

/* ─────────────────────────────────────────────────────
 * Share row
 * ───────────────────────────────────────────────────── */
.psx-share {
	display: flex;
	align-items: center;
	gap: var(--psx-space-sm);
	flex-wrap: wrap;
	margin: var(--psx-space-2xl) 0 0;
	padding: 6px;
	background: var(--psx-surface);
	border: 1px solid var(--psx-border);
	border-radius: var(--psx-radius-full);
	box-shadow: var(--psx-shadow-xs);
	width: fit-content;
}
.psx-share__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: var(--psx-tracking-widest);
	text-transform: uppercase;
	color: var(--psx-text-muted);
	margin-right: 4px;
	padding-left: var(--psx-space-md);
}
.psx-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	background: transparent;
	border-radius: var(--psx-radius-full);
	color: var(--psx-text-tertiary);
	transition: all var(--psx-duration-base) var(--psx-ease);
}
.psx-share__btn:hover {
	color: #fff;
	background: var(--psx-accent);
}

/* ─────────────────────────────────────────────────────
 * Newsletter / CTA card
 * ───────────────────────────────────────────────────── */
.psx-cta {
	position: relative;
	overflow: hidden;
	padding: var(--psx-space-3xl) var(--psx-space-2xl);
	border-radius: var(--psx-radius-2xl);
	background: var(--psx-text);
	color: #fff;
	text-align: center;
}
[data-theme="dark"] .psx-cta {
	background: var(--psx-surface-elevated);
}
.psx-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--psx-gradient-hero-soft);
	opacity: 0.3;
	mix-blend-mode: screen;
}
.psx-cta::after {
	content: '';
	position: absolute;
	right: -120px; top: -120px;
	width: 360px; height: 360px;
	background: radial-gradient(circle, rgba(166, 107, 217, 0.25), transparent 60%);
	pointer-events: none;
}
.psx-cta > * { position: relative; z-index: 1; }
.psx-cta__eyebrow {
	font-size: var(--psx-text-xs);
	font-weight: 700;
	letter-spacing: var(--psx-tracking-widest);
	text-transform: uppercase;
	color: var(--psx-accent-light);
	margin-bottom: var(--psx-space-md);
}
.psx-cta__title {
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	color: #fff;
	margin-bottom: var(--psx-space-sm);
	letter-spacing: var(--psx-tracking-tight);
	line-height: 1.15;
	max-width: 580px;
	margin-left: auto;
	margin-right: auto;
}
.psx-cta__sub {
	color: rgba(255, 255, 255, 0.75);
	max-width: 480px;
	margin: 0 auto var(--psx-space-lg);
	font-size: var(--psx-text-md);
}
.psx-cta__form {
	display: flex;
	flex-direction: column;
	gap: var(--psx-space-sm);
	max-width: 460px;
	margin: 0 auto;
}
.psx-cta__form input {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.psx-cta__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.psx-cta__form input:focus {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.4);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}
.psx-cta__form .psx-btn,
.psx-cta__form button[type="submit"] {
	background: #fff !important;
	color: var(--psx-text) !important;
	border-color: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}
.psx-cta__form .psx-btn:hover,
.psx-cta__form button[type="submit"]:hover {
	background: var(--psx-accent-light) !important;
	color: #fff !important;
	transform: translateY(-1px);
}
@media (min-width: 540px) {
	.psx-cta__form {
		flex-direction: row;
		align-items: center;
	}
	.psx-cta__form input { flex: 1; }
}

/* ─────────────────────────────────────────────────────
 * Author byline
 * ───────────────────────────────────────────────────── */
.psx-byline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: var(--psx-space-lg) 0 0;
	flex-wrap: wrap;
}
.psx-byline__avatar {
	width: 44px; height: 44px;
	border-radius: var(--psx-radius-full);
	overflow: hidden;
	background: var(--psx-gradient-hero);
	border: 1px solid var(--psx-border);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: var(--psx-text-md);
}
.psx-byline__avatar img { width: 100%; height: 100%; object-fit: cover; }
.psx-byline__name {
	color: var(--psx-text);
	font-weight: 600;
	font-size: var(--psx-text-sm);
}
.psx-byline__meta {
	color: var(--psx-text-muted);
	font-size: var(--psx-text-xs);
	display: flex;
	gap: 6px;
	align-items: center;
	margin-top: 2px;
}
.psx-byline__meta-dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: var(--psx-text-disabled);
}

/* ─────────────────────────────────────────────────────
 * Block editor overrides
 * ───────────────────────────────────────────────────── */
.wp-block-image { margin-block: var(--psx-space-2xl); }
.wp-block-image img { border-radius: var(--psx-radius-md); box-shadow: var(--psx-shadow-md); }
.wp-block-image figcaption { color: var(--psx-text-muted); }
.wp-block-pullquote {
	border-top: 2px solid var(--psx-accent);
	border-bottom: 2px solid var(--psx-accent);
	padding: var(--psx-space-2xl) 0;
	margin: var(--psx-space-3xl) 0;
	text-align: center;
	font-style: italic;
}
.wp-block-pullquote p {
	font-size: var(--psx-text-2xl);
	color: var(--psx-text);
	line-height: var(--psx-leading-snug);
}
