/* Default css file for jemdoc. */

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

body {
	background: white;
	font-family: Georgia, serif;
	padding-bottom: 8px;
	margin: 0;
	text-align: center;
}

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

#layout-menu td {
	background: #f4f4f4;
    vertical-align: top;
}

#layout-content {
	padding-top: 0.0em;
	padding-left: 1.0em;
	padding-right: 1.0em;
    border: none;
    background: white;
    text-align: left;
    vertical-align: top;
    width:1000px;
    margin: auto;
}

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

tt {
    background: #ffffdd;
}

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

a, a > tt {
	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;
}

/* Reduce space if we begin the page with a title. */
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;
}

em {
	font-style: italic;
}

strong {
	font-weight: bold;
}


h1, h2, h3 {
	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;
	font-family: Georgia, serif;
}

h1 {
    color: #800000;
	font-size: 165%;
}

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

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

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

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

pre {
	padding: 0;
	margin: 0;
}

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

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

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

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

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;
}

p + div.codeblock {
	margin-top: -0.6em;
}

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

div.blocktitle {
	font-weight: bold;
	color: #cd7b62;
	margin-top: 1.2em;
	margin-bottom: 0.1em;
}

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, div.infoblock dd p {
	margin-bottom: 0.5em;
}

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

div.codeblock > div.blockcontent {
	background: #f6f6f6;
}

span.pycommand {
	color: #000070;
}

span.statement {
	color: #008800;
}
span.builtin {
	color: #000088;
}
span.special {
	color: #990000;
}
span.operator {
	color: #880000;
}
span.error {
	color: #aa0000;
}
span.comment, span.comment > *, span.string, span.string > * {
	color: #606060;
}

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

#fwtitle {
	margin: 2px;
}

#fwtitle #toptitle {
	padding-left: 0.5em;
	margin-bottom: 0.5em;
}

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

div#toptitle h1, #layout-content div#toptitle h1 {
	margin-bottom: 0.0em;
	padding-bottom: 0.1em;
	padding-top: 0;
	margin-top: 0.5em;
	border-bottom: none;
}

img.eq {
	padding: 0;
	padding-left: 0.1em;
	padding-right: 0.1em;
	margin: 0;
}

img.eqwl {
	padding-left: 2em;
	padding-top: 0.6em;
	padding-bottom: 0.2em;
	margin: 0;
}

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;
}

table + table {
    margin-top: 1em;
}

tr.heading {
    font-weight: bold;
    border-bottom: 2px solid black;
}

img {
    border: none;
}

table.imgtable, table.imgtable td {
    border: none;
    text-align: left;
}

/* Small refinements to the original academic homepage layout. */
body { color: #2d2b30; font-size: 16px; }
#layout-content { width: 100%; max-width: 1120px; padding: 24px 32px 20px; box-sizing: border-box; }
a, a > tt { color: #63065f; }
a:hover { border-bottom: none; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid #63065f; outline-offset: 4px; }
h1, h2 { color: #63065f; }
div#toptitle { border-bottom: 1px solid #cfc6d8; margin-bottom: 26px; padding-bottom: 12px; }
div#toptitle h1 { font-size: 29px; margin: 0; line-height: 1.35; font-weight: 700; }
h2 { font-size: 21px; font-weight: 700; border-bottom: 1px solid #ded9e3; margin-top: 24px; margin-bottom: 12px; padding: 0 0 7px; }
p { line-height: 1.75; margin-bottom: 12px; }
table.imgtable { width: 100%; margin-bottom: 30px; }
table.imgtable td { padding: 0; vertical-align: middle; }
table.imgtable td:first-child { width: 220px; padding-right: 28px; }
table.imgtable td:nth-child(2) { padding-right: 22px; }
table.imgtable td:last-child { width: 220px; vertical-align: middle; }
table.imgtable td p { margin-bottom: 12px; }
.portrait { max-width: 100%; border-radius: 3px; }
.group-logo { display: block; width: 220px; max-width: 100%; height: auto; margin: 0 auto 20px; }
.university-logo { display: block; width: 120px; height: auto; margin: 0 auto; }
table.imgtable font { font-family: Georgia, "Times New Roman", serif; }
div#footer { border-top: 1px solid #ded9e3; color: #88818d; margin-top: 34px; padding-top: 10px; font-size: 12px; }
div#footer-text { float: none; text-align: right; }
@media (max-width: 760px) {
  #layout-content { padding: 22px 24px; }
  table.imgtable td:first-child { width: 175px; padding-right: 22px; }
  table.imgtable td:last-child { width: 125px; }
  .group-logo { width: 125px; }
  .university-logo { width: 80px; }
}
@media (max-width: 620px) {
  #layout-content { padding: 20px; }
  div#toptitle h1 { font-size: 26px; }
  table.imgtable, table.imgtable tbody { display: block; }
  table.imgtable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 18px; }
  table.imgtable td:first-child { width: 125px; padding: 0; }
  table.imgtable td:nth-child(2) { flex: 1; min-width: 150px; padding: 0; font-size: 14px; overflow-wrap: anywhere; }
  table.imgtable td:last-child { display: flex; flex-basis: 100%; align-items: center; justify-content: center; gap: 36px; }
  table.imgtable td:last-child p { margin: 0; }
  .group-logo { width: 160px; margin: 0; }
  .university-logo { width: 65px; }
  h2 { font-size: 20px; }
}
/* Accent #63065F sampled from the dominant purple pixels in the official electronic emblem.
   Source: https://www.nju.edu.cn/__local/F/7A/1D/91723945F34FAA0A9C67700CF8F_13B47AE2_E3A7.png
   This is an asset sample, not a separately published official sRGB specification. */
