body {
	max-width: 68rem;
	margin: 2.5rem auto;
	background: white;
	color: black;
	font-family: Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.45;
}

h1 {
	font-size: 1.55em;
	line-height: 1.2;
	margin: 0 0 1em;
}

h2 {
	font-size: 1.15em;
	line-height: 1.25;
	margin: 1.8em 0 0.6em;
}

p,
ul,
ol,
table {
	margin-top: 0;
	margin-bottom: 1em;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1em;
}

th,
td {
	border: 1px solid black;
	padding: 0.35em 0.45em;
	text-align: left;
	vertical-align: top;
}

code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.95em;
}

.media-preview-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 1.1em 1.2em;
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.media-preview-list li {
	margin: 0;
	padding: 0;
}

.media-preview-list a {
	display: block;
}

.media-preview-list img {
	display: block;
	width: 100%;
	height: 7.5rem;
	object-fit: contain;
	border: 1px solid #999;
	background: #f4f4f4;
}

.media-preview-list span {
	display: block;
	margin-top: 0.35em;
	font-weight: bold;
}

.media-preview-list p {
	margin: 0.2em 0 0;
}

html.video-open {
	overflow: hidden;
}

.video-dialog {
	box-sizing: border-box;
	width: min(64rem, calc(100% - 2rem));
	max-width: none;
	max-height: calc(100dvh - 2rem);
	margin: auto;
	padding: 1rem;
	border: 1px solid #666;
	background: white;
	color: black;
	overflow: auto;
}

.video-dialog:not([open]) {
	display: none;
}

.video-dialog::backdrop {
	background: rgb(0 0 0 / 55%);
}

.video-dialog-header {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 0.75rem;
}

.video-dialog-header h2 {
	flex: 1;
	min-width: 0;
	margin: 0.3rem 0 0;
	overflow-wrap: anywhere;
}

.video-dialog-close {
	display: grid;
	place-items: center;
	flex: 0 0 2rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 1px solid #999;
	border-radius: 0;
	background: white;
	color: black;
	font: 1.5rem/1 Arial, sans-serif;
	cursor: pointer;
}

.video-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 200px;
	background: black;
}

.video-player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.video-caption {
	margin: 0.75rem 0 0.5rem;
}

.video-external {
	margin: 0;
}

@media (max-width: 720px) {
	body {
		margin: 1rem;
	}

	table {
		display: block;
		overflow-x: auto;
	}
}
