@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   RealVuln — global stylesheet
   Editorial / academic-benchmark "paper" look on dark warm
   charcoal with restrained gold accents and tier colors.
   dashboard.css EXTENDS this file; classes defined there are
   intentionally not redefined here.
   ============================================================ */

/* ----------------------------------------------------------
   Design tokens
   ---------------------------------------------------------- */
:root {
  /* surfaces */
  --ink: #0c0b09;
  --ink-2: #141210;
  --ink-3: #1b1814;

  /* text */
  --fg: #ece7df;
  --fg-2: #b2aa9d;
  --fg-3: #8a8276;
  --fg-faint: #6b6458;

  /* lines */
  --hair: rgba(255, 255, 255, 0.08);
  --rule-strong: rgba(255, 255, 255, 0.18);

  /* accents */
  --accent: #cfa45c;
  --accent-dim: #a07f44;
  --vuln: #cfa45c;

  /* tier colors */
  --tier-sec: #cfa45c;
  --tier-llm: #7e9fc4;
  --tier-rule: #8c8478;

  /* type */
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;

  /* layout */
  --measure: 720px;
}

/* ----------------------------------------------------------
   Reset & base
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

a { color: var(--accent); text-decoration: none; transition: color .14s ease; }
a:hover { color: var(--fg); }

img, svg { display: block; max-width: 100%; }

::selection { background: rgba(207, 164, 92, 0.28); color: var(--fg); }

strong, b { font-weight: 600; color: var(--fg); }
em { font-style: italic; }
sub, sup { font-size: 0.72em; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* ----------------------------------------------------------
   Layout shell
   ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

main { display: block; }

.section { padding: 64px 0; }
.content { padding: 56px 0; }

/* ----------------------------------------------------------
   Top bar
   ---------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: rgba(12, 11, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.topbar-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--fg);
}
.brand:hover { color: var(--fg); }
.brand .mark { color: var(--accent); font-size: 16px; transform: translateY(1px); }
.brand .v {
  font-size: 11px;
  color: var(--fg-faint);
  letter-spacing: 0.04em;
  font-weight: 500;
}

.topnav { display: flex; align-items: center; gap: 26px; }
.navlinks { display: contents; }
.topnav a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-2);
  letter-spacing: 0.005em;
  transition: color .14s ease;
}
.topnav a:hover { color: var(--fg); }

.gh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-2);
  border: 1px solid var(--hair);
  border-radius: 7px;
  padding: 6px 12px;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.gh:hover { color: var(--fg); border-color: var(--rule-strong); background: var(--ink-2); }
.gh svg { width: 15px; height: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hair);
  border-radius: 7px;
  color: var(--fg);
  font-size: 20px;
  line-height: 1;
  width: 40px;
  height: 36px;
  cursor: pointer;
  font-family: var(--mono);
  transition: border-color .14s ease;
}
.nav-toggle:hover { border-color: var(--rule-strong); }

/* ----------------------------------------------------------
   Mobile menu
   ---------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 60px 0 0 0;
  z-index: 49;
  background: rgba(12, 11, 9, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 22px 32px;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .1, 1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--fg);
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
  letter-spacing: -0.01em;
}
.mobile-menu a:last-child { border-bottom: none; color: var(--fg-2); font-family: var(--mono); font-size: 15px; }
.mobile-menu a:hover { color: var(--accent); }

/* ----------------------------------------------------------
   Masthead
   ---------------------------------------------------------- */
.masthead { padding-top: 78px; padding-bottom: 40px; }

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--fg-3);
  margin-bottom: 30px;
}
.eyebrow a { color: var(--fg-2); }
.eyebrow a:hover { color: var(--accent); }
.eyebrow .dot { color: var(--fg-faint); }
.eyebrow .live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
}
.eyebrow .live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(207, 164, 92, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 164, 92, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(207, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(207, 164, 92, 0); }
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 12vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--fg);
}
h1 .vuln { color: var(--vuln); font-style: italic; }

.subtitle {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.42;
  color: var(--fg-2);
  max-width: 760px;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
}

.byline {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-3);
  max-width: 760px;
  margin-bottom: 36px;
}
.byline .auth a { color: var(--fg); }
.byline .auth a:hover { color: var(--accent); }
.byline .sep { color: var(--fg-faint); margin: 0 10px; }

