:root {
  --air-green: #3f7f58;
  --air-green-light: #5ea774;
  --air-teal: #0f8b8d;
  --air-sky: #3273dc;
  --air-amber: #c68021;
  --air-rose: #c9455d;
  --air-dark: #20252b;
  --air-gray: #5d6670;
  --air-soft: #f7f9f6;
  --air-line: #e1e6e1;
}

code {
  white-space: pre-wrap;
}

body {
  color: var(--air-dark);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 1.18em;
  font-weight: 500;
  line-height: 1.55;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

h1 {
  font-size: 2.2em;
}

h2 {
  font-size: 1.75em;
}

h3 {
  font-size: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: 0;
}

b,
strong {
  font-weight: 800;
}

section {
  padding-bottom: 1.25rem;
}

section > h5 {
  padding-bottom: 30px;
}

.jumbotron {
  background: linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
  border-radius: 0;
  margin-bottom: 0;
  padding-bottom: 2.2rem;
}

.airzoo-name {
  display: inline-block;
  font-weight: 900;
  letter-spacing: 0;
}

.air-part {
  color: var(--air-amber);
}

.zoo-part {
  color: var(--air-green);
}

.airzoo-title-logo {
  align-items: center;
  display: inline-flex;
  gap: 0.22em;
  justify-content: center;
  vertical-align: baseline;
}

.airzoo-logo {
  height: 1.05em;
  object-fit: contain;
  position: relative;
  top: -0.08em;
  width: auto;
}

.title-rest {
  color: var(--air-dark);
  font-weight: 750;
}

.author-list {
  color: var(--air-dark);
  line-height: 1.9;
  margin: 0 auto;
  max-width: 1080px;
}

.author-list a {
  color: var(--air-dark) !important;
  font-weight: 500;
  text-decoration: none;
}

.author-list a:hover {
  color: var(--air-green) !important;
  text-decoration: underline;
}

.affiliation-block {
  color: var(--air-gray);
  font-size: 0.9em;
  line-height: 1.75;
  margin-top: 0.55rem;
}

.affiliation-block a {
  color: inherit;
  text-decoration: none;
}

.venue-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.8rem;
  justify-content: center;
  margin-top: 0.7rem;
}

.venue-badge {
  color: var(--air-gray);
  display: inline-block;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}

.track-badge {
  background: var(--air-green);
  border-radius: 4px;
  color: #fff;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0.35em 0.78em;
  text-transform: uppercase;
}

.resource-row {
  margin-top: 1.1rem;
}

.resource-row .column {
  padding-left: 0.28rem;
  padding-right: 0.28rem;
}

.resource-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #dce3de;
  border-radius: 6px;
  color: var(--air-dark);
  display: inline-flex;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
}

.resource-btn i,
.hf-logo {
  color: var(--air-green);
  font-size: 1.05em;
}

.hf-logo {
  line-height: 1;
}

.resource-btn small {
  color: var(--air-gray);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  margin-top: -0.08rem;
}

.resource-btn:hover {
  background: #f8fbf7;
  border-color: var(--air-green-light);
  color: var(--air-green);
}

.resource-btn:focus,
.resource-btn.focus,
.resource-btn:not(:disabled):not(.disabled):active {
  background: #f8fbf7;
  border-color: var(--air-green-light);
  box-shadow: 0 0 0 0.12rem rgba(63, 127, 88, 0.18);
  color: var(--air-green);
}

.resource-btn.disabled-resource {
  background: #fff;
  cursor: default;
  opacity: 0.55;
}

.resource-btn.disabled-resource:hover {
  background: #fff;
  border-color: #dce3de;
  color: var(--air-dark);
}

.lead-line {
  color: #7a8790;
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.main-figure-wrapper {
  margin: 0.85rem auto 0;
  max-width: 1240px;
}

.main-video-wrapper {
  background: transparent;
  line-height: 0;
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
}

.demo-video {
  border-radius: 8px;
  display: block;
  width: 100%;
}

.paper-figure {
  border-radius: 8px;
  display: block;
  width: 100%;
}

.figure-panel {
  background: #fff;
  border: 1px solid var(--air-line);
  border-radius: 8px;
  padding: 0.45rem;
}

.figure-caption {
  color: var(--air-gray);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0.7rem 0 0;
  text-align: center;
}

.minimal-stats-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.15rem 0 0.4rem;
}

