/* A floating bar of sections, a dark band that says what the place is, then one kind of page. The start page's band is
   a grid that a registration bends, lit by beams in the logo's blue, violet and coral. Leaderboards and datasets keep a
   list on the left. Every score is followed by its change against the pair with no registration. */
:root {
  --ground: #f4f5f8; --surface: #ffffff; --raised: #f7f8fb; --ink: #0d1017; --muted: #535b6a; --faint: #8a919e;
  --line: #e1e4eb; --soft: #edeff4; --accent: #3346d3; --accent-ink: #ffffff; --good: #0e7a56; --bad: #c33f2b;
  --warn: #8f5f00; --scope: #05060a; --lift: 0 1px 2px rgb(13 16 23 / 0.04), 0 8px 24px -12px rgb(13 16 23 / 0.12);
  /* the bar, the bands and the footer stay dark in both themes */
  --band: #07080c; --band-ink: #eceef4; --band-muted: #9aa0ae; --band-line: rgb(236 238 244 / 0.09); --band-glass: rgb(10 12 18 / 0.9);
  --blue: #4a6cff; --violet: #8b6cf0; --coral: #ff6b57; --spark: #ffb0a4;
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 14px; --bar: 76px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #07080c; --surface: #0e1016; --raised: #13161d; --ink: #eceef4; --muted: #979dab; --faint: #626977;
    --line: #1d212b; --soft: #161921; --accent: #93a5ff; --accent-ink: #07080c; --good: #4cc391; --bad: #f08272;
    --warn: #e3b257; --scope: #040508; --lift: inset 0 1px 0 rgb(255 255 255 / 0.035); --band-glass: rgb(14 16 22 / 0.72);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 15px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--violet) 40%, transparent); }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* the bar: a pane of dark glass that floats over the band */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 6; height: var(--bar); padding-top: 12px; pointer-events: none; }
.top .wrap { pointer-events: auto; max-width: 1232px; display: flex; align-items: center; gap: 8px 22px; min-height: 56px; flex-wrap: wrap;
  padding: 0 10px 0 16px; border: 1px solid var(--band-line); border-radius: 16px; background: var(--band-glass); color: var(--band-ink);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 10px 30px -18px rgb(0 0 0 / 0.7); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--band-ink); font: 650 16px var(--display); font-stretch: 110%; letter-spacing: -0.01em; padding-block: 8px; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; flex: none; }
.top nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; font-size: 14px; flex: 1; }
.top nav a { color: var(--band-muted); padding: 6px 12px; border-radius: 9px; transition: color 0.15s, background-color 0.15s; }
.top nav a:hover { color: var(--band-ink); background: rgb(255 255 255 / 0.06); text-decoration: none; }
.top nav a[aria-current] { color: var(--band-ink); background: rgb(255 255 255 / 0.09); font-weight: 500; }
.top .submit { padding: 7px 14px; font-size: 13.5px; border-radius: 10px; }
.top .state { font: 11.5px var(--mono); color: var(--band-muted); border: 1px solid var(--band-line); border-radius: 999px; padding: 3px 10px; }
.top button { display: none; }

/* a band: what this place is. It runs up under the bar. */
main > .band:first-child, main > .sub:first-child { margin-top: calc(-1 * var(--bar)); padding-top: var(--bar); }
.band { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.band canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 42%, transparent 52%, var(--band) 100%), linear-gradient(transparent 72%, var(--band)); }
.band .wrap { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 120px 236px; }
.band .eyebrow { color: var(--spark); margin: 0; letter-spacing: 0.14em; }
.band h1 { font: 680 clamp(38px, 6.6vw, 86px)/0.98 var(--display); font-stretch: 116%; letter-spacing: -0.035em; max-width: 16ch;
  text-shadow: 0 2px 34px rgb(0 0 0 / 0.55); }
