/* ============================================================
   ASIAAI SITEWIDE PAGE STYLES
   ------------------------------------------------------------
   Used by page.php (Contact, Privacy Policy, the AI Industry Guides
   hub page, and every other default-template Page), AND — for the
   .asiaai-subscribe-band component only — by template-evergreen.php
   too, so the subscribe pitch looks identical everywhere.

   Built entirely from the --asiaai-* variables already defined in
   style.css. No new colors or fonts are introduced here.
   ============================================================ */

.asiaai-page {
	background: var(--asiaai-surface);
	color: var(--asiaai-ink);
}

.asiaai-page__wrap {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 48px 24px 80px;
}

/* ---------- Header block (kicker + title + optional dek) ---------- */

.asiaai-page__header {
	margin-bottom: 40px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--asiaai-border);
}

.asiaai-page__kicker {
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--asiaai-red);
	margin: 0 0 10px;
}

.asiaai-page__title {
	font-family: var(--font-display);
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.15;
	margin: 0 0 14px;
	color: var(--asiaai-ink);
}

.asiaai-page__dek {
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--asiaai-muted);
	margin: 0;
	max-width: 640px;
}

/* ---------- Body content typography ---------- */

.asiaai-page__content h2 {
	font-family: var(--font-display);
	font-size: 26px;
	color: var(--asiaai-ink);
	margin: 40px 0 16px;
}

.asiaai-page__content h2:first-child {
	margin-top: 0;
}

.asiaai-page__content h3 {
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 16px;
	color: var(--asiaai-red-dark);
	margin: 24px 0 8px;
}

.asiaai-page__content p,
.asiaai-page__content li {
	font-family: var(--font-serif);
	font-size: 16px;
	line-height: 1.7;
	color: var(--asiaai-ink);
}

.asiaai-page__content ul,
.asiaai-page__content ol {
	padding-left: 20px;
	margin: 0 0 20px;
}

.asiaai-page__content a {
	color: var(--asiaai-japan-blue);
	text-decoration: underline;
	text-decoration-color: var(--asiaai-border-strong);
	text-underline-offset: 2px;
}

.asiaai-page__content a:hover {
	color: var(--asiaai-red);
}

/* Contact form / other plugin-rendered blocks shouldn't be squeezed by the
   serif body-text rule above — hand form fields back to sans. */
.asiaai-page__content form,
.asiaai-page__content input,
.asiaai-page__content textarea,
.asiaai-page__content select,
.asiaai-page__content label {
	font-family: var(--font-sans);
}

/* ---------- Footer / back link ---------- */

.asiaai-page__footer {
	margin-top: 8px;
}

.asiaai-page__back {
	display: inline-block;
	font-family: var(--font-sans);
	font-size: 14px;
	color: var(--asiaai-muted);
	text-decoration: none;
}

.asiaai-page__back:hover {
	color: var(--asiaai-red);
}

/* ---------- Archive pagination (archive.php) ---------- */

.asiaai-archive-pagination {
	margin: 40px 0 0;
	text-align: center;
	font-family: var(--font-sans);
	font-size: 13px;
}

.asiaai-archive-pagination .page-numbers {
	display: inline-block;
	margin: 0 4px;
	padding: 8px 14px;
	color: var(--asiaai-muted);
	text-decoration: none;
	border: 1px solid var(--asiaai-border);
	border-radius: var(--radius-sm);
}

.asiaai-archive-pagination .page-numbers.current {
	background: var(--asiaai-ink);
	color: #fff;
	border-color: var(--asiaai-ink);
}

.asiaai-archive-pagination .page-numbers:hover {
	border-color: var(--asiaai-red);
	color: var(--asiaai-red);
}

/* ---------- Archive card thumbnail (archive.php) ---------- */

.asiaai-article-card__thumb {
	display: block;
	margin-bottom: 12px;
	border-radius: var(--radius-md);
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.asiaai-article-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.asiaai-article-card:hover .asiaai-article-card__thumb img {
	transform: scale(1.03);
}

/* ============================================================
   SUBSCRIBE BAND — shared component
   Used by page.php, template-evergreen.php, and the
   [asiaai_subscribe] / [evergreen_subscribe] shortcodes.
   Matches the CTA styling already used in Newsletter Posts
   (_build_subscribe_cta() in publisher.py) so it's the same
   whether you land on a Post or a Page.
   ============================================================ */

.asiaai-subscribe-band {
	background: var(--asiaai-ink);
	border-radius: 6px;
	padding: 28px 32px;
	margin: 40px 0;
	text-align: center;
}

.asiaai-subscribe-band__eyebrow {
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #FFFFFF;
	margin: 0 0 6px;
}

.asiaai-subscribe-band__text {
	font-family: var(--font-sans);
	font-size: 14px;
	color: #C8C8C4;
	margin: 0 0 14px;
	line-height: 1.5;
}

.asiaai-subscribe-band__button {
	display: inline-block;
	background: var(--asiaai-red);
	color: #FFFFFF;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 28px;
	border-radius: 4px;
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: background 0.15s ease;
}

.asiaai-subscribe-band__button:hover {
	background: var(--asiaai-red-dark);
	color: #FFFFFF;
}

.asiaai-subscribe-band__fine {
	font-family: var(--font-sans);
	font-size: 11px;
	color: #8A8A84;
	margin: 10px 0 0;
}
