/* ==========================================================================
   Indic-LLM-Eval-Suite blog
   Theme: "Tiranga". Saffron is the accent, navy and green are used sparingly,
   and a faint Ashoka-chakra line drawing appears in the hero and closing quote.
   Type: Plus Jakarta Sans (headings/UI) + Newsreader (body). Light theme only.
   ========================================================================== */

:root {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --surface-2: #f6f4ef;
  --ink: #16181b;
  --ink-2: #454a52;
  --muted: #72777f;
  --line: #e9e5dd;
  --line-2: #d8d2c6;

  --saffron: #ec7a1c;       /* decorative fills, heatmap */
  --accent: #b4540c;        /* saffron for text (passes 4.5:1 on white) */
  --accent-ink: #ffffff;    /* text on saffron fills */
  --navy: #1f3270;
  --green: #1e8a3c;

  --heat: var(--saffron);
  --heat-max: 60%;
  --veil: rgba(22, 24, 27, 0.05);
  --shadow: 0 1px 2px rgba(22, 24, 27, 0.04), 0 8px 24px rgba(22, 24, 27, 0.06);
  --glow-a: rgba(236, 122, 28, 0.16);
  --glow-b: rgba(30, 138, 60, 0.10);
  --chakra: rgba(31, 50, 112, 0.055);

  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --indic: "Plus Jakarta Sans", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Tamil", "Noto Sans Telugu",
           "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Gujarati", "Noto Sans Oriya",
           "Noto Sans Gurmukhi", "Noto Naskh Arabic", sans-serif;

  --measure: 700px;
  --wide: 1140px;
  --radius: 12px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.68;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
a { color: inherit; text-decoration-color: color-mix(in oklab, var(--saffron) 70%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
strong { font-weight: 600; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--saffron), var(--green)); }


/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 0 0;
  background:
    radial-gradient(60% 70% at 12% 0%, var(--glow-a), transparent 70%),
    radial-gradient(55% 60% at 92% 100%, var(--glow-b), transparent 70%);
  border-bottom: 1px solid var(--line);
}
.hero-chakra {
  position: absolute; width: 640px; height: 640px; left: 50%; top: 50%;
  margin: -340px 0 0 -320px; color: var(--chakra); pointer-events: none;
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-inner { position: relative; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Co-brand lockup per NVIDIA guidance: partner first, NVIDIA second, centred divider pipe,
   equal clear space either side (measured ink to ink) */
.partners { --nv-h: 34px; display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; margin-bottom: 44px; }
.partner { flex: none; display: inline-flex; align-items: center; gap: 12px; text-align: left; white-space: nowrap; }
.partner-logo { height: 34px; width: auto; }
.partner-name { font-family: var(--display); font-weight: 800; font-size: 1.72rem; line-height: 1.05; letter-spacing: -.01em; color: var(--ink); display: flex; flex-direction: column; }
.partner-name small { font-weight: 500; font-size: .52em; color: var(--muted); letter-spacing: .01em; }
.partner-wordmark { height: var(--nv-h); width: auto; display: block; }
.partner-divider { flex: none; width: 1.5px; height: calc(var(--nv-h) * 2); margin: 0 calc(var(--nv-h) * .6); background: var(--ink); opacity: .55; }

.kicker {
  display: inline-block; font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: color-mix(in oklab, var(--saffron) 12%, transparent);
}
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.06; letter-spacing: -0.035em; margin: 0 auto 20px; max-width: 24ch; text-wrap: balance;
}
h1 .hl {
  background: linear-gradient(100deg, var(--saffron) 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.authors {
  list-style: none; margin: 4px auto 0; padding: 0; max-width: 860px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-family: var(--display); font-size: .98rem; font-weight: 600; color: var(--ink);
}
.author { white-space: nowrap; }
.aff { font-family: var(--display); font-size: .72em; font-weight: 700; color: var(--accent); margin-left: 1px; line-height: 0; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-family: var(--display); font-size: .88rem; color: var(--ink-2); margin: 12px 0 0; }
.affiliations .aff { margin: 0 2px 0 0; }
.authors-note { font-family: var(--display); font-size: .8rem; color: var(--muted); margin: 6px 0 30px; }

.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tag {
  font-family: var(--display); font-size: 0.92rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.tag:hover { color: var(--ink); border-color: var(--saffron); transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in oklab, var(--saffron) 20%, transparent); }
.tag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag-img { width: 20px; height: 20px; object-fit: contain; }

/* Multilingual ribbon */
.ribbon { position: relative; margin-top: 52px; padding: 16px 0 26px; }
.ribbon-words {
  position: relative; scroll-behavior: smooth;
  list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--wide);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px;
  font-family: var(--indic); font-weight: 500; font-size: 1.02rem; color: var(--muted);
}
.ribbon-words li { position: relative; padding: 4px 0; transition: color .4s ease; cursor: default; }
.ribbon-words li::after {
  content: attr(data-lang); position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%);
  font-family: var(--display); font-size: 0.64rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transition: opacity .4s ease; white-space: nowrap;
}
.ribbon-words li.is-on, .ribbon-words li:hover { color: var(--ink); }
.ribbon-words li.is-on::after, .ribbon-words li:hover::after { opacity: 1; }

/* ---------- Table of contents ---------- */
.toc { display: none; }
@media (min-width: 1260px) {
  .toc {
    display: block; position: fixed; top: 110px;
    left: max(16px, calc(50vw - var(--measure) / 2 - 250px)); width: 200px;
    font-family: var(--sans); font-size: 0.8rem; line-height: 1.4;
    transition: opacity .25s ease;
  }
  .toc.is-hidden { opacity: 0; pointer-events: none; }
}
.toc-title { text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; color: var(--muted); margin: 0 0 10px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-active { color: var(--ink); border-left-color: var(--saffron); font-weight: 600; }

/* ---------- Article ---------- */
main { padding: 48px 0 40px; }
.prose { counter-reset: sec; }
.prose > * + * { margin-top: 1.1em; }

.tldr {
  position: relative; margin-bottom: 2.2em; padding: 20px 24px 20px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; gap: 18px; align-items: baseline; overflow: hidden;
}
.tldr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--saffron) 0 33.3%, var(--line-2) 33.3% 66.6%, var(--green) 66.6%); }
.tldr-label { flex: none; font-family: var(--display); font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.tldr p { font-size: 1.2rem; line-height: 1.5; font-weight: 500; }

.lead { font-size: 1.24rem; line-height: 1.62; }

h2, h3 { font-family: var(--display); text-wrap: balance; color: var(--ink); }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; margin: 2.6em 0 0.75em !important; scroll-margin-top: 30px; }
h2.sec::before {
  counter-increment: sec; content: counter(sec, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 34px; height: 24px; margin-right: 12px; vertical-align: 5px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: 0;
  color: var(--accent); background: color-mix(in oklab, var(--saffron) 13%, transparent); border-radius: 6px;
}
h3 { font-size: 1.22rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; margin: 2em 0 0.55em !important; scroll-margin-top: 30px; }
.h3-num {
  display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 10px; vertical-align: 1px;
  font-family: var(--mono); font-size: .72em; font-weight: 500; color: var(--accent); border: 1.5px solid var(--saffron); border-radius: 50%;
}

.cite { font-family: var(--sans); font-size: .78em; color: var(--muted); }
.cite a { color: var(--accent); text-decoration: none; font-weight: 600; }

.pull {
  margin: 2.2em 0 !important; padding: 4px 0 4px 26px; border: 0; border-left: 4px solid var(--saffron);
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.65rem; line-height: 1.32; color: var(--ink);
  text-wrap: balance;
}

.aside { font-style: italic; color: var(--ink-2); padding-left: 18px; border-left: 2px solid var(--line-2); }

/* Two numbered objectives */
.twin { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.twin-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface-2); border-radius: var(--radius); }
.twin-item p { font-size: 1.02rem; line-height: 1.5; }
.twin-num { font-family: var(--mono); font-size: .85rem; color: var(--accent); border: 1.5px solid var(--saffron); border-radius: 50%; width: 26px; height: 26px; flex: none; display: grid; place-items: center; margin-top: 1px; }