.band p { color: #c9cdd6; font-size: 18px; max-width: 56ch; text-shadow: 0 1px 18px rgb(0 0 0 / 0.75); }
.band .meta { font: 12.5px var(--mono); color: var(--band-muted); letter-spacing: 0.02em; max-width: none; }
.band .meta a { color: var(--band-muted); }
.band .meta a:hover { color: var(--band-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.band .actions { justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 11px; font: 500 14.5px var(--sans); color: var(--ink);
  border: 1px solid var(--line); background: var(--surface); transition: border-color 0.15s, background-color 0.15s, transform 0.15s; }
.btn:hover { text-decoration: none; border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); border-color: transparent; color: var(--ground); }
.btn.primary:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
:is(.band, .sub, .top, .closing) .btn { color: var(--band-ink); border-color: rgb(255 255 255 / 0.12); background: rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
:is(.band, .sub, .top, .closing) .btn:hover { border-color: rgb(255 255 255 / 0.32); background: rgb(255 255 255 / 0.09); }
:is(.band, .sub, .top, .closing) .btn.primary { background: linear-gradient(#f6f7fb, #dde1ea); border-color: transparent; color: #0b0d12;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 8px 24px -8px rgb(0 0 0 / 0.6); }
:is(.band, .sub, .top, .closing) .btn.primary:hover { background: linear-gradient(#ffffff, #e7eaf1); }
/* the other pages' band: quieter, a glow of the same colours over a fine grid */
.sub { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; isolation: isolate; }
.sub::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 40% 90% at 12% 0%, rgb(74 108 255 / 0.20), transparent 70%),
    radial-gradient(ellipse 34% 80% at 32% -10%, rgb(139 108 240 / 0.16), transparent 70%),
    radial-gradient(ellipse 30% 70% at 78% -20%, rgb(255 107 87 / 0.10), transparent 70%),
    linear-gradient(rgb(236 238 244 / 0.03) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(236 238 244 / 0.03) 1px, transparent 1px) 0 0 / 28px 28px; }
.sub::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, rgb(139 108 240 / 0.45), rgb(255 107 87 / 0.35), transparent); }
.sub .wrap { padding-block: 44px 38px; }
.sub h1 { color: var(--band-ink); font-size: clamp(30px, 4vw, 44px); }
.sub .lede { color: var(--band-muted); max-width: 66ch; }
.sub .eyebrow, .sub .eyebrow a { color: var(--spark); }
.sub .chips span { background: rgb(255 255 255 / 0.06); border: 1px solid var(--band-line); color: var(--band-muted); }
.sub .chips span b { color: var(--band-ink); }
.sub .actions { margin-top: 18px; }

/* pages */
main { flex: 1; }
main > .wrap { padding-block: 40px 88px; display: flex; flex-direction: column; gap: 44px; }
main > .wrap > *, section > *, .split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.split > div { display: flex; flex-direction: column; gap: 36px; }
.subnav { position: sticky; top: calc(var(--bar) + 16px); display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - var(--bar) - 32px); overflow-y: auto; scrollbar-width: thin; }
.subnav h2 { font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 4px; padding: 0 10px; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.subnav a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 9px; color: var(--muted); font-size: 14px; line-height: 1.35; }
.subnav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.subnav a[aria-current] { background: var(--soft); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--accent); }
.subnav a span { font: 11px var(--mono); color: var(--faint); flex: none; }
.subnav ul ul { margin: 2px 0 6px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.subnav ul ul a { font-size: 13px; padding-block: 3px; }
footer.end { background: var(--band); color: var(--band-muted); font-size: 13.5px; border-top: 1px solid var(--band-line); }
footer.end .wrap { padding-block: 48px 52px; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(120px, 1fr)); gap: 32px 28px; }
footer.end .about-us { display: flex; flex-direction: column; gap: 10px; }
footer.end .about-us p { max-width: 34ch; }
footer.end #foot { font: 11.5px var(--mono); color: #6a7080; }
footer.end nav { display: flex; flex-direction: column; gap: 8px; }
footer.end h2 { font: 500 10.5px var(--mono); color: #6a7080; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
footer.end nav a { color: var(--band-muted); }
footer.end nav a:hover { color: var(--band-ink); text-decoration: none; }
@media (max-width: 900px) {
  footer.end .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } footer.end .about-us { grid-column: 1 / -1; }
  :root { --bar: 68px; }
  .wrap { padding-inline: 16px; }
  .top { padding-top: 8px; }
  .top .wrap { width: calc(100% - 16px); padding-inline: 12px 8px; }
  .top button { display: inline-block; margin-left: auto; font: 500 13px var(--sans); color: var(--band-ink); background: rgb(255 255 255 / 0.06); border: 1px solid var(--band-line); border-radius: 9px; padding: 6px 12px; cursor: pointer; }
  .top .state { display: none; }
  .top nav { display: none; flex-basis: 100%; justify-content: flex-start; padding-bottom: 10px; }
  .top nav.open { display: flex; }
  .top button { order: 1; } .top .submit { order: 2; } .top nav { order: 3; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .subnav { position: static; max-height: none; order: 2; }  /* the page first, the other pages after it */
  .subnav ul ul { display: none; }
  .band .wrap { padding-block: 96px 200px; }
}

/* three steps, and the ground-truth grades */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.steps div { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift);
  display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden; }
.steps div::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--violet) 60%, transparent), transparent); }
.steps b { font: 500 11px var(--mono); color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }
.steps h3 { font: 640 18px/1.25 var(--display); font-stretch: 106%; letter-spacing: -0.01em; }
.steps p { color: var(--muted); font-size: 14.5px; }
.gt { display: inline-block; font: 11px var(--mono); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.gt.expert { color: var(--good); border-color: color-mix(in srgb, currentColor 55%, transparent); }
.gt.semi-automatic, .gt.provider { color: var(--warn); border-color: color-mix(in srgb, currentColor 55%, transparent); }
.note { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 96ch; }
.note p { max-width: none; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px 48px; }
.two > div { display: flex; flex-direction: column; gap: 12px; }

/* text */
section { display: flex; flex-direction: column; gap: 16px; }
h1 { font: 700 34px/1.08 var(--display); font-stretch: 112%; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h2 { font: 640 21px/1.25 var(--display); font-stretch: 108%; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h2 .dim { display: block; color: var(--faint); font-weight: 520; }
h3 { font: 600 15px/1.3 var(--sans); margin: 0; }
p { margin: 0; max-width: 70ch; }
.lede { color: var(--muted); font-size: 16.5px; margin-top: 12px; }
.eyebrow { font: 500 11px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.eyebrow a { color: inherit; }
.small { color: var(--muted); font-size: 13px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-size: 13px; padding: 3px 11px; border-radius: 999px; background: var(--soft); color: var(--muted); }
.chips span b { color: var(--ink); font-weight: 500; }
.tag { display: inline-block; font: 11px var(--mono); padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted);
  margin-left: 8px; vertical-align: 1px; }
.tag.bad { color: var(--bad); border-color: color-mix(in srgb, currentColor 55%, transparent); } .tag.warn { color: var(--warn); border-color: color-mix(in srgb, currentColor 55%, transparent); }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--lift); }
.callout h2 { font: 500 11px var(--mono); color: var(--warn); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.callout.how h2 { color: var(--faint); }
.callout ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; max-width: 92ch; }
pre { margin: 0; background: var(--scope); color: #d6dbe6; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font: 13px/1.7 var(--mono); border: 1px solid rgb(255 255 255 / 0.06); }
code { font-family: var(--mono); font-size: 0.92em; }

/* tables */
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--lift); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--raised); }
th { font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; background: transparent; vertical-align: bottom; }
th a { color: var(--ink); }
th.wrap { white-space: normal; min-width: 112px; max-width: 150px; text-transform: none; letter-spacing: 0; font: 500 12px/1.3 var(--sans); color: var(--muted); }
th[data-key] { cursor: pointer; }
th[data-key]:hover { color: var(--ink); }
th[aria-sort]::after { content: " ↑"; } th[aria-sort="descending"]::after { content: " ↓"; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.n { font-family: var(--mono); font-size: 13px; }
td.c, th.c { text-align: center; width: 1%; }
td.name a { color: var(--ink); font-weight: 500; }
td.name a:hover { color: var(--accent); }
tr.off td, tr.off td.name a { color: var(--faint); font-weight: 400; }
tr.ref td { background: var(--raised); color: var(--muted); }
td.na { color: var(--faint); text-align: center; }
/* a method's place on a dataset, in the ranking of a track */
table.places th.wrap { text-align: center; width: 104px; min-width: 84px; max-width: 104px; padding-inline: 6px; font-size: 11.5px; }
table.places td.pl { position: relative; text-align: center; padding: 0; font: 13px var(--mono); background: color-mix(in srgb, var(--accent) var(--s, 0%), var(--surface)); border-left: 1px solid var(--line); }
table.places td.pl a { display: block; padding: 10px 6px; color: var(--ink); }
table.places td.pl a:hover { text-decoration: none; outline: 2px solid var(--ink); outline-offset: -2px; }
table.places td.pl.hi a { color: var(--accent-ink); }
table.places td.pl.part a { color: var(--warn); font-size: 11px; }
table.places td.pl.na { color: var(--faint); background: var(--raised); font-size: 11px; }
table.places tbody tr:hover td.pl { background: color-mix(in srgb, var(--accent) var(--s, 0%), var(--surface)); }
table.places tbody tr:hover td.pl.na { background: var(--raised); }
table.sortable th, table.sortable td { padding-inline: 8px; }
table.sortable th:first-child, table.sortable td:first-child { padding-left: 12px; }
tr.grp th { text-align: center; padding: 8px 12px 3px; border-bottom: 0; color: var(--faint); }
tr.grp th:not(:empty) { border-inline: 1px solid var(--line); color: var(--muted); }
tr.grp + tr th { padding-top: 5px; }
.dev { font: 10px var(--mono); color: var(--faint); margin-left: 8px; letter-spacing: 0.06em; vertical-align: 1px; }
details.more { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
details.more summary { cursor: pointer; padding: 11px 16px; color: var(--muted); font-size: 14px; }
details.more summary:hover { color: var(--ink); }
details.more .scroll { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }
.pos { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding-inline: 5px; border-radius: 7px; font: 500 12px var(--mono);
  color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.pos.p1 { background: linear-gradient(135deg, var(--blue), var(--violet) 55%, var(--coral)); border-color: transparent; color: #ffffff; }
.pos.p2, .pos.p3 { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
/* the change against the unregistered pair: green when the method did better, red when it did worse */
.d { display: inline-block; min-width: 56px; text-align: right; font: 12px var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.d.up { color: var(--good); } .d.dn { color: var(--bad); }
td.n .d { margin-left: 6px; }

/* cards: a leaderboard at a glance */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; box-shadow: var(--lift);
  transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card header { padding: 14px 16px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.card header a { color: var(--ink); }
.card header span { font: 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.card ol { list-style: none; margin: 0; padding: 8px 0; flex: 1; }
.card > p { margin: 0; padding: 12px 16px; flex: 1; }  /* a task's card on the home page: what it asks */
.card li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 5px 16px; font-size: 13.5px; }
.card li a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card li b { font: 13px var(--mono); font-variant-numeric: tabular-nums; font-weight: 400; color: var(--muted); }
.card li.none { display: block; color: var(--muted); }
.card footer { margin-top: auto; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }

/* what has been run: methods by datasets */
table.matrix th, table.matrix td { padding: 0; border: 1px solid var(--line); }
table.matrix thead th { background: var(--surface); }
table.matrix th.grp { padding: 7px 8px; text-align: center; font: 500 11px var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); white-space: normal; }
table.matrix th.col { height: 148px; vertical-align: bottom; padding: 6px 0; }
table.matrix th.col a { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); font: 11px var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
table.matrix th.col a:hover { color: var(--accent); }
table.matrix th.row { padding: 5px 10px; text-align: left; font: 500 12.5px var(--sans); letter-spacing: 0; text-transform: none; background: var(--surface); position: sticky; left: 0; z-index: 1; }
table.matrix th.row a { color: var(--ink); }
table.matrix td { width: 28px; min-width: 28px; height: 28px; text-align: center; font: 12px var(--mono); position: relative;
  background: color-mix(in srgb, var(--accent) var(--s, 0%), var(--surface)); }
table.matrix td a { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); }
table.matrix td a:hover { text-decoration: none; outline: 2px solid var(--ink); outline-offset: -2px; }
table.matrix td.hi a { color: var(--accent-ink); }
table.matrix td.part a { color: var(--warn); font-size: 10px; }
table.matrix td.na { color: var(--faint); background: var(--raised); }
td .fail { position: absolute; top: 3px; right: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); }
table.matrix tbody tr:hover td { background: color-mix(in srgb, var(--accent) var(--s, 0%), var(--surface)); }
table.matrix tbody tr:hover td.na { background: var(--raised); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-grid; place-items: center; width: 20px; height: 18px; border: 1px solid var(--line); border-radius: 4px; font: 10px var(--mono); font-style: normal; color: var(--ink); background: var(--surface); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 0; box-shadow: var(--lift); }
.facts div { padding: 13px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dt { font: 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 4px 0 0; }
table.heat td.n { min-width: 58px; padding: 7px 8px; }
table.heat td.h { background: color-mix(in srgb, var(--tone, transparent) var(--a, 0%), var(--surface)); }
table.heat tbody tr:hover td.h { background: color-mix(in srgb, var(--tone, transparent) var(--a, 0%), var(--surface)); }
/* a result is looked at in a dialog over the page */
dialog { width: min(1240px, 96vw); max-width: none; max-height: 96vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 90px -20px rgb(0 0 0 / 0.6); }
dialog::backdrop { background: color-mix(in srgb, var(--scope) 74%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 20px 12px; }
dialog .eyebrow { margin-bottom: 4px; }
dialog .controls { padding: 0 20px 12px; }
dialog #look-note { margin: 0 20px 12px; max-width: none; padding: 10px 12px; border: 1px solid var(--warn); border-radius: 10px; color: var(--warn); font-weight: 500; }
dialog #look-row { padding: 10px 20px 18px; margin: 0; max-width: none; font-size: 14px; color: var(--muted); }
dialog #look-row b { color: var(--ink); font: 500 13px var(--mono); }
.viewer { background: var(--scope); height: min(64vh, 620px); }
.viewer canvas { display: block; width: 100%; height: 100%; outline: none; }
main button, dialog button { font: 500 13px var(--sans); color: var(--ink); background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; cursor: pointer; }
main button:hover:not(:disabled), dialog button:hover:not(:disabled) { border-color: var(--faint); }
main button:disabled, dialog button:disabled { color: var(--faint); cursor: default; }
a.see { display: inline-block; padding: 2px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--ink); }
a.see:hover { text-decoration: none; border-color: var(--ink); }
td.kept { text-decoration: underline dotted; text-underline-offset: 3px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 14px; }
.controls label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
select, input[type=range] { font: inherit; color: var(--ink); accent-color: var(--accent); }
select { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 6px 9px; max-width: 100%; }
.prose { max-width: 88ch; } .prose h2 { margin: 34px 0 10px; }
.prose h3 { margin: 22px 0 6px; } .prose p, .prose ul { margin: 0 0 12px; max-width: none; } .prose table { font-size: 13px; }
.prose td, .prose th { white-space: normal; vertical-align: top; } .prose .scroll { margin-bottom: 14px; }
@media (max-width: 560px) {
  h1 { font-size: 27px; } .cards { grid-template-columns: 1fr; } th, td { padding: 8px 9px; } td.name { white-space: normal; min-width: 118px; max-width: 150px; }
}

/* tabs: the three tasks, on top of a task's page */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); align-self: flex-start; max-width: 100%; }
.tabs a { padding: 7px 14px; color: var(--muted); border-radius: 9px; font-weight: 500; font-size: 14px; }
.tabs a:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.tabs a[aria-current] { color: var(--ink); background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }

/* the image gallery: one card a dataset, the first pair's middle slice */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  box-shadow: var(--lift); transition: border-color 0.2s, transform 0.2s; }
.shot:hover { text-decoration: none; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .shot, .card { transition: none; } .shot:hover { transform: none; } }
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 720px) { .about { grid-template-columns: minmax(0, 1fr); } }
.shot img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--scope); }
.shot div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.shot b { font-weight: 600; }
.shot span { font-size: 13px; color: var(--muted); }
.shot .gt { white-space: normal; }

