/* LDP-Slicing page: self-contained so it always loads from same dir */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

/* Content stays in a centered column; sections stretch full width for background */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero .section-inner {
  padding: 2.5rem 1rem;
}

h1, h2, h3 {
  font-weight: 600;
  color: #1a1a1a;
  text-align: center !important;
  display: block;
  width: 100%;
}

/* ========== HERO: gradient black, full width ========== */
.hero {
  width: 100%;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%) !important;
  color: #fff;
  padding: 0;
  text-align: center;
  margin: 0;
}

.hero-title {
  color: #fff !important;
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  opacity: 0.98;
}

.hero p {
  margin: 0.35rem 0;
  color: rgba(255,255,255,0.95);
}

.hero-authors a {
  color: #7eb8da;
  text-decoration: none;
}

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

.hero-badges {
  margin-top: 1rem;
}

.hero-badges a {
  opacity: 0.95;
}

/* ========== PIPELINE: white, full width ========== */
.section-pipeline {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow-x: hidden;
}

.section-pipeline .tldr-title {
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-pipeline .tldr-list {
  max-width: 720px;
  margin: 0 auto 1.5rem auto;
  padding-left: 1.5rem;
  color: #333;
}

.section-pipeline .tldr-list li {
  margin-bottom: 0.35rem;
}

.pipeline-img-wrap {
  text-align: center;
  margin: 0;
  overflow: hidden;
  max-width: 100%;
}

.pipeline-img {
  max-width: min(100%, 85vw, 800px) !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 0 auto;
}

/* ========== ABSTRACT: grey, full width ========== */
.section-abstract {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #e8e8e8 !important;
}

.section-abstract h2 {
  margin-bottom: 1rem;
}

.section-abstract h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0056b3;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-abstract p {
  max-width: 720px;
  margin: 0 auto;
  color: #333;
}

/* ========== COMPARISON: light grey, full width ========== */
.section-comparison {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #f0f0f0 !important;
}

.section-comparison h2 {
  margin-bottom: 0.5rem;
}

.section-comparison h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #0056b3;
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.section-comparison > p {
  text-align: center;
  margin-bottom: 1rem;
  color: #444;
}

.comparison-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
  overflow: hidden;
}

.comparison-image {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.comparison-image img {
  max-width: 100% !important;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.comparison-caption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.comparison-controls {
  margin-top: 1rem;
  text-align: center;
}

.comparison-controls-top {
  margin-bottom: 0.5rem;
}

.comparison-controls label,
.comparison-controls span {
  margin-right: 0.5rem;
  font-weight: 500;
  color: #333;
}

.comparison-controls select {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
}

.eps-btn {
  display: inline-block;
  margin: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eps-btn:hover {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

.eps-btn.is-active {
  background: #0056b3;
  color: #fff;
  border-color: #0056b3;
}

/* ========== MAIN RESULTS: white, full width ========== */
.section-results {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.section-results h2,
.section-results h3 {
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.section-results h3:first-of-type {
  margin-top: 0.5rem;
}

.section-results p.results-img-wrap {
  text-align: center;
  margin: 0.5rem 0;
}

.section-results img {
  max-width: 100% !important;
  height: auto;
  display: inline-block;
  vertical-align: top;
}

/* Classification: two images side by side, shrunk to fit */
.results-classification-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  margin: 0.5rem 0;
}

.results-classification-wrap img {
  flex: 1 1 280px;
  max-width: 45%;
  min-width: 0;
  height: auto;
  display: block;
}

/* ========== CITATION & LICENSE: white, full width ========== */
.section-citation,
.section-license {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
}

.section-citation h2,
.section-license h2 {
  margin-bottom: 1rem;
}

.section-license p {
  text-align: center;
}

/* ========== FOOTER: full width ========== */
footer {
  width: 100%;
  padding: 1.5rem 1rem;
  background: #f5f5f5;
  text-align: center;
  margin: 0;
}

/* ========== GLOBAL ========== */
pre {
  background: #f5f5f5;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  border-radius: 4px;
  max-width: 720px;
  margin: 0 auto;
}

a {
  color: #0056b3;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}
