*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --content-width: 704px;
}

html, body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  line-height: 1.7;
  color: #1a1a1a;
  padding: 40px 20px 60px;
}

a {
  color: #1a4d8c;
  text-decoration: underline;
  text-decoration-color: rgba(26, 77, 140, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: #1a4d8c;
}

/* Layout containers */
.post {
  max-width: 864px;
  margin: 0 auto;
}

.text {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Header */
.post-header {
  text-align: center;
  margin-bottom: 0;
}

.post-title {
  font-size: 26px;
  font-weight: normal;
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.3;
}

.authors {
  font-size: 14px;
  color: #1a1a1a;
}

.authors .aff {
  color: #666;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.post-links {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
}
.post-links a {
  color: #1a4d8c;
  text-decoration: none;
}
.post-links a:hover {
  text-decoration: underline;
}

/* Section headings */
h2 {
  font-size: 18px;
  font-weight: bold;
  margin: 40px auto 14px;
  padding: 0 0 6px;
  width: 100%;
  max-width: var(--content-width);
  border-bottom: 1px solid #1a1a1a;
  text-align: left;
}

h3 {
  font-size: 14px;
  font-weight: bold;
  margin: 28px auto 8px;
  width: 100%;
  max-width: var(--content-width);
}

/* Body text */
.text p, .text ul, .text ol {
  margin: 0 0 14px;
}
.text ul, .text ol {
  padding-left: 22px;
}
.text li {
  margin-bottom: 6px;
}

.text code {
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Figures */
figure {
  margin: 28px auto;
  width: 100%;
  max-width: var(--content-width);
  text-align: center;
}

figure.fig-wide {
  max-width: var(--content-width);
}

figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

figcaption {
  font-size: 12px;
  color: #444;
  margin: 10px auto 0;
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  text-align: left;
  display: block;
}

figcaption .fig-label {
  font-weight: bold;
  color: #1a1a1a;
}

/* Tables */
.table-wrap {
  width: 100%;
  max-width: var(--content-width);
  margin: 18px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.45;
}

table.results th,
table.results td {
  text-align: center;
  padding: 8px 6px;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

table.results th {
  background: #f5f2eb;
  font-weight: bold;
  border-bottom: 1.5px solid #1a1a1a;
}

table.results td.left {
  text-align: left;
}

/* Summary box */
.summary-box {
  background-color: #f7f5f0;
  border: 1px solid #e3d8cc;
  border-radius: 8px;
  padding: 4px 14px;
  margin: 18px 0;
}

.summary-box p {
  margin: 10px 0;
  line-height: 1.6;
}

/* BibTeX block */
pre.bibtex {
  width: 100%;
  max-width: var(--content-width);
  margin: 8px auto 18px;
  padding: 14px 18px;
  background: #f7f5f0;
  border: 1px solid #e3d8cc;
  border-radius: 6px;
  font-family: 'Menlo', 'Consolas', 'Courier New', monospace;
  font-size: 11.5px;
  line-height: 1.55;
  color: #1a1a1a;
  white-space: pre;
  overflow-x: auto;
}

/* Mobile */
@media (max-width: 599px) {
  body {
    padding: 20px 14px 40px;
  }

  .post-title {
    font-size: 20px;
  }

  h2 {
    font-size: 16px;
  }

  table.results {
    font-size: 11px;
  }

  table.results th,
  table.results td {
    padding: 6px 6px;
  }
}
