:root {
  --ink: #20231f;
  --muted: #5b6258;
  --line: #dfe5dc;
  --surface: #ffffff;
  --soft-surface: #f6f8f3;
  --accent: #177245;
  --accent-dark: #0f4f31;
  --warm: #cf6f1e;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--surface);
  color: var(--ink);
  font-family: 'Noto Sans', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--accent-dark);
}

a:hover {
  color: var(--warm);
}

.paper-nav {
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.paper-brand {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
}

.navbar-item {
  font-family: 'Google Sans', sans-serif;
}

.paper-hero {
  background: var(--soft-surface);
  border-bottom: 1px solid var(--line);
}

.paper-hero .hero-body {
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.paper-kicker,
.section-label {
  color: var(--accent-dark);
  font-family: 'Google Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.paper-title {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 3.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 1.1rem;
  overflow-wrap: anywhere;
}

.publication-authors,
.publication-affiliations,
.hero-summary {
  color: var(--muted);
  font-family: 'Google Sans', sans-serif;
}

.publication-authors {
  font-size: 1.05rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.publication-authors a {
  color: var(--accent-dark);
  font-weight: 700;
}

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

.publication-affiliations {
  font-size: 0.95rem;
  margin-top: 0.9rem;
  overflow-wrap: anywhere;
}

.publication-affiliations p {
  margin: 0.1rem 0;
  overflow-wrap: anywhere;
}

.hero-summary {
  color: var(--ink);
  font-size: 1.08rem;
  margin-top: 1.4rem;
  overflow-wrap: anywhere;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.paper-button {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  border-radius: 6px;
  color: #ffffff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
}

.paper-button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.paper-button.is-light-link {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.paper-button.is-light-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.hero-figure,
.figure-panel,
.video-panel,
.wide-figure {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.hero-figure {
  margin: 0;
}

.video-panel {
  margin: 0 auto;
  max-width: 960px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #111711;
  width: 100%;
}

.video-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.hero-figure img,
.figure-panel img,
.wide-figure img {
  display: block;
  height: auto;
  width: 100%;
}

figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 0.9rem 1rem 1rem;
}

.section {
  padding-bottom: 4rem;
  padding-top: 4rem;
}

.alt-section {
  background: var(--soft-surface);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 1.7rem;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  text-align: center;
}

.title {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  letter-spacing: 0;
}

.paper-copy {
  color: var(--ink);
  font-size: 1.02rem;
}

.paper-copy p {
  margin-bottom: 1rem;
}

.contribution-grid,
.method-grid,
.stat-grid {
  display: grid;
  gap: 1rem;
}

.contribution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.concept-card,
.method-step,
.stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.15rem;
}

.concept-number,
.method-index {
  color: var(--warm);
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.concept-card h3,
.method-step h3,
.text-panel h3,
.limit-copy h3 {
  color: var(--ink);
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.55rem;
}

.concept-card p,
.method-step p,
.stat-card,
.text-panel,
.limit-copy {
  color: var(--muted);
}

.split-layout {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  min-width: 0;
}

.text-panel {
  font-size: 1.01rem;
  min-width: 0;
}

.technical-list {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.technical-list li {
  margin-bottom: 0.55rem;
}

.wide-figure {
  margin: 1.5rem 0 0;
}

.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
}

.equation-band {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
  min-width: 0;
  padding: 1.2rem;
}

.equation {
  color: var(--accent-dark);
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}

.equation-band p {
  color: var(--muted);
  margin: 0;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.4rem;
}

.stat-value {
  color: var(--accent-dark);
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat-label {
  color: var(--muted);
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
}

.result-gallery,
.fruit-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.wide-card {
  grid-column: 1 / -1;
}

.fruit-grid {
  margin-bottom: 2rem;
}

.limit-copy {
  background: var(--soft-surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.3rem;
}

.bibtex {
  background: #17231b;
  border-radius: 8px;
  color: #f8fbf6;
  font-size: 0.9rem;
  overflow-x: auto;
  padding: 1.2rem;
}

.paper-footer {
  background: #20231f;
  color: #dbe2d8;
  padding-bottom: 2rem;
  padding-top: 2rem;
}

.paper-footer p {
  margin: 0;
}

@media screen and (max-width: 1023px) {
  .hero-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .container.is-max-widescreen,
  .container.is-max-desktop {
    max-width: 100%;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    width: 100%;
  }

  .paper-hero .hero-body {
    padding-top: 2rem;
  }

  .paper-title {
    font-size: 1.9rem;
    line-height: 1.13;
  }

  .section {
    padding-bottom: 3rem;
    padding-top: 3rem;
  }

  .contribution-grid,
  .method-grid,
  .stat-grid,
  .equation-band,
  .result-gallery,
  .fruit-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-column: auto;
  }
}
