/* statistics page: the start page's parts (site.css) plus tiles and bars */
html,body{height:auto;min-height:100%}
.grow{flex:1}
.stats{max-width:980px;width:100%;padding-top:30px}
.stats .kicker{font:600 11px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0 0 10px}
.stats h1{font:600 28px/1.15 var(--serif);margin:0 0 7px;color:var(--ink)}
.stats .fn-lede{margin-bottom:22px}
.stats h2{font:600 11px var(--sans);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:30px 0 10px}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.tile{background:var(--paper);border:1px solid var(--rule);border-radius:10px;padding:14px 16px}
.tile b{display:block;font-size:28px;font-weight:600;line-height:1.1}
.tile span{display:block;font:13px var(--sans);color:var(--muted);margin-top:4px}
.panel{background:var(--paper);border:1px solid var(--rule);border-radius:10px;padding:14px 18px}
.cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:0 24px}

/* one stacked bar: the scan status of all works */
.stack{display:flex;height:22px;border-radius:6px;overflow:hidden;background:var(--rule)}
.stack i{display:block;height:100%}
.key{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font:13px var(--sans);color:var(--muted)}
.key em{font-style:normal;color:var(--ink)}
.key u{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;text-decoration:none}

/* a list of bars: label, bar, count */
.bars{display:grid;grid-template-columns:minmax(0,max-content) minmax(40px,1fr) auto;gap:5px 10px;align-items:center;font:13.5px var(--sans)}
.bars .l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.bars .l.under{padding-left:1.25em;color:var(--muted)}   /* a row under the one before it (statistieken.js) */
.bars .l a{color:var(--ink);text-decoration:none}
.bars .l a:hover{text-decoration:underline}
.bars .t{height:10px;background:var(--hover);border-radius:5px;overflow:hidden}
.bars .t i{display:block;height:100%;background:var(--accent);border-radius:5px}
.bars .n{color:var(--muted);font-variant-numeric:tabular-nums;text-align:right}

.foot{font:13px var(--sans);color:var(--muted);margin-top:26px}

/* the sankey: copies → prints → works → status; the halo keeps labels readable */
.sankey{display:block;width:100%;height:auto;overflow:visible}
.sankey .rib{opacity:.4}
.sankey .rib.sink{opacity:.3;stroke-dasharray:none}
.sankey .sinknode{opacity:.7}
.sankey .serif{stroke-width:1.5;fill:none}
.sankey .ch{font:600 10.5px var(--sans);letter-spacing:.12em;text-transform:uppercase;fill:var(--muted)}
.sankey .nv{font:600 21px var(--serif);fill:var(--ink);paint-order:stroke;stroke:var(--paper);stroke-width:4px;stroke-linejoin:round}
.sankey .nl{font:12.5px var(--sans);fill:var(--muted);paint-order:stroke;stroke:var(--paper);stroke-width:4px;stroke-linejoin:round}
.sankey .sl{font:12.5px var(--sans);fill:var(--muted)}
.sankey .sv{font-weight:600;fill:var(--ink)}
@media (max-width:640px){.sankey .nl{font-size:16px}.sankey .nv{font-size:26px}}
.stack i.est{background-image:repeating-linear-gradient(45deg,transparent 0 5px,rgba(0,0,0,.28) 5px 8px)}
.panel .note{font:13px var(--sans);color:var(--muted);margin:10px 0 0}

