/* ════════════════════════════════════════════════════════════
   PaintBench Design System
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:         #F9F8F5;
  --bg-alt:     #F0EFE9;
  --bg-dark:    #0B0C1A;
  --ink:        #0D0F1C;
  --ink-2:      #3A3D5C;
  --ink-3:      #6B6F8F;

  --geo:        #2B5EA7;
  --geo-light:  #EBF2FF;
  --str:        #C05622;
  --str-light:  #FFF3EB;
  --col:        #276747;
  --col-light:  #EAFAF0;
  --sym:        #6B2D8B;
  --sym-light:  #F5EEFF;

  --accent:     #4F46E5;
  --accent-dim: #EEF0FF;
  --accent-h:   #4338CA;

  --border:     #E2E0D8;
  --border-2:   #C8C5BA;

  --max-w:      1180px;
  --section-py: 52px;

  --rainbow: linear-gradient(135deg,
    var(--geo) 0%,
    var(--col) 35%,
    var(--str) 65%,
    var(--sym) 100%
  );

  --font: 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: 'Fira Code', 'Roboto Mono', monospace;
  font-size: .85em;
  background: var(--bg-alt);
  padding: .1em .35em;
  border-radius: 4px;
  color: var(--accent);
}

/* ── Utilities ──────────────────────────────────────── */
.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -.02em;
}
.section-sub {
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────── */
.cta-arxiv, .cta-primary, .cta-secondary, .cta-hf, .cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s var(--ease);
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid transparent;
}
.cta-arxiv   { background: #B31B1B; color: #fff; border-color: #B31B1B; }
.cta-arxiv:hover { background: #9A1717; border-color: #9A1717; text-decoration: none; }
.cta-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.cta-primary:hover { background: var(--accent-h); border-color: var(--accent-h); text-decoration: none; }
.cta-secondary { background: var(--ink); color: #fff; border-color: var(--ink); }
.cta-secondary:hover { opacity: .85; text-decoration: none; }
.cta-hf { background: #FFD21E; color: #1a0f00; border-color: #FFD21E; }
.cta-hf:hover { background: #F0C400; border-color: #F0C400; text-decoration: none; }
.cta-ghost { background: transparent; color: var(--ink-2); border-color: var(--border-2); }
.cta-ghost:hover { border-color: var(--ink-2); color: var(--ink); text-decoration: none; }

/* Logo images inside buttons */
.btn-logo {
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}
.btn-logo-arxiv {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
}
.btn-logo-hf {
  height: 18px;
  width: auto;
}


/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
#hero {
  padding: 36px 24px 0;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-text-block {
  text-align: left;
  max-width: 900px;
  margin: 0 auto 24px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 20px;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Brush bullet list */
.hero-bullets {
  list-style: none;
  max-width: 800px;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .97rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.bullet-brush {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 18px;
}
.hero-body {
  font-size: .96rem;
  color: var(--ink-2);
  margin-bottom: 16px;
  max-width: 600px;
}
.hero-stat-line {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 28px;
}
.stat-model {
  font-weight: 700;
  color: var(--ink);
}
.stat-highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.hero-authors {
  font-size: .94rem;
  color: var(--ink-3);
  margin-top: 14px;
  line-height: 1.7;
}
.hero-authors a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.hero-authors a:hover { color: var(--accent); }
.hero-authors .hero-affil { margin-left: 4px; }


/* ════════════════════════════════════════════════════════════
   GALLERY SLIDESHOW
   ════════════════════════════════════════════════════════════ */
.gallery-slideshow {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 24px;
}
.gallery-ss-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.gallery-select {
  flex: 1;
  font-family: var(--font);
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  outline: none;
}
.gallery-select:focus { border-color: var(--accent); }
.gallery-nav { display: flex; gap: 6px; flex-shrink: 0; }
.gallery-nav-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.gallery-nav-btn:hover { border-color: var(--ink-2); color: var(--ink); background: var(--bg-alt); }

.gallery-ss-viewport { display: grid; }

/* ── Gallery card ──────────────────────────────────── */
.g-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
}
.g-card.ss-active {
  opacity: 1;
  pointer-events: auto;
}
.g-card.cat-geo { border-top-color: var(--geo); }
.g-card.cat-str { border-top-color: var(--str); }
.g-card.cat-col { border-top-color: var(--col); }
.g-card.cat-sym { border-top-color: var(--sym); }

.g-cat-badge.tgb-bar     { background: #EBF2FF; color: #2B5EA7; }
.g-cat-badge.tgb-scatter  { background: #EAFAF0; color: #276747; }
.g-cat-badge.tgb-line     { background: #FFF3EB; color: #C05622; }
.g-cat-badge.tgb-heatmap  { background: #F5EEFF; color: #6B2D8B; }
.g-cat-badge.tgb-network  { background: #E8F8F8; color: #0D7377; }

.g-card.cat-tgb-bar     { border-top-color: #2B5EA7; }
.g-card.cat-tgb-scatter { border-top-color: #276747; }
.g-card.cat-tgb-line    { border-top-color: #C05622; }
.g-card.cat-tgb-heatmap { border-top-color: #6B2D8B; }
.g-card.cat-tgb-network { border-top-color: #0D7377; }

.g-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.g-task-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}
.g-cat-badge {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.g-cat-badge.geo { background: var(--geo-light); color: var(--geo); }
.g-cat-badge.str { background: var(--str-light); color: var(--str); }
.g-cat-badge.col { background: var(--col-light); color: var(--col); }
.g-cat-badge.sym { background: var(--sym-light); color: var(--sym); }

.g-card-images {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.g-sep { color: var(--border-2); font-size: 1.1rem; margin-top: -18px; user-select: none; }
.g-img-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.g-img-slot img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}
.g-img-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink-3);
}
.g-img-slot:nth-child(1) .g-img-label { color: #2563eb; }
.g-img-slot:nth-child(3) .g-img-label { color: #16a34a; }
.g-img-slot:nth-child(5) .g-img-label { color: #dc2626; }
.g-arrow { color: var(--border-2); font-size: 1.1rem; margin-top: -16px; }

.g-instruction {
  font-size: .88rem;
  color: var(--ink-2);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.g-instr-label {
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
  margin-right: 4px;
}
.g-model-name {
  font-size: .82rem;
  font-weight: 700;
  color: #dc2626;
  text-align: center;
  letter-spacing: .01em;
}
.g-card-images .g-img-slot:not(:last-child)::after {
  content: '';
  display: block;
  height: calc(0.6rem * 1.65);
}


/* ════════════════════════════════════════════════════════════
   LEADERBOARD
   ════════════════════════════════════════════════════════════ */
#leaderboard {
  padding: 32px 24px var(--section-py);
  background: var(--bg-alt);
}
.leaderboard-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.lb-container { max-width: 720px; margin: 0 auto; }

.lb-header-row {
  display: grid;
  grid-template-columns: 36px 1fr 200px;
  padding: 0 20px 12px;
  gap: 16px;
  border-bottom: 1.5px solid var(--border);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lb-row {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.lb-row:hover { background: var(--bg-alt); }
.lb-row.expanded { background: var(--bg-alt); }

.lb-main {
  display: grid;
  grid-template-columns: 36px 1fr 200px;
  align-items: center;
  gap: 16px;
  padding: 13px 20px;
}
.lb-rank { font-size: .85rem; font-weight: 700; color: var(--ink-3); text-align: center; }
.lb-rank.r1 { color: #B8860B; }
.lb-rank.r2 { color: #6E7E8B; }
.lb-rank.r3 { color: #A05C3A; }

.lb-name { font-size: .93rem; font-weight: 600; color: var(--ink); }
.lb-name .lb-abbr { font-size: .73rem; font-weight: 500; color: var(--ink-3); margin-left: 6px; }

.lb-score-wrap { display: flex; align-items: center; gap: 10px; }
.lb-bar-bg { flex: 1; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.lb-bar-fill { height: 100%; border-radius: 99px; background: var(--accent); }
.lb-score-num { font-size: .86rem; font-weight: 700; color: var(--ink); min-width: 36px; text-align: right; }

.lb-details { padding: 0 20px 14px 72px; display: none; }
.lb-row.expanded .lb-details { display: block; }
.lb-cat-bars { display: flex; flex-direction: column; gap: 7px; }
.lb-cat-row { display: grid; grid-template-columns: 150px 1fr 42px; align-items: center; gap: 10px; }
.lb-cat-label { font-size: .73rem; font-weight: 600; }
.lb-cat-label.geo { color: var(--geo); }
.lb-cat-label.str { color: var(--str); }
.lb-cat-label.col { color: var(--col); }
.lb-cat-label.sym { color: var(--sym); }
.lb-cat-bar-bg { height: 5px; background: var(--border); border-radius: 99px; overflow: hidden; }
.lb-cat-bar-fill { height: 100%; border-radius: 99px; }
.lb-cat-bar-fill.geo { background: var(--geo); }
.lb-cat-bar-fill.str { background: var(--str); }
.lb-cat-bar-fill.col { background: var(--col); }
.lb-cat-bar-fill.sym { background: var(--sym); }
.lb-cat-score { font-size: .76rem; font-weight: 600; color: var(--ink-2); text-align: right; }

.hm-section { max-width: 100%; margin: 40px 0 0; }
.hm-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border-2);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: var(--font);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .18s;
  width: 100%;
  justify-content: space-between;
}
.hm-toggle-btn:hover { border-color: var(--ink-2); color: var(--ink); background: var(--bg-alt); }
.hm-chevron { transition: transform .25s var(--ease); flex-shrink: 0; }
.hm-toggle-btn[aria-expanded="true"] .hm-chevron { transform: rotate(180deg); }

.hm-panel { margin-top: 16px; border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; }
.hm-scroll { overflow-x: auto; }
.hm-table { border-collapse: collapse; min-width: 100%; font-size: .73rem; }
.hm-table th, .hm-table td {
  padding: 7px 8px;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
  white-space: nowrap;
}
.hm-table th { font-weight: 700; background: var(--bg-alt); color: var(--ink-2); }
.td-model {
  text-align: left !important;
  font-weight: 600;
  color: var(--ink) !important;
  background: var(--bg-alt) !important;
  position: sticky;
  left: 0;
  min-width: 120px;
  border-right: 2px solid var(--border) !important;
}
.td-overall { font-weight: 700; background: #ECEAE4 !important; border-left: 2px solid var(--border) !important; }
.hm-score { font-size: .7rem; }
.hm-note {
  padding: 12px 16px;
  font-size: .76rem;
  color: var(--ink-3);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.cat-tag {
  display: inline-block;
  font-size: .63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin: 0 2px;
}
.cat-tag.geo { background: var(--geo-light); color: var(--geo); }
.cat-tag.str { background: var(--str-light); color: var(--str); }
.cat-tag.col { background: var(--col-light); color: var(--col); }
.cat-tag.sym { background: var(--sym-light); color: var(--sym); }
.hm-cat-header th { font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hm-cat-header th.h-geo { background: var(--geo-light); color: var(--geo); }
.hm-cat-header th.h-str { background: var(--str-light); color: var(--str); }
.hm-cat-header th.h-col { background: var(--col-light); color: var(--col); }
.hm-cat-header th.h-sym { background: var(--sym-light); color: var(--sym); }
.hm-cat-header th.h-all { background: #ECEAE4; color: var(--ink-2); }


/* ════════════════════════════════════════════════════════════
   TINYGRAFIXBENCH
   ════════════════════════════════════════════════════════════ */
#tgb {
  padding: var(--section-py) 24px;
  overflow: hidden;
}
.tgb-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 560px;
  gap: 52px;
  align-items: flex-start;
}

#tgb h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.tgb-name-grad {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tgb-lead {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.tgb-left p { font-size: 1rem; color: var(--ink-2); margin-bottom: 18px; line-height: 1.65; }

.tgb-callout {
  background: var(--bg);
  border-left: 4px solid var(--sym);
  border-radius: 0 8px 8px 0;
  padding: 13px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 24px;
}

.tgb-rank-compare {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 24px;
}
.tgb-rc-col { flex: 1; min-width: 0; }
.tgb-rc-head {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
  text-align: center;
}
.tgb-rc-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  margin-bottom: 3px;
  font-size: .86rem;
}
.tgb-rc-row.rank1 { background: #FFF8E0; }
.tgb-rc-row.rank2 { background: #F5F4EF; }
.tgb-rc-row.rank3 { background: var(--bg-alt); }
.tgb-rc-row.others { color: var(--ink-3); }
.rc-rank { font-weight: 800; font-size: .78rem; min-width: 20px; color: var(--ink-3); }
.rc-name { flex: 1; font-weight: 600; color: var(--ink); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-score { font-weight: 700; color: var(--accent); font-size: .86rem; white-space: nowrap; }

.tgb-rc-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
  flex-shrink: 0;
  padding: 0 2px;
}
.tgb-rc-arrow span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* TGB slideshow */
.tgb-right { position: relative; }

.tgb-ss-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.tgb-ss-viewport { display: grid; }

.tgb-ss-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
}
.tgb-ss-card.ss-active {
  opacity: 1;
  pointer-events: auto;
}
.tgb-ss-header {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tgb-ss-header .tgb-ss-task { color: var(--ink-2); }
.tgb-ss-imgs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.tgb-ss-imgs img {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.tgb-arrow { color: var(--border-2); font-size: .85rem; text-align: center; }
.tgb-ss-instruction {
  font-size: .84rem;
  color: var(--ink-2);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}


/* ════════════════════════════════════════════════════════════
   CITATION
   ════════════════════════════════════════════════════════════ */
#citation {
  padding: var(--section-py) 24px;
  border-top: 1.5px solid var(--border);
}
.cite-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: flex-start;
}
.cite-authors h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  letter-spacing: -.02em;
}
.author-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.author-chips a {
  font-size: .84rem;
  font-weight: 500;
  padding: 6px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--ink-2);
  transition: all .15s;
  text-decoration: none;
}
.author-chips a:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.affil { font-size: .82rem; color: var(--ink-3); margin-bottom: 20px; font-weight: 500; }
.cite-links { display: flex; gap: 10px; flex-wrap: wrap; }
.cite-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  transition: all .15s;
}
.cite-link:hover { background: var(--accent); color: #fff; text-decoration: none; }
.cite-link-arxiv { color: #B31B1B; border-color: #B31B1B; }
.cite-link-arxiv:hover { background: #B31B1B; color: #fff; }
.cite-link-hf { color: #C9900A; border-color: #C9900A; }
.cite-link-hf:hover { background: #C9900A; color: #fff; }

.cite-bibtex h3 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.bibtex-box { position: relative; background: var(--ink); border-radius: 12px; overflow: hidden; }
.bibtex-box pre {
  font-family: 'Fira Code', 'Roboto Mono', monospace;
  font-size: .77rem;
  color: #A0AFCF;
  padding: 20px;
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all .15s;
}
.copy-btn:hover { background: rgba(255,255,255,.16); color: #fff; }


/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .tgb-container { grid-template-columns: 1fr; gap: 40px; }

  .cite-container { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  :root { --section-py: 64px; }
  #hero { padding: 16px 16px 0; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.2rem); }
  .hero-ctas { gap: 8px; }
  .cta-arxiv, .cta-primary, .cta-secondary, .cta-hf, .cta-ghost { padding: 9px 14px; font-size: .82rem; }

  .lb-header-row { grid-template-columns: 32px 1fr 90px; }
  .lb-main { grid-template-columns: 32px 1fr 90px; padding: 12px 16px; }
  .lb-name .lb-abbr { display: none; }
  .lb-details { padding-left: 48px; }
  .lb-cat-row { grid-template-columns: 110px 1fr 36px; }

  .tgb-rank-compare { flex-direction: column; }
  .tgb-rc-arrow { flex-direction: row; }

  .hm-table { font-size: .63rem; }
  .hm-table th, .hm-table td { padding: 5px; }

  #leaderboard, #tgb { padding: var(--section-py) 16px; }
}
