/* =============================================================
   HappyDivi — inner-page.css
   Shared styles for all inner page templates.
   Loaded on every page except the front page and search.
   Sections: 30 (Prose), 31 (Page hero), 32 (Layout + TOC)
   ============================================================= */

/* ── 30. Prose — inner page typography ───────────────────────── */
.prose {
	max-width: 720px;
	line-height: 1.75;
}
.prose h1 {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.1;
	margin-bottom: 1rem;
	color: var(--text);
}
.prose h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin-top: 2.75rem;
	margin-bottom: .75rem;
	color: var(--text);
	letter-spacing: -.015em;
}
.prose h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 1.75rem;
	margin-bottom: .4rem;
	color: var(--text);
}
.prose p { color: var(--muted); margin-bottom: 1rem; }
.prose ul,
.prose ol {
	color: var(--muted);
	padding-left: 1.5rem;
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
}
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: .8; }
.prose strong { color: var(--text); font-weight: 700; }
.prose blockquote {
	border-left: 3px solid var(--brand-border);
	padding: .75rem 1.25rem;
	color: var(--muted);
	font-style: italic;
	margin: 1.5rem 0;
	background: var(--surface);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose hr { border: none; border-top: var(--border-width) solid var(--line); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: 1.5rem; }
.prose th,
.prose td {
	text-align: left;
	padding: .65rem .85rem;
	border-bottom: var(--border-width) solid var(--line);
	color: var(--muted);
}
.prose th { color: var(--text); font-weight: 700; background: var(--surface); }

/* ── 31. Page hero (inner pages) ─────────────────────────── */
.page-hero {
	padding: 4.5rem 0 3rem;
	border-bottom: var(--border-width) solid var(--line);
	margin-bottom: 3.5rem;
}
.page-breadcrumb {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .8rem;
	color: var(--muted);
	margin-bottom: 1.25rem;
}
.page-breadcrumb a { color: var(--muted); }
.page-breadcrumb a:hover { color: var(--text); }
.page-breadcrumb-sep { opacity: .35; font-size: .75rem; }
.page-hero-eyebrow {
	font-size: .78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--brand);
	margin-bottom: .75rem;
}
.page-hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.2rem, 6vw, 3.8rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
	color: var(--text);
	margin-bottom: 1rem;
}
.page-hero-sub {
	font-size: 1.05rem;
	color: var(--muted);
	max-width: 58ch;
	line-height: 1.7;
}
.page-updated {
	font-size: .78rem;
	color: var(--muted);
	margin-top: .75rem;
	display: flex;
	align-items: center;
	gap: .4rem;
}

/* ── 32. Inner page layout + sidebar TOC ─────────────────── */
.page-layout {
	display: grid;
	grid-template-columns: 1fr 260px;
	gap: 3.5rem;
	align-items: start;
}
.page-sidebar {
	position: sticky;
	top: calc(var(--nav-height) + 1.5rem);
}
.sidebar-toc {
	background: var(--surface);
	border: var(--border-width) solid var(--line);
	border-radius: var(--radius);
	padding: 1.25rem;
}
.sidebar-toc-title {
	font-size: .75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--muted);
	margin-bottom: .85rem;
}
.sidebar-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.sidebar-toc-list a {
	font-size: .84rem;
	color: var(--muted);
	display: block;
	padding: .3rem .5rem;
	border-radius: var(--radius-sm);
}
.sidebar-toc-list a:hover { color: var(--brand); background: var(--brand-dim); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
	.page-layout { grid-template-columns: 1fr; }
	.page-sidebar { position: static; }
}
@media (max-width: 640px) {
	.page-hero { padding: 3rem 0 2rem; margin-bottom: 2.5rem; }
}
@media (max-width: 480px) {
	.page-hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}
