:root {
  --paper: #fdfaf4;
  --ink: #1b1b1b;
  --muted: #5f5b54;
  --line: #1b1b1b;
  --soft-line: #d9d3c8;
  --before: #f7ded9;
  --after: #dcefe1;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 18px;
}

a {
  color: inherit;
}

.container.is-max-desktop {
  max-width: 960px !important;
}

.publication-hero .hero-body {
  padding: 4.5rem 1.5rem 2rem;
}

.publication-hero .has-text-centered,
.publication-hero .publication-actions {
  text-align: left !important;
}

.eyebrow,
.publication-venue {
  display: inline-block;
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 7px 11px;
  color: #fff;
  background: #000;
}

.publication-title.title {
  max-width: 900px;
  margin-bottom: 18px !important;
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--ink);
}

.publication-venue {
  margin-bottom: 24px;
  color: var(--muted);
}

.publication-authors,
.publication-authors a {
  font-family: "Roboto Mono", monospace;
  font-size: 13px !important;
  line-height: 1.75;
  color: #333 !important;
}

.publication-authors a:hover {
  color: #000 !important;
}

.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.publication-links .button.is-dark {
  height: auto;
  padding: 8px 13px;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.publication-links .button.is-dark:hover {
  background: #000;
  color: #fff;
}

.teaser .hero-body {
  padding: 0 1.5rem 3rem;
}

#teaser {
  display: block;
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #000;
}

.teaser-caption,
.section p,
.content p {
  font-family: "Roboto Mono", monospace;
  color: var(--muted);
}

.teaser-caption {
  max-width: 900px;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 13px !important;
  line-height: 1.65;
}

.section {
  padding: 3rem 1.5rem;
}

.section + .section {
  border-top: 1px solid var(--soft-line);
}

.section-tag.title,
.subsection-tag.title {
  display: table;
  width: auto;
  height: auto;
  color: #fff;
  background: #000;
  border-radius: 0;
  font-family: "Roboto Mono", monospace;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-tag.title {
  margin: 0 0 2rem !important;
  padding: 8px 16px;
  font-size: 24px;
}

.subsection-tag.title {
  margin: 3rem 0 1rem !important;
  padding: 7px 14px;
  font-size: 17px;
}

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

.content p,
.section p {
  font-size: 15px;
  line-height: 1.75;
}

#abstract .column.is-four-fifths {
  width: 100%;
}

.publication-video {
  border: 1.5px solid var(--line);
  border-radius: 15px !important;
  box-shadow: 0 8px 25px rgba(31, 28, 23, 0.12);
}

#method img {
  display: block;
  width: 100% !important;
  margin: 22px 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 15px !important;
  background: #fff;
}

#method .has-text-centered {
  text-align: left !important;
}

#comparisons {
  overflow: hidden;
}

#comparisons > .container {
  max-width: 960px !important;
}

#comparisons p {
  font-size: 15px;
}

.results-intro {
  text-align: left;
}

.result-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 2.5rem;
}

.result-table-card {
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 8px 25px rgba(31, 28, 23, 0.08);
}

.result-table-heading {
  min-height: 82px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid var(--line);
}

.result-table-heading h3 {
  margin: 0 0 5px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.result-table-heading span,
.result-column,
.result-table-summary {
  font-family: "Roboto Mono", monospace;
}

.result-table-heading span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  height: 254px;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 20px 10px;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(to top, transparent 0, transparent 49px, rgba(27, 27, 27, 0.09) 50px);
}

.benchmark-chart {
  width: min(100%, 650px);
}

.result-chart.policy-chart {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 270px;
  width: min(100%, 405px);
  margin-left: 20px;
  margin-right: auto;
  border-bottom: 0;
}

.result-column {
  display: grid;
  grid-template-rows: 18px 1fr 38px;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.result-column:hover,
.result-column:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.result-column strong {
  opacity: 0.62;
  font-size: 11px;
  transition: opacity 0.15s ease;
}

.result-column.active strong,
.result-column:hover strong {
  opacity: 1;
}

.column-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 7px 7px 0 0;
  background: transparent;
}

