:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #e6e8eb;
  --soft: #f8f9fb;
  --accent: #8b1538;
  --accent-soft: #f8eef2;
  --link: #3273dc;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.72;
}

.title,
.section-title,
.publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
}

.publication-hero .hero-body {
  padding-top: 3.4rem;
  padding-bottom: 2rem;
}

.venue-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
}

.venue-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.venue-logo {
  display: block;
  width: auto;
  object-fit: contain;
  transition: transform 180ms ease, opacity 180ms ease;
}
.venue-logo:hover { transform: translateY(-2px); opacity: .92; }
.venue-logo-emnlp { max-height: 68px; max-width: 210px; }
.venue-logo-salma { max-height: 68px; max-width: 92px; }

.publication-title {
  font-size: clamp(2.15rem, 4.2vw, 2.85rem) !important;
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
  max-width: 980px;
  margin: 0 auto;
}

.publication-authors {
  margin-top: 1.35rem;
  color: #2f3338;
  line-height: 1.8;
}

.author-block {
  display: inline-block;
  margin: 0 .45rem;
}

.publication-authors sup,
.publication-venue sup {
  color: var(--accent);
  font-weight: 700;
  margin-left: 2px;
}

.publication-venue {
  color: var(--muted);
  margin-top: .5rem;
  margin-bottom: 1.45rem;
  line-height: 1.7;
}

.venue-line {
  display: inline-block;
  color: var(--accent);
  letter-spacing: .01em;
}

.publication-links .link-block { display: inline-block; }
.publication-links .button {
  margin: .32rem;
  min-width: 108px;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
  box-shadow: 0 2px 8px rgba(20,20,20,.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.publication-links .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20,20,20,.13);
}

.teaser-section { padding-bottom: 2.8rem; }
.dataset-teaser {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.1rem 2.2rem 1.8rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(139,21,56,.055), transparent 28%),
    radial-gradient(circle at 90% 80%, rgba(50,115,220,.05), transparent 30%),
    #fff;
  box-shadow: 0 14px 35px rgba(23, 28, 38, .07);
  overflow: hidden;
}

.teaser-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.bangla-mark { color: var(--accent); font-size: 1.55rem; }
.wordmark-separator { width: 1px; height: 26px; background: var(--line); }
.teaser-kicker {
  margin: .55rem 0 1.8rem;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .02em;
}

.teaser-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.teaser-stat { padding: 1.25rem .75rem; position: relative; }
.teaser-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 24%;
  height: 52%;
  width: 1px;
  background: var(--line);
}
.teaser-stat strong {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--ink);
}
.teaser-stat span {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.sstt-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding-top: 1.35rem;
  color: #33383d;
  font-weight: 600;
  font-size: .9rem;
}
.sstt-flow span {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: .45rem .85rem;
  border-radius: 999px;
}
.sstt-flow i { color: #a7abb1; font-size: .75rem; }
.teaser-caption {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: #4c5055;
  line-height: 1.6;
}

.paper-section { padding-top: 3rem; padding-bottom: 3rem; }
.soft-section { background: var(--soft); }
.section-title { font-weight: 600 !important; letter-spacing: -.02em; }
.paper-copy { font-size: 1.02rem; }
.paper-copy p { margin-bottom: 1.15rem !important; }

.contribution-grid { margin-top: 1.3rem; }
.contribution-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1.5rem 1.45rem;
  box-shadow: 0 6px 18px rgba(23,28,38,.035);
}
.contribution-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1rem;
}
.contribution-card h3,
.responsibility-card h3,
.pipeline-stage h3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: var(--ink);
}
.contribution-card h3 { font-size: 1.08rem; margin-bottom: .55rem; }
.contribution-card p { color: var(--muted); font-size: .92rem; }

