/* Common CSS */

/* Site color scheme; see the Colors section of lint/STYLE.md */
:root {
	--perl-blue: #019BC9;
	--effective-perl-teal: #1B7C73;
}

article > header {
	margin-top: 2lh;
}

#main, .page-width { max-width: 1024px; }

.post-body pre {
	background-color: var(--bs-tertiary-bg);
	border-radius: var(--bs-border-radius-lg);
	padding: 1rem;
	margin-top: 2lh;
	margin-bottom: 2lh;
}

.post-body .code-box {
	margin-top: 1lh;
	margin-left: 2rem;
	margin-right: 5%;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
	margin-top: 1.5lh;
}

.post-body figure {
	margin-top: 1lh;
}

.post-body video {
	display: block;
	margin-top: 2lh;
	margin-bottom: 2lh;
	margin-left: auto;
	margin-right: auto;
}

.post-body table {
	margin: 1lh auto;
}

.post-body th {
	background-color: lightyellow;
}

.post-body th,
.post-body td {
	border: 1px solid gray;
	padding-left: 1em;
	padding-right: 1em;
	hyphens: none;
}

.post-body blockquote {
	margin-top: 2lh;
	margin-bottom: 2lh;
	margin-left: 5%;
	margin-right: 5%;
}

.post-body ul,
.post-body ol {
	margin-top: 1lh;
	margin-bottom: 1lh;
}

.post-body pre code.hljs {
	background: transparent;
	padding: 0;
}

.navbar-nav .nav-item:first-child .nav-link {
	padding-left: 0;
}

#main > footer.post {
	background-color: #B8FFB8;
}

.post-body {
	font-size: 1.125rem;
	text-align: justify;
	hyphens: auto;
}

.post-body > p:first-of-type {
	margin-top: 2lh;
}

.scientific-name,
.book-title,
.magazine-title {
	font-style: italic;
}

/* Plain red text, with no "danger" meaning */
.text-red {
	color: var(--bs-red);
}

/* An update box, such as a notice that a post is out of date */
.post-body .note.update {
	margin-top: 2lh;
	margin-bottom: 2lh;
	padding: 1rem 1.25rem;
	background-color: var(--bs-warning-bg-subtle);
	border-left: 0.25rem solid var(--bs-warning-border-subtle);
	border-radius: var(--bs-border-radius);
	font-size: 1rem;
	text-align: left;
	hyphens: none;
}

.post-body .note.update > :last-child {
	margin-bottom: 0;
}
