
/* One text face everywhere (fonts.css), Latin Modern Mono for code, New Computer Modern for math (MathJax). */
body, button, input, select, textarea,
.publication-title, .publication-authors, .teaser {
  font-family: var(--font-text);
}

code, pre, kbd, samp {
  font-family: var(--font-mono);
}

.title-icon {
  height: 1.3em;
  width: auto;
  vertical-align: -0.28em;
  margin-right: 0.18em;
}

.publication-title {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

/* Author names without a link are shown in the link colour of index.css too, but nothing happens on hover or click */
.publication-authors .author-name {
  color: hsl(204, 86%, 53%);
}

/* Sections alternate between white and a light grey band */
.section.is-band {
  background-color: #f5f5f5;
}

/* Bulma's code blocks are #f5f5f5 as well; on a band the BibTeX block stays white */
.section.is-band pre {
  background-color: #fff;
}

/* On phones the title gets a smaller size and may break anywhere */
@media screen and (max-width: 600px) {
  .title.is-1.publication-title {
    font-size: 2.2rem;
  }

  .publication-title .nowrap {
    white-space: normal;
  }
}

.teaser-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Tables with several panels (static/js/panel_tables.js): one panel at a time */
.result-table tr[hidden] {
  display: none;
}

.rt-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.2rem 0 0.2rem 0;
}

.rt-controls .button {
  margin-bottom: 0 !important;
}

/* Button icons are inline SVG (no icon font); one em high, in the button's text colour, as Font Awesome draws them */
.publication-links .button-icon {
  height: 1em;
  width: auto;
  fill: currentColor;
}

/* Figures converted from the paper's PDFs */
.paper-figure {
  margin: 1.5rem 0 1.75rem 0 !important;
}

.paper-figure img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

.paper-figure.is-medium img {
  max-width: 780px;
}

.figure-caption {
  font-size: 0.95rem;
  color: #4a4a4a;
}

/* Bulma sets captions in .content figures to italic; keep them upright like the main caption */
.content figure figcaption.figure-caption {
  font-style: normal;
}

/* Result tables */
.result-table {
  margin: 1.25rem auto 0.5rem auto;
}

/* Bulma's .content makes tables full width; the result tables keep their natural width, centred */
.content table.result-table {
  width: auto;
}

.content table.result-table td,
.content table.result-table th {
  padding: 0.3em 0.85em;
}

.result-table th,
.result-table td {
  text-align: right !important;
  white-space: nowrap;
}

.result-table th:first-child,
.result-table td:first-child {
  text-align: left !important;
}

.result-table caption {
  caption-side: top;
  font-weight: 700;
  color: #363636;
  padding-bottom: 0.4rem;
}

.result-table th.span-head {
  text-align: center !important;
  font-weight: 400;
}

.result-table th.lead {
  vertical-align: bottom;
}

/* the paper's own rows: name in bold and the table tint of the paper (E8E8FF) */
.result-table tr.ours td {
  background: #e8e8ff;
}

.result-table tr.ours td:first-child {
  font-weight: 700;
}

.result-table tr.delta td {
  color: #4a4a4a;
}

.result-table tr.group td {
  font-style: italic;
  color: #7a7a7a;
  background: #f5f5f5;
}

.table-container {
  overflow-x: auto;
}

.table-note {
  font-size: 0.9rem;
  color: #4a4a4a;
}

pre code {
  white-space: pre;
}

/* the \quad sub-rows of the paper's tables */
.result-table tr.sub td:first-child {
  padding-left: 1.6em;
}

/* Displayed equations quoted from the paper */
.content p.display-equation {
  overflow-x: auto;
  margin: 0.5rem 0 1rem 0;
}