/* Cards */
.cards { display: grid; gap: 14px; margin-top: 1.4em !important; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 20px; transition: border-color .15s ease; }
.card:hover { border-color: color-mix(in oklab, var(--saffron) 45%, var(--line)); }
.card p { font-family: var(--sans); font-size: .88rem; line-height: 1.58; color: var(--ink-2); }
.card p + p { margin-top: .5em; }
.card .card-title { font-family: var(--display); font-size: 1rem; line-height: 1.3; font-weight: 700; color: var(--ink); }
.card-eyebrow { font-size: .68rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; font-weight: 700; margin-bottom: 4px; }
.card-icon { width: 22px; height: 22px; fill: none; stroke: var(--saffron); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }

/* Figures */
.figure { margin: 2em 0 !important; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); }
.figure--light img { background: #fff; border: 1px solid var(--line); padding: 10px; }
figcaption { font-family: var(--sans); font-size: .84rem; line-height: 1.55; color: var(--muted); margin-top: 12px; }
figcaption strong { color: var(--ink-2); }

/* Capability table (Table 1) */
.captable { margin: 1.8em 0 !important; }
.captable-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.cap { background: var(--surface); padding: 14px 16px 16px; }
.cap-name { font-family: var(--display); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pills li {
  font-family: var(--sans); font-size: .82rem; font-weight: 500; line-height: 1; padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); border: 1px solid transparent; display: inline-flex; gap: 6px; align-items: center;
}
.pills li.is-native { border-color: color-mix(in oklab, var(--saffron) 70%, transparent); background: color-mix(in oklab, var(--saffron) 9%, var(--surface)); }
.pills li.is-refreshed::after { content: "↻"; color: var(--accent); font-weight: 700; }
.pill-note { font-size: .72rem; color: var(--muted); }
.pill-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: .78rem; color: var(--muted); margin-top: 10px; }
.key { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.key--native { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--saffron); background: color-mix(in oklab, var(--saffron) 9%, var(--surface)); }
.key--refreshed::before { content: "↻"; font-style: normal; color: var(--accent); font-weight: 700; }

