/* ---- Figures ---- */
.paper-figure {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.paper-figure:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.figure-block {
  margin: 1.25rem 0 1.75rem;
}

.figure-caption {
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a4a4a;
}

.figure-narrow {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.figure-compact {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.figure-hint {
  display: inline-block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* ---- Sticky / Compact Section Nav ---- */
.page-nav {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  gap: 0.4rem 0.9rem;
  margin-top: 1.0rem;
  padding: 0.75rem 0.5rem 0.25rem;
  border-top: 1px solid #e5e7eb;
  font-size: 0.85rem;
  scrollbar-width: thin;
}

@media (max-width: 768px) {
  .page-nav {
    justify-content: flex-start;
  }
}

.page-nav a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.page-nav a:hover {
  text-decoration: underline;
}

/* ---- Hero Subtitle & TL;DR ---- */
.publication-subtitle {
  margin-top: 0.35rem !important;
  margin-bottom: 0.75rem !important;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.35;
}

.hero-tldr {
  max-width: 760px;
  margin: 0.65rem auto 0.85rem;
  padding: 0.6rem 1rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  font-size: 0.94rem;
  color: #134e4a;
  line-height: 1.45;
}

/* ---- Update Badge ---- */
.update-badge {
  display: inline-block;
  background: #0f766e;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.16rem 0.52rem;
  border-radius: 999px;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.pct {
  color: #64748b;
  font-size: 0.84em;
}

/* ---- Lightbox Zoom Modal ---- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.90);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}

.lightbox-overlay.is-active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border: none;
  border-radius: 999px;
  width: 38px;
  height: 38px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}

/* ---- Code example card ---- */
.code-example-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1rem 0 1.5rem;
}

.code-example-box summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

/* ---- Limitations callout ---- */
.boundaries-box {
  background: #f8fafc;
  border-left: 4px solid #0f766e;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
}

/* ---- Headline numbers ---- */
.highlight-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  max-width: 920px;
  margin: 1.5rem auto 0.5rem;
}

@media (max-width: 768px) {
  .highlight-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.highlight-stat {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.9rem 0.75rem;
  background: #fff;
  text-align: center !important;
}

.highlight-stat .stat-value {
  display: block;
  font-size: clamp(1.3rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f766e;
  text-align: center !important;
}

.highlight-stat .stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: #4a4a4a;
  text-align: center !important;
}

@media (max-width: 600px) {
  .highlight-stats {
    grid-template-columns: 1fr;
  }
}

/* ---- Pending links ---- */
.link-block-pending {
  opacity: 0.6;
}

.button.is-link-pending {
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---- Tables ---- */
.fwltable-card {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.fwltable__caption {
  caption-side: top;
  text-align: left;
  margin-bottom: 0.5rem;
  color: #363636;
}

.fwltable__table th,
.fwltable__table td {
  vertical-align: middle;
  white-space: nowrap;
}

.fwltable__table th:first-child,
.fwltable__table td:first-child {
  white-space: normal;
  min-width: 170px;
  position: sticky;
  left: 0;
  z-index: 2;
  background: #ffffff;
}

.fwltable__table thead th:first-child {
  z-index: 3;
  background: #ffffff;
}

.fwltable__table.is-striped tbody tr:not(.is-selected):nth-child(even) td:first-child {
  background: #fafafa;
}

.fwltable__table tr.is-ours td:first-child {
  background: #eff6ff !important;
}

.section-white {
  background-color: #ffffff !important;
}

.glossary-bar {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: #134e4a;
  margin-bottom: 1.1rem;
}

.fwltable__table td:not(:first-child),
.fwltable__table th:not(:first-child) {
  text-align: center !important;
}

.fwltable__table tr.is-ours td {
  background: #eff6ff;
}

.fwltable__divider td {
  padding: 0 !important;
  height: 3px;
  background: #dbdbdb;
}

.fwltable-check {
  color: #15803d;
  font-weight: 700;
}

.fwltable-cross {
  color: #b91c1c;
  font-weight: 700;
}

.fwltable__note {
  font-size: 0.88rem;
  color: #4a4a4a;
}

/* ---- Contribution list ---- */
.contribution-list li {
  margin-bottom: 0.4rem;
}

/* Keep textual content left-aligned across the page */
#main-content h1,
#main-content h2,
#main-content h3,
#main-content h4,
#main-content h5,
#main-content h6,
#main-content p,
#main-content li,
#main-content th,
#main-content td,
#main-content .subtitle,
#main-content .title,
#main-content .content,
#main-content .has-text-centered,
#main-content .has-text-justified,
footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6,
footer p,
footer li,
footer th,
footer td,
footer .content,
footer .has-text-centered,
footer .has-text-justified {
  text-align: left !important;
}

/* Keep the top hero title/author area centered */
#main-content .top-hero .column,
#main-content .top-hero .title,
#main-content .top-hero .publication-title,
#main-content .top-hero .publication-authors,
#main-content .top-hero .author-block,
#main-content .top-hero .eql-cntrb,
#main-content .top-hero .publication-links,
#main-content .top-hero .has-text-centered,
#main-content .top-hero p,
#main-content .top-hero span {
  text-align: center !important;
}

/* Keep all h2 centered even when body text stays left-aligned */
#main-content h2,
#main-content h2.title,
#main-content h2.subtitle,
#main-content h2.has-text-centered,
footer h2,
footer h2.title,
footer h2.subtitle {
  text-align: center !important;
}

/* Keep BibTeX section left-aligned */
#main-content #BibTeX h2,
#main-content #BibTeX h2.title,
#main-content #BibTeX h2.subtitle {
  text-align: left !important;
}

/* Center cells of numeric table columns despite the left-align rule above */
#main-content .fwltable__table td:not(:first-child),
#main-content .fwltable__table th:not(:first-child) {
  text-align: center !important;
}
