/* Open Source Check. Dark only: one cool near-black, one text scale, and a
   single five-step ramp (--l1 poor … --l5 strong) that every chart, bar and
   badge shares. charts.go carries the same five values. System fonts. */
:root {
  color-scheme: dark;
  --bg: #0B0D10;
  --surface: #101318;
  --raised: #161A21;
  --line: #20252E;
  --line-strong: #2C333F;
  --text: #EEF1F5;
  --soft: #B4BCC8;
  --muted: #7F8998;
  --faint: #2A303A;
  --l1: #F26D78;
  --l2: #F5975F;
  --l3: #F0C65A;
  --l4: #A5D96A;
  --l5: #4FE0A4;
  --accent: #4FE0A4;
  --accent-ink: #062016;
  --radius: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; flex: none; }
.mark-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 2.6 2.64; }
.mark-check { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 650; font-size: 17px; letter-spacing: -0.02em; }
.brand-dim { color: var(--accent); }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--soft); white-space: nowrap;
}
.nav + .pill { margin-left: 0; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79, 224, 164, 0.16); }

/* hero */
.hero {
  padding: 96px 0 72px; text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(79, 224, 164, 0.09), transparent 70%);
}
.hero-small { padding: 72px 0 40px; }
.eyebrow { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 600; max-width: 17em; margin: 0 auto; text-wrap: balance; }
.query { color: var(--accent); overflow-wrap: anywhere; }
.lead { max-width: 44em; margin: 24px auto 0; color: var(--soft); font-size: 18px; text-wrap: pretty; }
.search {
  display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 40px auto 0;
  padding: 6px 6px 6px 16px; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 14px;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79, 224, 164, 0.12); }