.defs { padding-left: 1.1em; }
.defs li + li { margin-top: .6em; }
.defs li::marker { color: var(--saffron); }

/* Tooling stack */
.stack { display: flex; align-items: stretch; gap: 8px; font-family: var(--sans); margin: 1.6em 0 !important; }
.stack-item { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.stack-item--hl { border-color: var(--saffron); background: color-mix(in oklab, var(--saffron) 6%, var(--surface)); }
.stack-k { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.stack-v { font-size: .86rem; font-weight: 700; line-height: 1.35; }
.stack-arrow { align-self: center; color: var(--muted); }

/* Pipeline steps */
.steps { list-style: none; padding: 0; margin: 1.6em 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps li { position: relative; padding: 0 14px 0 0; }
.steps li::before { content: ""; position: absolute; top: 15px; left: 38px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--saffron), color-mix(in oklab, var(--saffron) 20%, transparent)); }
.steps li:last-child::before { display: none; }
.step-num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 2px solid var(--saffron); color: var(--accent); font-family: var(--mono); font-size: .76rem; font-weight: 500; }
.step-title { font-family: var(--display); font-weight: 700; font-size: .98rem; line-height: 1.3; margin: 12px 0 6px; }
.steps p:not(.step-title) { font-family: var(--sans); font-size: .84rem; line-height: 1.58; color: var(--ink-2); }

