/* ============================================================
   InfoAtlas project page — custom overrides on top of Bulma
   ============================================================ */

:root {
  --infoatlas-accent: #355f8a;        /* deep blue */
  --infoatlas-accent-soft: #eaf1f8;
  --infoatlas-ink: #1a1a1a;
  --infoatlas-muted: #555;
  --infoatlas-rule: #e5e7eb;
  --infoatlas-bg-alt: #fafbfd;
  --infoatlas-method: #2d6cdf;        /* "InfoAtlas" wordmark color */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  color: var(--infoatlas-ink);
  background: #ffffff;
}

/* Brand wordmark */
.method-name {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--infoatlas-accent) 0%, var(--infoatlas-method) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.2px;
}

code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--infoatlas-accent-soft);
  color: var(--infoatlas-ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--infoatlas-accent-soft) 100%);
  padding-top: 1rem;
  overflow: hidden;
}

/* subtle blueprint grid behind the hero */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(53, 95, 138, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 95, 138, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 35%, transparent 75%);
  z-index: 0;
}
.hero .hero-body { position: relative; z-index: 1; }

/* Flashy ICML 2026 badge — gradient pill + star + animated shine */
.conf-badge-wrap {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 1.4rem;
}
.conf-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  position: relative;
  padding: 0.45em 0.45em 0.45em 0.95em;
  background: linear-gradient(135deg, #355f8a 0%, #2d6cdf 55%, #5b8def 100%);
  color: #fff;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  border-radius: 999px;
  box-shadow:
    0 6px 22px rgba(45, 108, 223, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.conf-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 55%; height: 100%;
  background: linear-gradient(120deg,
              rgba(255,255,255,0)   0%,
              rgba(255,255,255,0.55) 50%,
              rgba(255,255,255,0)  100%);
  transform: skewX(-20deg);
  animation: badge-shine 3.4s ease-in-out infinite;
}
.conf-badge-wrap:hover .conf-badge {
  transform: translateY(-1px);
  box-shadow:
    0 8px 28px rgba(45, 108, 223, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}
@keyframes badge-shine {
  0%   { left: -75%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
.conf-badge-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78em;
  color: #fff7c8;
  filter: drop-shadow(0 0 4px rgba(255, 215, 80, 0.6));
}
.conf-badge-text { letter-spacing: 0.16em; }
.conf-badge-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.2em 0.7em;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}

/* Hero tagline — styled callout card to break up the stacked text */
.tagline-card {
  position: relative;
  max-width: 720px;
  margin: 1.4rem auto 1.6rem;
  padding: 1.2rem 1.4rem 1.1rem 1.4rem;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(45, 108, 223, 0.06) 0%, rgba(53, 95, 138, 0.03) 100%),
    #ffffff;
  border: 1px solid var(--infoatlas-rule);
  border-left: 4px solid var(--infoatlas-method);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(20, 40, 80, 0.06);
}
.tagline-quote {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--infoatlas-accent) 0%, var(--infoatlas-method) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(45, 108, 223, 0.30);
}
.tagline-headline {
  margin: 0 0 0.45rem 0;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-size: 1.32rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--infoatlas-ink);
}
.tagline-headline strong {
  color: var(--infoatlas-method);
  font-weight: 700;
}
.tagline-sub {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--infoatlas-muted);
}
.tagline-sub code {
  font-size: 0.85em;
  padding: 0.02em 0.32em;
}
@media (max-width: 600px) {
  .tagline-headline { font-size: 1.10rem; }
  .tagline-sub      { font-size: 0.92rem; }
}

/* Hero stats strip */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero-stat {
  flex: 1 1 160px;
  max-width: 200px;
  background: #ffffff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 12px;
  padding: 1rem 0.9rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hero-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(45, 108, 223, 0.12);
  border-color: var(--infoatlas-method);
}
.hero-stat-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--infoatlas-method);
  opacity: 0.85;
  margin-bottom: 0.25rem;
}
.hero-stat-num {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--infoatlas-accent) 0%, var(--infoatlas-method) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stat-unit {
  font-size: 1.05rem;
  font-weight: 600;
  margin-left: 0.05em;
}
.hero-stat-label {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--infoatlas-muted);
  line-height: 1.4;
}
.hero-stat-label em { font-style: italic; }