.pipeline-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: .65rem;
  align-items: stretch;
  margin-top: 1.8rem;
}
.pipeline-stage {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem 1.05rem;
  background: #fff;
}
.pipeline-number {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-family: 'Google Sans', sans-serif;
  font-size: .78rem;
  letter-spacing: .08em;
  margin-bottom: .65rem;
}
.pipeline-stage h3 { font-size: .98rem; margin-bottom: .45rem; }
.pipeline-stage p { color: var(--muted); font-size: .84rem; line-height: 1.55; }
.pipeline-arrow { display: flex; align-items: center; color: #b7bbc1; }

.figure-columns { margin-top: 1.35rem; }
.paper-figure {
  height: 100%;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(23,28,38,.05);
}
.paper-figure img {
  width: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}
.paper-figure figcaption {
  border-top: 1px solid var(--line);
  padding: .8rem 1rem .95rem;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  font-style: italic;
}
.zoomable { cursor: zoom-in; }
.wide-figure { margin: 1.5rem auto 2.3rem; }
.wide-figure img { max-height: 580px; }

.comparison-table-wrap { max-width: 800px; margin: 1.6rem auto 0; }
.academic-table {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(23,28,38,.035);
}
.academic-table th {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: #3b3f44;
  background: #f7f8fa;
}
.academic-table td,
.academic-table th { vertical-align: middle !important; }
.lipighor-row td { background: #fbf1f4 !important; color: #591026; }
.muted-note { color: var(--muted); }
.compact-table { font-size: .9rem; }
.results-tables { margin-top: 1.2rem; }

.gold-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  margin-top: 1.3rem;
}
.gold-stats div {
  padding: .85rem .7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  background: #fff;
}
.gold-stats strong {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.25rem;
}
.gold-stats span { display: block; color: var(--muted); font-size: .74rem; margin-top: .2rem; }

.responsibility-grid { margin-top: 1.2rem; }
.responsibility-card {
  height: 100%;
  background: #fff;
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.2rem;
  box-shadow: 0 5px 16px rgba(23,28,38,.035);
}
.responsibility-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.responsibility-card p { color: var(--muted); font-size: .9rem; }

.bibtex-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bibtex-heading-row .title { margin-bottom: .8rem; }
.bibtex-block {
  border-radius: 9px;
  border: 1px solid #dfe2e6;
  background: #f6f8fa !important;
  padding: 1.15rem 1.25rem !important;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: .86rem;
}
.copy-bibtex { border-radius: 999px; }

.project-footer {
  padding: 2.5rem 1.5rem;
  background: #f5f5f5;
  color: #555;
}
.footer-sub { color: #70757a; margin-bottom: .55rem !important; }
.project-footer a { color: var(--link); }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .75rem;
  background: rgba(13, 15, 18, .92);
  z-index: 9999;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 94vw); max-height: 83vh; object-fit: contain; }
.lightbox p { color: #f1f3f4; text-align: center; max-width: 900px; font-size: .88rem; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 25px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .publication-hero .hero-body { padding-top: 2.2rem; }
  .venue-logos { gap: 1.3rem; }
  .venue-logo-emnlp { max-height: 52px; max-width: 155px; }
  .venue-logo-salma { max-height: 54px; max-width: 70px; }
  .publication-title { font-size: 2rem !important; }
  .publication-authors { font-size: 1.03rem !important; }
  .publication-venue { font-size: .95rem !important; }
  .author-block { margin: 0 .22rem; }
  .dataset-teaser { padding: 1.35rem 1rem; border-radius: 14px; }
  .teaser-stats { grid-template-columns: repeat(2, 1fr); }
  .teaser-stat:nth-child(2)::after,
  .teaser-stat:nth-child(4)::after { display: none; }
  .teaser-stat:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .pipeline-strip { grid-template-columns: 1fr; }
  .pipeline-arrow { justify-content: center; transform: rotate(90deg); min-height: 20px; }
  .paper-section { padding-top: 2.3rem; padding-bottom: 2.3rem; }
  .gold-stats { grid-template-columns: 1fr 1fr 1fr; }
  .bibtex-heading-row { align-items: flex-start; }
}

@media (max-width: 480px) {
  .publication-links .button { min-width: 0; }
  .teaser-wordmark { font-size: 1.2rem; }
  .bangla-mark { font-size: 1.3rem; }
  .teaser-stat strong { font-size: 1.3rem; }
  .sstt-flow i { transform: rotate(90deg); }
  .sstt-flow { flex-direction: column; }
  .gold-stats { grid-template-columns: 1fr; }
}