/* folded notes, lists in prose, the viewer's key */
details.notes { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.notes summary { cursor: pointer; padding: 12px 16px; font: 500 11px var(--mono); color: var(--warn); text-transform: uppercase; letter-spacing: 0.12em; }
details.notes ul { margin: 0; padding: 0 20px 16px 36px; display: flex; flex-direction: column; gap: 6px; max-width: 96ch; }
ul.plain { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; max-width: 80ch; }
.key { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 8px 20px 0; font-size: 13px; color: var(--muted); }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
td.wide { white-space: normal; min-width: 240px; max-width: 380px; }

/* the best value of a column, a row that opens its images, a dataset's card as a small table */
td.best { color: var(--accent); font-weight: 650; }
td.soft { color: var(--muted); }
tr[data-view] { cursor: pointer; }
table.mini { font-size: 13px; }
table.mini th { background: transparent; padding: 8px 10px 6px; }
table.mini td { padding: 5px 10px; border-bottom: 0; }
table.mini td.name { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
table.mini tr.ref td { border-top: 1px dashed var(--line); background: transparent; }
.card p.none { padding: 14px 16px; color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.card table.mini { flex: none; }
table.places td.name { width: 100%; }
#look-pick[hidden], #look-blending[hidden] { display: none; }

/* the choice of a problem */
.facets { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--lift); }
.facet { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.facet > span { font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.facet > div { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink); background: var(--surface); }
.chip small { font: 11px var(--mono); color: var(--faint); }
a.chip:hover { border-color: var(--accent); text-decoration: none; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.on small { color: var(--accent-ink); opacity: 0.8; }
.switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); vertical-align: middle; font-weight: 400; }
h2 .switch { margin-left: 12px; }
.switch .chip { border-color: transparent; padding: 3px 12px; font-size: 13px; background: transparent; }
.switch .chip.on { background: var(--accent); color: var(--accent-ink); }
.sub .tabs { margin-top: 16px; }
@media (max-width: 600px) { .facet { grid-template-columns: 1fr; gap: 6px; } }

/* the start page: the window over the band's edge, the corpus's figures, the corpus by facet */
.window { position: relative; z-index: 2; margin-top: -170px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #11131a, #0b0d12); color: #eceef4;
  box-shadow: 0 40px 120px -30px rgb(74 108 255 / 0.30), 0 20px 50px -20px rgb(255 107 87 / 0.18), 0 10px 40px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.06); }
.window > .bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.07); font: 12px var(--mono); color: #8d93a1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.window > .bar i { width: 10px; height: 10px; border-radius: 50%; background: #262a34; flex: none; }
.window > .bar i:nth-child(3) { margin-right: 6px; }
.window .pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* the card inside keeps its own dark colours, whatever the theme */
.window .card { --surface: transparent; --line: rgb(255 255 255 / 0.07); --ink: #eceef4; --muted: #979dab; --faint: #626977; --accent: #93a5ff;
  border: 0; border-right: 1px solid rgb(255 255 255 / 0.07); border-radius: 0; box-shadow: none; color: #eceef4; }
.window .card header { padding: 20px 22px 14px; border: 0; }
.window .card header h3 { font: 640 19px var(--display); font-stretch: 108%; letter-spacing: -0.01em; }
.window .card li { padding: 8px 22px; font-size: 14px; border-top: 1px solid rgb(255 255 255 / 0.06); }
.window .card footer { padding: 12px 22px; }
.window .mosaic { padding: 14px; gap: 8px; background: #08090d; }
.figures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); }
.figures li { padding: 22px 6px 4px; display: flex; flex-direction: column; gap: 2px; }
.figures b { font: 650 34px/1.05 var(--display); font-stretch: 108%; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.figures span { font-weight: 500; margin-top: 4px; }
.figures small { color: var(--muted); font-size: 12.5px; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-content: start; }
.mosaic a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--scope); border: 1px solid rgb(255 255 255 / 0.06); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.mosaic a:hover img { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .mosaic img { transition: none; } }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.glance > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--lift); }
.glance h3 { font: 500 10.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; margin: 0; }
:root { --t0: var(--blue); --t1: var(--coral); --t2: #1f9d76; --t3: var(--violet); --t4: #c9a227; --t5: #2b8fc9; --t6: #c8455b; --t7: #6b7784; }
.t0 { background: var(--t0); } .t1 { background: var(--t1); } .t2 { background: var(--t2); } .t3 { background: var(--t3); }
.t4 { background: var(--t4); } .t5 { background: var(--t5); } .t6 { background: var(--t6); } .t7 { background: var(--t7); }
.stack > div { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.stack > div a { min-width: 3px; }
.stack > div a:hover { filter: brightness(1.15); }
.stack ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.stack li { display: inline-flex; align-items: baseline; gap: 6px; }
.stack li i { width: 9px; height: 9px; border-radius: 3px; flex: none; align-self: center; }
.stack li a { color: var(--ink); }
.stack li b { font: 500 13px var(--mono); }
.stack li small { color: var(--faint); }
.bars { display: flex; flex-direction: column; gap: 2px; }
.bars a { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 34px; align-items: center; gap: 12px; padding: 4px 8px; margin-inline: -8px; border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.bars a:hover { background: var(--raised); text-decoration: none; }
.bars i { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; }
.bars u { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.bars b { font: 500 12.5px var(--mono); text-align: right; color: var(--muted); }
/* a dataset's card: its picture or, without one, its modalities on the scope's ground */
.shot .blank { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 2 / 1; background: var(--scope) repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / 0.035) 14px 15px); color: #8ea0c4; font: 500 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.shot .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.shot .tags .tag:first-child { margin-left: 0; }
.shot[hidden] { display: none; }
.count { font: 500 13px var(--mono); color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 10px; vertical-align: 3px; margin-left: 6px; }
.controls input[type="search"] { font: 14px var(--sans); padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 230px; }
.head > a, .controls > a { font-size: 14px; }
@media (max-width: 900px) {
  .window { margin-top: -140px; }
  .window .pane { grid-template-columns: minmax(0, 1fr); }
  .window .card { border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.07); }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bars a { grid-template-columns: 96px minmax(0, 1fr) 30px; } .controls input[type="search"] { min-width: 0; width: 100%; } }
/* motion, only where the script set html.reveal (motion welcome, IntersectionObserver there): nothing is hidden otherwise.
   The start page's lines come in one after another; cards, pictures and figures rise in as they scroll in. */
html.reveal .band .wrap > * { animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.reveal .band .wrap > :nth-child(2) { animation-delay: 0.08s; } html.reveal .band .wrap > :nth-child(3) { animation-delay: 0.16s; }
html.reveal .band .wrap > :nth-child(4) { animation-delay: 0.24s; } html.reveal .band .wrap > :nth-child(5) { animation-delay: 0.32s; }
html.reveal .window { animation: enter 1s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html.reveal :is(.cards, .gallery, .steps, .glance, .methods, .figures) > * { transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms); }
html.reveal :is(.cards, .gallery, .steps, .glance, .methods, .figures) > :not(.in) { opacity: 0; transform: translateY(18px); }
@media print { html.reveal :is(.cards, .gallery, .steps, .glance, .methods, .figures) > * { opacity: 1; transform: none; } }
/* a light that follows the pointer over a card, where the pointer is fine */
@media (hover: hover) and (pointer: fine) {
  :is(.card, .shot, .method, .steps > div, .glance > div) { position: relative; }
  :is(.card, .shot, .method, .steps > div, .glance > div)::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
    transition: opacity 0.3s; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%); }
  :is(.card, .shot, .method, .steps > div, .glance > div):hover::after { opacity: 1; }
}
/* a light runs along the window's top edge */
.window::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; z-index: 1; pointer-events: none; background-repeat: no-repeat; background-size: 40% 100%;
  background-image: linear-gradient(90deg, transparent, rgb(255 107 87 / 0.9), rgb(139 108 240 / 0.9), transparent); background-position: 50% 0; }