.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1.25;
  margin-top: 0.3rem !important;
  margin-bottom: 1.6rem !important;
}

@media (max-width: 768px) {
  .publication-title { font-size: 1.55rem; }
}

.publication-authors {
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.publication-authors .author-block {
  margin-right: 0.4rem;
}

.publication-authors a {
  color: var(--infoatlas-ink);
  border-bottom: 1px dotted #aaa;
}
.publication-authors a:hover {
  color: var(--infoatlas-method);
  border-bottom-color: var(--infoatlas-method);
}

.publication-affiliations {
  color: var(--infoatlas-muted);
  margin-bottom: 0.3rem;
}
.equal-contrib-note {
  margin-top: 0.6rem;
  margin-bottom: 1.2rem;
  color: var(--infoatlas-muted);
}

/* Hero buttons */
.hero-buttons { margin-top: 1.4rem; }
.publication-links .link-block { margin: 0.25rem 0.2rem; display: inline-block; }
.publication-links .button {
  background: var(--infoatlas-ink);
  color: #fff;
  font-weight: 500;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  transition: transform 0.12s ease, background 0.2s ease;
}
.publication-links .button:hover {
  background: var(--infoatlas-method);
  transform: translateY(-1px);
}

/* ============================================================
   Teaser
   ============================================================ */
.teaser {
  background: #ffffff;
  padding-top: 0;
}
.teaser-image {
  display: block;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.10);
}
.teaser-caption {
  margin-top: 1.2rem !important;
  font-size: 1.05rem;
  color: var(--infoatlas-muted);
  font-weight: 400;
}

/* ============================================================
   Section spacing & headings
   ============================================================ */
.section { padding: 3rem 1.5rem; }
.section-alt { background: var(--infoatlas-bg-alt); }

.title.is-3 {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1.4rem !important;
}

.method-subtitle {
  color: var(--infoatlas-muted);
  font-weight: 400;
  font-size: 1.05rem;
  margin-bottom: 1.8rem !important;
}

/* ============================================================
   TL;DR cards
   ============================================================ */
.tldr-cards { margin-top: 1.4rem; }

.tldr-card {
  background: #ffffff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 10px;
  padding: 1.4rem 1.3rem 1.2rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tldr-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(45, 108, 223, 0.10);
  border-color: var(--infoatlas-method);
}

.tldr-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--infoatlas-accent-soft);
  color: var(--infoatlas-method);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}

.tldr-card p {
  margin-bottom: 0;
  line-height: 1.55;
  color: #2d2d2d;
}

/* ============================================================
   Method
   ============================================================ */
.method-figure {
  max-width: 900px;
  margin: 0 auto 1.8rem;
}
.method-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--infoatlas-rule);
}

.method-text { line-height: 1.7; }

.method-h {
  margin-top: 1.7rem !important;
  margin-bottom: 0.6rem !important;
  color: var(--infoatlas-accent);
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.paradigm-callout {
  margin-top: 1.6rem !important;
  padding: 1rem 1.2rem;
  background: var(--infoatlas-accent-soft);
  border-left: 3px solid var(--infoatlas-method);
  border-radius: 0 6px 6px 0;
  color: #1f2a3a;
}

/* ============================================================
   Results — interactive gallery (auto-sizes to active slide)
   ============================================================ */
.gallery {
  position: relative;
  max-width: 960px;
  margin: 0 auto 2rem;
  outline: none;
}
.gallery:focus-visible {
  box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.25);
  border-radius: 12px;
}
.gallery-track {
  position: relative;
  background: #fff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.08);
  overflow: hidden;
  /* JS sets the height to the active slide's natural height.
     Initial fallback before JS runs — auto if a slide is rendered statically.  */
  min-height: 240px;
  transition: height 0.32s ease;
}
.gallery-slide {
  /* All slides stack at top:0; only the active one is visible.
     Anchoring only top/left/right (NOT bottom) lets the slide size to its
     content — JS reads that height and sets it on the track. */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 1.4rem;
  margin: 0;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.gallery-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Image slide — single image variant (if any) */
.gallery-slide > img {
  width: 100%;
  height: auto;
  display: block;
}

/* Grid slides (multi-panel figure groups) */
.is-grid-slide { padding: 1.2rem 1.4rem; }
.grid-3, .grid-4, .grid-6 {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; }

.grid-3 figure, .grid-4 figure, .grid-6 figure {
  margin: 0;
  background: #fafbfd;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 6px;
  padding: 0.4rem;
  display: flex; flex-direction: column;
  align-items: center;
}
.grid-3 figure img,
.grid-4 figure img,
.grid-6 figure img {
  width: 100%;
  height: auto;
  display: block;
}
.grid-3 figcaption,
.grid-4 figcaption,
.grid-6 figcaption {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--infoatlas-muted);
  text-align: center;
  line-height: 1.3;
}

