/* ==========================================================================
   Long-form text: blog, legal pages, location pages and text sections.
   New templates (not in the prototype) built from the prototype's tokens.
   ========================================================================== */

.prose {
	font-size: clamp(1rem, calc(0.9768rem + 0.0952cqw), 1.0625rem);
	line-height: 1.6;
	color: var(--c-text-2);
	text-wrap: pretty;
	max-width: 720px;
}

.prose > * + * { margin-top: 1em; }

.prose h2,
.prose h3 {
	font-family: var(--f-display);
	font-weight: 400;
	text-transform: uppercase;
	color: var(--c-text);
	line-height: 1.25;
	margin-top: 1.8em;
}

.prose h2 { font-size: clamp(1.125rem, 2.4cqw, 1.375rem); }
.prose h3 { font-size: 0.9375rem; }

.prose ul,
.prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }

.prose blockquote {
	border-left: 2px solid var(--c-accent);
	padding-left: 16px;
	color: var(--c-text);
}

.prose img,
.prose figure img {
	height: auto;
	border-radius: 12px;
}

.prose figcaption {
	font-size: 0.8125rem;
	color: var(--c-muted);
	margin-top: 6px;
}

.prose a { font-weight: 600; }

.prose strong { color: var(--c-text); }

/* Page header for templates without a hero */
.page-head { padding: var(--space-top) 0 0; }

.page-head__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 760px;
}

.page-body { padding: var(--space-text) 0 0; }

/* Blog cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.post-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: 12px;
	overflow: hidden;
	color: var(--c-text);
	text-decoration: none;
}
a.post-card:hover { color: var(--c-text); border-color: var(--c-accent-light); }

.post-card__media {
	aspect-ratio: 16 / 10;
	background: var(--c-bg-2);
}

.post-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-card__body {
	padding: 0 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.post-card:not(:has(.post-card__media)) .post-card__body { padding-top: 20px; }

.post-card__date {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.post-card__title {
	font-family: var(--f-display);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.35;
	text-transform: uppercase;
}

.post-card__excerpt {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--c-muted);
}

.pagination {
	margin-top: 28px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	font-size: 0.875rem;
	font-weight: 700;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--c-surface);
	border: 1px solid var(--c-line-2);
	color: var(--c-text);
	text-decoration: none;
}

.pagination .page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); }

.post-hero {
	margin-top: 28px;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: var(--c-surface);
}

.post-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* CarWise repair status widget */
.repair-status {
	background: var(--c-light);
	color: var(--c-ink);
	border-radius: 14px;
	padding: 22px;
	min-height: 240px;
}

.repair-status a { color: var(--c-accent); }

/* Search form */
.search-form {
	display: flex;
	gap: 10px;
	max-width: 520px;
}

.search-form .search-field {
	flex: 1;
	font: inherit;
	font-size: 1rem;
	padding: 12px;
	border: 1px solid var(--c-line-2);
	border-radius: 8px;
	background: #FBFAF7;
	color: var(--c-ink);
	min-width: 0;
}

.search-form .search-submit {
	font-weight: 800;
	font-size: 0.875rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: var(--c-accent);
	border: 0;
	border-radius: 10px;
	padding: 0 18px;
	min-height: 48px;
	cursor: pointer;
}
