/**
 * Shared rich-text prose — ported from the single-blog `.ks-prose` (css/blog.css)
 * so location + service page body copy reads with the same typographic system.
 * SELF-CONTAINED: tokens are defined on `.ks-prose` itself (not on `.ks-blog`),
 * so it carries no layout and depends on no other stylesheet or load order.
 * Everything is scoped under `.ks-prose`, so it cannot leak onto theme chrome.
 * Fonts: Bricolage Grotesque (display) + Open Sans (body) — both enqueued by the
 * templates that load this file.
 */

.ks-prose {
	--ks-navy: #102694;
	--ks-navy-700: #0b1a6b;
	--ks-gold: #ffcc00;
	--ks-gold-600: #e6b800;
	--ks-ink: #1a1f33;
	--ks-body: #3a4257;
	--ks-muted: #66708a;
	--ks-line: #e5e8f2;
	--ks-tint: #eef3ff;
	--ks-radius-sm: 8px;
	--ks-focus: #1d4ed8;
	--ks-display: "Bricolage Grotesque", "Exo", "Open Sans", system-ui, sans-serif;
	--ks-sans: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	font-family: var(--ks-sans);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--ks-body);
	-webkit-font-smoothing: antialiased;
}

.ks-prose > :first-child { margin-top: 0; }
.ks-prose > :last-child { margin-bottom: 0; }

/* line-height/font-size set on the elements themselves (not just the container):
   the theme's bare `p { line-height:1.6 }` / `li` rules would otherwise win over an
   inherited value regardless of the container. .ks-prose p (0,1,1) beats p (0,0,1). */
.ks-prose p { margin: 0 0 1.25rem; font-size: 1.0625rem; line-height: 1.75; }

.ks-prose h2,
.ks-prose h3,
.ks-prose h4 {
	font-family: var(--ks-display);
	color: var(--ks-navy);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	scroll-margin-top: 6rem;
}
.ks-prose h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin: 2.25rem 0 0.85rem; }
.ks-prose h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); margin: 1.85rem 0 0.7rem; }
.ks-prose h4 { font-size: 1.1rem; margin: 1.5rem 0 0.6rem; }

.ks-prose a {
	color: var(--ks-navy);
	text-decoration: underline;
	text-decoration-color: rgba(16, 38, 148, .35);
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
	font-weight: 600;
	transition: text-decoration-color .15s ease;
}
.ks-prose a:hover,
.ks-prose a:focus-visible { text-decoration-color: var(--ks-gold); }

.ks-prose strong { color: var(--ks-ink); font-weight: 700; }

.ks-prose ul,
.ks-prose ol { margin: 0 0 1.35rem; padding-left: 1.4rem; list-style-position: outside; }
.ks-prose ul { list-style-type: disc; }
.ks-prose ol { list-style-type: decimal; }
.ks-prose li { margin-bottom: 0.5rem; padding-left: 0.25rem; font-size: 1.0625rem; line-height: 1.7; }
.ks-prose ul li::marker { color: var(--ks-gold-600); }
.ks-prose ol li::marker { color: var(--ks-navy); font-weight: 700; }

.ks-prose img,
.ks-prose figure { max-width: 100%; height: auto; }
.ks-prose figure { margin: 1.75rem 0; }
.ks-prose img { border-radius: var(--ks-radius-sm); }
.ks-prose figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--ks-muted); text-align: center; }

.ks-prose blockquote {
	margin: 1.75rem 0;
	padding: 1.1rem 1.4rem;
	background: var(--ks-tint);
	border-left: 4px solid var(--ks-gold);
	border-radius: 0 var(--ks-radius-sm) var(--ks-radius-sm) 0;
	color: var(--ks-ink);
}
.ks-prose blockquote p { color: var(--ks-ink); }
.ks-prose blockquote p:last-child { margin-bottom: 0; }

.ks-prose hr { border: 0; height: 1px; background: var(--ks-line); margin: 2.25rem 0; }

.ks-prose .ks-table-wrap,
.ks-prose table { max-width: 100%; }
.ks-prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.75rem 0; }
.ks-prose th,
.ks-prose td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--ks-line); }
.ks-prose thead th { background: var(--ks-navy); color: #fff; font-weight: 700; }
.ks-prose tbody tr:nth-child(even) { background: var(--ks-tint); }
.ks-prose tbody tr:last-child td { border-bottom: 0; }

.ks-prose a:focus-visible { outline: 3px solid var(--ks-focus); outline-offset: 2px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
	.ks-prose a { transition: none; }
}
