html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 2.5rem 1rem 4rem;
  background: #fff;
  color: #363636;
  font-family: "Noto Sans", "Google Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.page {
  max-width: 860px;
  margin: 0 auto;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

h1 {
  margin: 0 0 0.4rem;
  font-family: "Google Sans", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: #363636;
}

.subtitle {
  margin: 0 0 0.55rem;
  font-family: "Google Sans", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #4a4a4a;
}

.authors {
  margin: 0 0 1.1rem;
  font-family: "Google Sans", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: #363636;
}

.links {
  margin: 0;
  font-weight: 700;
}

a {
  color: #3273dc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-family: "Google Sans", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #363636;
}

h3 {
  margin: 1.4rem 0 0.6rem;
  font-family: "Google Sans", "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #363636;
}

p,
li {
  margin: 0 0 0.85rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

figure {
  margin: 1.25rem 0;
}

figure img,
figure video {
  display: block;
  width: 100%;
  height: auto;
}

figure.figure-half {
  width: 50%;
  margin-left: auto;
  margin-right: auto;
}

figure.figure-half img {
  width: 100%;
}

figcaption {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  text-align: center;
}

code {
  font-size: 0.92em;
}

.nowrap {
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid #dbdbdb;
  text-align: left;
}

th {
  font-weight: 700;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mpc thead th:nth-child(2),
.mpc tbody td:first-of-type {
  text-align: left;
}

.table-text td:not(:first-child),
.table-text th:not(:first-child) {
  text-align: left;
}

.chart {
  margin-top: 1.25rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr 3.2rem;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.track {
  height: 0.65rem;
  background: #ededed;
}

.fill {
  height: 100%;
  background: #3273dc;
}

.hero-figure {
  width: 112%;
  max-width: 980px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1.3fr;
  gap: 0.85rem 1rem;
  align-items: start;
}

.hero-videos {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hero-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #363636;
}

.hero-title .label {
  font-weight: 700;
}

.fig-title {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  color: #363636;
}

.panel {
  background: #111;
  overflow: hidden;
}

.panel video,
.panel img {
  display: block;
  width: 100%;
  height: auto;
}

.panel img {
  background: #fff;
}

.fig-grid {
  display: grid;
  gap: 0.85rem 0.9rem;
  margin: 1rem 0;
}

.fig-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.fig-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.fig-grid figure {
  margin: 0;
}

.fig-grid figcaption,
.fig-grid .fig-title {
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  justify-content: center;
  margin: 0.35rem 0 0.15rem;
  font-size: 0.85rem;
  color: #4a4a4a;
}

.swatch {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.35rem;
  vertical-align: -0.05rem;
}

.swatch.tdv {
  background: #4c78a8;
}

.swatch.rep {
  background: #f28e2b;
}

.swatch.pub {
  background: #b07aa1;
}

.eq {
  margin: 1rem 0;
  overflow-x: auto;
  text-align: center;
}

#overview h2 {
  margin-bottom: 0.35rem;
}

.overview-figure {
  margin: 0.25rem 0 0.35rem;
}

#overview .eq {
  margin-top: 0.35rem;
}

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

.paper-quote {
  margin: 1rem 0 1.2rem;
  padding: 0.85rem 1.15rem 0.9rem;
  border-left: 3px solid #3273dc;
  background: #f6f7f9;
  color: #4a4a4a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.paper-quote p {
  margin: 0;
}

.paper-quote footer {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: #7a7a7a;
}

.paper-quote cite {
  font-style: italic;
}

.infra {
  display: grid;
  grid-template-columns: 1fr 30rem;
  gap: 1.1rem 1.25rem;
  align-items: start;
}

.infra p {
  margin-bottom: 0;
}

.infra figure {
  margin: 0;
}

.infra figcaption {
  font-size: 0.8rem;
  text-align: left;
}

@media (max-width: 700px) {
  .hero-figure {
    width: 100%;
    max-width: none;
    margin-left: 0;
    transform: none;
  }

  .hero,
  .fig-grid-2,
  .fig-grid-3 {
    grid-template-columns: 1fr;
  }

  figure.figure-half {
    width: 100%;
  }

  .infra {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.7rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .bar-row {
    grid-template-columns: 1fr;
  }
}


.mpc .planner-start > * {
  border-top: 2px solid currentColor;
}

.mpc tbody tr:first-child > * {
  border-top: none;
}

.mpc .planner {
  font-weight: 700;
  vertical-align: middle;
}

.mpc td[rowspan] {
  vertical-align: middle;
}

.mpc .best-model td:first-child {
  font-weight: 600;
}