/* action buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  background: var(--ink-2);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  padding: 10px 16px;
  transition: all .14s ease;
  cursor: pointer;
  letter-spacing: 0.005em;
}
.btn:hover { color: var(--fg); border-color: var(--accent); background: var(--ink-3); transform: translateY(-1px); }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1206;
  font-weight: 600;
}
.btn.primary:hover { background: #dcb068; border-color: #dcb068; color: #1a1206; }

/* hero KPIs */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow: hidden;
}
.hk {
  background: var(--ink-2);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hk-ico { color: var(--accent); height: 24px; }
.hk-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hk-n {
  font-family: var(--mono);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.hk-l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ----------------------------------------------------------
   Section headers
   ---------------------------------------------------------- */
.subhead {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 18px;
}
.sn {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  flex: none;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
}
h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--fg);
}
h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--fg);
}
h5 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0 0 14px;
}

.section-intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  max-width: var(--measure);
  margin: 0 0 8px;
}

/* ----------------------------------------------------------
   Leaderboard
   ---------------------------------------------------------- */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-2);
}
.legend .item { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 11px; height: 11px; border-radius: 3px; flex: none; display: inline-block; }
.sw.sec { background: var(--tier-sec); }
.sw.llm { background: var(--tier-llm); }
.sw.rule { background: var(--tier-rule); }

.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

/* segmented toggles */
.metric-toggle {
  display: inline-flex;
  border: 1px solid var(--hair);
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-2);
}
.metric-toggle button {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-2);
  background: none;
  border: none;
  border-right: 1px solid var(--hair);
  padding: 8px 14px;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
  white-space: nowrap;
}
.metric-toggle button:last-child { border-right: none; }
.metric-toggle button:hover { color: var(--fg); background: var(--ink-3); }
.metric-toggle button.active {
  background: var(--accent);
  color: #1a1206;
  font-weight: 600;
}

.metric-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}
.metric-note strong { color: var(--accent); }

/* table */
.table-scroll {
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--ink-2);
}