/* Responsive collapse for grid slides */
@media (max-width: 720px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
}

/* Table-slide variant */
.is-table-slide {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #ffffff 100%);
}
.cost-table-card,
.bmi-table-wrapper {
  width: 100%;
  margin: 0 auto;
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 25px);
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--infoatlas-rule);
  background: rgba(255, 255, 255, 0.92);
  color: var(--infoatlas-accent);
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.12);
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}
.gallery-nav:hover {
  background: var(--infoatlas-method);
  color: #fff;
  border-color: var(--infoatlas-method);
  transform: translateY(-50%) scale(1.05);
}
.gallery-prev { left: -22px; }
.gallery-next { right: -22px; }
@media (max-width: 720px) {
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
}

.gallery-caption {
  margin: 1.0rem auto 0.4rem;
  max-width: 760px;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: center;
  color: var(--infoatlas-muted);
}

.gallery-dots {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}
.gallery-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c8d2e0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}
.gallery-dot:hover { background: var(--infoatlas-accent); }
.gallery-dot.is-active {
  background: var(--infoatlas-method);
  transform: scale(1.25);
}

/* BMI sanity-check table (gallery slide 1) */
.bmi-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.bmi-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  background: #fff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 8px;
  overflow: hidden;
}
.bmi-table thead th {
  background: var(--infoatlas-accent-soft);
  color: var(--infoatlas-accent);
  font-weight: 600;
  text-align: center;
  padding: 0.5rem 0.55rem;
  font-size: 0.78rem;
  line-height: 1.25;
  vertical-align: middle;
  border-bottom: 1px solid var(--infoatlas-rule);
}
.bmi-table thead th small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: 0.66rem;
  color: var(--infoatlas-muted);
  letter-spacing: 0.02em;
}
.bmi-table th.bmi-method { text-align: left; }
.bmi-table tbody th {
  text-align: left;
  padding: 0.42rem 0.6rem;
  font-weight: 600;
  white-space: nowrap;
}
.bmi-table tbody td {
  text-align: center;
  padding: 0.42rem 0.55rem;
  font-variant-numeric: tabular-nums;
  color: var(--infoatlas-ink);
}
.bmi-table tbody tr:not(:last-child) td,
.bmi-table tbody tr:not(:last-child) th {
  border-bottom: 1px solid var(--infoatlas-rule);
}
.bmi-table tr.bmi-gt {
  background: #fafbfd;
  font-style: italic;
}
.bmi-table tr.bmi-ours {
  background: rgba(45, 108, 223, 0.06);
}
.bmi-table tr.bmi-ours th,
.bmi-table tr.bmi-ours td {
  color: var(--infoatlas-method);
  font-weight: 700;
}
.bmi-tag.bmi-green { color: #4f8c5a; }
.bmi-tag.bmi-blue  { color: #2f6fa8; }

.bmi-footnote {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  color: var(--infoatlas-muted);
  text-align: center;
}
.bmi-swatch {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: 0.6rem;
}
.bmi-swatch.bmi-green { background: #4f8c5a; }
.bmi-swatch.bmi-blue  { background: #2f6fa8; }

/* Cost table — prettier styling */
.cost-table-card {
  max-width: 720px;
  margin: 0 auto;
}
.cost-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0;
  box-shadow: 0 6px 22px rgba(20, 40, 80, 0.07);
}
.cost-table thead th {
  background: #ffffff;
  color: var(--infoatlas-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  border-bottom: 2px solid var(--infoatlas-rule);
}
.cost-table thead th em { font-style: italic; font-weight: 400; color: var(--infoatlas-muted); }
.cost-table tbody th {
  background: #fafbfd;
  color: var(--infoatlas-ink);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.cost-table tbody td {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--infoatlas-ink);
  transition: background 0.15s ease;
}
.cost-table tbody tr:hover td { background: var(--infoatlas-accent-soft); }
.cost-table td, .cost-table th {
  vertical-align: middle;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--infoatlas-rule);
}
.cost-table tbody tr:last-child td,
.cost-table tbody tr:last-child th { border-bottom: 0; }

/* tiny color-coded dot next to each row label */
.ct-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 0.55em;
  vertical-align: 1px;
}
.ct-dot-time { background: #4f8c5a; box-shadow: 0 0 0 3px rgba(79, 140, 90, 0.16); }
.ct-dot-mem  { background: #d4831a; box-shadow: 0 0 0 3px rgba(212, 131, 26, 0.16); }

.cost-table-foot {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--infoatlas-muted);
  font-style: italic;
}

/* Robotics table (ManiSkill 2) — shares the cost-table look */
.robotics-table-card {
  max-width: 820px;
  margin: 0 auto;
}
.robotics-table {
  width: 100%;
  background: #fff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
  box-shadow: 0 6px 22px rgba(20, 40, 80, 0.07);
}
.robotics-table thead th {
  background: #ffffff;
  color: var(--infoatlas-accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--infoatlas-rule);
}
.robotics-table thead tr:first-child th {
  border-bottom: 1px solid var(--infoatlas-rule);
}
.robotics-table th.rt-method { text-align: left; padding-left: 1rem; }
.robotics-table tbody th {
  text-align: left;
  padding: 0.6rem 1rem;
  font-weight: 600;
  background: #fafbfd;
  white-space: nowrap;
}
.robotics-table tbody td {
  padding: 0.6rem 0.7rem;
  font-variant-numeric: tabular-nums;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 500;
}
.robotics-table tbody tr:not(:last-child) td,
.robotics-table tbody tr:not(:last-child) th {
  border-bottom: 1px solid var(--infoatlas-rule);
}
.robotics-table tr.rt-ours {
  background: rgba(45, 108, 223, 0.06);
}
.robotics-table tr.rt-ours th,
.robotics-table tr.rt-ours td {
  color: var(--infoatlas-method);
  font-weight: 700;
}
.rt-footnote {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--infoatlas-muted);
  font-style: italic;
}

/* Method-section inline reference (under k-sliced MI mention) */
.method-ref {
  margin-top: -0.3rem;
  margin-bottom: 1.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--infoatlas-rule);
  font-size: 0.82rem;
  color: var(--infoatlas-muted);
  line-height: 1.5;
}

/* ============================================================
   Poster
   ============================================================ */
.poster-wrapper {
  position: relative;
  max-width: 880px;
  margin: 1.2rem auto 0;
  background: #ffffff;
  border: 1px solid var(--infoatlas-rule);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(20, 40, 80, 0.10);
  overflow: hidden;
}
.poster-embed {
  display: block;
  width: 100%;
  height: 880px;
  border: 0;
  background: #f5f7fb;
}
.poster-fallback {
  padding: 0.9rem 1rem;
  text-align: center;
  border-top: 1px solid var(--infoatlas-rule);
  background: var(--infoatlas-bg-alt);
}
@media (max-width: 768px) {
  .poster-embed { height: 520px; }
}

/* ============================================================
   BibTeX
   ============================================================ */
.bibtex-wrapper {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.bibtex-wrapper pre {
  background: #0f1622;
  color: #e8eef7;
  border-radius: 8px;
  padding: 1.4rem 1.4rem 1.4rem 1.4rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
}
.copy-bibtex-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  background: #1f2a3a;
  color: #fff;
  border-color: transparent;
}
.copy-bibtex-btn:hover { background: var(--infoatlas-method); color: #fff; }
.copy-bibtex-btn.copied { background: #2f8f5a; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--infoatlas-rule);
  padding: 2rem 1.5rem;
}
.footer .content p { color: var(--infoatlas-muted); }
.footer a {
  color: var(--infoatlas-accent);
  border-bottom: 1px dotted var(--infoatlas-accent);
}
.footer a:hover { color: var(--infoatlas-method); }
