/* ── DESIGN TOKENS ── */
:root {
  --bg:           #f7f6f2;
  --surface:      #ffffff;
  --border:       #e2e0d8;
  --text:         #1a1916;
  --muted:        #6b6860;
  --accent:       #2d5be3;
  --accent-light: #eef1fd;
  --dark:         #1a1916;
  --dark-text:    #f7f6f2;
  --stripe:       #f0efe9;
  --max-color:    #c0392b;
  --min-color:    #2563eb;
  --tag-vlm-bg:   #e8f4f8;
  --tag-vlm-text: #0369a1;
  --tag-llm-bg:   #fef3c7;
  --tag-llm-text: #92400e;
  --radius:       12px;
  --card-shadow:  0 2px 16px rgba(0,0,0,0.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

/* ── NAVBAR placeholder (keep bulma navbar if present) ── */

/* ══════════════════════════════════════════
   HERO / HEADER
══════════════════════════════════════════ */
.eg-hero {
  background: var(--bg);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
}

.eg-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: var(--text);
  max-width: 780px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.3px;
}

.eg-authors {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.8;
}

.eg-authors a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.eg-authors a:hover { text-decoration: underline; }

.eg-affiliations {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.eg-venue {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.9rem;
  margin: 0.5rem 0 1.5rem;
  background: var(--surface);
}

.eg-links {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.eg-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  background: var(--dark);
  color: var(--dark-text) !important;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  border: none;
}
.eg-link-btn:hover { opacity: 0.82; transform: translateY(-1px); }
.eg-link-btn i { font-size: 0.9rem; }

/* ══════════════════════════════════════════
   SHARED CARD / SECTION BLOCK
══════════════════════════════════════════ */
.eg-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.eg-section + .eg-section {
  padding-top: 0;
}

/* card shell */
.eg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

/* card header bar */
.eg-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.4rem 1.75rem 1.2rem;
  border-bottom: 1px solid var(--border);
}

.eg-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--dark);
  color: var(--dark-text);
  font-size: 0.7rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.03em;
}

.eg-card-header-text {}
.eg-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}
.eg-card-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* card body */
.eg-card-body {
  padding: 1.5rem 1.75rem;
}

/* card footer / legend */
.eg-card-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1.75rem;
  border-top: 1px solid var(--border);
  background: var(--stripe);
  font-size: 0.72rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--muted);
}

.legend-label { font-weight: 600; margin-right: 0.1rem; }

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

/* ── section heading ── */
.eg-section-heading {
  text-align: center;
  margin-bottom: 2rem;
}
.eg-section-heading h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--text);
  display: inline-block;
  letter-spacing: -0.3px;
}
.eg-section-heading h2::after {
  content: '';
  display: block;
  height: 3px;
  width: 40px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.4rem auto 0;
}

/* ══════════════════════════════════════════
   VIDEO
══════════════════════════════════════════ */
.eg-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.eg-video-wrap video,
.eg-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ══════════════════════════════════════════
   ANNOTATION GRID
══════════════════════════════════════════ */
.eg-anno-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}
.eg-anno-grid img {
  width: 100%;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   ABSTRACT
══════════════════════════════════════════ */
.eg-abstract-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  text-align: justify;
  margin-bottom: 1.5rem;
}
.eg-abstract-text strong { color: var(--accent); }

.eg-concept-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   APPROACH / BUILDING SECTION
══════════════════════════════════════════ */
.eg-approach-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.eg-approach-img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   TABLES
══════════════════════════════════════════ */
.eg-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.rt {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.79rem;
  font-family: 'DM Mono', monospace;
}

table.rt thead tr:first-child th {
  background: var(--dark);
  color: var(--dark-text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.7rem 0.55rem;
  text-align: center;
  border: none;
  white-space: nowrap;
}
table.rt thead tr:first-child th:first-child {
  text-align: left;
  padding-left: 1.1rem;
}
table.rt thead tr:nth-child(2) th {
  background: #2e2c28;
  color: #c8c5bc;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 0.45rem 0.55rem;
  text-align: center;
  border: none;
}
table.rt thead tr:nth-child(2) th:nth-child(7),
table.rt thead tr:nth-child(2) th:nth-child(13) {
  border-left: 2px solid #555;
}

table.rt tbody tr { border-bottom: 1px solid var(--border); }
table.rt tbody tr:nth-child(even) { background: var(--stripe); }
table.rt tbody tr:hover { background: var(--accent-light); }
table.rt tbody td {
  padding: 0.5rem 0.55rem;
  text-align: center;
  border: none;
}
td.model-name {
  text-align: left !important;
  padding-left: 1.1rem !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  white-space: nowrap;
}
td.params {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
td.sep-left { border-left: 2px solid var(--border) !important; }
td.ap-col {
  background: rgba(45,91,227,0.05);
  font-weight: 600;
}
td.all-ap {
  background: #e8edfb;
  font-weight: 700;
  color: var(--accent) !important;
  border-left: 2px solid #c7d4f8 !important;
}
td.best { color: var(--max-color) !important; font-weight: 700; }
td.worst { color: var(--min-color) !important; font-weight: 600; }

tr.baseline td { background: #fafaf7 !important; color: var(--muted); font-style: italic; }
tr.baseline td.model-name { font-style: normal; font-weight: 600; color: var(--text); }

.type-tag {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.type-tag.vlm { background: var(--tag-vlm-bg); color: var(--tag-vlm-text); }
.type-tag.llm { background: var(--tag-llm-bg); color: var(--tag-llm-text); }

/* ══════════════════════════════════════════
   QUALITATIVE / IMAGE SECTIONS
══════════════════════════════════════════ */
.eg-full-img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* ══════════════════════════════════════════
   SOCIAL ACTIVITIES
══════════════════════════════════════════ */
.eg-img-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.eg-img-stack img {
  width: 100%;
  display: block;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════
   BIBTEX
══════════════════════════════════════════ */
.eg-bibtex pre {
  background: var(--dark);
  color: #c8c5bc;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: auto;
  margin: 0;
  border: none;
}
.eg-bibtex code { background: transparent; color: inherit; padding: 0; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.eg-footer {
  background: var(--dark);
  color: #a09d97;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.7;
}
.eg-footer a { color: #c8c5bc; text-decoration: underline; }
.eg-footer .footer-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.eg-footer .footer-icons a {
  color: #c8c5bc;
  font-size: 1.3rem;
  text-decoration: none;
  transition: color 0.2s;
}
.eg-footer .footer-icons a:hover { color: #fff; }

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.eg-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

