/* Project pages: the same instrument, set for reading. Tables, in-cell plots, commands, limits. Tokens are in site.css. */
.phead { padding-top: 34px; padding-bottom: 0; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 400 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .09em; text-transform: uppercase; color: var(--mut); margin-bottom: 22px; }
.crumb i { font-style: normal; color: var(--dim); }
.crumb a { color: var(--text); border-bottom: 1px solid var(--theme); }
.crumb a:hover { color: var(--sig-2); }
.crumb b { font-weight: 500; color: var(--sig-2); }
.phead-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; }
.phead h1 { font-size: clamp(44px, 6.6vw, 104px); line-height: .88; white-space: normal; letter-spacing: -.048em; }
.phead .lede { margin-top: 24px; max-width: 26em; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.25; }
.phead-read { border: 1px solid var(--line); border-top: 2px solid var(--sig); background: var(--bg-2); padding: 16px 20px 18px; container-type: inline-size; }
.phead-read .fig-n { margin-top: 10px; font-size: clamp(44px, 15cqw, 84px); }
.phead-read .fig-l { font-size: 15.5px; }
.strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 32px; border: 1px solid var(--line); background: var(--bg-2); }
.strip > div { padding: 13px 16px 15px; border-right: 1px solid var(--line); min-width: 0; }
.strip > div:last-child { border-right: 0; }
.strip dt { font: 400 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.strip dd { margin-top: 6px; font-size: 14.5px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.strip dd a, [data-repo] > a { border-bottom: 1px solid var(--sig); }
.strip dd a:hover, [data-repo] > a:hover { color: var(--sig-2); }

.page { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 0 56px; padding-top: 12px; padding-bottom: 24px; }
.rail { position: sticky; top: 76px; align-self: start; padding-top: 44px; }
.rail-h { font: 400 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.rail ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); counter-reset: r; }
.rail li a { counter-increment: r; display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font: 400 11.5px/1.4 var(--mono); font-stretch: 87.5%; color: var(--mut); }
.rail li a::before { content: "0" counter(r) "  "; color: var(--dim); white-space: pre; }
.rail li a:hover { color: var(--text); }
.rail li a[aria-current] { border-left-color: var(--sig); color: var(--text); }
.rail li a[aria-current]::before { color: var(--sig-2); }
.rail .back { margin-top: 20px; font: 400 11.5px/1.4 var(--mono); font-stretch: 87.5%; }
.rail .back a, .pnav a { border-bottom: 1px solid var(--line-2); }
.rail .back a:hover, .pnav a:hover { color: var(--sig-2); border-color: var(--sig); }

.pmain { min-width: 0; max-width: 1010px; }
.psec { padding: 44px 0 8px; border-top: 1px solid var(--line); margin-top: 36px; }
.psec:first-child { border-top: 0; margin-top: 0; }
.psec > h2 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; font-stretch: 86%; letter-spacing: -.04em; line-height: .95; margin-bottom: 20px; }
.psec h3 { font-size: 23px; font-weight: 600; font-stretch: 90%; letter-spacing: -.02em; line-height: 1.15; margin: 46px 0 10px; padding-top: 14px; border-top: 1px dashed var(--line-2); max-width: 30em; }
.psec h2 + h3 { margin-top: 8px; }
.psec h4 { font: 500 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .09em; text-transform: uppercase; color: var(--sig-2); margin-bottom: 8px; }
.psec p, .psec ul, .psec ol { max-width: 43em; }
.psec p { color: #c3c8d2; font-size: 16.5px; line-height: 1.55; }
.psec p + p { margin-top: 12px; }
.psec :is(ul, ol, .tbl-wrap, .key, .cm-pair, figure, .cmd, pre, .two, .cap) + p { margin-top: 18px; }
.psec ul:not(.limits) { margin-top: 12px; }
.psec ul:not(.limits) > li { position: relative; padding-left: 20px; color: #c3c8d2; font-size: 16.5px; line-height: 1.5; }
.psec ul:not(.limits) > li + li { margin-top: 8px; }
.psec ul:not(.limits) > li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; background: var(--line-2); }
.psec strong { color: var(--text); font-weight: 600; }
.psec code { color: var(--ice); overflow-wrap: anywhere; }
.psec p a, .psec li a { color: var(--text); border-bottom: 1px solid var(--sig); }
.psec p a:hover, .psec li a:hover { color: var(--sig-2); }
.anchor { margin-left: 8px; color: var(--dim); font-weight: 400; opacity: 0; border: 0 !important; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus-visible { opacity: 1; }

.steps, .psec .flow { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: s; max-width: 48em !important; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 12px 0; border-top: 1px solid var(--line); color: #c3c8d2; font-size: 16px; line-height: 1.5; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font: 400 11px/2.2 var(--mono); font-stretch: 87.5%; color: var(--sig-2); }
.psec .flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: none !important; margin-top: 18px; }
.flow li { position: relative; counter-increment: s; border: 1px solid var(--line-2); border-left-width: 0; background: var(--bg-2); padding: 12px 12px 14px 20px; font-size: 13.5px; line-height: 1.4; }
.flow li:first-child { border-left-width: 1px; padding-left: 14px; }
.flow li + li::before { content: ""; position: absolute; left: -6px; top: 16px; width: 10px; height: 10px; background: var(--bg-2); border-top: 1px solid var(--sig); border-right: 1px solid var(--sig); transform: rotate(45deg); z-index: 1; }
.flow b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.flow span { color: var(--mut); }

/* tables */
.tcap { margin-top: 26px; font: 500 12px/1.45 var(--mono); font-stretch: 87.5%; color: var(--text); max-width: 68em; padding-left: 12px; border-left: 2px solid var(--sig); }
.tcap span { display: block; margin-top: 4px; font-weight: 400; font-size: 11px; color: var(--mut); }
.cap, caption.cap { margin-top: 12px; font: 400 11px/1.55 var(--mono) !important; font-stretch: 87.5%; color: var(--mut) !important; max-width: 68em !important; }
.tbl-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 3px;
  /* A table wider than its frame scrolls sideways. The orange edge shows on the side that has more. */
  background:
    linear-gradient(90deg, var(--bg-2) 30%, transparent) left / 40px 100% no-repeat local,
    linear-gradient(270deg, var(--bg-2) 30%, transparent) right / 40px 100% no-repeat local,
    linear-gradient(90deg, rgba(255, 90, 31, .55), transparent) left / 12px 100% no-repeat scroll,
    linear-gradient(270deg, rgba(255, 90, 31, .55), transparent) right / 12px 100% no-repeat scroll,
    var(--bg-2); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #c3c8d2; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { font: 400 10px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); vertical-align: bottom; background: rgba(20, 23, 29, .6); border-bottom: 1px solid var(--line-2); }
.tbl tbody th { font-weight: 500; color: var(--text); }
.tbl tbody tr:hover > * { background: rgba(255, 255, 255, .025); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl tbody .num, .tbl .mono, .tbl td.u .lbl { font-family: var(--mono); font-stretch: 87.5%; font-size: 12.5px; color: var(--text); }
.tbl thead .num { white-space: normal; }
.tbl .quiet { color: var(--dim) !important; }
.tbl .nw, .tbl code { white-space: nowrap; }
.tbl.wrapcode code { white-space: normal; }
.tbl.wrapcode th code { white-space: nowrap; }
.tbl.wrapcode td:nth-child(2), .tbl.col2wide td:nth-child(2) { min-width: 14em; }
.tbl th.wide { min-width: 15em; }
.tbl .sub { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--mut); }
.tbl td.plot { min-width: 200px; width: 30%; vertical-align: middle; padding-top: 4px; padding-bottom: 4px; }
.tbl.fit { width: auto; min-width: min(100%, 32em); }
.tbl-wrap:has(> .tbl.fit) { display: inline-block; max-width: 100%; vertical-align: top; }
.tbl td.u { vertical-align: middle; white-space: nowrap; }
.tbl td.u .lbl { display: inline-block; min-width: 4.6em; margin-right: 8px; }
.tbl.stacku td.u .lbl { display: block; margin: 0 0 5px; }
.rank { color: var(--dim) !important; }
.sort { all: unset; cursor: pointer; display: inline-flex; align-items: flex-end; gap: 6px; }
.sort:hover { color: var(--text); }
.sort:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.sort::after { content: "\2195\FE0E"; color: var(--dim); }
th[aria-sort=ascending] .sort, th[aria-sort=descending] .sort { color: var(--text); }
th[aria-sort=ascending] .sort::after { content: "\2191\FE0E"; color: var(--sig); }
th[aria-sort=descending] .sort::after { content: "\2193\FE0E"; color: var(--sig); }

/* marks drawn inside table cells */
.ci-track, .dp { position: relative; display: block; height: 26px; min-width: 170px; background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 25%), linear-gradient(var(--line-2), var(--line-2)) 0 50% / 100% 1px no-repeat; border-right: 1px solid var(--line-2); }
.ci-range { position: absolute; top: 50%; height: 10px; margin-top: -5px; left: calc(var(--lo) * 100%); width: calc((var(--hi) - var(--lo)) * 100%); background: rgba(255, 90, 31, .34); border-left: 2px solid var(--sig); border-right: 2px solid var(--sig); }
.ci-pt { position: absolute; top: 50%; left: calc(var(--pt) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 2px var(--bg-2); }
.ci-ref { position: absolute; top: -9px; bottom: -9px; left: calc(var(--ref) * 100%); border-left: 1px dashed var(--ice); }
.dp i { position: absolute; top: 50%; left: calc(var(--v) * 1%); }
.dp .m-tick { height: 18px; margin-top: -9px; border-left: 2px solid var(--mut); }
.dp .m-sq { width: 12px; height: 12px; margin: -6px 0 0 -6px; border: 2px solid var(--ice); background: var(--bg-2); }
.dp .m-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--sig); box-shadow: 0 0 0 2px var(--bg-2); }
.dp .m-bar { left: 0; height: 12px; margin-top: -6px; width: calc(var(--v) * 1%); background: var(--sig); }
.dp .m-span { left: calc(50% - var(--h) * 1%); width: calc(var(--h) * 2%); height: 6px; }
.dp .m-span.top { margin-top: -8px; background: var(--ice); }
.dp .m-span.bot { margin-top: 2px; background: var(--sig); }
.dp .m-mid { left: 50%; height: 18px; margin-top: -9px; border-left: 1px solid var(--text); }
.cellbar { position: relative; display: block; padding-bottom: 6px; }
.cellbar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--sig) calc(var(--v) * 1%), var(--line-2) calc(var(--v) * 1%)); }
.stack { display: flex; height: 14px; min-width: 150px; }
.stack i { flex: 0 0 calc(var(--g) * 1%); }
.s-item, .key i.k-s-item { background: var(--line-2); }
.s-agent, .key i.k-s-agent { background: var(--ice); }
.s-judge, .key i.k-s-judge { background: var(--sig); }
.pmain .units { display: flex; flex-wrap: wrap; gap: 4px; max-width: none; }
.pmain .units i { width: 14px; height: 14px; aspect-ratio: auto; flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.pmain .units i.on { background: var(--ice); box-shadow: none; }
.pmain .units i.hit { background: var(--sig); box-shadow: none; }
.pmain .units.sm { gap: 3px; flex-wrap: nowrap; display: inline-flex; vertical-align: middle; }
.pmain .units.sm i { width: 11px; height: 11px; }
.pmain .units.sm.rows2 { flex-wrap: wrap; width: 165px; }
.unit-groups { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.unit-groups > div { flex: 1 1 300px; min-width: 0; }
.unit-groups > div > span { display: block; margin-top: 8px; font: 400 11px/1.4 var(--mono); font-stretch: 87.5%; color: var(--mut); }
.psec figure.fig, .psec figure.shot { display: block; margin-top: 18px; padding: 18px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 3px; }
.key i { box-shadow: inset 0 0 0 1px var(--line-2); }
.key i.on { background: var(--ice); box-shadow: none; }
.key i.hit, .key i.k-pass-strong, .key i.k-fail-strong, .key i.k-pass, .key i.k-fail { box-shadow: none; }
.key i.hit { background: var(--sig); }
.key i.k-pt { border-radius: 50%; background: var(--text); box-shadow: none; }
.key i.k-range { width: 22px; height: 8px; background: rgba(255, 90, 31, .34); box-shadow: inset 2px 0 var(--sig), inset -2px 0 var(--sig); }
.key i.k-ref { width: 0; height: 14px; border-left: 1px dashed var(--ice); box-shadow: none; }
.key i.k-tick { width: 0; height: 14px; border-left: 2px solid var(--mut); box-shadow: none; }
.key i.k-sq { box-shadow: inset 0 0 0 2px var(--ice); }
.key i.k-dot { border-radius: 50%; background: var(--sig); box-shadow: none; }
.key i.k-span-ink { width: 22px; height: 6px; background: var(--ice); box-shadow: none; }
.key i.k-span-acc { width: 22px; height: 6px; background: var(--sig); box-shadow: none; }
.key i.k-pass-strong { background: var(--ice); } .key i.k-fail-strong { background: var(--sig); margin-left: -4px; }
.key i.k-pass { background: rgba(127, 216, 247, .16); } .key i.k-fail { background: rgba(255, 90, 31, .18); margin-left: -4px; }

/* confusion matrix */
.cm-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.cm { width: 100%; border-collapse: separate; border-spacing: 3px; font: 400 11px/1.3 var(--mono); font-stretch: 87.5%; border: 1px solid var(--line); background: var(--bg-2); padding: 12px; border-radius: 3px; }
.cm caption { caption-side: top; text-align: left; padding: 0 0 10px; color: var(--text); font-weight: 500; }
.cm th { font-weight: 400; color: var(--mut); text-align: left; padding: 4px 6px; }
.cm thead th { text-align: center; }
.cm td { text-align: center; padding: 12px 6px; font-size: 15px; color: var(--text); background: var(--bg-3); font-variant-numeric: tabular-nums; }
.cm td.d { background: var(--ice); color: #06222c; font-weight: 600; }

/* task history on the pipeline page */
.psec .pf { border-spacing: 3px; }
.psec .pf thead th { padding: 0 0 8px; color: var(--text); }
.psec .pf td { height: 26px; text-align: center; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; }
.psec .pf td.p { background: rgba(127, 216, 247, .12); color: rgba(127, 216, 247, .8); }
.psec .pf td.f { background: rgba(255, 90, 31, .13); color: rgba(255, 124, 77, .9); }
.psec .pf td.p.ch { background: var(--ice); color: #06222c; font-weight: 600; }
.psec .pf td.f.ch { background: var(--sig); color: #1c0700; font-weight: 600; }
.psec .pf tfoot td { background: none; font-size: 11px; letter-spacing: 0; color: var(--text); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); }
.shot a { display: block; border: 0 !important; }

/* commands */
.cmd, pre.plain { position: relative; margin-top: 16px; border: 1px solid var(--line); border-left: 2px solid var(--sig); background: var(--bg-2); border-radius: 0 3px 3px 0; }
.cmd pre, pre.plain { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 12px/1.7 var(--mono); font-stretch: 87.5%; color: var(--text); white-space: pre; }
.cmd pre code, pre.plain code { font-size: 1em; color: inherit; overflow-wrap: normal; }
.cmd.softwrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .c { color: var(--dim); }
.cmd pre:focus-visible, pre.plain:focus-visible, .tbl-wrap:focus-visible { outline-offset: -2px; }
.copy { position: absolute; right: 8px; top: 8px; font: 500 10px/1 var(--mono); font-stretch: 87.5%; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); background: var(--bg-2); border: 1px solid var(--line-2); padding: 7px 9px 6px; cursor: pointer; border-radius: 1px; }
.copy:hover { color: var(--sig-2); border-color: var(--sig); }

.limits { list-style: none; margin: 0; padding: 0; max-width: 50em !important; counter-reset: l; }
.limits li { counter-increment: l; display: grid; grid-template-columns: 40px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); color: #c3c8d2; font-size: 16px; line-height: 1.5; }
.limits li:last-child { border-bottom: 1px solid var(--line); }
.limits li::before { content: "L" counter(l); font: 400 11px/2.2 var(--mono); font-stretch: 87.5%; color: var(--sig-2); grid-row: 1 / 3; }
.limits li > * { grid-column: 2; }
.limits li { display: block; padding-left: 40px; position: relative; }
.limits li::before { position: absolute; left: 0; top: 14px; line-height: 1.6; }
.note { margin-top: 16px; padding: 12px 16px; border: 1px solid var(--line); border-left: 2px solid var(--ice); background: var(--bg-2); max-width: 46em !important; color: var(--text) !important; font-size: 15.5px !important; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.two > div { border: 1px solid var(--line); background: var(--bg-2); padding: 16px 18px 18px; border-radius: 3px; }
.two > div:last-child h4 { color: var(--ice); }
.two ul { margin-top: 0 !important; }
.two li { font-size: 15px !important; }
.pnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.pnav p { font-size: 22px; font-weight: 600; font-stretch: 90%; letter-spacing: -.02em; }
.pnav span { display: block; margin-bottom: 6px; font: 400 10.5px/1.4 var(--mono); font-stretch: 87.5%; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.pnav .next { text-align: right; }

@media (max-width: 1100px) {
  .page { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; padding-top: 28px; }
  .rail ol { display: flex; flex-wrap: wrap; gap: 4px 4px; border-left: 0; }
  .rail li a { padding: 7px 10px; margin: 0; border: 1px solid var(--line-2); }
  .rail li a[aria-current] { border-color: var(--sig); }
  .rail .back { display: none; }
  .psec:first-child { padding-top: 32px; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-right: 0; }
  .strip > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .phead-top, .cm-pair, .two, .pnav { grid-template-columns: minmax(0, 1fr); }
  .pnav .next { text-align: left; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(n) { border-right: 0; border-top: 0; }
  .strip > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .psec .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li { border-left-width: 1px; border-top-width: 0; padding-left: 14px; }
  .flow li:first-child { border-top-width: 1px; }
  .flow li + li::before { left: 22px; top: -6px; transform: rotate(135deg); }
  .tbl th, .tbl td { padding: 8px 10px; }
  .tbl.wrapcode:not(.paths), .tbl.col2wide { min-width: 620px; }
  .tbl.wrapcode.paths th code { white-space: normal; }
  .tbl.wrapcode.paths td:nth-child(2) { min-width: 0; }
  .psec { padding-top: 36px; margin-top: 28px; }
  .psec .pf td { font-size: 0; }
}