.column-track i {
  display: block;
  width: 100%;
  border-radius: 7px 7px 0 0;
  background: var(--bar-color, #cbb7a6);
  transition: filter 0.18s ease, height 0.35s ease;
}

.result-column.active .column-track {
  box-shadow: none;
}

.result-column.active .column-track i,
.result-column:hover .column-track i {
  filter: saturate(1.16) brightness(0.97);
}

.column-label {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-height: 20px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}

.column-label sup {
  position: relative;
  top: -0.35em;
  margin-left: 1px;
  font-size: 0.72em;
  line-height: 1;
  vertical-align: baseline;
}

.pi-model {
  display: inline-flex;
  align-items: baseline;
}

.pi-sub {
  position: relative;
  top: 0.38em;
  font-size: 0.72em;
  line-height: 1;
}

.method-plus {
  margin-right: 0.35em;
  margin-left: 0.55em;
}

.summary-method {
  display: inline-flex;
  align-items: baseline;
}

.summary-method .column-label {
  display: inline-flex;
  min-height: 0;
  color: inherit;
  font-size: inherit;
}

.summary-method .column-label sup,
.summary-method sup {
  position: relative;
  top: -0.35em;
  font-size: 0.72em;
  line-height: 1;
}

.result-column.active .column-label {
  color: var(--ink);
}

.tone-1 { --bar-color: #cdb9a7; }
.tone-2 { --bar-color: #d8b2a5; }
.tone-3 { --bar-color: #d9a696; }
.tone-4 { --bar-color: #e59285; }
.tone-5 { --bar-color: #cc8c80; }
.tone-6 { --bar-color: #a97970; }
.dgac-column { --bar-color: #d57e70; }
.ours-column { --bar-color: #6f9f7d; }

.policy-chart .column-label {
  font-size: 11px;
  overflow-wrap: normal;
  white-space: nowrap;
}

#comparisons .result-table-summary {
  min-height: 51px;
  margin: 0;
  padding: 11px 18px 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

#comparisons .result-note,
#comparisons .result-caption {
  margin: 0;
  font-family: "Roboto Mono", monospace;
}

#comparisons .result-note {
  padding: 0 18px 9px;
  color: var(--muted);
  font-size: 11px;
}

#comparisons .result-caption {
  padding: 10px 18px 12px;
  border-top: 1px solid var(--soft-line);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

#comparisons .caption-highlight-link {
  display: inline-block;
  padding: 1px 5px 2px;
  border-radius: 4px;
  background: rgba(229, 146, 133, 0.16);
  color: #9f463b;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#comparisons .caption-highlight-link:hover,
#comparisons .caption-highlight-link:focus-visible {
  background: rgba(229, 146, 133, 0.28);
  color: #743129;
}

.policy-result-layout {
  display: grid;
  grid-template-columns: minmax(425px, 1fr) minmax(0, 1.12fr);
  border-bottom: 1px solid var(--line);
}

.policy-findings {
  display: flex;
  align-items: center;
  padding: 24px 22px;
  border-left: 1px solid var(--line);
  background: rgba(247, 222, 217, 0.28);
}

.policy-findings ul {
  margin: 0;
  padding-left: 18px;
}

.policy-findings li {
  margin-bottom: 13px;
  color: var(--muted);
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.policy-findings li.is-highlighted {
  color: var(--ink);
  background: rgba(229, 146, 133, 0.12);
  box-shadow: -8px 0 0 rgba(229, 146, 133, 0.55);
  transform: translateX(3px);
}

.policy-findings li:last-child {
  margin-bottom: 0;
}

.policy-findings li::marker {
  color: #e59285;
}

.policy-findings strong {
  color: var(--ink);
}

.video-results-intro {
  max-width: 820px;
}

.video-results-title {
  margin-top: 3rem !important;
  margin-bottom: 1.25rem !important;
}

#subtask-player,
.comparison-area {
  margin-top: 28px;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 8px 25px rgba(31, 28, 23, 0.08);
}

.method-label {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.before-label {
  background: var(--before);
  color: #9f4034;
}

.after-label {
  background: var(--after);
  color: #225d35;
}

.comparison-video {
  display: block;
  width: 100%;
  border: 2px solid #e59285 !important;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 4px 12px rgba(31, 28, 23, 0.13);
}

.comparison-video.after-video {
  border-color: #4d9566 !important;
}

.robot-tabs {
  display: inline-flex;
  gap: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.robot-tab,
.task-btn,
.nav-btn {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Roboto Mono", monospace;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.robot-tab {
  padding: 9px 14px;
  border: 0;
  font-size: 11px;
}

.robot-tab + .robot-tab {
  border-left: 1px solid var(--line);
}

.robot-tab.active,
.task-btn.active,
.nav-btn:hover {
  background: #000;
  color: #fff;
  box-shadow: none;
}

.task-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.task-btn {
  padding: 7px 10px;
  font-size: 10px;
}

.nav-btn {
  padding: 6px 11px;
  font-size: 11px;
}

#st-task-label,
#sample-counter {
  font-family: "Roboto Mono", monospace !important;
  font-size: 11px !important;
}

hr {
  height: 1px;
  background: var(--soft-line);
  border: 0;
}

#Acknowledgement .content,
#BibTeX .content {
  text-align: left;
}

#Acknowledgement {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

#Acknowledgement .section-tag.title {
  margin-bottom: 1.25rem !important;
}

#Acknowledgement p {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.55;
}

.bibtex-code {
  padding: 24px;
  border-radius: 8px;
  background: rgba(35, 35, 35, 0.88);
  color: #f5f1e9;
}

.bibtex-code .title {
  color: #fff;
  font-family: "Roboto Mono", monospace;
  font-size: 18px;
}

.bibtex-code pre {
  padding: 0;
  overflow-x: auto;
  background: transparent;
  color: #f5f1e9;
}

.bibtex-code code {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
}

.footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--soft-line);
  background: var(--paper);
}

.footer p,
.footer a {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  color: var(--muted);
}

#side-nav {
  position: fixed;
  top: 220px;
  left: max(30px, calc(25vw - 330px));
  z-index: 90;
  display: none;
  width: 175px;
  font-family: "Roboto Mono", monospace;
}

#side-nav strong {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--soft-line);
  font-family: "Playfair Display", serif;
  font-size: 22px;
}

#side-nav a {
  display: block;
  padding: 5px 0;
  border: 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

#side-nav a:hover,
#side-nav a.active {
  color: #000;
  font-weight: 700;
  text-decoration: underline;
}

@media (min-width: 1400px) {
  #side-nav {
    display: block;
  }
}

@media (max-width: 768px) {
  .publication-hero .hero-body {
    padding-top: 3rem;
  }

  .publication-title.title {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .section {
    padding: 2.5rem 1rem;
  }

  #subtask-player,
  .comparison-area {
    padding: 12px;
  }

  .result-tables {
    grid-template-columns: 1fr;
  }

  .result-table-heading {
    min-height: 0;
  }

  .result-chart {
    height: 235px;
    gap: 5px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .benchmark-chart {
    padding-right: 9px;
    padding-left: 9px;
  }

  .policy-result-layout {
    grid-template-columns: 1fr;
  }

  .result-chart.policy-chart {
    width: min(100%, 420px);
    margin-right: auto;
    margin-left: auto;
  }

  .policy-findings {
    padding: 18px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  #comparisons .result-caption {
    white-space: normal;
  }

  .column-label {
    font-size: 7px;
  }

  #subtask-player .columns {
    display: flex;
    overflow-x: auto;
  }

  #subtask-player .column {
    min-width: 70vw;
  }

  .robot-tabs {
    display: flex;
    flex-direction: column;
  }

  .robot-tab + .robot-tab {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