table.lb {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
table.lb thead th {
  position: relative;
  text-align: right;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color .14s ease;
}
table.lb thead th:hover { color: var(--fg-2); }
table.lb thead th.l { text-align: left; }
table.lb thead th .arrow { opacity: 0; font-size: 9px; margin-left: 5px; transition: opacity .14s ease; }
table.lb thead th.sorted { color: var(--fg); }
table.lb thead th.sorted .arrow { opacity: 1; color: var(--accent); }

table.lb tbody td {
  text-align: right;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  vertical-align: middle;
  white-space: nowrap;
}
table.lb tbody tr:last-child td { border-bottom: none; }
table.lb tbody tr { transition: background .12s ease; }
table.lb tbody tr:hover { background: rgba(255, 255, 255, 0.025); }

td.l { text-align: left; }
td.dim { color: var(--fg-faint); }

tr.leader { background: rgba(207, 164, 92, 0.07); }
tr.leader:hover { background: rgba(207, 164, 92, 0.1); }
tr.leader td { color: var(--fg); }

.rank { color: var(--fg-faint); font-size: 12px; }
.sc-name { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 500; }
a.sc-name { text-decoration: none; transition: color .12s ease; }
a.sc-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.tdot { width: 8px; height: 8px; border-radius: 2px; flex: none; display: inline-block; }
.tdot.sec { background: var(--tier-sec); }
.tdot.llm { background: var(--tier-llm); }
.tdot.rule { background: var(--tier-rule); }

.cat-tag {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  margin-top: 3px;
  text-transform: uppercase;
}

.crown { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.repos-bad { color: #d8a13e; }

/* ============================================================
   Leaderboard metric cell — the active-metric column carries a
   super-wide gold bar so the score spread is the headline.
   ============================================================ */
td.metric-cell { min-width: 420px; width: 1%; }
.bar-wrap { display: flex; align-items: center; gap: 14px; }
.bar-wrap > span:last-child { font-size: 16px; font-weight: 600; color: var(--fg); min-width: 40px; text-align: right; }
.bar-track {
  flex: 1 1 auto;
  min-width: 340px;
  height: 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .5s cubic-bezier(.4, 0, .1, 1); }
tr.leader .bar-wrap > span:last-child { color: var(--accent); }

@media (max-width: 620px) {
  td.metric-cell { min-width: 240px; }
  .bar-track { min-width: 160px; }
}


/* ----------------------------------------------------------
   Figures, scatter, grids
   ---------------------------------------------------------- */
.figure-cap {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-3);
  max-width: var(--measure);
  margin: 0;
}
.figure-cap b, .figure-cap strong { color: var(--fg-2); }

.figure { display: flex; flex-direction: column; gap: 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* scatter plot (SVG) */
.scatter { width: 100%; height: auto; overflow: visible; }
.scatter .gridline { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.scatter .axis { stroke: var(--rule-strong); stroke-width: 1.2; }
.scatter .tick {
  font-family: var(--mono);
  font-size: 10px;
  fill: var(--fg-faint);
}
.scatter .axis-label {
  font-family: var(--mono);
  font-size: 11px;
  fill: var(--fg-3);
  letter-spacing: 0.04em;
}
.scatter .pt { transition: opacity .15s ease; }
.scatter .pt-label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
}

/* tier glance */
.tier-glance { display: flex; flex-direction: column; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 11px; overflow: hidden; }
.tg-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  background: var(--ink-2);
  padding: 16px 18px;
}
.tgdot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.tgname { display: flex; flex-direction: column; gap: 2px; font-family: var(--sans); }
.tgname b { font-size: 14px; color: var(--fg); }
.tgname span { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.tgmetric { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.tgmetric .v { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); }
.tgmetric .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-faint); }
.tgex { font-family: var(--mono); font-size: 10.5px; line-height: 1.5; color: var(--fg-3); text-align: right; }

/* ----------------------------------------------------------
   Sections index
   ---------------------------------------------------------- */
.sections-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.sx-card {
  position: relative;
  display: block;
  border: 1px solid var(--hair);
  border-radius: 13px;
  background: var(--ink-2);
  padding: 26px 26px 28px;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
  color: var(--fg);
}
.sx-card:hover {
  transform: translateY(-3px);
  border-color: var(--rule-strong);
  background: var(--ink-3);
  color: var(--fg);
}
.sx-card .arr {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--fg-faint);
  transition: transform .16s ease, color .16s ease;
}
.sx-card:hover .arr { transform: translate(3px, -3px); color: var(--accent); }
.sx-card .sxn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}
.sx-card h3 { font-size: 22px; margin-bottom: 10px; }
.sx-card p { font-size: 14.5px; line-height: 1.6; color: var(--fg-3); margin: 0; max-width: 42ch; }

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--hair);
  background: var(--ink-2);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.brand-block p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--fg-3);
  margin: 14px 0 0;
  max-width: 38ch;
}
.fb {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
}
.fb .mark { color: var(--accent); }

.fcol { display: flex; flex-direction: column; }
.fcol a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-3);
  padding: 5px 0;
  transition: color .14s ease;
}
.fcol a:hover { color: var(--accent); }

.footer-base {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--hair);
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
}
.footer-base .disc { font-size: 11.5px; line-height: 1.7; color: var(--fg-faint); max-width: 90ch; }

/* ============================================================
   Content / sub-pages
   ============================================================ */

/* page hero (methodology, dataset, findings, roadmap) */
.page-hero { padding-top: 64px; padding-bottom: 30px; border-bottom: 1px solid var(--hair); }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--fg-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--fg-faint); }
.ph-num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  margin-bottom: 22px;
}
.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 760px;
  margin: 0;
  letter-spacing: -0.01em;
}
.lede a { color: var(--accent); }
.lede a:hover { color: var(--fg); }

/* prose blocks */
.prose { max-width: var(--measure); }
.prose p { font-size: 16px; line-height: 1.75; color: var(--fg-2); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--fg); }

/* citation refs */
.ref {
  font-family: var(--mono);
  font-size: 0.7em;
  color: var(--accent-dim);
  margin-left: 3px;
  vertical-align: super;
}

/* code blocks */
.codeblock {
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-3);
  overflow: hidden;
}
.cb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.018);
}
.cb-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-3);
}
.copy-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--fg-2);
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 6px;
  padding: 4px 11px;
  cursor: pointer;
  transition: all .14s ease;
}
.copy-btn:hover { color: var(--fg); border-color: var(--accent); }
.codeblock pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--fg-2);
  tab-size: 2;
}
pre .str { color: var(--accent); }
pre .tok { color: var(--fg-faint); font-style: italic; }
pre .num { color: var(--tier-llm); }

