/* =====================
   GLOBAL
===================== */
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  line-height: 1.7;
}

/* =====================
   HEADER
===================== */
.header {
  text-align: center;
  padding: 55px 20px 40px;
}

.title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: #1f2937;
}

/* =====================
   AUTHORS
===================== */
.authors {
  text-align: center;
  margin-bottom: 14px;
}

.author-names {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 4px;
}

.author-names a {
  color: rgb(65, 114, 220);
  text-decoration: none;
}

.affiliations {
  font-size: 18px;
  line-height: 1.15;
}

.author-notes {
  font-size: 16px;
  font-style: italic;
}

/* =====================
   BUTTONS
===================== */
.button-group {
  margin: 18px 0 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn:hover {
  background-color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

/* =====================
   HERO IMAGE
===================== */
.hero-image {
  width: 100%;
  max-width: 650px;
  margin: 50px auto 24px;
  display: block;
}

/* =====================
   SECTIONS
===================== */
.section {
  max-width: 750px;
  margin: 10px auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-align: center;
}

/* =====================
   TEXT BLOCKS
===================== */
.motivation-text,
.abstract-text,
.method-intro {
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: left;
  font-size: 16px;
}

/* =====================
   METHOD
===================== */
.method {
  margin-top: 60px;
}

.sub-image {
  width: 100%;
  max-width: 760px;
  margin: 20px auto 28px;
  display: block;
  border-radius: 10px;
}

.method-list {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 20px;
  font-size: 16px;
}

.method-list li {
  margin-bottom: 14px;
}

/* =====================
   EXPERIMENTS
===================== */
.experiments {
  margin-top: 80px;
}

/* ---------- Table titles ---------- */
.table-title {
  font-size: 22px;
  font-weight: 600;
  margin: 12px 0 8px; /* 🔑 제목–표 간격 축소 */
}

/* =====================
   TABLE 1 (highlight)
===================== */
.table-highlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: flex-start;
}

.table-desc {
  text-align: left;
}

.table-desc h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* =====================
   COMMON TABLE STYLES
===================== */
.table-figure {
  text-align: center;
}

.table-figure img {
  width: 100%;
  border-radius: 6px;
}

.table-figure.full {
  max-width: 760px;
  margin: 0 auto 48px;
}
/* Best (red + bold) */
.table-note-inline .best {
  color: #dc2626;     /* red-600 */
  font-weight: 700;
}

/* Second-best (blue + underline) */
.table-note-inline .second-best {
  color: #2563eb;     /* blue-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* =====================
   TABLE 3 & 4
===================== */
.table-section {
  max-width: 760px;
  margin: 20px auto 0;   
  text-align: center;
}

.table-row {
  display: flex;
  gap: 12px;             
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.table-figure.half {
  flex: 0 0 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

/* 캡션 (Table 3,4 설명) */
.figure-caption-left {
  font-size: 16px;       
  line-height: 1.7;
  color: #1f2937;
  text-align: left;
  margin: 6px 0 4px;     
}

/* reproduced by us 문구 */
.table-note-inline {
  margin-top: 2px;      
  font-size: 14px;
  color: #1f2937;
  text-align: center;
}

/* =====================
   QUALITATIVE FIGURES
===================== */
.figure-text {
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
  text-align: left;
  margin-bottom: 30px;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 820px) {
  .table-row {
    flex-wrap: wrap;
  }

  .table-figure.half {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* =====================
   CITATION
===================== */
.citation {
  text-align: left;
}

.citation h2 {
  text-align: center;
  margin-bottom: 16px;
}

.bibtex {
  max-width: 760px;          /* 🔑 section 폭과 동일 */
  margin: 0 auto 40px;      /* 가운데 정렬 + 아래 여백 */
  background: #f5f5f5;
  padding: 24px 28px;       /* 🔑 박스 내부 여백 확대 */
  border-radius: 12px;      /* 살짝 더 부드럽게 */
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* =====================
   FOOTER
===================== */
.footer {
  text-align: center;
  padding: 40px;
  color: #777;
  border-top: 1px solid #ddd;
}
