/* ---------- Base ---------- */
:root {
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --ink: #1f2933;
  --muted: #52606d;
  --rule: #e4e7eb;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --northcentral: #4a86e8;
  --south:        #e06666;
  --himalayan:    #8e7cc3;
  --western:      #6aa84f;
  --eastern:      #f6b26b;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans", "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 60px 0 32px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 15% 0%, rgba(74, 134, 232, 0.10), transparent 55%),
    radial-gradient(circle at 85% 5%, rgba(246, 178, 107, 0.10), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(142, 124, 195, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.venue-tag {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.title {
  font-family: "Castoro", "Google Sans Display", Georgia, serif;
  font-weight: 600;
  font-size: 2.3rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.authors {
  font-size: 1.0rem;
  margin: 0 0 8px;
}
.authors a { color: var(--ink); }
.authors a:hover { color: var(--accent); }

.affiliations {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 30px;
}

.emails {
  font-family: "Roboto Mono", "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 8px 0 28px;
}

/* ---------- Action buttons ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: transform 0.05s, box-shadow 0.15s, background 0.15s;
}
.btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.btn .icon { font-size: 1.0rem; line-height: 1; }
.btn.muted { background: #fff; color: #1f2933; }
.btn.muted:hover { background: #f1f5f9; color: #000; }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 44px 80px;
  padding: 40px 36px;
  margin: 40px auto 8px;
  max-width: 1180px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--rule);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}
.logo-strip a {
  display: inline-flex;
  align-items: center;
  opacity: 0.88;
  transition: opacity 0.15s, transform 0.05s;
}
.logo-strip a:hover { opacity: 1.0; transform: translateY(-1px); }
.logo-strip img {
  display: block;
  max-height: 200px;
  width: auto;
  object-fit: contain;
}
.logo-strip img.icdar  { max-height: 110px; }
.logo-strip img.iiith  { max-height: 95px; }
.logo-strip img.lekhya { max-height: 100px; }

.logo-strip .sep {
  width: 1px;
  height: 130px;
  background: var(--rule);
}

@media (max-width: 900px) {
  .logo-strip { gap: 32px 48px; padding: 28px 22px; max-width: 100%; }
  .logo-strip img.icdar  { max-height: 150px; }
  .logo-strip img.iiith  { max-height: 130px; }
  .logo-strip img.lekhya { max-height: 145px; }
  .logo-strip .sep { height: 90px; }
}

@media (max-width: 640px) {
  .logo-strip { gap: 22px 30px; padding: 20px 14px; }
  .logo-strip img.icdar  { max-height: 110px; }
  .logo-strip img.iiith  { max-height: 96px; }
  .logo-strip img.lekhya { max-height: 105px; }
  .logo-strip .sep { display: none; }
}

/* ---------- Stat badges ---------- */
.stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 26px 0 0;
}
.stat {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 18px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.stat .val {
  display: block;
  font-family: "Castoro", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}
.stat .lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
}
.stat.s1 .val { color: var(--northcentral); }
.stat.s2 .val { color: var(--western); }
.stat.s3 .val { color: var(--south); }
.stat.s4 .val { color: var(--himalayan); }

/* ---------- Section ---------- */
section { padding: 44px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

section.alt {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

h2.section-title {
  font-family: "Castoro", Georgia, serif;
  font-weight: 600;
  font-size: 1.7rem;
  margin: 0 0 18px;
  color: var(--ink);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

/* alternating section-title accent colors via :nth-of-type on the section */
section:nth-of-type(5n+1) h2.section-title { border-left-color: var(--northcentral); }
section:nth-of-type(5n+2) h2.section-title { border-left-color: var(--western); }
section:nth-of-type(5n+3) h2.section-title { border-left-color: var(--himalayan); }
section:nth-of-type(5n+4) h2.section-title { border-left-color: var(--eastern); }
section:nth-of-type(5n+5) h2.section-title { border-left-color: var(--south); }

h3.sub-title {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--ink);
}

p { margin: 0 0 14px; }

.abstract {
  font-size: 1.02rem;
  color: #2d3748;
  text-align: justify;
}

/* ---------- Figures ---------- */
figure {
  margin: 18px 0 8px;
  text-align: center;
}
figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: justify;
  line-height: 1.55;
}
figcaption b, figcaption strong { color: var(--ink); }

/* region color swatches in captions */
.region-nc { color: var(--northcentral); font-weight: 600; }
.region-s  { color: var(--south);        font-weight: 600; }
.region-h  { color: var(--himalayan);    font-weight: 600; }
.region-w  { color: var(--western);      font-weight: 600; }
.region-e  { color: var(--eastern);      font-weight: 600; }

/* ---------- Lists ---------- */
ul.contribs {
  list-style: none;
  padding-left: 0;
  margin: 12px 0 0;
}
ul.contribs li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px dashed var(--rule);
}
ul.contribs li:last-child { border-bottom: none; }
ul.contribs li::before {
  content: "▸";
  color: var(--accent);
  position: absolute;
  left: 6px;
  top: 8px;
}

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
}

table.results {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}
table.results th, table.results td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
table.results th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.88rem;
}
table.results td.num, table.results th.num { text-align: right; }
table.results tr.region-row td {
  background: #fafafa;
  font-style: italic;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--rule);
}
table.results tr.ours td {
  background: linear-gradient(90deg, #ecfeff 0%, #e0f2fe 100%);
  font-weight: 700;
  color: #0c4a6e;
}
table.results tr.overall td {
  border-top: 2px solid #94a3b8;
  font-weight: 700;
}
.caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 4px 0 6px;
  text-align: justify;
}
.caption b { color: var(--ink); }

/* ---------- BibTeX ---------- */
.bibtex {
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 8px;
  font-family: "Roboto Mono", "SF Mono", Menlo, monospace;
  font-size: 0.83rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 28px 16px 40px;
}

.visitor-counter {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.visitor-counter .visitor-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.visitor-counter a { display: inline-block; line-height: 0; }
.visitor-counter img {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  border: 1px solid var(--rule);
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .title { font-size: 1.7rem; }
  .hero { padding: 36px 0 16px; }
  section { padding: 32px 0; }
  h2.section-title { font-size: 1.4rem; }
  .emails { font-size: 0.78rem; }
}