.search-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.search-input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: none; color: var(--text);
  font: inherit; outline: none; appearance: none;
}
.search-input::placeholder { color: var(--muted); }
.search-go {
  height: 40px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650;
}
.search-go:hover { filter: brightness(1.08); }
.hint { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* sections */
.section { padding: 72px 0; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; text-align: center; text-wrap: balance; }
.sub { max-width: 40em; margin: 14px auto 40px; text-align: center; color: var(--muted); text-wrap: pretty; }

/* the report */
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.repo { font-family: var(--mono); font-size: 14px; color: var(--soft); }
.tag { font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px dashed var(--line-strong); border-radius: 999px; }
.report-body { display: grid; grid-template-columns: minmax(260px, 2fr) 3fr; gap: 56px; align-items: center; padding: 48px; }
.gauge-col { text-align: center; }
.gauge { position: relative; width: min(100%, 280px); margin: 0 auto; }
.gauge-svg { display: block; width: 100%; height: auto; }
/* A lit tick carries its ramp colour as a stroke attribute, which any CSS
   stroke would override: only the unlit ones are coloured here. */
.tick { stroke-width: 3.2; stroke-linecap: round; }
.tick-on { stroke-width: 3.8; }
.tick-off { stroke: var(--faint); }
.gauge-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-score { font-size: 68px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.gauge-of { margin-top: 6px; font-size: 14px; color: var(--muted); }
.verdict { max-width: 18em; margin: 20px auto 0; color: var(--soft); text-wrap: balance; }
.cats { display: grid; gap: 22px; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: baseline; }
.cat-name { font-size: 15px; color: var(--soft); }
.cat-score { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; display: block; width: 100%; height: 6px; border: 0; border-radius: 999px; background: var(--faint); overflow: hidden; appearance: none; -webkit-appearance: none; }
.bar::-webkit-progress-bar { background: var(--faint); border-radius: 999px; }
.bar::-webkit-progress-value { border-radius: 999px; background: currentColor; }
.bar::-moz-progress-bar { border-radius: 999px; background: currentColor; }
.l1, .c1 { color: var(--l1); }
.l2, .c2 { color: var(--l2); }
.l3, .c3 { color: var(--l3); }
.l4, .c4 { color: var(--l4); }
.l5, .c5 { color: var(--l5); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.bento-plain { margin: 40px 0; }
.card { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-wide { grid-column: 1 / -1; flex-direction: row; gap: 48px; align-items: center; background: linear-gradient(120deg, var(--surface), var(--raised)); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.card-text { color: var(--muted); font-size: 15px; margin-top: auto; }
.card-wide .card-text { margin-top: 12px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.figure { font-size: 14px; color: var(--soft); }
.figure-num { font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 4px; }
.seg { fill: var(--faint); }
.seg-l1 { fill: var(--l1); }
.seg-l2 { fill: var(--l2); }
.seg-l3 { fill: var(--l3); }
.seg-l4 { fill: var(--l4); }
.seg-l5 { fill: var(--l5); }
.seg-2 { fill: #5B6575; }
.seg-3 { fill: #4A5361; }
.seg-4 { fill: #3C4450; }
.seg-5 { fill: #323943; }
.col { fill: #3A4350; }
.col-recent { fill: var(--l2); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.versus-item { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; }
.versus-num { font-size: 32px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.versus-label { font-size: 13px; color: var(--muted); line-height: 1.35; }
.signals { display: grid; gap: 0; }
.signal { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--soft); border-bottom: 1px solid var(--line); }
.signal:last-child { border-bottom: 0; }
.signal-val { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.d1 { background: var(--l1); }
.d2 { background: var(--l2); }
.d3 { background: var(--l3); }
.d4 { background: var(--l4); }
.d5 { background: var(--l5); }
.deep-text { flex: 1 1 0; min-width: 0; }
.deep-chart { flex: 1 1 0; min-width: 0; display: grid; gap: 12px; }
.points { margin-top: 16px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; font-size: 15px; color: var(--soft); }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.grid { stroke: var(--line); stroke-width: 1; }
.fade-top { stop-color: var(--l3); stop-opacity: 0.22; }
.fade-bottom { stop-color: var(--l3); stop-opacity: 0; }
.trend-area { fill: url(#fade); }
.trend-line { fill: none; stroke: var(--l3); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trend-dot { fill: var(--bg); stroke: var(--l3); stroke-width: 2.4; }

/* badges */
.badges { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.badge { display: inline-flex; }
.badge svg, .badge-img { display: block; height: 28px; width: auto; }
.badge-note { margin: 18px auto 28px; max-width: 40em; text-align: center; font-size: 14px; color: var(--muted); }
.badge-note em { font-style: normal; color: var(--soft); }
.snippets { display: grid; gap: 16px; }
.snippet { display: grid; gap: 8px; min-width: 0; }
.snippet-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.code { margin: 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--soft); }
.back { margin-top: 32px; text-align: center; font-size: 15px; }
.back a { color: var(--accent); text-decoration: none; }
.back a:hover { text-decoration: underline; }

/* a real report */
a.query { text-decoration: none; }
a.query:hover { text-decoration: underline; }
.hint a { color: var(--soft); }
.section-tight { padding-top: 24px; }
.section-tight h2 { margin-top: 72px; }
.nototal { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; color: var(--soft); }
.cat-none { color: var(--muted); font-weight: 400; }
.details { display: grid; gap: 12px; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.detail-head { display: flex; align-items: baseline; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; }
.detail-head::-webkit-details-marker { display: none; }
.detail-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.detail-weight { font-size: 13px; color: var(--muted); margin-right: auto; }
.detail-why { padding: 0 24px 18px; color: var(--muted); font-size: 15px; }
.measures { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.measure { border-top: 1px solid var(--line); }
.measure th, .measure td { padding: 11px 12px; text-align: left; vertical-align: top; font-weight: 400; }
.measure-label { color: var(--soft); width: 44%; padding-left: 24px; }
.measure-value { color: var(--text); overflow-wrap: anywhere; }
.measure-points { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; width: 110px; }
.measure-src { width: 84px; white-space: nowrap; padding-right: 24px; text-align: right; }
.measure-src a { color: var(--accent); text-decoration: none; }
.measure-src a:hover { text-decoration: underline; }
.method { max-width: 44em; margin: 24px auto 48px; text-align: center; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.cands { display: grid; gap: 12px; max-width: 760px; margin: 0 auto; }
.cand { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cand:hover { border-color: var(--line-strong); }
.cand-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; text-decoration: none; }
.cand-name { font-family: var(--mono); font-size: 15px; color: var(--accent); overflow-wrap: anywhere; }
.cand-stars { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cand-desc { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 24px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.foot-dim { color: var(--muted); }

@media (max-width: 900px) {
  .nav { display: none; }
  .report-body { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card-wide { flex-direction: column; align-items: stretch; gap: 28px; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 48px 0; }
  .lead { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .badges { padding: 22px 16px; }
  .gauge-score { font-size: 56px; }
  .measures, .measures tbody { display: block; }
  .measure { display: grid; grid-template-columns: 1fr auto; }
  .measure th, .measure td { padding: 4px 16px; }
  .measure-label { width: auto; grid-column: 1 / -1; padding: 12px 16px 0; }
  .measure-src { width: auto; padding: 4px 16px 12px; grid-column: 1 / -1; text-align: left; }
  .measure-points { padding-bottom: 0; width: auto; }
  .detail-head { padding: 16px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
