/* Base styles follow the Academic Project Page Template (as used by dex-umi.github.io). */

body {
  font-family: 'Noto Sans', sans-serif;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Buttons without a link yet ("Coming Soon") keep the normal dark look. */
.link-block a.is-coming-soon,
.link-block a.is-coming-soon:hover {
  cursor: default;
  background-color: #363636;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
}

/* Same as the red highlight line on dex-umi.github.io */
.publication-award {
  color: red;
  font-weight: bold;
}

.title-icon {
  height: 1em;
  margin-left: 0.15em;
  vertical-align: -0.15em;
}

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-title {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.title.is-5 {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Figures */

.paper-figure {
  margin: 1.5rem 0 2rem;
}

.paper-figure img,
.figure-column img {
  display: block;
  width: 100%;
  height: auto;
}

.figure-caption {
  margin-top: 0.75rem;
  margin-bottom: 30px;
}

.figure-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.figure-column {
  flex: 1 1 0;
  min-width: 0;
}

.figure-column.narrow {
  flex: 0.35 1 0;
}

.figure-column.wide {
  flex: 0.65 1 0;
}

.figure-column .subtitle {
  margin-top: 0.75rem;
}

/* Policy prediction grid: row labels on the left, K headers on top */

.preds-grid {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 8px 12px;
}

.preds-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.preds-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 0.95rem;
}

.preds-label {
  font-size: 0.95rem;
  text-align: center;
}

/* Result tables, styled like LaTeX booktabs. Every rule is drawn by a single element spanning
   the table (table border or a full-width rule row), so no browser leaves seams between cells. */

.booktabs {
  margin: 0.5rem auto 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-top: 2px solid #363636;    /* \toprule */
  border-bottom: 2px solid #363636; /* \bottomrule */
  color: #363636;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.booktabs th,
.booktabs td {
  padding: 0.2em 0.55em;
  border: none;
  font-weight: normal;
  vertical-align: middle;
  white-space: nowrap;
}

/* :not([align]) outranks Bulma's "table td:not([align]) { text-align: inherit }" reset */
.booktabs th:not([align]),
.booktabs td:not([align]) {
  text-align: center;
}

.booktabs .row-label:not([align]) {
  text-align: left;
}

.booktabs thead tr:first-child > * {
  padding-top: 0.45em;
}

.booktabs tbody tr:last-child > * {
  padding-bottom: 0.45em;
}

/* Keep sub/superscripts (E_base, Switches^+) from changing row heights and baselines */
.booktabs sub,
.booktabs sup {
  line-height: 0;
}

/* \midrule */
.booktabs tr.rule > td {
  height: 0.8em;
  padding: 0;
  background: linear-gradient(#363636, #363636) center / 100% 1px no-repeat;
}

/* \cmidrule(lr) */
.booktabs th.cmid {
  padding-bottom: 0.4em;
  background: linear-gradient(#363636, #363636) center bottom / calc(100% - 0.8em) 1px no-repeat;
}

.table-caption {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

/* Small screens */

@media screen and (max-width: 768px) {
  .publication-title.is-1 {
    font-size: 2rem;
  }

  .content.has-text-justified {
    text-align: left !important;
  }

  .figure-row {
    flex-direction: column;
    align-items: stretch;
  }

  .figure-column,
  .figure-column.narrow,
  .figure-column.wide {
    flex: none;
    width: 100%;
  }

  .preds-grid {
    grid-template-columns: 4.5rem 1fr;
  }

  .preds-header,
  .preds-label {
    font-size: 0.75rem;
  }
}
