/* Based on the default jemdoc stylesheet (http://jemdoc.jaboc.net/). */

body {
	background: white;
	font-family: Georgia, serif;
	margin: 0;
}

#layout-content {
	padding-top: 1.0em;
	padding-left: 1.0em;
	padding-right: 1.0em;
	border: none;
	background: #ffffed;
	text-align: left;
	vertical-align: top;
	min-width: 500px;
	max-width: 2000px;
	font-size: 100%;
}

a {
	color: #224b8d;
	text-decoration: none;
}

a:hover {
	border-bottom: 1px gray dotted;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}

h1, h2, h3 {
	color: #CC1919;
	margin-top: 0.7em;
	margin-bottom: 0.3em;
	padding-bottom: 0.2em;
	line-height: 1.0;
	padding-top: 0.5em;
	border-bottom: 1px solid #aaaaaa;
}

h1 {
	font-size: 165%;
}

h2 {
	padding-top: 0.8em;
	font-size: 125%;
}

h2 + h3 {
	padding-top: 0.2em;
}

h2.with-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 0 1em;
}

h2 .heading-links {
	color: black;
	font-size: 80%;
	font-weight: normal;
}

h3 {
	font-size: 110%;
	border-bottom: none;
}

p {
	margin-top: 0.0em;
	margin-bottom: 0.8em;
	padding: 0;
	line-height: 1.3;
}

div#footer {
	font-size: small;
	border-top: 1px solid #c0c0c0;
	padding-top: 0.3em;
	padding-bottom: 1em;
	margin-top: 1.5em;
	color: #a0a0a0;
}

ul, ol {
	margin-top: 0.2em;
	padding-top: 0;
	margin-bottom: 0.8em;
}

ul {
	list-style-position: outside;
	list-style-type: square;
}

p + ul, p + ol {
	margin-top: -0.5em;
}

li p {
	margin-bottom: 0.3em;
}

div.infoblock {
	margin-right: 0%;
	margin-top: 1.2em;
	margin-bottom: 1.3em;
}

div.blockcontent {
	border: 1px solid silver;
	padding: 0.3em 0.5em;
}

div.infoblock > div.blockcontent {
	background: #ffffee;
}

div.blockcontent p + ul, div.blockcontent p + ol {
	margin-top: 0.4em;
}

div.infoblock p {
	margin-bottom: 0em;
}

div.infoblock li p {
	margin-bottom: 0.5em;
}

div.infoblock p + p {
	margin-top: 0.8em;
}

p.notice strong {
	color: #CC1919;
}

/* Publication lists: shorter lines, more air, and authors/venue stepped down in tone under each title. */
ul.pub-list li {
	max-width: 52em;
}

div.infoblock ul.pub-list li p {
	margin-bottom: 1em;
	line-height: 1.4;
}

.pub-authors, .pub-venue {
	font-size: 95%;
}

.pub-authors {
	color: #333;
}

.pub-venue {
	color: #6a6a6a;
}

#layout-content h1:first-child, #layout-content h2:first-child, #layout-content h3:first-child {
	margin-top: -0.7em;
}

img {
	border: none;
}

table {
	border: 2px solid black;
	border-collapse: collapse;
}

td {
	padding: 2px;
	padding-left: 0.5em;
	padding-right: 0.5em;
	text-align: center;
	border: 1px solid gray;
}

/* Intro: portrait floated left so the text wraps around and below it. */
div.intro {
	display: flow-root;
}

img.portrait {
	float: left;
	margin: 0.8em 1.2em 0.5em 0;
}

div.intro h1 {
	margin-top: 0;
}

/* Each block sits wholly beside the portrait or wholly below it, never split across both. */
div.intro h1, div.intro p {
	display: flow-root;
}

/* Small-screen adjustment (not in the original jemdoc stylesheet). */
@media (max-width: 540px) {
	#layout-content {
		min-width: 0;
	}

	img.portrait {
		float: none;
		display: block;
	}
}