/* Call to action */
.cta { position: relative; overflow: hidden; margin: 2.4em 0 !important; padding: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, var(--line-2) 33.3% 66.6%, var(--green) 66.6%); }
.cta .cta-title { margin: 0 0 10px !important; font-size: 1.35rem; }
.cta p { font-size: 1.02rem; line-height: 1.6; color: var(--ink-2); }
.cta p + p { margin-top: .8em; }
.cta .cta-note { margin-top: 10px; font-family: var(--display); font-size: .88rem; color: var(--muted); }
.button {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: var(--display); font-size: .95rem; font-weight: 700; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; background: var(--saffron); color: #1b1206;
}
.button:hover { color: #1b1206; filter: brightness(1.06); }

/* Closing quote on a faded tricolour */
.tiranga {
  position: relative; overflow: hidden; margin: 2.4em 0 !important; padding: 56px 40px; border-radius: 18px; text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(180deg,
    color-mix(in oklab, #ff9933 26%, var(--surface)) 0 33.33%,
    var(--surface) 33.33% 66.66%,
    color-mix(in oklab, #138808 20%, var(--surface)) 66.66% 100%);
}
.tiranga-chakra { position: absolute; left: 50%; top: 50%; width: 170px; height: 170px; margin: -85px 0 0 -85px; color: color-mix(in oklab, #000080 14%, transparent); pointer-events: none; }
.tiranga blockquote {
  position: relative; margin: 0 auto; max-width: 30ch; padding: 0; border: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.7rem; line-height: 1.35; color: var(--ink); text-wrap: balance;
}
.tiranga blockquote strong { font-style: normal; font-family: var(--display); font-weight: 800; font-size: .82em; letter-spacing: -0.01em; display: block; margin-top: 14px; }

/* Code */
.code-block { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.copy-btn { font: inherit; letter-spacing: .04em; text-transform: none; font-size: .78rem; font-weight: 600; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 6px; padding: 3px 10px; cursor: pointer; }
.copy-btn:hover { color: var(--accent); border-color: var(--saffron); }
pre { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.6; color: var(--ink); }

/* Resources & references */
.resources { list-style: none; padding: 0; display: grid; gap: 10px; }
.resources a { display: flex; align-items: center; gap: 16px; text-decoration: none; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.resources a:hover { border-color: var(--saffron); color: inherit; transform: translateY(-1px); }
.res-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; }
.res-icon img { width: 26px; height: 26px; object-fit: contain; }
.res-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.res-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-k { font-family: var(--display); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.res-v { font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }

.refs { padding-left: 1.6em; font-size: .98rem; line-height: 1.6; color: var(--ink-2); }
.refs li + li { margin-top: .5em; }
.refs li::marker { font-family: var(--mono); color: var(--muted); font-size: .85em; }
.refs li:target { background: color-mix(in oklab, var(--saffron) 12%, transparent); border-radius: 4px; }
.refs a { font-family: var(--sans); font-size: .82em; }

/* Footer */
.site-footer { margin-top: 64px; padding-bottom: 48px; font-family: var(--sans); font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 50%; width: 120px; margin-left: -60px; height: 3px; background: linear-gradient(90deg, var(--saffron) 0 33.3%, var(--line-2) 33.3% 66.6%, var(--green) 66.6%); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 36px; text-align: center; }
.partners--small { --nv-h: 24px; margin: 0; }
.partners--small .partner-logo { height: 24px; }
.partners--small .partner-name { font-size: 1.3rem; }

/* ==========================================================================
   Results (interactive table)
   ========================================================================== */
.bleed {
  width: min(var(--wide), calc(100vw - 32px));
  margin-left: calc(50% - min(var(--wide), calc(100vw - 32px)) / 2) !important;
}
.results { margin-top: 1.8em !important; margin-bottom: 2em !important; font-family: var(--sans); word-spacing: .08em; }

.results-controls { display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px 14px 0 0; border-bottom: 0; }
.ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ctrl-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; width: 80px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chip {
  font: inherit; font-size: .79rem; font-weight: 500; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink-2); transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip--model { padding: 4px 11px 4px 4px; }
.chip--model[aria-pressed="true"] { background: color-mix(in oklab, var(--saffron) 10%, var(--surface)); border-color: color-mix(in oklab, var(--saffron) 60%, var(--line-2)); color: var(--ink); }
.chip--model[aria-pressed="false"] { color: var(--muted); border-style: dashed; }
.chip--model[aria-pressed="false"] .mlogo { filter: grayscale(1); opacity: .45; }
.chip--preset { border-style: dashed; }
.chip-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }

/* Model logo tile: white so every brand mark reads on the tinted chips */
.mlogo { flex: none; width: 28px; height: 28px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 2px; }
.chip .mlogo { width: 20px; height: 20px; border-radius: 50%; padding: 1px; }

.ctrl--meta { gap: 18px; padding-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s ease; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); transition: transform .15s ease; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-track { background: var(--saffron); }
.switch input:checked + .switch-track::after { transform: translateX(12px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--saffron); outline-offset: 2px; }

.heat-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--muted); }
.heat-ramp { width: 72px; height: 10px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in oklab, var(--heat) 4%, var(--surface)), color-mix(in oklab, var(--heat) var(--heat-max), var(--surface))); border: 1px solid var(--line); }
.heat-legend-note { opacity: .8; }
.results.no-heat .heat-legend { visibility: hidden; }
.btn-link { font: inherit; font-size: .8rem; font-weight: 600; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 2px 0; margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

/* Leaders strip */
.leaders {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-bottom: 0;
}
.leader { all: unset; box-sizing: border-box; background: var(--surface-2); padding: 10px 14px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.leader:hover { background: var(--surface); }
.leader:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; }
.leader.is-active { background: var(--surface); box-shadow: inset 0 -3px 0 var(--saffron); }
.leader-cat { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.leader-who { display: flex; align-items: flex-start; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.25; min-width: 0; }
.leader-who .mlogo { width: 22px; height: 22px; border-radius: 6px; padding: 1px; }
.leader-who span { overflow-wrap: anywhere; padding-top: 2px; }
.leader-score { font-size: .7rem; color: var(--muted); }

.results-hint { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 !important; padding: 8px 16px; font-size: .74rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-bottom: 0; }
.results-hint span::before { content: "•"; color: var(--saffron); margin-right: 6px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 0 0 14px 14px; background: var(--surface); }

.rtable { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .82rem; font-variant-numeric: tabular-nums; }
.rtable th, .rtable td { padding: 0; border-bottom: 1px solid var(--line); }
.rtable tbody tr:last-child > * { border-bottom: 0; }
.rtable thead th { vertical-align: bottom; border-bottom: 1.5px solid var(--line-2); background: var(--surface); }

.rtable .corner { position: sticky; left: 0; z-index: 3; text-align: left; padding: 10px 14px; min-width: 190px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.rtable .corner small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 2px; }

.model-btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; min-width: 88px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; text-align: center;
  border-radius: 8px 8px 0 0;
}
.model-btn:hover { background: var(--veil); }
.model-btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; }
.model-btn .mlogo { margin-bottom: 2px; }
.model-fam { font-weight: 700; font-size: .77rem; color: var(--ink); line-height: 1.2; white-space: nowrap; }
.model-var { font-size: .71rem; color: var(--muted); line-height: 1.2; white-space: nowrap; }
.model-org { font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .85; font-weight: 600; }

.rtable .row-label {
  position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; font-weight: 400;
  border-right: 1px solid var(--line);
}
.sort-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: baseline; gap: 8px; width: 100%;
  padding: 7px 14px; line-height: 1.3;
}
.sort-btn:hover .lbl { color: var(--accent); }
.sort-btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: -2px; }
.lbl { color: var(--ink); font-weight: 600; }
.metric { margin-left: auto; font-size: .69rem; color: var(--muted); font-style: italic; white-space: nowrap; }
.sort-ind { width: 10px; flex: none; color: var(--accent); font-size: .7rem; }
.row-label.is-sorted .lbl { color: var(--accent); font-weight: 700; }
.row--sub .sort-btn { padding-left: 28px; }
.row--sub .lbl { font-weight: 500; color: var(--ink-2); }

.rtable .cat-row th { text-align: left; background: var(--surface-2); padding: 0; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.rtable .cat-row th > span { position: sticky; left: 0; display: inline-block; padding: 8px 14px 7px; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--ink-2); }
.rtable .group-row th { text-align: left; background: var(--surface); border-bottom: 0; }
.rtable .group-row th > span { position: sticky; left: 0; display: inline-block; padding: 8px 14px 0; font-weight: 700; color: var(--ink); font-size: .82rem; }

.rtable td {
  text-align: center; padding: 7px 6px; color: var(--ink);
  background-color: color-mix(in oklab, var(--heat) calc(3% + var(--t, 0) * var(--heat-max)), var(--surface));
  transition: background-color .2s ease;
}
.results.no-heat .rtable td { background-color: var(--surface); }
.rtable td.is-na { color: var(--muted); background-color: var(--surface); }
.rtable td.is-best { font-weight: 800; }
.rtable td.is-best span { box-shadow: inset 0 -2px 0 currentColor; padding-bottom: 1px; }

/* Crosshair: row + column veil, keeps heat colour underneath */
.rtable tbody tr:hover td, .rtable td.col-hover { background-image: linear-gradient(var(--veil), var(--veil)); }
.rtable tbody tr:hover .row-label { background-image: linear-gradient(var(--veil), var(--veil)); }
.rtable td.cell-hover { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }

/* Pinned model (navy, so it stays distinct from the saffron heat) */
.rtable .is-pinned { box-shadow: inset 2px 0 0 var(--navy), inset -2px 0 0 var(--navy); }
.rtable thead .is-pinned { box-shadow: inset 2px 0 0 var(--navy), inset -2px 0 0 var(--navy), inset 0 2px 0 var(--navy); border-radius: 8px 8px 0 0; }
.rtable tbody tr:last-child .is-pinned { box-shadow: inset 2px 0 0 var(--navy), inset -2px 0 0 var(--navy), inset 0 -2px 0 var(--navy); }
.rtable thead .is-pinned .model-fam { color: var(--navy); }

.results figcaption { padding: 0 4px; }

/* Tooltip */
.tip {
  position: fixed; z-index: 60; pointer-events: none; max-width: 260px;
  background: var(--ink); color: var(--bg); border-radius: 8px; padding: 9px 12px 10px;
  font-family: var(--sans); font-size: .78rem; line-height: 1.4; box-shadow: 0 6px 24px rgba(0,0,0,.18);
}
.tip-val { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tip-rank { font-weight: 500; opacity: .85; margin-left: 6px; font-size: .78rem; }
.tip-model { font-weight: 700; margin-top: 2px; }
.tip-bench { opacity: .75; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .hero { padding-top: 60px; }
  .hero-chakra { width: 440px; height: 440px; margin: -240px 0 0 -220px; }
  .partners { --nv-h: 24px; margin-bottom: 32px; }
  .partner-logo { height: 28px; }
  .partner-name { font-size: 1.3rem; }
  .authors { gap: 6px 16px; font-size: .9rem; }
  .tldr { flex-direction: column; gap: 6px; padding: 18px 18px 18px 22px; }
  .tldr p { font-size: 1.1rem; }
  .twin, .cards--2, .cards--3, .captable-grid { grid-template-columns: 1fr; }
  .stack { flex-direction: column; }
  .stack-arrow { transform: rotate(90deg); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .steps li { padding: 0 0 0 46px; }
  .steps li::before { top: 34px; bottom: -18px; left: 15px; right: auto; width: 2px; height: auto; background: color-mix(in oklab, var(--saffron) 40%, transparent); }
  .step-num { position: absolute; left: 0; top: 0; }
  .step-title { margin-top: 4px; }
  .pull { font-size: 1.38rem; padding-left: 18px; }
  .tiranga { padding: 44px 22px; }
  .tiranga blockquote { font-size: 1.35rem; }
  .ctrl-label { width: 100%; }
  .btn-link { margin-left: 0; }
  .heat-legend-note { display: none; }
  .rtable .corner { min-width: 128px; }
  .metric { display: none; }
  .cta { padding: 26px 18px 22px; }
  .ribbon { margin-top: 40px; }
  .ribbon-words { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 14px; gap: 22px; }
  .ribbon-words::-webkit-scrollbar { display: none; }
  .ribbon-words li { flex: none; }
  .ribbon-words li::after { bottom: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .toc, .progress, .results-controls, .results-hint { display: none !important; }
}