@media (prefers-reduced-motion: no-preference) { .window::before { animation: sweep 7s ease-in-out infinite; } }
@keyframes sweep { from { background-position: -70% 0; } to { background-position: 170% 0; } }
.ci { display: block; color: var(--muted); font-size: 11px; font-weight: 400; white-space: nowrap; }
#look-note .token { display: inline-flex; gap: 6px; margin-left: 4px; }
#look-note .token input { width: 18em; max-width: 60vw; font: inherit; padding: 2px 6px; }
a.app { display: inline-flex; align-items: center; margin-left: 8px; padding: 0 7px; height: 18px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 6px; font: 500 10.5px var(--mono); color: var(--accent); letter-spacing: 0.04em; vertical-align: 1px; }
a.app:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); text-decoration: none; }
.copyable { position: relative; }
.copyable .copy { position: absolute; top: 9px; right: 9px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
/* the methods: one card each, with its app and how to run it */
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.method { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--lift); padding: 18px 20px 20px;
  display: flex; flex-direction: column; gap: 10px; min-width: 0; transition: border-color 0.2s; }
.method:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.method .tags { display: flex; flex-wrap: wrap; gap: 4px; }
.method .tags .tag { margin: 0; }
.method h3 { font: 640 19px/1.25 var(--display); font-stretch: 106%; letter-spacing: -0.01em; }
.method h3 a { color: var(--ink); }
.method p { color: var(--muted); font-size: 14px; flex: 1; }
.method dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 2px 0 0; font-size: 13px; }
.method dl div { display: contents; }
.method dt { font: 10.5px/1.9 var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.method dd { margin: 0; overflow-wrap: anywhere; }
.method .actions { margin-top: 8px; }
.method .btn { padding: 8px 14px; font-size: 13.5px; }
/* the start page's closing call: a dark pane in the band's colours */
.closing { position: relative; overflow: hidden; isolation: isolate; align-items: center; text-align: center; gap: 22px; padding: 56px 24px; border-radius: 20px;
  background: var(--band); color: var(--band-ink); border: 1px solid var(--band-line); }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 90% at 30% 120%, rgb(74 108 255 / 0.28), transparent 70%), radial-gradient(ellipse 40% 80% at 70% 120%, rgb(255 107 87 / 0.22), transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 110%, rgb(139 108 240 / 0.24), transparent 70%); }
