/* --------------------------------------------------
   Custom layout refinements for Zhenyu Liao's homepage
   -------------------------------------------------- */

/*
   The hugo-xmin theme wraps ordinary single pages in <main>, but its
   Home page (_index.md) is rendered by list.html and .Content is placed
   directly under <body>. Therefore we style both <main> and the direct
   content children of <body>.
*/

/* General page body on single pages. */
main {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

main p,
main li {
  text-align: justify;
}

/* Home page and other list-like pages whose content is not inside <main>. */
body > p,
body > ul,
body > ol,
body > blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

body > ul li,
body > ol li {
  text-align: justify;
}

/* Keep structural elements visually natural. */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main pre,
main code,
main table,
main img,
body > h1,
body > h2,
body > h3,
body > h4,
body > h5,
body > h6,
body > pre,
body > table,
body > img {
  text-align: left;
}

/* Keep navigation and footer centered as in the original theme. */
nav,
.menu,
.menu li,
footer {
  text-align: center;
}

/* Publications page only. The class is added by head_custom.html. */
body.publications-page main {
  font-size: 0.96em;
}

body.publications-page main h2,
body.publications-page main h3 {
  font-size: 1.08em;
  margin-top: 1.05em;
  margin-bottom: 0.35em;
}

body.publications-page main ol,
body.publications-page main ul {
  margin-top: 0.35em;
  margin-bottom: 0.65em;
  padding-left: 1.55em;
}

body.publications-page main li {
  line-height: 1.32;
  margin-top: 0.28em;
  margin-bottom: 0.28em;
}

body.publications-page main li p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Make secondary information less visually dominant: venues, awards,
   and resource links such as preprint/poster/slides/code. */
body.publications-page main li em {
  font-size: 0.93em;
}

body.publications-page main li font,
body.publications-page main li small {
  font-size: 0.92em;
}

body.publications-page main li a:not(:first-of-type) {
  font-size: 0.92em;
}

body.publications-page main hr {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}