/* jemdoc CSS - minimalist academic homepage style */

html {
  background-color: #eeeeee;
}

body {
  font-family: Georgia, Helvetica, Arial, Verdana, san-serif, Times;
  color: #000;
  background-color: #ffffff;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 50px;
  padding-right: 50px;
  padding-top: 10px;
  padding-bottom: 30px;
  max-width: 960px;
}

#layout-content {
  position: relative;
  padding-top: 0em;
  padding-left: 1em;
  padding-right: 1em;
  border: none;
  background: white;
  text-align: left;
  vertical-align: top;
}

.language-switcher {
  position: absolute;
  top: -0.35em;
  right: 1em;
  color: #777;
  font-size: 0.9em;
  line-height: 1.5;
  white-space: nowrap;
}

.language-switcher [aria-current="page"] {
  color: #000;
}

.language-divider {
  margin: 0 0.45em;
  color: #aaa;
}

#toptitle {
  padding-bottom: 0.2em;
  margin-bottom: 1.5em;
}

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

@media print {
  .language-switcher {
    display: none;
  }

  #layout-menu {
    display: none;
  }
}

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

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

/* Typography */
h1, h2, h3 {
  color: #527bbd;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
  padding-bottom: 0.2em;
  line-height: 1;
  padding-top: 0.5em;
  border-bottom: 1px solid #aaaaaa;
}

h1 {
  font-size: 165%;
  padding-bottom: 0.3em;
}

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

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

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

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

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

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

em {
  font-style: italic;
}

strong {
  font-weight: bold;
}

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

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

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

li {
  margin-top: 0.9em;
}

.timeline-entry {
  line-height: 1.35;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 1.5em;
  align-items: baseline;
}

.entry-row > :last-child {
  text-align: right;
  white-space: nowrap;
}

.entry-subheading {
  margin-top: 0.12em;
}

.entry-description {
  margin-top: 0.38em;
}

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

/* Mobile layout: keep this block after the generic .entry-* rules above,
   so the tighter mobile spacing is not overridden by them. */
@media screen and (max-width: 640px) {
  body {
    margin-top: 0;
    margin-bottom: 0;
    padding: 16px 14px 24px;
  }

  #layout-content {
    padding-left: 0;
    padding-right: 0;
  }

  .language-switcher {
    top: -0.7em;
    right: 0;
  }

  #toptitle {
    padding-right: 7.5em;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100% !important;
  }

  table td:last-child {
    margin-top: 1em;
  }

  table img {
    height: 180px;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75em;
  }

}

img {
  border: none;
}

/* BibTeX details toggle */
details {
  display: inline;
}

details[open] summary {
  margin-bottom: 4px;
}

details pre {
  display: block;
  border-left: 3px solid #ddd;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.82em;
  line-height: 1.4;
}

details pre::selection {
  background: #b3d4fc;
}

/* Footer */
#footer {
  font-size: small;
  border-top: 1px solid #c0c0c0;
  padding-top: 0.1em;
  margin-top: 4em;
  color: #c0c0c0;
}

#footer a {
  color: #80a0b0;
}

/* Print optimization (save as PDF / Ctrl/Cmd+P) */
@media print {
  html {
    background: #ffffff;
  }
  body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    font-size: 11pt;
  }
  #layout-content {
    padding: 0;
  }
  /* keep the profile photo, but make it smaller */
  table img {
    height: 150px !important;
  }
  /* show full URLs for links so the PDF is self-contained */
  a[href]:after {
    content: "";
  }
  h2 {
    page-break-after: avoid;
  }
  li {
    page-break-inside: avoid;
  }
  #footer {
    color: #888;
  }
}
