:root {
	--text: #000;
	--muted: #666;
	--link: #002bb8;
	--rule: #ddd;
	--rule-light: #eee;
	--paper: #fff;
	--tint: #f4f4f2;
	--focus: #b8860b;

	--page: 62rem;
	--gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

body, h1, h2, h3, h4, h5, h6, p, blockquote, dl, dd, ul, ol {
	margin: 0;
	padding: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font: 1rem/1.6 Georgia, Palatino, "Palatino Linotype", FreeSerif, serif;
	color: var(--text);
	background: #efece4;

	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	font-weight: normal;
	line-height: 1.25;

	hyphens: auto;
	overflow-wrap: break-word;
}

h1 { font-size: 1.8rem; margin-bottom: 0.6em; }
h2 { font-size: 1.4rem; margin: 1.5em 0 0.5em; }
h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; }
h4 { font-size: 1.1rem; margin: 1.5em 0 0.5em; }
h5, h6 { font-size: 1rem; font-weight: bold; margin: 1.5em 0 0.5em; }
h1:first-child, h2:first-child, h3:first-child, h5:first-child { margin-top: 0; }

p { margin: 0 0 1em; }

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.25em; }
li > ul, li > ol { margin-bottom: 0; }

blockquote { margin: 1.5em; color: var(--muted); font-style: italic; }
strong { font-weight: bold; }
em { font-style: italic; }
sup, sub { line-height: 0; }
pre, code { font-family: "Andale Mono", "Lucida Console", monospace; font-size: 0.9em; }
pre { margin: 1.5em 0; overflow-x: auto; }

hr {
	border: 0;
	border-top: 1px solid var(--rule);
	margin: 1.5em 0;
}

img {
	max-width: 100%;
	height: auto;
}

@media (min-width: 62rem) {
	body {
		background-image: url("/assets/background-cbdc46b6.jpg");
		background-image: image-set(
			url("/assets/background-a4a259b3.webp") type("image/webp"),
			url("/assets/background-cbdc46b6.jpg") type("image/jpeg")
		);
	}
}

.container {
	max-width: var(--page);
	margin: 0 auto;
	background: var(--paper);
	padding: 0 1rem 1.5rem;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--paper);
	padding: 0.6rem 1rem;
	z-index: 10;
}

.skip-link:focus {
	left: 0;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--gap);
}

@media (min-width: 60rem) {
	.layout {
		grid-template-columns: minmax(0, 1fr) 15rem;
	}

	.layout--single {
		grid-template-columns: minmax(0, 1fr);
	}

	.sidebar {
		border-left: 1px solid var(--rule-light);
		padding-left: 1rem;
	}
}

main { min-width: 0; }

.hidden-label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.site-header {
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--rule-light);
	margin-bottom: var(--gap);
}

.site-title {
	display: block;
	color: var(--text);
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0.5rem;
}

.site-nav li { margin: 0; }

.site-nav a,
.site-nav button {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.6rem;
}

.site-nav a[aria-current="page"] {
	font-weight: bold;
	box-shadow: inset 0 -2px 0 var(--link);
}

.site-nav form { margin: 0; }

.site-nav button {
	background: none;
	border: 0;
	font: inherit;
	color: var(--link);
	cursor: pointer;
	text-decoration: none;
}

.site-nav button:hover { text-decoration: underline; }

.site-search {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.site-search form {
	display: flex;
	gap: 0.5rem;
	flex: 1 1 16rem;
}

.site-search input[type="text"] {
	flex: 1 1 auto;
	min-width: 0;
}

.site-search .surprise { font-size: 0.85rem; }

.site-search form { position: relative; }

.suggest {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin-top: 6px;
	background: var(--paper);
	border: 1px solid var(--rule);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	z-index: 5;

	max-height: 60vh;
	max-height: 60dvh;
	overflow-y: auto;
}

.suggest__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 2.75rem;
	padding: 0.35rem 0.7rem;
	color: var(--text);
}

