/* jemdoc-style stylesheet for the notes/blog section.
   Based on the default jemdoc css (http://jemdoc.jaboc.net/). */

table#tlayout {
    border: none;
    border-collapse: separate;
    background: white;
    width: 100%;
}

body {
	background: white;
	font-family: "Times New Roman", Times, serif;
	padding-bottom: 8px;
	margin: 0;
	font-size: 15px;
	color: #000;
}

#layout-menu {
	background: #f6f6f6;
	border: 1px solid #dddddd;
	padding-top: 0.5em;
	padding-left: 8px;
	padding-right: 8px;
	font-size: 1.0em;
	width: 14em;
	min-width: 14em;
	text-align: left;
	vertical-align: top;
}

#layout-content {
	padding-top: 0.0em;
	padding-left: 1.0em;
	padding-right: 1.0em;
	border: none;
	text-align: left;
	vertical-align: top;
	width: 100%;
}

/* Center a readable column inside the content cell. */
#layout-content > * {
	max-width: 780px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1em;
	padding-right: 1em;
	box-sizing: border-box;
}

#layout-content img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	height: auto;
}

#layout-menu a {
	line-height: 1.5em;
	margin-left: 0.5em;
}

tt, code {
	background: #ffffdd;
}

pre, tt, code {
	font-size: 90%;
	font-family: monaco, monospace;
}

pre code {
	background: transparent;
}

a, a > tt, a > code {
	color: #224b8d;
	text-decoration: none;
}

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

#layout-menu a.current:link, #layout-menu a.current:visited {
	color: #022b6d;
	border-bottom: 1px gray solid;
}
#layout-menu a:link, #layout-menu a:visited, #layout-menu a:hover {
	color: #527bbd;
	text-decoration: none;
}
#layout-menu a:hover {
	text-decoration: none;
}

div.menu-category {
	border-bottom: 1px solid gray;
	margin-top: 0.8em;
	padding-top: 0.2em;
	padding-bottom: 0.1em;
	font-weight: bold;
}

div.menu-item {
	padding-left: 16px;
	text-indent: -16px;
}

div#toptitle {
	padding-bottom: 0.2em;
	margin-bottom: 1.5em;
	border-bottom: 3px double gray;
}

div#toptitle + h2, div#toptitle + h3 {
	margin-top: -0.7em;
}

div#subtitle {
	margin-top: 0.0em;
	margin-bottom: 0.0em;
	padding-top: 0em;
	padding-bottom: 0.1em;
	color: #555;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}

h1, h2, h3 {
	color: #527bbd;
	margin-top: 0.7em;
	margin-bottom: 0.3em;
	padding-bottom: 0.2em;
	line-height: 1.15;
	padding-top: 0.5em;
	border-bottom: 1px solid #aaaaaa;
	font-weight: bold;
}

h1 {
	font-size: 165%;
}

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

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

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

h4 {
	font-style: italic;
	color: #000000;
}

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

pre {
	padding: 0;
	margin: 0;
	white-space: pre-wrap;
	overflow-wrap: break-word;
}

div#footer {
	font-size: small;
	border-top: 1px solid #c0c0c0;
	padding-top: 0.1em;
	margin-top: 4.0em;
	color: #c0c0c0;
}

div#footer a {
	color: #80a0b0;
}

div#footer-text {
	float: left;
	padding-bottom: 8px;
}

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

dt {
	margin-top: 0.5em;
	margin-bottom: 0;
}

dl {
	margin-left: 20px;
}

dd {
	color: #222222;
}

dd > *:first-child {
	margin-top: 0;
}

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

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

li ul, li ol {
	margin-top: -0.3em;
}

ol {
	list-style-position: outside;
	list-style-type: decimal;
}

li p, dd p {
	margin-bottom: 0.3em;
}

ol ol {
	list-style-type: lower-alpha;
}

ol ol ol {
	list-style-type: lower-roman;
}

blockquote {
	margin: 1em 0 1em 0;
	padding: 0.3em 0.8em;
	border-left: 3px solid #c0c0c0;
	color: #444;
}

blockquote p:last-child {
	margin-bottom: 0;
}

/* Code blocks (kramdown/rouge output), styled like jemdoc codeblocks. */
div.highlighter-rouge, figure.highlight, div.codeblock, div.infoblock {
	margin-top: 1.2em;
	margin-bottom: 1.3em;
}

div.highlighter-rouge pre.highlight, figure.highlight pre, div.blockcontent {
	border: 1px solid silver;
	background: #f6f6f6;
	padding: 0.3em 0.5em;
	overflow-x: auto;
}

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

/* Tables inside notes */
#layout-content table {
	border: 2px solid black;
	border-collapse: collapse;
	margin: 1em auto;
}

#layout-content td, #layout-content th {
	padding: 2px 0.5em;
	text-align: center;
	border: 1px solid gray;
}

#layout-content th {
	font-weight: bold;
	border-bottom: 2px solid black;
}

img {
	border: none;
}

/* Post list on the notes index page */
div.post-item {
	margin-bottom: 0.4em;
	padding-left: 16px;
	text-indent: -16px;
}

span.post-date {
	color: #555;
	font-size: 90%;
	white-space: nowrap;
}

/* Small screens: stack the menu above the content. */
@media (max-width: 700px) {
	table#tlayout, table#tlayout tbody, table#tlayout tr, table#tlayout td {
		display: block;
		width: auto;
	}
	#layout-menu {
		width: auto;
		min-width: 0;
		margin-bottom: 1em;
	}
	#layout-content > * {
		padding-left: 0;
		padding-right: 0;
	}
}

@media print {
	#layout-menu { display: none; }
}