.closing h2 { font-size: clamp(24px, 3vw, 32px); max-width: 30ch; }
.closing h2 .dim { color: var(--band-muted); font-size: 0.6em; font-weight: 450; margin-top: 8px; font-family: var(--sans); font-stretch: 100%; letter-spacing: 0; }
.closing .actions { justify-content: center; }
.top .search { position: relative; }
.top .search input { width: 170px; font: 13.5px var(--sans); color: var(--band-ink); background: rgb(255 255 255 / 0.06); border: 1px solid var(--band-line); border-radius: 9px; padding: 6px 10px; transition: width 0.15s; }
.top .search input:focus { outline: none; border-color: var(--accent); width: 230px; }
.search-list { position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 12px 32px rgb(0 0 0 / 0.35); z-index: 10; }
.search-list a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: var(--ink); font-size: 13.5px; }
.search-list a:hover, .search-list a:focus { background: var(--raised); text-decoration: none; }
.search-list span { flex: none; min-width: 84px; font: 11px var(--mono); color: var(--faint); }
.search-list p { margin: 6px 10px; font-size: 13px; color: var(--muted); }
.sortby .chip { margin-left: 4px; }
@media (max-width: 900px) {
  .top .search { display: none; order: 4; flex-basis: 100%; padding-bottom: 10px; }
  .top nav.open ~ .search { display: block; }
  .top .search input, .top .search input:focus { width: 100%; }
  .search-list { left: 0; right: auto; }
}

/* the plain pages (site.py): the list of them under the app's own, read where no script runs, and the rules as written */
@media (scripting: enabled) { #page > .static { display: none; } }
.static { padding-block: 32px 56px; display: flex; flex-direction: column; gap: 28px; }
.prose > pre { white-space: pre-wrap; } .prose code { overflow-wrap: anywhere; }  /* a long path wraps at phone width */
section[id] { scroll-margin-top: calc(var(--bar) + 16px); }  /* a part an address names, under the bar: #/about/protocol */
