/* Minimal homepage styles. Replaces the full Bootstrap bundle. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

body {
  margin: 0;
  padding: 20px 0;
  color: #333;
  background: #fff;
  font: 14px/1.42857143 "Open Sans", sans-serif;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #0056b3;
  text-decoration: underline;
}

p {
  margin: 0 0 10px;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
}

h3,
h4,
h6 {
  line-height: 1.1;
}

h3 {
  margin: 0;
  font-size: 24px;
}

h4,
h6 {
  margin: 10px 0;
}

h4 {
  font-size: 18px;
  font-weight: 600;
}

h6 {
  font-size: 12px;
}

.container {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
  padding: 0 15px;
}

.header {
  min-height: 60px;
  padding: 0 15px;
  border-bottom: 1px solid #e5e5e5;
}

.header h3 {
  padding-bottom: 19px;
  font-weight: 500;
  line-height: 40px;
  white-space: nowrap;
}

.nav {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.nav > li {
  position: relative;
  display: block;
  float: left;
  margin-bottom: 0;
}

.nav > li > a {
  display: block;
  padding: 10px 15px;
  border-radius: 4px;
}

.nav > li > a:hover,
.nav > li > a:focus {
  background: #eee;
  text-decoration: none;
}

.pull-right {
  float: right;
}

.pull-left {
  float: left;
}

.top-gap {
  margin-top: 25px;
}

.media {
  overflow: hidden;
}

.media-left {
  margin-right: 10px;
}

.media-body {
  overflow: hidden;
  width: auto;
}

.image {
  display: block;
}

.img-rounded {
  border-radius: 6px;
}

.col-lg-12 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding: 0 15px;
}

.tiny {
  font-size: 6pt;
}

.paper-title {
  color: #551a8b;
  font-weight: bold;
}

.paper-conf {
  font-style: italic;
}

.corresponding-author-mark {
  display: inline-block;
  margin-left: 4px;
  color: #007bff;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
  vertical-align: baseline;
}

.callout {
  position: relative;
  margin: 15px 0;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-left: 4px solid #6c757d;
  border-radius: 3.75px;
  background: #f8f9fa;
}

.callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 600;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-success {
  border-color: #c3e6cb;
  border-left-color: #28a745;
  color: #155724;
  background: #d4edda;
}

.callout-success h4 {
  color: #0c3d1a;
}

.bibtex-dialog {
  width: min(720px, calc(100% - 30px));
  max-height: min(80vh, 680px);
  padding: 0;
  overflow: hidden;
  color: #333;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.bibtex-dialog::backdrop {
  background: rgba(0, 0, 0, .42);
}

.bibtex-dialog-header,
.bibtex-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.bibtex-dialog-header {
  border-bottom: 1px solid #e5e5e5;
}

.bibtex-dialog-header h4 {
  margin: 0;
}

.bibtex-close {
  padding: 0 4px;
  color: #666;
  border: 0;
  background: transparent;
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.bibtex-content {
  max-height: calc(80vh - 120px);
  margin: 0;
  padding: 16px;
  overflow: auto;
  color: #222;
  background: #f7f7f7;
  border: 0;
  border-radius: 0;
  font: 13px/1.5 Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.bibtex-error {
  margin: 0;
  padding: 16px;
  color: #a94442;
}

.bibtex-actions {
  justify-content: flex-end;
  border-top: 1px solid #e5e5e5;
}

.bibtex-copy {
  padding: 7px 12px;
  color: #fff;
  border: 1px solid #0070e8;
  border-radius: 4px;
  background: #007bff;
  cursor: pointer;
}

.bibtex-copy:hover,
.bibtex-copy:focus {
  background: #0069d9;
}

.bibtex-copy:disabled {
  opacity: .55;
  cursor: wait;
}

.bibtex-raw {
  padding: 7px 4px;
}

@media (min-width: 800px) {
  .top-gap {
    margin-top: 0;
  }
}

@media (min-width: 768px) {
  .header {
    margin-bottom: 30px;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 520px) {
  .header h3 {
    padding-bottom: 10px;
  }

  .nav > li > a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .callout {
    margin: 10px 0;
    padding: 7.5px 10px;
  }

  .callout h4 {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
