:root {
	--updated: "2026-04-26";
}

html,
body {
	margin: 0;
	padding: 0;
	max-width: 800px;
}

body {
	font-family: Georgia, "Times New Roman", Times, serif;
	background: #f8f8f8;
	color: #222;
	line-height: 1.6;
}

main {
	max-width: 42rem;
	margin: 4rem auto;
	padding: 0 1.5rem;
}

h1 {
	font-size: 2.2rem;
	font-weight: normal;
	margin: 0 0 2rem 0;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #ccc;
}

h2 {
	font-size: 1.2rem;
	font-weight: normal;
	font-family: system-ui, sans-serif;
	color: #333;
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #ddd;
}

h3 {
	font-size: 1rem;
	font-weight: normal;
	font-family: system-ui, sans-serif;
	color: #333;
	margin: 2rem 0 0.75rem;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #ddd;
}

main div {
	margin-bottom: 1.4rem;
}

a {
	color: #003366;
	text-decoration: underline;
}

a:hover {
	color: #000;
}

time.last-updated::after {
	content: var(--updated);
}

/* ── Details / edition list ── */

details {
	margin: 0;
}

details+details {
	border-top: 1px solid #ddd;
}

summary {
	list-style: none;
	cursor: pointer;
	padding: 0.6rem 0;
	user-select: none;
}

summary::-webkit-details-marker {
	display: none;
}

summary h3 {
	display: inline;
	font-size: 1rem;
	font-weight: normal;
	font-family: system-ui, sans-serif;
	color: #333;
	margin: 0;
	padding: 0;
}

summary:hover h3 {
	color: #000;
	text-decoration: underline;
}

details article {
	padding: 0.25rem 0 1rem;
}

/* ── Edition metadata dl ── */

details article dl {
	display: grid;
	grid-template-columns: 10rem 1fr;
	column-gap: 1.5rem;
	row-gap: 0.5rem;
	margin: 0;
}

details article dt {
	color: #555;
	font-size: 0.85rem;
	font-family: system-ui, sans-serif;
	padding-top: 0.15rem;
}

details article dd {
	margin: 0;
}

/* ── Current edition ── */

.current {
	border-left: 3px solid #999;
	padding-left: 1rem;
}

/* ── Footer ── */

footer {
	max-width: 42rem;
	margin: 2rem auto;
	padding: 1rem 1.5rem;
	font-size: 0.9rem;
	color: #666;
	border-top: 1px solid #ccc;
}

/* ── Mobile ── */

@media (max-width: 39.99rem) {
	details article dl {
		grid-template-columns: 1fr;
		row-gap: 0.15rem;
	}

	details article dt {
		margin-top: 0.75rem;
		padding-top: 0;
	}

	details article dl dt:first-child {
		margin-top: 0;
	}
}
