* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #fff;
  color: #111;
}

.paper {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 4rem;
  font-family: 'Times New Roman', Times, 'Liberation Serif', Georgia, serif;
  font-size: 17px;
  line-height: 1.42;
  overflow-wrap: break-word;
  text-align: justify;
  hyphens: auto;
  font-variant-ligatures: none;
}

.columns {
  display: block;
}

.appendix,
.fn,
.pdf-only {
  display: none;
}

.paper .pdf-note {
  text-indent: 0;
  font-size: 0.92em;
  color: #444;
}

.paper span.math {
  font-style: italic;
}

.paper h3 {
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 700;
  margin: 1.1em 0 0.4em;
  text-align: left;
}

.paper code {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92em;
}

.paper .pdf-note a {
  color: #111;
}

.paper-pdf {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-align: right;
}

.paper-pdf a {
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
}

.paper header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.paper h1 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  text-align: center;
}

.paper .author,
.paper .email,
.paper .date {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  text-align: center;
  text-indent: 0;
}

.paper .email a {
  color: #111;
  text-decoration: none;
}

.paper .abstract {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 1.25rem 0 1.5rem;
  text-indent: 0;
}

.paper h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.35em 0 0.5em;
  text-align: left;
}

.paper p {
  margin: 0 0 0.55em;
  text-indent: 1.1em;
}

.paper .abstract,
.paper h2 + p,
.paper h3 + p,
.paper ol + p,
.paper ul + p {
  text-indent: 0;
}

.paper ul,
.paper ol {
  margin: 0.35em 0 0.55em 1.2em;
  padding: 0;
  text-align: left;
}

.paper li {
  margin: 0.2em 0;
}

.paper ol.refs {
  list-style: none;
  margin: 0.4em 0 0;
}

.paper ol.refs li {
  margin: 0 0 0.55em 1.6em;
  text-indent: -1.6em;
}

.paper a.cite,
.paper .refs a {
  color: #111;
  text-decoration: none;
}

@media (max-width: 640px) {
  .paper {
    padding: 1.5rem 1.1rem 3rem;
    font-size: 16.5px;
    text-align: left;
  }

  .paper h1 {
    font-size: 1.35rem;
  }
}

@page {
  size: letter;
  margin: 0.7in;

  @bottom-center {
    content: counter(page);
    font-family: Times, 'Times New Roman', serif;
    font-size: 9pt;
    color: #111;
  }
}

@media print {
  html,
  body {
    background: #fff;
    color: #111;
  }

  .paper-pdf {
    display: none;
  }

  .paper {
    max-width: none;
    margin: 0;
    padding: 0;
    font-family: Times, 'Times New Roman', serif;
    font-size: 10pt;
    line-height: 1.2;
    overflow-wrap: normal;
    text-align: justify;
    hyphens: auto;
    hyphenate-limit-chars: 6 3 3;
    font-variant-ligatures: none;
  }

  .paper header {
    margin-bottom: 0.55em;
  }

  .paper h1 {
    font-size: 17pt;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.45em;
  }

  .paper .author,
  .paper .email,
  .paper .date {
    font-size: 12pt;
    margin: 0.08em 0 0;
  }

  .paper .abstract {
    font-size: 9pt;
    line-height: 1.22;
    margin: 0.7em 0 1em;
  }

  .columns {
    column-count: 2;
    column-gap: 0.28in;
    column-fill: auto;
  }

  .paper h2 {
    font-size: 12pt;
    font-weight: 700;
    margin: 1.15em 0 0.35em;
    break-after: avoid;
    break-inside: avoid;
  }

  .paper h3 {
    font-size: 10pt;
    font-style: italic;
    font-weight: 700;
    margin: 0.85em 0 0.25em;
    break-after: avoid;
    break-inside: avoid;
  }

  .columns > h2:first-child {
    margin-top: 0;
  }

  .paper p {
    margin: 0 0 0.35em;
    text-indent: 1.1em;
    orphans: 2;
    widows: 2;
  }

  .paper ul,
  .paper ol {
    margin: 0.2em 0 0.35em 1.1em;
  }

  .paper li {
    margin: 0.1em 0;
    break-inside: avoid;
  }

  .paper ol.refs li {
    margin: 0 0 0.35em 1.35em;
    text-indent: -1.35em;
    overflow-wrap: break-word;
  }

  .paper a,
  .paper a:visited {
    color: #111;
    text-decoration: none;
  }

  .paper a[href]::after {
    content: none;
  }
}