/* the story under the page bar: a shelf of spines, a few comparisons and two small scales */
.shelf{display:block;width:100%;height:auto;margin:14px 0 4px}
.panel .cap{font:13px var(--sans);color:var(--muted);margin:0 0 14px}
.fun{margin:0 0 18px;padding-left:20px;line-height:1.5}
.fun li{margin:4px 0}
.pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:0 28px}
.pair h3{font:600 11px var(--sans);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:6px 0 10px}
.bars.cmp .l.mine{font-weight:600}
.shelf .case{fill:#1d130b;stroke:#8a6b45;stroke-width:2;opacity:.95}
.shelf .case-shelf{stroke:#8a6b45;stroke-width:1.5;opacity:.7}
.shelf .pl{font:11px var(--sans);fill:var(--muted);text-anchor:start}
.shelf .dim{stroke:var(--muted);stroke-width:1.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.shelf .wall{fill:#8a6b45;opacity:.07}
.shelf .floor{stroke:#8a6b45;stroke-width:4;fill:none;opacity:.95}
.shelf .floor-edge{stroke:#5d4529;stroke-width:3;fill:none;opacity:.9}
.shelf .bal{stroke:#b8996a;stroke-width:1.1;fill:none;opacity:.9}
.shelf .bal-top{stroke:#b8996a;stroke-width:2.2;fill:none;opacity:.95;stroke-linecap:round;stroke-linejoin:round}
.shelf .pole{stroke:#b8996a;stroke-width:3;fill:none}
.shelf .stairs{fill:#8a6b45;stroke:#5d4529;stroke-width:.8;opacity:.95}
.panel .key{margin:2px 0 14px}
.shelf .cornice{fill:#6b4a2b;stroke:#8a6b45;stroke-width:1}
.shelf .gilt{stroke:#e3c36b;stroke-width:.8;opacity:.85}
.shelf .corbel{fill:#6b4a2b;stroke:#5d4529;stroke-width:.8}
.shelf .pilaster{stroke:#8a6b45;stroke-width:5;opacity:.5;fill:none}
.shelf .bulge circle{fill:#b8996a;opacity:.9}
.shelf .m0{fill:#d8c9a6;opacity:.55}.shelf .m1{fill:#2b2216;opacity:.9}
.shelf .col-cap{fill:#7a5a36;stroke:#4a3320;stroke-width:.8}
.shelf .col-shaft{fill:#5f4429;stroke:#4a3320;stroke-width:.8}
.shelf .col-flute{stroke:#3b2916;stroke-width:1.2;fill:none;opacity:.8}
.shelf .col-light{stroke:#b8996a;stroke-width:2;fill:none;opacity:.4}
.shelf .col-vol{fill:none;stroke:#e3c36b;stroke-width:1.2;opacity:.9}
.shelf .ladder-edge{stroke:#2e1c0d;stroke-width:5;fill:none;stroke-linecap:round}
.shelf .ladder{stroke:#c9a063;stroke-width:2.6;fill:none;stroke-linecap:round}
.shelf .bal-edge{stroke:#2e1c0d;stroke-width:2.7;fill:none;opacity:.9}
.shelf .bal-top-edge{stroke:#2e1c0d;stroke-width:4.3;fill:none;stroke-linecap:round;opacity:.9}
.shelf .bulge circle{stroke:#2e1c0d;stroke-width:.8}
.panel .data{margin:6px 0 18px;line-height:1.5}
.bytes figure{margin:0;text-align:center;font:12.5px var(--sans);color:var(--muted)}
.bytes img{display:block;margin:0 auto 6px;max-width:140px;height:auto}
@media (max-width:640px){.bytes{margin:4px 0 20px}}
.shelf .pl.usb{text-anchor:middle}
.panel .sub{font:600 11px var(--sans);text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin:14px 0 8px}
.panel .sub:first-child{margin-top:2px}
.panel .stack+.key{margin-bottom:6px}

/* the steps of the pipeline: label, bar (on the site, and lighter what waits for the next build), works, pages */
.bars.pipe{grid-template-columns:200px minmax(40px,1fr) 8.5em 5.5em}
.bars.pipe .l{max-width:none}
.bars.pipe .t{display:flex}
.bars.pipe .t i{border-radius:0}
.bars.pipe .t i.wait{background:var(--accent);opacity:.35}
.bars.pipe .n b{font-weight:600;color:var(--ink)}
.bars.pipe .n small{font-size:12px}
.bars.pipe .pp{min-width:5.5em}
.key.toc{margin:8px 0 4px;font-size:12.5px}
@media (max-width:640px){.bars.pipe{grid-template-columns:128px minmax(30px,1fr) auto}.bars.pipe .l{white-space:normal;line-height:1.25}.bars.pipe .pp{display:none}}
/* the quality report: Calvin beside the Opera Calvini */
.panel .tiles{margin:4px 0 6px}
.panel .tile b{font:600 26px var(--serif)}
.bars.ocq{grid-template-columns:minmax(0,1.3fr) auto auto minmax(80px,1.4fr) auto auto;gap:6px 12px}
.bars.ocs{grid-template-columns:minmax(0,max-content) repeat(5,auto);gap:5px 18px;justify-content:start}
/* the twins: works transcribed twice, and parts of a collected work (statistieken.js, pipeline.json "tw") */
.bars.twq{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto auto auto;gap:6px 12px}
/* the consistency of the transcription (statistieken.js consistency) */
.bars.twc{grid-template-columns:minmax(0,1.3fr) auto auto minmax(80px,1.4fr) auto auto;gap:6px 12px}
.bars.twc .l{max-width:none}
.bars.twc .t{display:flex;border-radius:3px}
.bars.twc .t i{border-radius:0}
.bars.twq .l{max-width:none}
.bars.twq .l small{color:var(--muted)}
@media (max-width:640px){.bars.twq{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.bars.twq .l{white-space:normal;line-height:1.25}.bars.twq>:nth-child(6n+3),.bars.twq>:nth-child(6n+4),.bars.twq>:nth-child(6n+5){display:none}
  .bars.twc{grid-template-columns:minmax(0,1fr) minmax(50px,1fr) auto}.bars.twc>:nth-child(6n+2),.bars.twc>:nth-child(6n+3),.bars.twc>:nth-child(6n){display:none}}
.bars.ocq.miss{grid-template-columns:minmax(0,1.3fr) auto auto minmax(80px,1.4fr) auto auto auto}
.bars.och{grid-template-columns:minmax(0,max-content) repeat(3,auto);gap:5px 18px;justify-content:start}
.bars .h{font:600 10.5px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.bars.ocq .l,.bars.ocs .l,.bars.och .l{max-width:none}
.bars.ocq .l small{color:var(--muted)}
.bars.ocq .t{display:flex;border-radius:3px}
.bars.ocq .t i{border-radius:0}
.bars.ocq .t.low,.bars.ocq .n.low{opacity:.45}
.bars .n b{font-weight:600;color:var(--ink)}
@media (max-width:640px){.bars.ocq{grid-template-columns:minmax(0,1.2fr) minmax(50px,1fr) auto}.bars.ocq .l,.bars.ocs .l{white-space:normal;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.bars.ocq>:nth-child(6n+2),.bars.ocq>:nth-child(6n+3),.bars.ocq>:nth-child(6n+5){display:none}.bars.ocq.miss>:nth-child(n){display:block}.bars.ocq.miss>.l{display:-webkit-box}.bars.ocq.miss>:nth-child(7n+2),.bars.ocq.miss>:nth-child(7n+3),.bars.ocq.miss>:nth-child(7n+5),.bars.ocq.miss>:nth-child(7n){display:none}.bars.och .l{white-space:normal}
  .bars.ocs{grid-template-columns:minmax(0,1fr) repeat(3,auto);gap:5px 10px}.bars.ocs>:nth-child(6n+2),.bars.ocs>:nth-child(6n+5){display:none}}
.bars.apart{grid-template-columns:minmax(0,max-content) auto auto;gap:5px 18px;justify-content:start;margin-bottom:4px}
.bars.apart .l{max-width:none;white-space:normal}
.bars.apart .l small{color:var(--muted)}
.bars.apart>:nth-child(3n){text-align:left}
/* a phone: each kind on a line of its own over the whole width, its count and its rate under it */
@media (max-width:640px){.bars.apart{grid-template-columns:auto minmax(0,1fr);gap:2px 14px}.bars.apart>:nth-child(3n+1){grid-column:1/-1;margin-top:6px}
  .bars.apart>:nth-child(3n+1):first-child{margin-top:0}.bars.apart>:nth-child(3n+2){text-align:left}}
