@font-face { font-family: Geist; src: url("./fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #fff;
  --surface: #fafafa;
  --hover: #f5f5f5;
  --foreground: #171717;
  --secondary: #515151;
  --muted: #696969;
  --border: #e5e5e5;
  --grid: #eaeaea;
  --focus: #215aca;
  --vulkan: #235ed0;
  --metal: #575757;
  --gl-native: #006e58;
  --gl-zink: #8a43a2;
  --sans: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 16px/1.5 var(--sans);
  background: var(--bg);
  color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --surface: #111;
    --hover: #181818;
    --foreground: #ededed;
    --secondary: #bbb;
    --muted: #a0a0a0;
    --border: #282828;
    --grid: #242424;
    --focus: #8ab4ff;
    --vulkan: #80adff;
    --metal: #b1b1b1;
    --gl-native: #68d4b6;
    --gl-zink: #d3a0e3;
  }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.frame { width: min(100% - 48px, 1080px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--border); }
.masthead-inner { min-height: 64px; display: flex; align-items: center; gap: 16px; font-size: .875rem; }
.masthead a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.mark {
  display: inline-block; width: 19px; height: 18px; background: currentColor;
  clip-path: polygon(50% 0, 100% 100%, 72% 100%, 50% 55%, 28% 100%, 0 100%);
}
.divider, .product, .footer { color: var(--muted); }
.repo { margin-left: auto; border: 1px solid var(--border); padding: 5px 11px; border-radius: 6px; }
.repo:hover { background: var(--hover); }
.intro { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-block: 34px 24px; }
h1, h2, p, figure { margin: 0; }
h1 { font-size: 2rem; line-height: 1.13; font-weight: 650; letter-spacing: -.045em; }
h2 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -.027em; }
.intro p { color: var(--secondary); margin-top: 10px; }
.text-link { color: var(--secondary); font-size: .875rem; white-space: nowrap; text-decoration-color: var(--border); }
.text-link:hover { color: var(--foreground); text-decoration-color: currentColor; }
.notice { padding: 16px 0; color: var(--secondary); }
.technical, td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.device {
  text-align: left; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); padding: 11px 13px; min-width: 0;
}
.device:hover { background: var(--hover); }
.device[aria-pressed="true"] { background: var(--surface); border-color: var(--secondary); }
.device strong { display: block; font-size: .9375rem; font-weight: 620; }
.device span { display: block; color: var(--muted); font-size: .8125rem; }
.panel { border: 1px solid var(--border); border-radius: 8px; }
.filters {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: 12px; border-bottom: 1px solid var(--border); background: var(--surface); padding: 14px 20px 16px;
  border-radius: 8px 8px 0 0;
}
.filters label { display: grid; gap: 6px; min-width: 0; color: var(--secondary); font-size: .8125rem; font-weight: 540; }
.filters select {
  appearance: none; width: 100%; min-height: 40px; min-width: 0; border-radius: 6px;
  padding: 7px 30px 7px 10px; border: 1px solid var(--border); background: var(--bg);
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50%;
  background-size: 4px 4px; background-repeat: no-repeat; font-size: .875rem;
}
.panel-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; padding: 19px 20px 0; }
.panel-heading p { color: var(--muted); font-size: .75rem; margin-top: 4px; overflow-wrap: anywhere; }
#direction { color: var(--secondary); font-size: .75rem; text-align: right; margin-top: 4px; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 20px 0; }
.series {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: 5px; background: var(--bg); font-size: .8125rem; min-height: 34px;
}
.series:hover { background: var(--hover); }
.series[aria-pressed="false"] { color: var(--muted); }
.series[aria-pressed="false"] .swatch { opacity: .38; }
.swatch { width: 12px; border-top: 2px solid var(--series); }
.swatch.metal { border-top-style: dashed; }
.swatch.gl-zink { border-top-style: dotted; }
.vulkan { --series: var(--vulkan); }
.metal { --series: var(--metal); }
.gl-native { --series: var(--gl-native); }
.gl-zink { --series: var(--gl-zink); }
.plot { margin: 8px 20px 13px; position: relative; }
#chart { display: block; width: 100%; height: 238px; }
#chart-empty { display: grid; place-items: center; min-height: 190px; text-align: center; color: var(--muted); padding: 20px; }
figcaption { font: .75rem var(--mono); text-align: center; color: var(--muted); margin-top: 2px; }
#chart-tooltip {
  pointer-events: none; position: absolute; top: 2px; left: var(--tooltip-left, 0);
  min-width: min(174px, 100%); padding: 8px 10px; border: 1px solid var(--border);
  background: var(--bg); border-radius: 6px; font-size: .75rem;
}
#chart-tooltip strong { display: block; font-weight: 600; margin-bottom: 4px; }
.tooltip-series { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tooltip-value { color: var(--series); }
.measurements { border-top: 1px solid var(--border); }
summary { min-height: 44px; padding: 12px 20px; font-size: .875rem; font-weight: 570; }
summary:hover { background: var(--hover); }
summary span { color: var(--muted); margin-left: 6px; font-size: .75rem; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th, td { border-top: 1px solid var(--border); padding: 8px 11px; font-size: .8125rem; }
th { color: var(--muted); font-weight: 540; }
th:first-child, td:first-child { padding-left: 20px; font-family: var(--sans); }
.records { margin-top: 31px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.section-actions { display: flex; align-items: center; gap: 14px; }
.records-list { border: 1px solid var(--border); border-radius: 8px; }
.run {
  display: grid; grid-template-columns: 12rem minmax(0, 1fr) auto;
  align-items: start; gap: 8px 12px; padding: 11px 14px; font-size: .875rem;
}
.run + .run { border-top: 1px solid var(--border); }
.run strong { font-weight: 590; }
.run .technical { font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.run .run-note { grid-column: 2 / -1; font-size: .8125rem; color: var(--secondary); }
.run .run-link { grid-column: 1 / -1; width: fit-content; }
.run-missing { color: var(--muted); }
.methodology { margin-top: 18px; color: var(--secondary); border-bottom: 1px solid var(--border); }
.methodology summary { padding-left: 0; }
.methodology p { max-width: 68ch; font-size: .875rem; margin-bottom: 13px; }
.footer { display: flex; justify-content: space-between; gap: 14px; padding-block: 23px 30px; font-size: .8125rem; }
.footer a { text-decoration: none; }
@media (max-width: 600px) {
  .frame { width: calc(100% - 32px); }
  .masthead-inner { min-height: 56px; }
  .intro { display: block; padding-block: 33px 22px; }
  .devices { gap: 6px; margin-bottom: 12px; }
  .device { padding: 8px; }
  .device strong { font-size: .875rem; }
  .device span { font-size: .75rem; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 11px 12px; }
  .filters label:first-child { grid-column: 1 / -1; }
  .panel-heading { padding: 14px 12px 0; display: grid; gap: 5px; }
  .panel-heading p { font-size: .6875rem; }
  #direction { text-align: left; margin-top: 0; }
  .legend { padding-inline: 12px; }
  .series { min-height: 40px; }
  .plot { margin-inline: 8px; }
  #chart { height: 217px; }
  .run { grid-template-columns: minmax(0, 1fr) auto; }
  .run .run-meta { grid-row: 2; grid-column: 1 / -1; }
  .run .run-note { grid-column: 1 / -1; }
}
.run-picker {
  grid-column: 1 / -1; width: fit-content; max-width: 100%; min-height: 36px;
  padding: 4px 8px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; font-size: .75rem; color: var(--secondary);
}
.series:disabled { cursor: default; opacity: .55; }

.comparison {
  --metal-lead: #a04e13;
  --linux-lead: var(--vulkan);
  --ratio-width: 4.4rem;
  overflow: clip;
}
@media (prefers-color-scheme: dark) {
  .comparison { --metal-lead: #ecab72; }
}
.devices { grid-template-columns: repeat(4, 1fr); }
.comparison-heading {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 14px 18px 11px;
}
.comparison-summary {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  border-block: 1px solid var(--border);
}
.comparison-summary > div { min-width: 0; padding: 10px 14px 12px 18px; }
.comparison-summary > div + div { border-left: 1px solid var(--border); }
.comparison-summary dt { color: var(--secondary); font-size: .8125rem; }
.comparison-summary dd {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px;
  margin: 1px 0 0; font-family: var(--mono); font-size: 1.1875rem; font-weight: 570;
  font-variant-numeric: tabular-nums;
}
.comparison-summary dd small { color: var(--muted); font-size: .75rem; font-weight: 400; }
.linux-lead { color: var(--linux-lead); }
.metal-lead { color: var(--metal-lead); }
.comparison-filters {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, .8fr));
  padding: 10px 18px 12px; border-radius: 0;
}
.comparison-filters input {
  min-width: 0; min-height: 40px; width: 100%;
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px;
  background: var(--bg); color: inherit; font: inherit; font-size: .875rem;
}
.comparison-filters input::placeholder { color: var(--muted); }
.comparison-scroll {
  max-height: min(68vh, 640px); overflow: auto; scrollbar-gutter: stable;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.comparison-table { table-layout: fixed; }
.comparison-table th {
  position: sticky; z-index: 1; top: 0; background: var(--bg);
  box-shadow: inset 0 -1px var(--border);
}
.comparison-table th, .comparison-table td { padding-block: 6px; }
.comparison-table th { border-top: 0; }
.comparison-table th:first-child, .comparison-table td:first-child { padding-left: 18px; }
.comparison-table tr:hover td { background: var(--surface); }
.comparison-workload-col { width: 24%; }
.comparison-stack-col { width: 13%; }
.comparison-median-col { width: 12%; }
.comparison-table .comparison-median { text-align: right; }
.comparison-workload {
  display: block; max-width: 100%; padding: 0; border: 0; background: transparent;
  text-align: left; font: inherit; font-weight: 580;
}
.comparison-workload:hover { text-decoration: underline; text-underline-offset: 3px; }
.comparison-workload, .comparison-params {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.comparison-params, .comparison-chip {
  display: block; color: var(--muted); font-size: .75rem;
}
.comparison-ratio-heading > span { display: inline-grid; vertical-align: middle; }
.comparison-axis {
  width: calc(100% - var(--ratio-width) - 9px);
  grid-template-columns: 1fr auto 1fr; align-items: center;
  font-family: var(--mono); font-size: .69rem;
}
.comparison-axis span:nth-child(2) { color: var(--foreground); }
.comparison-axis span:last-child { text-align: right; }
.comparison-axis small { display: block; font: inherit; color: var(--muted); }
.comparison-ratio-label { width: var(--ratio-width); text-align: right; }
.comparison-ratio {
  display: grid; grid-template-columns: minmax(0, 1fr) var(--ratio-width);
  align-items: center; gap: 8px;
}
.parity-track {
  height: 18px; position: relative;
  background: linear-gradient(to right, transparent calc(50% - .5px), var(--secondary) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(var(--grid), var(--grid)) center / 100% 1px no-repeat;
}
.parity-track .bar {
  height: 6px; position: absolute; top: 6px; width: var(--bar-size);
  background: currentColor; border-radius: 2px;
}
.parity-track.linux-lead .bar { left: 50%; }
.parity-track.metal-lead .bar { right: 50%; }
.parity-track .bar[data-tie] { left: calc(50% - 2px); width: 4px; }
.comparison-number { text-align: right; font-weight: 600; white-space: nowrap; }
.comparison-unmatched { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.comparison-mobile, .comparison-mobile-stack { display: none; }
.comparison-empty { padding: 30px 18px; color: var(--muted); font-size: .875rem; }
.comparison-status {
  border-top: 1px solid var(--border); padding: 9px 18px;
  color: var(--muted); font: .75rem/1.5 var(--mono);
}
.workload-inspector {
  margin-top: 16px; border: 1px solid var(--border); border-radius: 8px; scroll-margin-top: 16px;
}
.workload-inspector > .panel { border-width: 1px 0 0; border-radius: 0 0 8px 8px; }
.workload-inspector > summary { border-radius: 8px; }
@media (max-width: 780px) {
  .comparison-table .comparison-median, .comparison-median-col { display: none; }
  .comparison-mobile {
    display: flex; column-gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .69rem;
  }
  .comparison-workload-col { width: 33%; }
  .comparison-stack-col { width: 17%; }
}
@media (max-width: 600px) {
  .devices { grid-template-columns: repeat(2, 1fr); }
  .comparison { --ratio-width: 3.25rem; }
  .comparison-heading, .comparison-filters, .comparison-status { padding-inline: 11px; }
  .comparison-summary > div { padding: 7px 5px 8px 9px; }
  .comparison-summary dt { font-size: .6875rem; }
  .comparison-summary dd { font-size: .9375rem; }
  .comparison-summary dd small { font-size: .625rem; }
  .comparison-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .comparison-filters label:first-child { grid-column: auto; }
  .comparison-table .comparison-stack, .comparison-stack-col { display: none; }
  .comparison-table th, .comparison-table td { padding-inline: 6px; }
  .comparison-table th:first-child, .comparison-table td:first-child { padding-left: 9px; }
  .comparison-workload-col { width: 48%; }
  .comparison-mobile-stack { display: block; color: var(--muted); font-size: .69rem; }
  .comparison-ratio-label, .comparison-params { font-size: .69rem; }
  .comparison-axis { grid-template-columns: 1fr; text-align: center; }
  .comparison-axis span:first-child, .comparison-axis span:last-child { display: none; }
  .comparison-unmatched { white-space: normal; font-size: .69rem; }
}
