/* Styles for the 2016 lab-notebook blog posts, rendered in the site theme.
   Handles both the old Bootstrap-style markup (DbD series) and Evernote
   exports (WoW series) without touching their content markup. */

.post-main {
	max-width: 860px;
	margin: 0 auto;
	padding: 2em 15px 3em;
}

/* Neutralize the legacy Bootstrap grid inside posts */
.post-main .container,
.post-main .row,
.post-main [class*="col-"] {
	width: auto;
	max-width: 100%;
	padding: 0;
	margin: 0;
	float: none;
}

.post-main h1,
.post-main h3 {
	color: var(--primary-accent);
	font-size: 1.6rem;
	line-height: 1.3;
	margin: 0.8em 0 0.6em;
}

.post-main h4 {
	color: var(--secondary-accent);
	font-family: var(--font-monospace);
	font-size: 1.1rem;
	margin: 1.4em 0 0.4em;
}

.post-main img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	margin: 0.5em 0;
}

.post-main code {
	display: block;
	background-color: var(--content-panel-bg);
	border: 1px solid var(--primary-accent);
	border-radius: 6px;
	padding: 1em 1.2em;
	font-family: var(--font-monospace);
	font-size: 0.9em;
	line-height: 1.5;
	overflow-x: auto;
	margin: 0.5em 0;
}

.post-main ul {
	padding-left: 1.4em;
}

.post-main li {
	margin: 0.3em 0;
}

.post-main a {
	word-break: break-word;
}

/* The "note from present-day me" preface box */
.post-note {
	border-left: 4px solid var(--primary-accent);
	background: rgba(0, 160, 255, 0.07);
	padding: 12px 16px;
	margin: 1em 0 1.5em;
	font-style: italic;
}

/* Prev / next navigation between series parts */
.post-nav {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 2.5em;
	padding-top: 1.2em;
	border-top: 1px solid var(--border-color);
	font-family: var(--font-monospace);
	font-size: 0.9rem;
}