.suggest__row + .suggest__row { border-top: 1px solid var(--rule-light); }

.suggest__kind {
	flex: 0 0 5.5rem;
	display: flex;
	font-size: 0.85rem;
	color: var(--muted);
}

.suggest__name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.suggest__meta {
	flex: 0 0 auto;
	font-size: 0.85rem;
	color: var(--muted);
}

.suggest__row:hover { background: var(--tint); text-decoration: none; }
.suggest__row:hover .suggest__name { text-decoration: underline; }

.suggest__row.is-selected {
	background: var(--tint);
	box-shadow: inset 2px 0 0 var(--link);
}

.suggest__row--search {
	color: var(--link);
	border-top: 1px solid var(--rule);
}

.suggest__row--search .suggest__kind { color: var(--muted); }

@media (max-width: 34rem) {
	.suggest__row {
		display: block;
		padding: 0.45rem 0.7rem;
	}

	.suggest__kind,
	.suggest__meta {
		display: inline;
	}

	.suggest__kind::after { content: " ·"; }

	.suggest__name {
		display: block;
		white-space: normal;
	}

	.suggest__row--search .suggest__kind::after { content: ""; }
}

.breadcrumb {
	font-size: 0.85rem;
	color: var(--muted);
	margin-bottom: 1rem;
}

.breadcrumb ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.4rem;
}

.breadcrumb li { margin: 0; }

.breadcrumb li + li::before {
	content: "\203A";
	margin-right: 0.4rem;
	color: var(--muted);
}

@media (pointer: coarse) {
	.link-list li,
	.sidebar li {
		margin-bottom: 0;
	}

	.link-list > li > a,
	.sidebar li > a {
		display: inline-block;
		padding: 0.6rem 0;
	}
}

.sidebar {
	font-size: 0.9rem;
}

.sidebar h2, .sidebar h3 {
	font-size: 1rem;
	font-weight: bold;
	margin: 1.2em 0 0.4em;
}

.sidebar ul {
	list-style: none;
	padding-left: 0;
}

.sidebar::before {
	content: "";
	display: block;
	border-top: 1px solid var(--rule-light);
	margin-bottom: 1rem;
}

@media (min-width: 60rem) {
	.sidebar::before { display: none; }
}

.site-footer {
	margin-top: 2rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--rule-light);
	font-size: 0.85rem;
	color: var(--muted);
}

.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
}

.site-footer li { margin: 0; }
.site-footer a { display: inline-block; padding: 0.5rem 0; }

.year-grid { margin-bottom: 1.5rem; }

.year-grid h2 {
	font-size: 1rem;
	font-weight: bold;
	margin: 1.2em 0 0.4em;
	color: var(--muted);
}

.year-grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4rem, 1fr));
	gap: 0.35rem;
}

.year-grid li { margin: 0; }

.year {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.3rem;
	border-radius: 3px;
	line-height: 1.2;
}

a.year {
	border: 1px solid var(--rule);
	background: var(--tint);
}

a.year:hover, a.year:focus {
	border-color: var(--link);
	text-decoration: none;
}

.year--empty {
	border: 1px dashed var(--rule-light);
	color: var(--muted);
}

.year__count {
	font-size: 0.7rem;
	color: #444;
}

a.year--level-1 { background: #eef1f8; }
a.year--level-2 { background: #dde3f3; }
a.year--level-3 { background: #c6d1ec; }
a.year--level-4 { background: #a8bbe3; }

.letters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem;
	margin-bottom: 1.5rem;
}

.letters a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.75rem;
	padding: 0 0.4rem;
	border: 1px solid var(--rule-light);
	border-radius: 3px;
}

.letters a:hover, .letters a:focus {
	border-color: var(--link);
	text-decoration: none;
}

.letters a[aria-current] {
	font-weight: bold;
	border-color: var(--link);
	background: var(--tint);
}

.hits {
	color: var(--muted);
	margin-bottom: 1.5rem;
}

.keyword-hits {
	margin-bottom: 1.5rem;
}

.keyword-hits h2 {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--muted);
	margin-bottom: 0.4rem;
}

.keyword-hits ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.keyword-hits a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	padding: 0 0.7rem;
	border: 1px solid var(--rule-light);
	border-radius: 3px;
}

