/* ============================================================
   ChannelTok — Paper Website Stylesheet
   Matches sukritipaul.github.io  |  Lato · #2e8b57 Sea Green
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #14b8a6;
  --green-lt:   #2dd4bf;
  --green-xlt:  rgba(20, 184, 166, 0.12);
  --green-xxlt: rgba(20, 184, 166, 0.06);
  --text:       #1a1a1a;
  --muted:      #666;
  --border:     #e8e8e8;
  --bg:         #f9f9f9;
  --white:      #ffffff;
  --max-w:      900px;
  --r:          8px;
  --shadow:     0 2px 16px rgba(0,0,0,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

a { color: var(--green); text-decoration: none; transition: color .18s; }
a:hover { color: var(--green-lt); }
img { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
}
.nav-brand { font-weight: 700; color: var(--green); font-size: 14px; letter-spacing: .4px; }
.nav-links { display: flex; gap: 18px; }
.nav-links a { font-size: 13px; color: var(--muted); }
.nav-links a:hover { color: var(--green); }
.nav-links .back { color: var(--green); font-weight: 700; }
@media (max-width: 600px) { .nav-links { display: none; } }

/* ---------- Sections ---------- */
.section { padding: 56px 20px; }
.section.alt { background: var(--bg); }
.container { max-width: var(--max-w); margin: 0 auto; }

/* ---------- Hero ---------- */
#hero {
  padding: 68px 20px 52px;
  text-align: center;
  background: linear-gradient(180deg, var(--green-xxlt) 0%, #fff 100%);
}
.venue-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.paper-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.22;
  max-width: 780px;
  margin: 0 auto 20px;
  color: var(--text);
}
.paper-title em { font-style: normal; }
.authors {
  font-size: 18px;
  color: #0d9488;
  max-width: 640px;
  margin: 0 auto 6px;
  line-height: 1.9;
}
.authors strong { color: #0d9488; }
.authors a { color: #0d9488; font-weight: 700; }
.affil { font-size: 15px; color: #aaa; margin-bottom: 26px; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 6px;
  font-size: 13.5px; font-weight: 700;
  font-family: 'Lato', sans-serif;
  transition: all .18s; cursor: pointer; border: none; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, #14b8a6, #a78bfa); color: #fff; border: none; }
.btn-primary:hover { background: linear-gradient(135deg, #0d9488, #8b5cf6); color: #fff; }
.btn-outline { background: linear-gradient(135deg, #14b8a6, #a78bfa); color: #fff; border: none; }
.btn-outline:hover { background: linear-gradient(135deg, #0d9488, #8b5cf6); color: #fff; }

/* Stats strip */
.stats-strip {
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  max-width: 680px; margin: 32px auto 0; margin-bottom: 0;
  background: var(--green-xxlt);
  border: 1px solid rgba(46,139,87,.18);
  border-radius: var(--r);
  padding: 14px 10px;
  gap: 0;
}
.stat-item { display: flex; flex-direction: column; align-items: center; padding: 0 14px; }
.stat-val { font-size: 20px; font-weight: 700; line-height: 1.1; background: linear-gradient(135deg, #14b8a6, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin-top: 3px; text-align: center; white-space: nowrap; }
.stat-sep { width: 1px; height: 28px; background: rgba(46,139,87,.2); flex-shrink: 0; }
@media (max-width: 480px) { .stat-sep { display: none; } .stats-strip { flex-wrap: wrap; gap: 12px; } }

/* ---------- Section heading ---------- */
.sec-head {
  font-size: 21px; font-weight: 700;
  color: #0d9488;
  border-bottom: 1.5px solid #0d9488;
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.sub-head { font-size: 15px; font-weight: 700; color: #333; margin: 28px 0 12px; }

/* ---------- Figure box ---------- */
.fig {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}
.fig img { width: 100%; }
.fig-cap {
  padding: 13px 17px;
  font-size: 15px; color: var(--muted); line-height: 1.6;
  border-top: 1px solid var(--border);
}
.fig-cap strong { color: var(--text); }


/* ---------- TL;DR ---------- */
.tldr {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--green-xlt);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 13px 18px;
  margin-bottom: 22px;
}
.tldr-tag { font-size: 11px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; margin-top: 2px; }
.tldr-body { font-size: 16px; color: #333; line-height: 1.65; }

/* ---------- Abstract text ---------- */
.abs-text { font-size: 17px; line-height: 1.85; color: #333; }
.abs-text + .abs-text { margin-top: 13px; }

/* ---------- Contributions / highlight cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 18px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 22px rgba(46,139,87,.14); transform: translateY(-2px); }
.card h4 { font-size: 13.5px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.card p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- CAROUSEL ---------- */
.carousel-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: var(--white);
  overflow: hidden;
  width: 100%;
}

.carousel-track-outer {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform .42s cubic-bezier(.4,0,.2,1);
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slide-cap {
  padding: 14px 20px 16px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  border-top: 1px solid var(--border);
  min-height: 64px;
}
.slide-cap strong { color: var(--text); }

/* Prev / Next buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0,0,0,.12);
  transition: background .15s;
  z-index: 10;
  /* keep inside the figure area, above caption */
  top: calc(50% - 30px);   /* visually centered on the image */
}
.carousel-btn:hover { background: var(--green-xlt); }
.carousel-btn svg { stroke: var(--green); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 12px 0 4px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.dot.active { background: var(--green); transform: scale(1.25); }

/* Slide label tabs */
.carousel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.tab {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  color: var(--muted);
  background: var(--white);
  transition: all .16s;
}
.tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- Results two-column row ---------- */
.results-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 36px;
}

.results-fig { /* the figure box sits in left column, nothing extra needed */ }

.results-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.table-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ar-table th {
  background: var(--green-xlt);
  color: var(--green);
  font-weight: 700;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ar-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  color: #444;
}
.ar-table tr:last-child td { border-bottom: none; }
.ar-table tr.ar-full td {
  background: var(--green-xxlt);
  font-weight: 700;
  color: var(--text);
}
.ar-table tr.ar-full td:first-child { color: var(--green); }

.table-note {
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.5;
}

.ar-callout {
  background: var(--green-xlt);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 10px 14px;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ar-stat {
  font-size: 20px;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .results-row { grid-template-columns: 1fr; }
}

/* ---------- BibTeX ---------- */
.bib-wrap { position: relative; }
.bib-wrap pre {
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 22px;
  font-family: 'Courier New', monospace;
  font-size: 13px; line-height: 1.7; color: #333;
  overflow-x: auto;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--green); color: #fff;
  border: none; border-radius: 4px;
  padding: 4px 11px; font-size: 12px;
  cursor: pointer; font-family: 'Lato', sans-serif;
  transition: background .16s;
}
.copy-btn:hover { background: var(--green-lt); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 26px 20px;
  font-size: 13px; color: #999;
}
footer a { color: var(--green); }

/* ---------- Fade-in ---------- */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade.in { opacity: 1; transform: none; }