.stat-unit {
  align-items: baseline;
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.stat-val {
  color: var(--air-green);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  white-space: nowrap;
}

.stat-lab {
  color: var(--air-gray);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: capitalize;
}

.stat-sep {
  color: #d4dad5;
  font-size: 1.15rem;
  font-weight: 300;
  margin: 0 1.05rem;
}

.text-green {
  color: var(--air-green);
  font-weight: 750;
}

.text-teal {
  color: var(--air-teal);
  font-weight: 750;
}

.text-sky {
  color: var(--air-sky);
  font-weight: 750;
}

.text-amber {
  color: var(--air-amber);
  font-weight: 750;
}

.text-rose {
  color: var(--air-rose);
  font-weight: 750;
}

.section-copy {
  color: #2f3438;
  text-align: justify;
  text-justify: inter-word;
}

.feature-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--air-line);
  border-radius: 8px;
  height: 100%;
  padding: 1rem 1rem 0.95rem;
}

.feature-card h5 {
  color: var(--air-dark);
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.feature-card p {
  color: var(--air-gray);
  font-size: 0.94rem;
  line-height: 1.48;
  margin-bottom: 0;
}

.benchmark-table {
  font-size: 0.92rem;
  margin: 0.85rem 0 1.25rem;
}

.benchmark-table th {
  background: var(--air-soft);
  color: var(--air-dark);
  font-weight: 800;
  white-space: nowrap;
}

.benchmark-table td,
.benchmark-table th {
  border-color: var(--air-line) !important;
  vertical-align: middle;
}

.track-block {
  margin-top: 1.45rem;
}

.track-block h4 {
  align-items: center;
  display: flex;
  font-size: 1.18rem;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.track-index {
  align-items: center;
  background: var(--air-green);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  height: 1.75rem;
  justify-content: center;
  width: 1.75rem;
}

.zoom-element {
  transition: transform 0.18s ease-in-out;
}

.zoom-element:hover {
  transform: scale(1.012);
}

.citation-block {
  background-color: #e9eeef;
  border-radius: 8px;
  font-size: 0.75em;
  padding: 1.45em 1.5em;
}

.ack-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

.ack-text a {
  color: var(--air-green);
  font-weight: 650;
  text-decoration: none;
}

.ack-text a:hover {
  color: #2f6847;
  text-decoration: underline;
}

@media screen and (max-width: 992px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  body {
    font-size: 1.03em;
  }

  h1 {
    font-size: 1.25em;
    line-height: 1.22;
  }

  .airzoo-title-logo {
    gap: 0.12em;
  }

  .airzoo-logo {
    height: 0.92em;
  }

  .jumbotron {
    padding-left: 0;
    padding-right: 0;
  }

  .author-list {
    font-size: 0.92rem;
    overflow-wrap: anywhere;
  }

  .affiliation-block {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }

  .venue-badge {
    font-size: 1.12rem;
  }

  .resource-row {
    margin-left: 0;
    margin-right: 0;
  }

  .resource-row .column {
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    max-width: 100%;
  }

  .resource-row .column p {
    max-width: 260px;
    width: 100%;
  }

  .resource-btn {
    justify-content: center;
    max-width: 260px;
    min-width: 0;
    width: 100%;
  }

  .lead-line {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .stat-sep {
    display: none;
  }

  .minimal-stats-bar {
    padding-top: 0.85rem;
  }

  .stat-unit {
    flex-direction: column;
    gap: 0;
    justify-content: center;
    line-height: 1.15;
    min-width: 0;
    white-space: normal;
    width: 44%;
  }

  .stat-val {
    font-size: 1.18rem;
  }

  .stat-lab {
    font-size: 0.78rem;
  }

  .figure-panel {
    padding: 0.25rem;
  }

  .section-copy {
    text-align: left;
  }
}
