/* === TUNABLE SPACING VALUES === */
:root {
  --tldr-top-space: 0px;    /* space above the TL;DR box (SECTION 1) */
  --tldr-side-space: 0px;   /* left/right padding around the TL;DR box */
  --tldr-max-width: 1100px; /* width of the TL;DR box (increase to widen) */
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', Arial, sans-serif; color: #222; line-height: 1.6; }

/* === SECTION LAYOUT ===
   Each <section> gets 64px top/bottom padding and a centered 900px content column.
   Odd sections (1st, 3rd, 5th…) are white; even sections are light gray. */
.section { padding: 40px 20px 64px; }
.section-inner { max-width: 900px; margin: 0 auto; }
section:nth-of-type(odd)  { background: #ffffff; }
section:nth-of-type(even) { background: #F4F5F8; }

/* === SECTION HEADING === */
h1.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1a1a1a;
}


/* ==============================
   HEADER BLOCK
============================== */
header { background: #fff; text-align: center; padding: 64px 20px 48px; }

.paper-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  max-width: 820px;
  margin: 0 auto 28px;
}

/* --- Authors --- */
.authors { font-size: 1.05rem; margin-bottom: 24px; color: #333; }
.authors a { color: #333; text-decoration: none; }
.authors a:hover { text-decoration: underline; }
.corresponding { display: block; margin-top: 6px; font-size: 0.82rem; color: #999; }

/* --- Institution logos --- */
.affiliations {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  margin: 24px auto 32px;
}
.affiliation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 140px;
}
.affiliation .number { font-size: 0.85rem; font-weight: 600; color: #666; }
.affiliation img    { height: 50px; width: auto; object-fit: contain; }
.affiliation .name  { font-size: 0.78rem; color: #777; text-align: center; line-height: 1.4; }

/* --- Link buttons --- */
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border: 1.5px solid #1f3b6f;
  border-radius: 999px;
  background: #1f3b6f;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.link-btn:hover { background: #162d55; border-color: #162d55; }
.link-btn i { font-size: 0.95em; margin-left: -3px; }

/* --- BibTeX popup (shown when BibTeX button is clicked) --- */
pre.bibtex {
  text-align: left;
  background: #eef0f5;
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}


/* ==============================
   SECTION CONTENT STYLES
============================== */

/* TL;DR section spacing (tunable via --tldr-* vars at top of file) */
.tldr-section {
  padding-top: var(--tldr-top-space);
  padding-left: var(--tldr-side-space);
  padding-right: var(--tldr-side-space);
}
.tldr-section .section-inner { max-width: var(--tldr-max-width); }

/* TL;DR callout */
.tldr-box {
  background: #eef2f8;
  border-left: 4px solid #1f3b6f;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}
.tldr-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f3b6f;
  margin-bottom: 8px;
}
.tldr-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}
p.tldr-text {
  margin-bottom: 12px;
}
.tldr-list {
  margin: 0;
  padding-left: 1.3em;
  font-size: 1.0rem;
}
.tldr-list li + li {
  margin-top: 8px;
}
.tldr-question {
  margin-top: 14px;
  color: #1f3b6f;
  font-weight: 600;
}

/* TL;DR demo videos */
.tldr-videos {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.tldr-video-wrap {
  position: relative;
  flex: 1 1 300px;
  min-width: 240px;
  aspect-ratio: 1828 / 1080; /* matches the pill video; baggie is cropped to fit via object-fit */
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.tldr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tldr-video::-webkit-media-controls-panel {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.tldr-video:hover::-webkit-media-controls-panel {
  opacity: 1;
}
.video-overlay-caption,
.video-overlay-params {
  position: absolute;
  background: rgba(40, 40, 40, 0.75);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
  pointer-events: none;
}
.video-overlay-caption {
  top: 12px;
  left: 12px;
  white-space: nowrap;
}
.video-overlay-params {
  top: 12px;
  right: 12px;
  text-align: right;
}
.video-caption {
  text-align: center;
  font-size: 1.1rem;
}
.video-caption em {
  font-style: normal;
  display: inline-block;
  transform: skewX(-8deg);
}

/* --- "Read the paper" CTA --- */
.cta-section { padding-top: 24px; padding-bottom: 24px; }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.cta-text {
  font-size: 1.35rem;
  font-weight: 600;
  /* color: #1a1a1a; */
  color: #FF0000;
  text-decoration: underline;
  text-align: center;
}
.cta-btn {
  font-size: 1rem;
  padding: 10px 28px;
  margin-bottom: 10px;
}

/* --- Coming Soon --- */
.coming-soon {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  padding: 40px 0;
}

/* Abstract body text */
.abstract-text {
  font-size: 0.9rem;
  line-height: 1.9;
  width: 82.5%;
  margin: -20px auto 0;
  color: #000000;
  text-align: justify;
}

/* Local video player */
.section-video {
  display: block;
  width: 82.5%;
  margin: 0 auto;
  margin-top: -20px;
  margin-bottom: -10px;
  max-height: 560px;
  border-radius: 8px;
  background: #000;
}

/* Placeholder box for sections not yet filled in */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  color: #bbb;
  font-size: 1rem;
}
