body {
  font-family: 'Noto Sans', sans-serif;
  background: #fafafa;
  color: #1d1d1f;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.navbar {
  border-bottom: 1px solid #e7e7e7;
}

.gm3-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
  border-bottom: 1px solid #ececec;
}

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

.author-block {
  display: inline-block;
  margin: 0 0.2rem;
}

.publication-links {
  margin-top: 1rem;
}

.link-block a {
  margin: 0.25rem;
}

.is-disabled {
  opacity: 0.7;
  pointer-events: none;
}

.media-section {
  background: #ffffff;
}

.media-section .container {
  max-width: 1200px;
}

.youtube-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 1.5rem;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.youtube-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-grid video {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  object-fit: cover;
}

.media-card {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 1.35rem;
  height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.video-grid .column {
  display: flex;
}

.video-grid .media-card {
  width: 100%;
}

.long-form-copy {
  max-width: 860px;
  margin: 0 auto;
}

.long-form-copy p {
  line-height: 1.8;
}

.method-text-block {
  max-width: 860px;
  margin: 0 auto 1rem;
}

.integration-steps {
  margin: 0 0 1rem 0;
  padding-left: 0;
  list-style-position: inside;
}

.integration-steps li {
  margin-bottom: 0.25rem;
}

.figure-block {
  margin: 1.5rem auto 2rem;
  max-width: 940px;
}

.figure-block img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  display: block;
  background: #fff;
}

.caption {
  text-align: center;
  color: #5f5f5f;
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.method-cards .box {
  height: 100%;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.inline-figure {
  margin-top: 1rem;
}

.inline-figure img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dedede;
  background: #fff;
}

.section-intro {
  color: #5a5a5a;
  margin-bottom: 1.25rem;
}

.platform-group {
  margin-top: 1.5rem;
}

.platform-subheading {
  margin-bottom: 0.75rem;
}

.result-figures .figure-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
  background: #fff;
  display: block;
}

.platform-grid .column img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.platform-grid .column {
  display: flex;
}

.platform-item {
  width: 100%;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  padding: 0.5rem;
}

.platform-grid .column img {
  object-fit: contain;
  padding: 0.35rem;
  background: #fff;
}

.platform-item p {
  margin-top: 0.35rem;
  margin-bottom: 0;
  text-align: center;
  color: #575757;
  font-size: 0.95rem;
}

.figure-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 0.75rem;
  height: 100%;
}

.figure-card p {
  margin-top: 0.6rem;
  color: #575757;
  font-size: 0.95rem;
}

.figure-card.wide img {
  max-height: 420px;
  object-fit: contain;
}

.footer {
  border-top: 1px solid #e7e7e7;
  background: #fff;
}

.smallprint {
  color: #6f6f6f;
  font-size: 0.92rem;
}

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

  .media-card,
  .figure-card,
  .method-cards .box {
    padding: 0.85rem;
  }

  .video-grid video {
    min-height: 220px;
  }
}

/* ---------- DiffGM3 additions ---------- */

.hero-video-wrap {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background: #000;
}

.hero-video-wrap video {
  width: 100%;
  display: block;
}

.highlight-grid {
  margin-top: 0.5rem;
}

.highlight-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 1.25rem;
  height: 100%;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.highlight-card .stat {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #2f4d7a;
  line-height: 1.1;
}

.highlight-card p {
  margin-top: 0.4rem;
  color: #575757;
  font-size: 0.95rem;
}

.results-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 0.5rem;
  margin: 0 auto 0.85rem;
}

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

table.results-table th,
table.results-table td {
  padding: 0.55rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid #ececec;
  white-space: nowrap;
}

table.results-table thead th {
  font-family: 'Google Sans', sans-serif;
  color: #3c3c3c;
  border-bottom: 2px solid #d9d9d9;
}

table.results-table tbody th {
  text-align: left;
  font-weight: 600;
}

table.results-table td.best {
  font-weight: 700;
  color: #1f3f6e;
  background: #f2f6fd;
}

table.results-table tbody tr:last-child td,
table.results-table tbody tr:last-child th {
  border-bottom: 0;
}

.table-note {
  max-width: 860px;
  margin: 0 auto 1.75rem;
  color: #5f5f5f;
  font-size: 0.95rem;
  text-align: center;
}

.figure-composite {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.figure-legend {
  flex: 0 0 210px;
  align-self: center;
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 12px;
  padding: 0.85rem;
}

.figure-legend img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

.figure-caption {
  max-width: 900px;
  margin: 1.1rem auto 0;
  text-align: left;
  line-height: 1.7;
}

.param-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.param-list li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.param-list li:last-child {
  border-bottom: 0;
}

.eq {
  display: block;
  color: #2c2c2c;
  background: #f7f9fc;
  border: 1px solid #e7edf6;
  border-radius: 8px;
  padding: 0.7rem 0.75rem;
  margin: 0.85rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.eq .katex-display {
  margin: 0;
}

.eq .katex {
  font-size: 1.05em;
}

.venue-tag {
  display: inline-block;
  font-family: 'Google Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #2f4d7a;
  background: #eef3fb;
  border: 1px solid #dbe5f4;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  margin-bottom: 0.9rem;
}

@media screen and (max-width: 768px) {
  .highlight-card .stat {
    font-size: 1.7rem;
  }

  .figure-composite {
    flex-direction: column;
    gap: 1rem;
  }

  .figure-legend {
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }

  table.results-table {
    font-size: 0.85rem;
  }
}
