/* Personal profile styling. */

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

body {
	background: #ffffff;
	/* font-family: Georgia, serif; */
	font-family: 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
	padding-bottom: 8px;
	margin: 0;
	text-align: center;
	color: #403b52;
	background-image: none;
}

#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: 42px 54px 24px;
	border: none;
	background: #ffffff;
	text-align: left;
	vertical-align: top;
	max-width: 930px;
	margin: auto;
	box-shadow: 0 24px 70px rgba(91, 72, 126, .14);
	min-height: 100vh;
	box-sizing: border-box;
}

#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: #7653a6;
	text-decoration: none;
	transition: all 0.5s;
}

a:hover {
	/* border-bottom: 1px gray dotted; */
	color: #9a75c5;

}

#layout-menu a.current:link,
#layout-menu a.current:visited {
	color: #60438d;
	border-bottom: 1px gray solid;
}

#layout-menu a:link,
#layout-menu a:visited,
#layout-menu a:hover {
	color: #7653a6;
	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: 4px 0 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid #ddd2ed;
}

.eyebrow { margin: 0 0 12px; color: #805caf; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.tagline { margin: 12px 0 0; color: #777087; font-size: 16px; }
.name-cn, .name-en { display: inline-block; font-weight: 700; }
.name-cn { color: #805caf; font-size: 26px; margin-right: 10px; }
.name-en { color: #403b52; font-size: 24px; }
.name-en small { color: #8d849b; font-size: 14px; font-weight: 500; }
.role { font-weight: 600; }
.intro { max-width: 760px; color: #665e73; font-size: 17px; line-height: 1.75; }
.section-mark { display: inline-block; margin-right: 12px; color: #805caf; font-size: 12px; letter-spacing: 1px; vertical-align: middle; }
.research-list { margin-top: 18px; padding: 17px 24px 17px 40px; border-left: 3px solid #bda4da; background: #f7f3fc; }
.research-list li::marker { color: #805caf; }

/* 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: -apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		Roboto,
		'Helvetica Neue',
		Arial,
		'Noto Sans',
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji',
		'Segoe UI Symbol',
		'Noto Color Emoji';
}

h1 {
	color: #4b3b64;
	font-size: 42px;
	letter-spacing: 0;
}

h2 {
	color: #4b3b64;
	padding-top: 0.8em;
	font-size: 22px;
	border-bottom: 1px solid #ddd2ed;
}

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

.profile { display: grid; grid-template-columns: 170px 1fr 155px; gap: 28px; align-items: center; padding: 26px; border: 1px solid #e2d8ef; border-radius: 14px; background: linear-gradient(120deg, #faf8fd, #ffffff); }
.profile .image { text-align: center; }
.profile #profile { width: 150px; height: 150px; border: 6px solid #ffffff; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 25px rgba(128, 92, 175, .22); transition: transform .25s ease; }
.profile #profile.is-pressed { transform: scale(.96) rotate(-2deg); }
.meta p { margin: 0; line-height: 1.55; }
.link { border-left: 1px solid #e2d8ef; padding-left: 18px; }
.link img { max-width: 100%; height: auto; opacity: .78; transition: opacity .2s ease, transform .2s ease; }
.link img:hover { opacity: 1; transform: translateY(-2px); }

pre {
	padding: 0;
	margin: 0;
}

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

@media (max-width: 720px) {
	#layout-content { padding: 28px 20px 18px; }
	.profile { grid-template-columns: 1fr; text-align: center; gap: 18px; padding: 22px 16px; }
	.link { border-left: 0; border-top: 1px solid #e2d8ef; padding: 18px 0 0; display: flex; justify-content: center; gap: 20px; }
	.meta { text-align: left; }
	.name-cn, .name-en { display: block; }
	.name-cn { margin-right: 0; }
	h1 { font-size: 34px; }
	.tagline { font-size: 14px; line-height: 1.5; }
}

div#footer a {
	color: #9b8caf;
}

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

li::marker {
	color: #0958d9;
	/* font-size: 1.2em; */
}

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

div.profile {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: stretch;
}

div.profile div.image {
	width: 240px;
	/* background-color: red; */
	display: flex;
	justify-content: center;
	align-items: center;
}

div.profile div.meta {
	flex: 1;
	padding-left: 16px;
	/* background-color: green; */
}

div.profile div.link {
	width: 200px;
	/* background-color: blue; */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

::selection {
	color: #fff;
	background: #597ef7;
}