:root {
	--text-primary: #333333;
	--text-secondary: #666666;
	--text-muted: #999999;
	--accent: #6b1c7b;
	--border: #e5e5e5;
	--brand-navy: #274f78;
	--brand-teal: #41c8b4;
	--footer-purple: #281870;
	--surface: #ffffff;
	--shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
	--radius: 8px;
	--font-body: "Manrope", "Segoe UI", sans-serif;
	--font-heading: "Sora", "Manrope", sans-serif;
	--font-h1: 24px;
	--font-h2: 20px;
	--font-body-size: 15px;
	--font-meta: 12px;
	--font-masthead: 12px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background: #ffffff;
	color: var(--text-primary);
	font-family: var(--font-body);
	font-size: var(--font-body-size);
	line-height: 1.6;
}

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid rgba(107, 28, 123, 0.35);
	outline-offset: 2px;
}

.site-header {
	background: linear-gradient(112deg, var(--brand-navy), var(--brand-teal));
	border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.masthead {
	max-width: 1200px;
	margin: 0 auto;
	padding: 16px;
	min-height: 80px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	position: relative;
}

.brand-logo {
	width: 120px;
	height: auto;
	flex-shrink: 0;
	order: 1;
}

.masthead-text {
	margin: 0;
	font-size: var(--font-masthead);
	font-weight: 600;
	color: rgba(239, 249, 255, 0.92);
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: flex-start;
	order: 2;
}

.meta-sep {
	margin: 0 6px;
	color: rgba(239, 249, 255, 0.7);
}

.masthead-line {
	display: block;
}

.masthead-line--secondary::before {
	content: "";
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	font-weight: 600;
	color: #ffffff;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px rgba(12, 42, 78, 0.2);
}

.brand-link--back {
	align-self: flex-start;
	order: 3;
	font-size: 11px;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.4);
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 20px 64px;
}

.session-hero {
	padding: 12px 0 24px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 24px;
}

.session-hero.is-loading .session-title,
.session-hero.is-loading .session-meta {
	color: transparent;
	position: relative;
}

.session-hero.is-loading .session-meta span {
	visibility: hidden;
}

.session-hero.is-loading .session-title::after {
	content: "";
	display: block;
	width: min(520px, 90%);
	height: 30px;
	margin-top: 4px;
	border-radius: 8px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite ease-in-out;
}

.session-hero.is-loading .session-meta::after {
	content: "";
	display: block;
	width: min(260px, 60%);
	height: 12px;
	margin-top: 10px;
	border-radius: 6px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite ease-in-out;
}

.session-title {
	margin: 0 0 8px;
	font-family: var(--font-heading);
	font-size: var(--font-h1);
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-primary);
}

.session-meta {
	margin: 0;
	font-size: var(--font-meta);
	color: var(--text-secondary);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.summary-section {
	margin-top: 24px;
}

.section-title {
	margin: 0 0 12px;
	font-family: var(--font-heading);
	font-size: var(--font-h2);
	font-weight: 700;
	color: var(--text-primary);
}

.summary-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	box-shadow: var(--shadow);
}

.summary-status {
	margin: 16px 0 0;
	font-size: var(--font-meta);
	color: var(--text-secondary);
}

.summary-status[data-kind="error"] {
	color: #b42318;
}

.prose {
	color: var(--text-primary);
	line-height: 1.6;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
	margin: 20px 0 8px;
	color: var(--text-primary);
	font-family: var(--font-heading);
	font-weight: 600;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(107, 28, 123, 0.2);
	position: relative;
	width: 100%;
}

.prose h1 {
	font-size: 22px;
}

.prose h2 {
	font-size: 20px;
}

.prose h3,
.prose h4 {
	font-size: 18px;
}

.prose h1::after,
.prose h2::after,
.prose h3::after,
.prose h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 48px;
	height: 2px;
	background: var(--accent);
}

.prose h1:first-child,
.prose h2:first-child,
.prose h3:first-child,
.prose h4:first-child {
	margin-top: 0;
}

.prose p {
	margin: 0 0 12px;
}

.prose p:first-of-type {
	font-size: 1.03em;
	font-weight: 600;
}

.prose p:first-of-type::first-letter {
	font-family: var(--font-heading);
	font-size: 1.8em;
	line-height: 1;
	padding-right: 2px;
	color: rgba(107, 28, 123, 0.7);
}

.prose p:last-child {
	margin-bottom: 0;
}

.prose ul {
	margin: 0 0 12px;
	padding-left: 20px;
}

.prose li {
	margin: 6px 0;
}

.prose code {
	padding: 1px 6px;
	border-radius: 4px;
	background: rgba(107, 28, 123, 0.08);
	font-size: 0.92em;
}

.summary-skeleton {
	min-height: 240px;
}

.skeleton-line {
	height: 12px;
	border-radius: 4px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite ease-in-out;
	margin-bottom: 14px;
}

.skeleton-line.short {
	width: 60%;
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	background: var(--footer-purple);
	padding: 24px 0;
	margin-top: 48px;
}

.site-footer__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	font-size: 14px;
	color: rgba(243, 242, 255, 0.85);
}

.footer-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.footer-label {
	font-size: 14px;
	color: rgba(243, 242, 255, 0.75);
}

.footer-logo {
	max-width: 120px;
	height: auto;
	display: block;
	background: rgba(255, 255, 255, 0.92);
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-copy {
	font-size: 14px;
	color: rgba(243, 242, 255, 0.85);
}

@keyframes shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

@media (max-width: 768px) {
	.session-hero {
		padding-bottom: 20px;
	}

	.session-meta {
		gap: 4px;
	}

	.site-footer__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.footer-left {
		flex-direction: column;
		align-items: center;
		gap: 8px;
	}

	.footer-logo {
		max-width: 110px;
	}

	.footer-copy {
		text-align: center;
	}
}

@media (min-width: 769px) {
	:root {
		--font-h1: 32px;
		--font-h2: 24px;
		--font-body-size: 16px;
		--font-meta: 14px;
		--font-masthead: 13px;
	}

	.masthead {
		padding: 18px 20px;
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas:
			"back logo spacer"
			"text text text";
		gap: 6px 16px;
		align-items: center;
	}

	.brand-link--back {
		grid-area: back;
		justify-self: start;
		font-size: 12px;
		padding: 6px 12px;
	}

	.masthead-text {
		white-space: nowrap;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-self: center;
		text-align: center;
		grid-area: text;
	}

	.masthead-line {
		display: inline;
	}

	.masthead-line--secondary::before {
		content: "|";
		margin: 0 6px;
		color: rgba(239, 249, 255, 0.7);
	}

	.brand-logo {
		grid-area: logo;
		justify-self: center;
	}
}

@media print {
	.site-header,
	.site-footer,
	.brand-link {
		display: none !important;
	}

	body {
		background: #ffffff;
		color: #000000;
	}
}
