/* Plain academic-homepage styling. */
:root {
  --text: #222;
  --muted: #666;
  --rule: #ccc;
  --link: #1a0dab;
  --visited: #609;
  --bg: #fff;
  --shade: #f5f5f0;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

a { color: var(--link); }
a:visited { color: var(--visited); }

header.site {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
header.site h1 {
  font-size: 1.6em;
  font-weight: normal;
  margin: 0;
}
header.site h1 a, header.site h1 a:visited { color: var(--text); text-decoration: none; }
header.site .tagline { color: var(--muted); font-style: italic; margin: 2px 0 6px; }
header.site nav a { margin-right: 14px; }

h2 { font-size: 1.25em; font-weight: normal; border-bottom: 1px solid var(--rule); padding-bottom: 2px; margin: 1.4em 0 .6em; }

.status {
  font-size: .85em;
  color: var(--muted);
  background: var(--shade);
  border: 1px solid #e2e2da;
  padding: 6px 10px;
  margin: 0 0 18px;
}
.status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3a8f3a; margin-right: 6px; vertical-align: 1px; }

/* Search form */
form.search fieldset { border: 1px solid var(--rule); padding: 10px 12px 12px; margin: 0 0 10px; }
form.search legend { padding: 0 4px; color: var(--muted); font-size: .9em; }
.row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.row + .row { margin-top: 8px; }
.row label { font-size: .92em; }
input[type=text], select, input[type=number] {
  font: inherit;
  font-size: .92em;
  padding: 3px 5px;
  border: 1px solid #999;
  background: #fff;
  color: var(--text);
  max-width: 100%;
}
input[type=text] { flex: 1 1 240px; min-width: 0; }
input[type=number] { width: 5.2em; }
button, .button {
  font: inherit;
  font-size: .92em;
  padding: 3px 12px;
  border: 1px solid #888;
  background: #eee;
  cursor: pointer;
}
button:hover { background: #e2e2e2; }
.reset { font-size: .9em; }

.summary { color: var(--muted); font-size: .92em; margin: 14px 0 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }

/* Result list */
ol.results { padding-left: 2.6em; margin: 8px 0 0; }
ol.results li { margin: 0 0 14px; }
ol.results .title { font-size: 1.02em; }
ol.results .authors { display: block; }
ol.results .meta { display: block; color: var(--muted); font-size: .88em; }
.noresults { font-style: italic; color: var(--muted); }

/* Pagination */
nav.pager { margin: 22px 0 8px; text-align: center; font-size: .95em; }
nav.pager a, nav.pager span { display: inline-block; padding: 1px 6px; margin: 2px 1px; }
nav.pager .current { font-weight: bold; border: 1px solid var(--rule); }
nav.pager .disabled { color: #aaa; }
nav.pager .pagenote { margin: 6px 0 0; font-size: .88em; color: var(--muted); }
.summary .capnote { flex-basis: 100%; font-style: italic; }

/* Detail page */
.paper h2.ptitle { border: none; font-size: 1.4em; line-height: 1.3; margin: .4em 0 .3em; }
.paper .authors { font-size: 1.05em; margin: 0 0 12px; }
table.biblio { border-collapse: collapse; margin: 6px 0 14px; font-size: .93em; width: 100%; }
table.biblio th { text-align: left; vertical-align: top; font-weight: normal; color: var(--muted); padding: 3px 14px 3px 0; white-space: nowrap; width: 1%; }
table.biblio td { padding: 3px 0; overflow-wrap: anywhere; }
.abstract { text-align: justify; hyphens: auto; }
.links li { margin-bottom: 4px; }
pre.bibtex { background: var(--shade); border: 1px solid #e2e2da; padding: 10px; font-size: .8em; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.small { font-size: .88em; color: var(--muted); }

footer.site { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 8px; font-size: .82em; color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  ol.results { padding-left: 2.1em; }
  table.biblio th { white-space: normal; }
}
