:root {
  color-scheme: light;
  --ink: #24292f;
  --muted: #66707b;
  --line: #e2e5e9;
  --accent: #2463a6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, p, figure { margin: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 10px; background: #fff; z-index: 20; }
.skip-link:focus { top: 10px; }
header, .benchmark-nav, .notice, main, footer { max-width: 1160px; margin: 0 auto; }
header { padding: 32px 0 24px; }
header h1 { font-size: 28px; font-weight: 650; letter-spacing: -.7px; }
header p { margin-top: 3px; color: var(--muted); font-size: 15px; }
#benchmarks { scroll-margin-top: 0; }
.benchmark-nav {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  scrollbar-width: thin;
}
.benchmark-nav a { padding: 12px 0; white-space: nowrap; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; }
.benchmark-nav a:hover { color: var(--ink); }
.benchmark-nav a[aria-current="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.notice { padding: 15px 0 24px; color: var(--muted); font-size: 12px; }
.tag-modified { color: #975b2d; font-weight: 600; vertical-align: super; font-size: 11px; }
.box { padding-bottom: 32px; scroll-margin-top: 80px; }
.box[hidden] { display: none; }
.box h2 { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.description-box { padding-bottom: 20px; }
.description-box p { font-size: 14px; }
.description-box ul { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 30px; padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.image-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.image-item { min-width: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.caption { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.caption strong { font-weight: 600; }
.ours .caption { background: #f5f8fc; }
.ours-tag { font-size: 11px; color: var(--muted); }
.preview-link { display: block; position: relative; background: #f3f4f5; }
.cover { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; }
.expand-label { position: absolute; bottom: 10px; right: 10px; background: #fff; color: #354353; border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; font-size: 10px; opacity: 0; }
.preview-link:hover .expand-label, .preview-link:focus-visible .expand-label { opacity: 1; }
.image-error { padding: 45px 20px; color: var(--muted); text-align: center; }
footer { padding: 16px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: right; }
dialog { width: min(1180px, 94vw); max-height: 94dvh; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
dialog::backdrop { background: #0009; }
.dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dialog-toolbar h2 { font-size: 15px; font-weight: 600; }
.dialog-toolbar button { padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 12px; }
.dialog-toolbar button span { margin-left: 8px; }
.dialog-content { padding: 8px; background: #f3f4f5; }
.dialog-content img { display: block; max-width: 100%; max-height: 76dvh; width: auto; height: auto; margin: auto; object-fit: contain; }
.dialog-hint { padding: 7px 16px; color: var(--muted); font-size: 11px; }
body.modal-open { overflow: hidden; }
@media (max-width: 1224px) {
  header, .benchmark-nav, .notice, main, footer { margin-left: 28px; margin-right: 28px; }
}
@media (max-width: 640px) {
  header, .notice, main, footer { margin-left: 18px; margin-right: 18px; }
  header { padding-top: 24px; padding-bottom: 16px; }
  header h1 { font-size: 25px; }
  header p { font-size: 13px; }
  .benchmark-nav { margin: 0; padding: 0 18px; gap: 20px; }
  .notice { font-size: 11px; padding-bottom: 18px; }
  .description-box ul { grid-template-columns: 1fr; gap: 4px; }
  .image-row { grid-template-columns: 1fr; gap: 18px; }
  .expand-label { opacity: 1; }
  .dialog-toolbar h2 { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