/* terminal command line */
.cmd {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg);
  background: var(--ink-3);
  border: 1px solid var(--hair);
  border-radius: 9px;
  padding: 14px 18px;
  overflow-x: auto;
}
.cmd .p { color: var(--accent); margin-right: 10px; user-select: none; }

/* step list */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.step {
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-2);
  padding: 22px 20px;
}
.step .sn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  display: block;
  margin-bottom: 14px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* target-type taxonomy rows */
.types { display: flex; flex-direction: column; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 11px; overflow: hidden; }
.type-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  background: var(--ink-2);
  padding: 18px 20px;
  transition: background .14s ease;
}
.type-row.on { background: var(--ink-3); }
.type-row .tn {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--fg-faint);
  text-align: center;
}
.type-row.on .tn { color: var(--accent); }
.type-row .td h4 { margin-bottom: 4px; }
.type-row .td p { font-size: 13.5px; line-height: 1.55; color: var(--fg-3); margin: 0; max-width: 60ch; }
.type-row .ts { white-space: nowrap; }

.badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--hair);
  color: var(--fg-3);
}
.badge.live { color: var(--accent); border-color: rgba(207, 164, 92, 0.4); background: rgba(207, 164, 92, 0.08); }
.badge.soon { color: var(--tier-llm); border-color: rgba(126, 159, 196, 0.35); }

/* definition lists */
.deflist { margin: 0; }
.deflist dt {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  margin-top: 18px;
  letter-spacing: 0.01em;
}
.deflist dt:first-child { margin-top: 0; }
.deflist dd {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-3);
}

/* formula block */
.formula {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--fg);
  text-align: center;
  padding: 28px 20px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-2);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}
.formula .accent { color: var(--accent); }
.frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 6px;
  vertical-align: middle;
}
.frac .num { padding: 0 8px 4px; }
.frac .den { padding: 4px 8px 0; border-top: 1.5px solid var(--rule-strong); }

/* page nav (prev / next) */
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pn {
  display: block;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--ink-2);
  padding: 20px 22px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
  color: var(--fg);
}
.pn:hover { border-color: var(--rule-strong); background: var(--ink-3); transform: translateY(-2px); color: var(--fg); }
.pn.next { text-align: right; }
.pn .pnl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 6px; }
.pn .pnt { font-family: var(--serif); font-size: 20px; color: var(--fg); letter-spacing: -0.01em; }

/* generic content cards */
.card {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink-2);
  padding: 24px 24px;
}
.card .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 12px;
}
.card .bignum {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
}
.card .bignum .u { font-size: 0.42em; color: var(--fg-3); font-weight: 600; }
.card p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }
.card h3 { margin-bottom: 8px; }

/* framework bars */
.framework-bars { display: flex; flex-direction: column; gap: 8px; }
.fw-row {
  display: grid;
  grid-template-columns: 72px 1fr 26px;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
}
.fwn { color: var(--fg-2); }
.fwt { height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.fwf { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.fwc { text-align: right; color: var(--fg-3); }

/* dataset repos table */
.repo-table-scroll {
  border: 1px solid var(--hair);
  border-radius: 12px;
  overflow-x: auto;
  background: var(--ink-2);
}
table.repos,
table.simple {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13px;
}
table.repos thead th,
table.simple thead th {
  text-align: right;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
table.repos thead th:first-child,
table.repos th.l,
table.simple thead th:first-child,
table.simple th.l { text-align: left; }
table.repos th.r,
table.simple th.r,
table.repos td.r,
table.simple td.r { text-align: right; }
table.repos tbody td,
table.simple tbody td {
  text-align: right;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--fg-2);
  white-space: nowrap;
}
table.repos tbody td.l,
table.simple tbody td.l { text-align: left; }
table.repos tbody tr:last-child td,
table.simple tbody tr:last-child td { border-bottom: none; }
table.repos tbody tr:hover,
table.simple tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.repo-id { color: var(--fg); }

.fw-pill {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-3);
  border: 1px solid var(--hair);
  border-radius: 100px;
  padding: 3px 10px;
  display: inline-block;
}

/* roadmap timeline */
.roadmap { display: flex; flex-direction: column; gap: 14px; }
.rm-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink-2);
  padding: 24px 24px;
}
.rm-ver { display: flex; flex-direction: column; gap: 6px; }
.rm-ver .vtag {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: 0.01em;
}
.rm-ver.now .vtag { color: var(--accent); }
.rm-ver .vst {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.rm-body h4 { margin-bottom: 12px; }
.rm-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.rm-body li { font-family: var(--mono); font-size: 13px; color: var(--fg-2); display: flex; gap: 9px; }
.rm-body li .c { color: var(--accent-dim); }
.rm-body p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 14px 0 0; max-width: 62ch; }

