* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #333333;
  background: #ffffff;
  font-family: "Noto Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(920px, calc(100% - 32px));
}

.hero {
  padding: 52px 0 24px;
  text-align: center;
}

.hero h1,
h2,
h3 {
  margin-top: 0;
  color: #1f1f1f;
  font-weight: 700;
  line-height: 1.22;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: 36px;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
  color: #222222;
  font-size: 22px;
}

.affiliation,
.venue,
.caption,
figcaption,
.section-intro,
.footer {
  color: #555555;
}

.affiliation,
.venue {
  margin: 4px 0;
}

.venue {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #fff1f1;
  color: #c52626;
  font-size: 18px;
  font-weight: 600;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.buttons a,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 9px 17px;
  border: 0;
  border-radius: 999px;
  background: #333333;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.buttons a:hover,
.copy-button:hover {
  opacity: 0.88;
  text-decoration: none;
}

.section {
  padding: 34px 0;
}

.section.alt {
  background: #fafafa;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
}

.section h2 {
  margin-bottom: 18px;
  text-align: center;
  font-size: 31px;
}

.section p {
  margin: 0 0 14px;
}

.lead {
  font-size: 17px;
}

.compact-copy {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.paper-figure {
  margin: 22px auto 0;
  width: min(100%, 980px);
}

.paper-figure img {
  margin: 0 auto;
}

.intro-figure {
  width: min(100%, 660px);
}

.method-figure {
  width: min(100%, 1040px);
}

.scaling-figure {
  width: min(100%, 700px);
}

.construction-figure {
  width: min(100%, 700px);
}

.efficiency-figure {
  width: min(100%, 700px);
}

figcaption,
.caption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.formula-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px auto 0;
  align-items: stretch;
}

.method-formulas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 980px);
  margin: 20px auto 0;
}

.formula-block {
  padding: 15px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #ffffff;
}

.formula-title {
  margin-bottom: 8px;
  color: #444444;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.formula {
  overflow-x: auto;
  color: #1f1f1f;
  font-size: 14px;
}

.formula mjx-container {
  margin: 0 !important;
  min-width: max-content;
}

.nm2i-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 640px);
  margin: 34px auto 0;
  align-items: start;
}

.nm2i-results figure {
  margin: 0;
}

.compact-caption {
  max-width: 760px;
  margin: 12px auto 0;
  color: #555555;
  font-size: 14px;
  text-align: center;
}

.analysis-title {
  margin: 12px 0 8px;
  font-size: 21px;
  text-align: center;
}

.analysis-first {
  margin-top: 38px;
}

.analysis-subsection {
  margin-top: 30px;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 18px;
}

.results-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 15px;
}

.results-table th,
.results-table td {
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  text-align: center;
}

.results-table th {
  background: #f2f2f2;
  font-weight: 700;
}

.results-table td:nth-child(2),
.results-table th:nth-child(2) {
  text-align: left;
}

.results-table .ours {
  background: #eef6ff;
  font-weight: 700;
}

.awesome-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 30px;
  padding: 18px 20px;
  border: 1px solid #d8e7fb;
  border-radius: 8px;
  background: #f3f8ff;
}

.awesome-callout h2 {
  margin-bottom: 6px;
  text-align: left;
  font-size: 22px;
}

.awesome-callout p {
  margin-bottom: 0;
}

.awesome-kicker {
  color: #777777;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.awesome-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 8px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #ffffff;
  color: #3273dc;
  font-weight: 600;
}

.awesome-link:hover {
  background: #f6f9ff;
  text-decoration: none;
}

.copy-button {
  margin-bottom: 14px;
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #ffffff;
  font-size: 14px;
  line-height: 1.55;
}

.footer {
  padding: 22px 0 40px;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 900px) {
  .formula-row,
  .method-formulas,
  .nm2i-results {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section h2 {
    font-size: 27px;
  }

  .awesome-callout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .container,
  .container.narrow {
    width: min(100% - 24px, 860px);
  }

  .hero {
    padding-top: 38px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .authors {
    font-size: 16px;
  }

  .buttons a,
  .copy-button {
    min-width: 96px;
  }

  .awesome-callout {
    padding: 16px;
  }

  .awesome-callout h2 {
    font-size: 21px;
  }

  .awesome-link {
    width: 100%;
  }
}
