/* ══════════════════════════════════════════════════════
   Default page template — light editorial layout
   ══════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────── */
.ali-page-header {
	background: var(--ali-cream);
	padding: 100px 40px 0;
}

.ali-page-header-inner {
	max-width: 800px;
	margin: 0 auto;
	animation: aliPageFadeIn .8s cubic-bezier(.22, 1, .36, 1) both;
}

.ali-page-header h1 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(2rem, 4.5vw, 3rem);
	font-weight: 400;
	color: var(--ali-navy);
	margin: 0;
	letter-spacing: -.01em;
	line-height: 1.15;
}

/* Teal accent line separator */
.ali-page-separator {
	width: 64px;
	height: 3px;
	background: var(--ali-teal);
	border-radius: 2px;
	margin: 28px 0 0;
}

@keyframes aliPageFadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ── Page content ────────────────────────────────── */
.ali-page-wrap {
	background: var(--ali-cream);
	padding: 40px 24px 88px;
}

.ali-page-content {
	max-width: 800px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	padding: 48px 56px;
	box-shadow: 0 2px 24px rgba(122, 77, 121, .04);
}

/* ── Prose styles ────────────────────────────────── */
.ali-page-content h2 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.4rem, 2.5vw, 1.8rem);
	font-weight: 400;
	color: var(--ali-navy);
	margin: 2.5rem 0 1rem;
	line-height: 1.2;
}

.ali-page-content h3 {
	font-family: 'Lora', Georgia, serif;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	font-weight: 400;
	color: var(--ali-navy);
	margin: 2rem 0 .75rem;
	line-height: 1.25;
}

.ali-page-content h4,
.ali-page-content h5,
.ali-page-content h6 {
	font-family: 'Nunito', system-ui, sans-serif;
	font-weight: 600;
	color: var(--ali-navy);
	margin: 1.5rem 0 .5rem;
}

.ali-page-content p {
	font-size: 1rem;
	line-height: 1.85;
	margin: 0 0 1.5rem;
	color: var(--ali-text);
}

.ali-page-content ul,
.ali-page-content ol {
	padding-left: 1.5rem;
	margin: 0 0 1.5rem;
}

.ali-page-content li {
	font-size: 1rem;
	line-height: 1.85;
	margin-bottom: .5rem;
}

.ali-page-content a:not(.wp-block-button__link):not(.wp-element-button):not(.cc-card) {
	color: var(--ali-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ali-page-content a:not(.wp-block-button__link):not(.wp-element-button):not(.cc-card):hover {
	color: var(--ali-teal-deep);
}

.ali-page-content blockquote {
	margin: 2rem 0;
	padding: 1.5rem 1.5rem 1.5rem 2rem;
	border-left: 3px solid var(--ali-teal);
	background: var(--ali-cream);
	border-radius: 0 10px 10px 0;
}

.ali-page-content blockquote p {
	margin-bottom: 0;
	font-style: italic;
	color: var(--ali-text-secondary);
}

.ali-page-content img {
	border-radius: 10px;
	margin: 1.5rem 0;
}

.ali-page-content figure {
	margin: 2rem 0;
}

.ali-page-content figcaption {
	font-size: .82rem;
	color: var(--ali-text-secondary);
	text-align: center;
	margin-top: .5rem;
}

.ali-page-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.5rem 0;
	font-size: .92rem;
}

.ali-page-content th,
.ali-page-content td {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	text-align: left;
}

.ali-page-content th {
	font-weight: 600;
	color: var(--ali-navy);
	background: rgba(0, 0, 0, .02);
}

.ali-page-content hr {
	border: none;
	height: 1px;
	background: rgba(0, 0, 0, .08);
	margin: 2.5rem 0;
}

/* WP block alignments */
.ali-page-content .alignwide {
	max-width: calc(100% + 80px);
	margin-left: -40px;
	margin-right: -40px;
	width: auto;
}

.ali-page-content .alignfull {
	max-width: none;
	margin-left: calc(-56px);
	margin-right: calc(-56px);
	width: calc(100% + 112px);
	border-radius: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
	.ali-page-header {
		padding: 80px 24px 0;
	}

	.ali-page-content {
		padding: 32px 24px;
		border-radius: 12px;
	}

	.ali-page-content .alignwide {
		max-width: calc(100% + 16px);
		margin-left: -8px;
		margin-right: -8px;
	}

	.ali-page-content .alignfull {
		margin-left: -24px;
		margin-right: -24px;
		width: calc(100% + 48px);
	}
}