/* contribute grid */
.contribute-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contrib {
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: var(--ink-2);
  padding: 24px 22px;
}
.contrib .ci {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 14px;
}
.contrib h4 { margin-bottom: 8px; }
.contrib p { font-size: 14px; line-height: 1.6; color: var(--fg-3); margin: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-kpis { grid-template-columns: repeat(3, 1fr); }
  .hero-kpis .hk:nth-child(4) { border-top: 1px solid var(--hair); }
  .hero-kpis .hk:nth-child(5) { border-top: 1px solid var(--hair); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid .brand-block { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .rm-item { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }
  .sections-index { grid-template-columns: 1fr; }
  .contribute-grid { grid-template-columns: 1fr; }
  .tg-row { grid-template-columns: auto 1fr; row-gap: 8px; }
  .tg-row .tgmetric, .tg-row .tgex { grid-column: 2; align-items: flex-start; text-align: left; }
}

@media (max-width: 620px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 44px 0; }
  .content { padding: 40px 0; }

  /* mobile nav */
  .navlinks { display: none !important; }
  .topnav .gh { display: none; }
  .nav-toggle { display: inline-flex; }
  .topnav { gap: 12px; }

  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .hero-kpis .hk:nth-child(n) { border-top: 1px solid var(--hair); }
  .hero-kpis .hk:nth-child(1), .hero-kpis .hk:nth-child(2) { border-top: none; }

  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-nav { grid-template-columns: 1fr; }
  .lb-controls { flex-direction: column; align-items: flex-start; }
  .type-row { grid-template-columns: 40px 1fr; }
  .type-row .ts { grid-column: 2; }
  .formula { font-size: 22px; }
}

/* ============================================================
   Scanner deep-dive page — compact KPIs, stacked per-repo bars, metric grids
   ============================================================ */
/* tighter KPI strip than the masthead hero: 8 cards as a clean 4x2 */
.sd-kpis { grid-template-columns: repeat(4, 1fr); }
.sd-kpis .hk { padding: 16px 18px; gap: 6px; }
.sd-kpis .hk-n { font-size: clamp(20px, 2.2vw, 24px); }
@media (max-width: 760px) { .sd-kpis { grid-template-columns: repeat(2, 1fr); } }

.barlegend { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--fg-3); margin-bottom: 16px; }
.barlegend .sw { width: 11px; height: 11px; border-radius: 2px; display: inline-block; margin-right: 7px; vertical-align: -1px; }
.sw.tp { background: var(--accent); }
.sw.fp { background: #c0564b; }
.sw.fn { background: rgba(255, 255, 255, 0.14); }

.repobars { display: flex; flex-direction: column; gap: 7px; font-family: var(--mono); font-size: 12px; }
.rb { display: grid; grid-template-columns: 232px 1fr 104px; align-items: center; gap: 16px; }
.rb-name { color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.rb-seg { height: 100%; }
.rb-seg.tp { background: var(--accent); }
.rb-seg.fp { background: #c0564b; }
.rb-seg.fn { background: rgba(255, 255, 255, 0.14); }
.rb-meta { text-align: right; color: var(--fg-3); }
.rb-meta b { color: var(--fg); font-weight: 600; }

.mgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.mg { border: 1px solid var(--hair); border-radius: 10px; padding: 15px 17px; background: var(--ink-2); }
.mg .v { font-family: var(--mono); font-size: 21px; font-weight: 700; color: var(--fg); letter-spacing: -0.02em; }
.mg .l { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--fg-3); margin-top: 7px; }

@media (max-width: 620px) {
  .rb { grid-template-columns: 130px 1fr 78px; gap: 10px; }
}
