/* ============================================================
   Custom styles — adapted from the Nerfies project page template
   https://nerfies.github.io/
   ============================================================ */

body {
  font-family: 'Noto Sans', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  background: #ffffff;
}

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  letter-spacing: -0.01em;
}

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

.publication-authors a {
  color: hsl(204, 86%, 38%) !important;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin-right: 0.25em;
}

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

.publication-links .button {
  margin: 0.25rem 0.25rem;
  background-color: #2d2d2d;
  color: #fff;
  border-radius: 9999px;
  border: none;
  font-weight: 500;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.publication-links .button:hover {
  background-color: #000;
  transform: translateY(-1px);
}

.publication-links .button .icon {
  margin-right: 0.25rem;
}

.hero {
  background-color: #ffffff;
  padding-top: 3rem;
  padding-bottom: 1rem;
}

.hero-body {
  padding-top: 1.5rem;
}

.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 1rem;
}

/* tight TL;DR slot between the hero buttons and the teaser image */
.section.tldr-tight {
  padding-top: 1.25rem;
  padding-bottom: 1rem;
}

.section.tldr-tight .section-title {
  margin-bottom: 0.75rem !important;
}

.section.tldr-tight .section-lead {
  margin-bottom: 0;
}

.teaser-figure img {
  max-height: 540px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.section {
  padding: 2.5rem 1.5rem;
}

.section.is-light {
  background-color: #f8f9fb;
}

.section .container {
  max-width: 960px;
}

.section-eyebrow {
  font-family: 'Google Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b69b8;
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: 1.25rem !important;
}

.section-lead {
  max-width: 760px;
  margin: 0 auto 2rem auto;
  text-align: center;
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.6;
}

.content p {
  line-height: 1.7;
  text-align: justify;
}

.content h3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  margin-top: 1.5rem !important;
  margin-bottom: 0.75rem !important;
  color: #111827;
}

/* persona cards (motivation row) */
.persona-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.persona-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.1rem;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.persona-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.persona-card .persona-icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(11, 105, 184, 0.10);
  color: #0b69b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.persona-card h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
  margin: 0 0 0.25rem 0;
}

.persona-card p {
  font-size: 0.93rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .persona-row { grid-template-columns: 1fr; }
}

/* gap comparison */
.gap-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.25rem 0;
}

.gap-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #d1d5db;
  border-radius: 8px;
  padding: 0.9rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.gap-card h5 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  color: #111827;
  margin: 0 0 0.2rem 0;
}

.gap-card p {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.45;
}

.gap-card .gap-cite {
  display: block;
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 0.3rem;
}

.gap-kicker {
  text-align: center;
  font-weight: 600;
  font-family: 'Google Sans', sans-serif;
  color: #0b69b8;
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

@media (max-width: 760px) {
  .gap-row { grid-template-columns: 1fr; }
}

/* quality card */
.quality-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.5rem 1.5rem;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quality-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

.quality-card h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #0b69b8;
}

.quality-card .icon-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(11, 105, 184, 0.10);
  color: #0b69b8;
  margin-bottom: 0.75rem;
}

.quality-card .sub-q {
  display: block;
  font-style: italic;
  color: #4b5563;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

/* worked example step block */
.worked {
  margin-top: 1.25rem;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem 1.1rem;
}

.worked .worked-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.worked ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.worked ol li {
  counter-increment: step;
  position: relative;
  padding: 0.45rem 0 0.45rem 2.1rem;
  font-size: 0.93rem;
  color: #1f2937;
  line-height: 1.5;
}

.worked ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  background: #0b69b8;
  color: #ffffff;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.worked .worked-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.84rem;
}

.worked .ok  { color: #16a34a; font-weight: 600; }
.worked .bad { color: #dc2626; font-weight: 600; }

.worked-table {
  width: 100%;
  margin-top: 0.4rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.worked-table th,
.worked-table td {
  padding: 0.3rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.worked-table th {
  color: #6b7280;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.worked-table .row-pred td {
  background: #eef6ff;
  font-weight: 600;
}

/* shared running-example panel above the two quality cards */
.running-example {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #0b69b8;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin: 0 auto 1.75rem auto;
  max-width: 820px;
}

.running-example img {
  width: 140px;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.running-example-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.running-example-eyebrow {
  margin: 0;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: #0b69b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.running-example-q {
  margin: 0;
  font-size: 1rem;
  color: #111827;
  line-height: 1.45;
}

.running-example-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .running-example {
    flex-direction: column;
    align-items: flex-start;
  }
  .running-example img {
    width: 100%;
    max-height: 220px;
  }
}

.worked .worked-takeaway {
  margin: 0.55rem 0 0 0;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.5;
}

.worked .result-line {
  margin-top: 0.6rem;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.88rem;
  color: #111827;
}

.worked .result-line .pill {
  display: inline-block;
  background: #0b69b8;
  color: #ffffff;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  margin-left: 0.4rem;
}

.figure-wrap {
  margin: 1.5rem auto;
  text-align: center;
}

.figure-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.figure-wrap.is-narrow img {
  max-width: 620px;
}

.figure-wrap.is-medium img {
  max-width: 780px;
}

.figure-caption {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

/* triple stat callouts (user study key result) */
.triple-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0;
}

.triple-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.triple-card .triple-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: #0b69b8;
  line-height: 1.05;
}

.triple-card .triple-value.down { color: #dc2626; }

.triple-card .triple-metric {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  margin-top: 0.45rem;
}

.triple-card .triple-sub {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 0.35rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .triple-row { grid-template-columns: 1fr; }
}

/* combined-score callout (after the two quality cards) */
.combo-callout {
  background: #ffffff;
  border: 1px solid #d6e4f0;
  border-left: 4px solid #0b69b8;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  max-width: 760px;
  margin: 1.5rem auto 0 auto;
}

.combo-callout .combo-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: #0b69b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
}

.combo-callout .combo-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

.combo-callout code {
  background: #f4f6fa;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

/* small key-numbers row (header strip) */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.stat-card {
  flex: 1 1 200px;
  max-width: 260px;
  background: #ffffff;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.stat-card .stat-value {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #0b69b8;
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.88rem;
  color: #4b5563;
  margin-top: 0.4rem;
  line-height: 1.45;
}

/* "going deeper" cards */
.deeper-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.deeper-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.15rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deeper-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.deeper-card .deeper-num {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #0b69b8;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.deeper-card h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: #111827;
  margin: 0 0 0.4rem 0;
}

.deeper-card p {
  font-size: 0.92rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .deeper-row { grid-template-columns: 1fr; }
}

/* takeaways + future */
.future-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.future-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.1rem 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.future-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
}

.future-card h5 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0b69b8;
  margin: 0 0 0.3rem 0;
}

.future-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.limitations-note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
}

@media (max-width: 760px) {
  .future-row { grid-template-columns: 1fr; }
}

pre.bibtex {
  background: #f4f4f5;
  color: #111827;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
  border: 1px solid #e5e7eb;
}

footer.footer {
  background: #f8f9fb;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

footer.footer .content {
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

footer.footer a {
  color: #0b69b8;
}

@media (max-width: 768px) {
  .publication-title {
    font-size: 1.6rem !important;
  }
  .section {
    padding: 1.5rem 1rem;
  }
}