.keyword-hits a:hover, .keyword-hits a:focus {
	border-color: var(--link);
	text-decoration: none;
}

.no-hits {
	max-width: 34em;
}

input[type="text"], input[type="password"], input[type="email"], textarea, select {
	font: inherit;
	max-width: 100%;
	padding: 0.4rem;
	border: 1px solid #bbb;
	background: var(--paper);
}

textarea { width: 100%; min-height: 20rem; }

button, input[type="submit"] {
	font: inherit;
	min-height: 2.75rem;
	padding: 0 0.8rem;
	cursor: pointer;
}

label { font-weight: bold; }

form.button_to { display: inline; }

main table {
	display: block;
	overflow-x: auto;
	border-collapse: collapse;
	margin-bottom: 1.5em;
	max-width: 100%;
}

main th, main td {
	padding: 0.3em 0.6em;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--rule-light);
}

#notice, .notice {
	background: #fff6bf;
	border: 1px solid #ffd324;
	color: #514721;
	padding: 0.6rem 0.8rem;
	margin-bottom: 1rem;
}

#notice:empty { display: none; }

.small { font-size: 0.85rem; }
.quiet { color: var(--muted); }
.highlight { background: #ff0; }
.footnote { font-size: 0.85rem; }

.pagination { margin: 1.5rem 0; }
.pagination a, .pagination em, .pagination .gap {
	display: inline-block;
	min-width: 2.5rem;
	min-height: 2.75rem;
	padding: 0.6rem 0.4rem;
	text-align: center;
}

.print-source { display: none; }

.citation {
	margin-top: 2rem;
	border-top: 1px solid var(--rule);
	padding-top: 0.8rem;
	font-size: 0.85rem;
	color: var(--muted);
}

.citation h2 {
	font-size: 1rem;
	margin-bottom: 0.4rem;
}

.citation-text { overflow-wrap: break-word; }

.citation-actions { margin-bottom: 0; }

.locations-map {
	height: 24rem;
	max-width: 100%;
	margin-bottom: 0.5em;
	isolation: isolate;
}

@media print {
	:root { --page: none; }

	html { overflow: visible; }

	body {
		background: none;
		color: #000;
		font-size: 11pt;
		line-height: 1.4;
	}

	.container {
		max-width: none;
		padding: 0;
		background: none;
	}

	.site-header,
	.site-footer,
	.skip-link,
	.breadcrumb,
	.admin-actions,
	.letters,
	.pagination {
		display: none;
	}

	.layout {
		display: block;
	}

	.sidebar {
		border: 0;
		padding: 0;
		margin-top: 1.5em;
		border-top: 1px solid #999;
		padding-top: 0.5em;
		font-size: 9pt;
	}

	.sidebar::before { display: none; }
	.sidebar ul { display: block; }

	h1, h2, h3, h4, h5, h6 {
		break-after: avoid;
		page-break-after: avoid;
	}

	p, li, blockquote { orphans: 3; widows: 3; }

	.footnote, p.footnote {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	img { max-width: 100%; }

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

	main a[href^="http"]:not(.autolink)::after {
		content: " (" attr(href) ")";
		font-size: 85%;
		word-break: break-all;
	}

	.citation {
		color: #000;
		font-size: 9pt;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.citation h2 { font-size: 9pt; }

	.citation-actions { display: none; }

	.print-source {
		display: block;
		margin-top: 1.5em;
		border-top: 1px solid #999;
		padding-top: 0.5em;
		font-size: 9pt;
	}
}

