/* hypometer, trial of pages drawn in the browser: the list (index.html), a project (project.html) and the voices (voices.html). The look follows tracker/ (tokens of the house design system): system type for
   prose, monospace for labels and figures, Pixelify Sans for the name. */
:root {
  --bg: #fff; --bg-alt: hsl(0 0% 96%); --line: hsl(0 0% 85%); --line-2: hsl(0 0% 92%);
  --text: hsl(0 0% 9%); --text-2: hsl(0 0% 34%); --text-3: hsl(0 0% 42%);
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "JetBrains Mono", Consolas, monospace;
  --font-display: "Pixelify Sans", var(--font-mono);
  /* one colour per source, the same on every page */
  --k-stars: #3f5a5e; --k-npm: #9c75d7; --k-pypi: #1f4fd8; --k-proxmox: #d98a00; --k-image: #00a090; --k-dns: #780495; --k-trend: #e03131;
  --hostinger: #673de6; --accent: #d98a00; --mom: #7048e8; --focus: #3f5a5e; --good: #3f6a4e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); }
a { color: var(--text); text-decoration: underline 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font: 0.92em var(--font-mono); }
.wrap { max-width: 80rem; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 100rem; }

/* ---- head */
.mast { padding: 32px 0 24px; border-bottom: 1px solid var(--line); }
.kicker { margin: 0; font: 700 13px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: lowercase; }
.kicker a { color: var(--text-3); }
.bmark { width: .7em; height: .5em; margin-right: .4em; }
h1 { margin: 8px 0 12px; font: 400 39px/1.2 var(--font-display); }
h1 .hmark { width: 26px; height: 26px; margin-left: 10px; vertical-align: -1px; }
.lede { margin: 0; max-width: 38em; color: var(--text-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.tags li { padding: 1px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text-2); }
main { padding: 16px 0 48px; }
h2 { margin: 48px 0 12px; font: 700 20px/1.2 var(--font-mono); }
p { margin: 2px 0 0; max-width: 38em; }
p + p { margin-top: 13px; }
.src { font-size: 13px; color: var(--text-3); }
.state { padding: 48px 0; color: var(--text-3); font: 13px var(--font-mono); }

/* ---- the chart */
.signal { margin-top: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.chart-head .hint { font: 12px var(--font-mono); color: var(--text-3); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.seg button { height: 24px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 12px var(--font-mono); cursor: pointer; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: #fff; }
.chart { position: relative; margin-top: 10px; user-select: none; -webkit-user-select: none; }
.chart .under, .chart .ec, .chart .over { position: absolute; inset: 0; }
.chart .under, .chart .over { pointer-events: none; }
.gl { position: absolute; height: 0; border-top: 1px solid var(--line-2); }
.gl.base { border-top-color: var(--line); }
.gl.ceil { border-top: 1px dashed var(--line); }
.tick, .lab, .rowname, .rowsum { position: absolute; font: 11px/14px var(--font-mono); color: var(--text-3); white-space: nowrap; }
.tick { text-align: right; }
.lab { color: var(--text-2); white-space: normal; }
.lab b { display: block; font-weight: 600; color: var(--text); white-space: nowrap; }
.lab.key b { font-weight: 400; color: var(--text-2); }
.chart.narrow .lab b { white-space: normal; }
.lab .sw { display: inline-block; width: 10px; height: 3px; margin-right: 6px; border-radius: 2px; vertical-align: 3px; }
.lab .sw.dot { width: 6px; height: 6px; border-radius: 50%; vertical-align: 1px; background: rgb(23 23 23 / .3); }
.rowname { text-align: right; overflow: hidden; text-overflow: ellipsis; }
.rowname.hype, .rowname.cat { color: var(--text); font-weight: 600; }
.rowname.on { color: var(--text); font-weight: 700; }
.hi { position: absolute; background: rgb(23 23 23 / .07); }
.hi-cell { position: absolute; border: 1.5px solid var(--text); border-radius: 3px; pointer-events: none; }
.hi[hidden], .hi-cell[hidden] { display: none; }
.guide { position: absolute; width: 0; border-left: 1px solid var(--text); }
.guide-mark { position: absolute; width: 20px; height: 20px; margin-left: -10px; pointer-events: auto; }
.more { margin-top: 10px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font: 600 13px var(--font-body); cursor: pointer; }
.more:hover { border-color: var(--text-3); }

/* the box that follows the pointer */
.tip { min-width: 190px; max-width: 360px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgb(0 0 0 / .08);
       font: 12px/1.5 var(--font-mono); color: var(--text-2); white-space: normal; }
.tip .d { margin-bottom: 4px; font-weight: 700; color: var(--text); }
.tip .r { display: grid; grid-template-columns: 12px 1fr auto; gap: 0 8px; align-items: baseline; }
.tip .r i { width: 10px; height: 3px; border-radius: 2px; align-self: center; }
.tip .r b { color: var(--text); font-weight: 600; text-align: right; }
.tip .sep { margin: 6px 0; border-top: 1px solid var(--line-2); }
.tip .g { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; }
.tip .g:not(.g3) > span:nth-child(odd), .tip .g3 > span:nth-child(3n+2) { color: var(--text); font-weight: 600; white-space: nowrap; }
#tip.float .g:not(.g3) > span:nth-child(odd) { text-align: right; }
.tip .g3 { grid-template-columns: 16px auto 1fr; align-items: center; }
.tip .g3 .sw { width: 12px; height: 3px; border-radius: 2px; background: var(--k-stars); }
.tip .sw.npm { background: var(--k-npm); } .tip .sw.pypi { background: var(--k-pypi); } .tip .sw.proxmox { background: var(--k-proxmox); } .tip .sw.image { background: var(--k-image); }
.tip .g3 .sw.bar { width: 3px; height: 10px; border-radius: 0; background: var(--text-2); justify-self: center; }
.tip .n + .n { margin-top: 2px; }
#tip.float { position: fixed; z-index: 20; pointer-events: none; }
#tip.float[hidden] { display: none; }
.tip .g .bars { vertical-align: -2px; }
#tip.float .tip { max-width: min(26rem, calc(100vw - 16px)); }
.tip .n { margin-top: 6px; color: var(--text-3); font-size: 11px; }
.tip .g + .p { margin-top: 6px; }

/* ---- tables */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
th { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--bg-alt); color: var(--text-2); text-align: left; vertical-align: top;
     font: 700 13px/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th.num, td.num { text-align: right; }
td.nw { white-space: nowrap; }
tr.main td:nth-child(2) { font-weight: 700; }
td .src { display: block; }
th button { all: unset; cursor: pointer; }
th button::after { content: " ↕"; color: var(--text-3); font-weight: 400; }
th[aria-sort="ascending"] button::after { content: " ↑"; color: var(--text); }
th[aria-sort="descending"] button::after { content: " ↓"; color: var(--text); }
table.stats { margin-top: 28px; }
table.stats td:first-child { font-weight: 600; }
table.stats td.num { font: 700 16px/1.4 var(--font-mono); white-space: nowrap; }
.i { width: 18px; height: 18px; margin-left: 6px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-alt); color: var(--text-2);
     font: 700 11px/16px var(--font-mono); cursor: pointer; vertical-align: 1px; }
.i[aria-expanded="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.note[hidden] { display: none; }
.note { display: block; margin-top: 2px; max-width: 46em; font-weight: 400; font-size: 13px; color: var(--text-3); }
.hypo { display: inline-block; min-width: 2.4em; padding: 1px 6px; border-radius: 4px; text-align: center; }
.hypo.h0 { background: #fbf3e6; } .hypo.h1 { background: #f6e2bf; } .hypo.h2 { background: #edc785; }
.hypo.h3 { background: #e88179; color: #fff; } .hypo.h4 { background: #d92d20; color: #fff; }
.lvname { margin-left: 6px; }
.pf { white-space: nowrap; }
.pf i { display: inline-block; width: 14px; height: 14px; margin-right: 6px; border-radius: 3px; background: #fff center / contain no-repeat; vertical-align: -2px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.filters button, .pager button { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text-2);
                                 font: 600 13px var(--font-mono); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 16px; font: 13px var(--font-mono); color: var(--text-2); }
.pager button:disabled { opacity: .4; cursor: default; }
.foot { margin-top: 32px; max-width: none; }

@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 32px; }
  .chart-head .hint { display: none; }
  table.stats td.src, table.stats th:last-child { display: none; }
}

/* ---- the list (index.html) */
.mast.list { padding: 24px 0; }
.headrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; }
.headrow h1 { margin: 0; }
.headrow h1 .bmark { margin-right: .25em; }
.tabs { display: flex; gap: 24px; }
.tabs a { padding: 2px 0; border-bottom: 2px solid transparent; color: var(--text-2); text-decoration: none; font: 500 15px/1.3 var(--font-body); }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current=page] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 28px 0 0; }
.controls input[type=search], .controls select { min-height: 36px; max-width: 100%; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text); font: 14px var(--font-body); }
.controls input[type=search] { flex: 1 1 14rem; max-width: 22rem; }
.controls :is(input, select, button):focus-visible, th button:focus-visible, .tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.controls .filters { margin: 0; }
.controls .filters button { font: 500 14px var(--font-body); }
.controls .plain { min-height: 36px; padding: 0 12px; border: 0; border-radius: 4px; background: none; color: var(--text); font: 500 14px var(--font-body); cursor: pointer; }
.controls .plain:hover { background: rgb(23 23 23 / .08); }
.controls .count { margin-left: auto; font: 13px var(--font-body); color: var(--text-3); white-space: nowrap; }
.tablewrap { overflow-x: auto; margin: 16px 0; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 1px 1px rgb(0 0 0 / .04); }
table.list th { font-size: 11px; letter-spacing: .03em; }
table.list th button::after { content: " ↕"; font-size: 10px; }
table.list th[aria-sort="ascending"] button::after { content: " ▲"; font-size: 9px; }
table.list th[aria-sort="descending"] button::after { content: " ▼"; font-size: 9px; }
table.list td { line-height: 1.4; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.rowlink { cursor: pointer; }
table.list tr.rowlink:hover td { background: rgb(23 23 23 / .04); }
table.list td:first-child { min-width: 15rem; }
table.list td:first-child > a { text-decoration: none; }
table.list td:first-child > a:hover { text-decoration: underline; }
table.list td.nw { white-space: nowrap; }
table.list td.reach { min-width: 7.5rem; white-space: nowrap; }
table.list .hmark { width: 16px; height: 16px; margin-left: 6px; vertical-align: -3px; }
.one { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.pfrow { display: flex; gap: 4px; margin-top: 6px; }
.pfi { display: inline-block; line-height: 0; }
.pfi i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #fff center / contain no-repeat; }
table.list .hypo, .mom { font-weight: 700; font-variant-numeric: tabular-nums; }
.mom { display: inline-block; min-width: 1.8em; padding: 1px 6px; border-radius: 4px; text-align: center; }
.mom.m0 { background: color-mix(in srgb, var(--mom) 8%, #fff); color: var(--text-3); } .mom.m1 { background: color-mix(in srgb, var(--mom) 25%, #fff); }
.mom.m2 { background: color-mix(in srgb, var(--mom) 50%, #fff); color: #fff; } .mom.m3 { background: var(--mom); color: #fff; }
.sgs { display: inline-flex; gap: 8px; align-items: flex-end; padding-top: 3px; }
.sg1 { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.sgl { font-size: 13px; line-height: 1.1; opacity: .55; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.bars i { width: 4px; border-radius: 1px; background: rgb(23 23 23 / .14); }
.bars i:nth-child(1) { height: 5px; } .bars i:nth-child(2) { height: 9px; } .bars i:nth-child(3) { height: 14px; }
.bars.b1 i:nth-child(1), .bars.b2 i:nth-child(-n+2), .bars.b3 i { background: var(--k-stars); }
.bars.na i { background: none; outline: 1px dashed rgb(23 23 23 / .3); outline-offset: -1px; }
.uses { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 2px 6px; font-size: 13px; line-height: 1.4; white-space: nowrap; }
.uses b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.uses span { opacity: .55; }
.tw { display: inline-block; }
.tqs { display: inline-flex; gap: 2px; white-space: nowrap; }
.tq { width: 7px; height: 12px; border-radius: 1.5px; box-shadow: inset 0 0 0 1px var(--line); }
.tq.on { background: var(--k-trend); }
.tq.na { box-shadow: none; outline: 1px dashed var(--line); outline-offset: -1px; }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.dots i.on { background: var(--text); box-shadow: none; }
.spkbox { display: block; line-height: 0; }
.spk { display: block; overflow: visible; }
.spk .pk { fill: var(--text-2); font: 600 10px var(--font-mono); }
.spk polyline { fill: none; stroke: var(--k-stars); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spk polyline:not(.stars) { stroke-width: 1.25; }
.spk polyline.npm { stroke: var(--k-npm); } .spk polyline.pypi { stroke: var(--k-pypi); } .spk polyline.proxmox { stroke: var(--k-proxmox); } .spk polyline.image { stroke: var(--k-image); }
.spk rect { fill: var(--text-2); }
.spk line { stroke: var(--line); stroke-width: 1; }
.spk .refl { stroke: var(--text-3); stroke-dasharray: 3 3; stroke-opacity: .33; }
.none { margin: 16px 0; color: var(--text-3); }
.none[hidden] { display: none; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 8px 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.legend i { display: inline-block; width: 16px; height: 0; margin-right: 6px; border-top: 3px solid var(--k-stars); border-radius: 2px; vertical-align: middle; }
.legend i.npm { border-top-color: var(--k-npm); } .legend i.pypi { border-top-color: var(--k-pypi); } .legend i.proxmox { border-top-color: var(--k-proxmox); } .legend i.image { border-top-color: var(--k-image); }
.legend i.bar { width: 3px; height: 10px; border: 0; border-radius: 0; background: var(--text-2); }
@media (max-width: 599px) {
  .controls input[type=search], .controls select { min-height: 44px; flex: 1 1 100%; max-width: none; }
  .controls .count { margin-left: 0; }
}

/* ---- the voices (voices.html): seven totals, the filters, one row a product with its texts under it */
.vstats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; }
.vstats div { min-width: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.vstats b { display: block; font: 600 24px/1.15 var(--font-body); font-variant-numeric: tabular-nums; }
.vstats span { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.3; }
.vstats + .controls { margin-top: 16px; }
.filters button[aria-busy=true] { opacity: .55; cursor: progress; }
.vnote { margin: 12px 0 0; padding: 8px 12px; border-left: 3px solid var(--good); background: var(--bg-alt); max-width: none; font-size: 14px; }
.vkey { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 16px; margin: 12px 0 0; max-width: none; color: var(--text-2); font-size: 13px; }
.vkey span { display: inline-flex; align-items: center; gap: 6px; }
.mk { align-self: center; flex: none; font: 600 11px/1 var(--font-mono); }
.mk.mh { padding: 2px 4px; border-radius: 3px; background: var(--hostinger); color: #fff; }
.mk.mt { color: var(--good); font-size: 13px; }
td a.mk.mt { text-decoration: none; }
table.voices > thead > tr > th, table.voices > tbody > tr.vrow > td { font-size: 14px; white-space: nowrap; }
table.voices > thead > tr > th.num, table.voices > tbody > tr.vrow > td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.voices > thead > tr > th button { display: inline-flex; align-items: baseline; gap: 4px; }
table.voices > thead > tr > th button::after { content: "↕"; font-size: 10px; }
table.voices > thead > tr > th[aria-sort="ascending"] button::after { content: "▲"; font-size: 9px; }
table.voices > thead > tr > th[aria-sort="descending"] button::after { content: "▼"; font-size: 9px; }
table.voices.noreddit > thead > tr > th:nth-child(8), table.voices.noreddit > tbody > tr.vrow > td:nth-child(8) { display: none; }
/* with the posts found by name the table has a column more and two wider ones: a little less air keeps it inside a 1440 px window */
table.voices:not(.noreddit) > thead > tr > th, table.voices:not(.noreddit) > tbody > tr.vrow > td { padding-left: 10px; padding-right: 10px; }
table.voices tr.vrow { cursor: pointer; }
table.voices tr.vrow:hover > td { background: rgb(23 23 23 / .04); }
table.voices tr.vrow.on > td { background: var(--bg-alt); border-bottom-color: transparent; }
table.voices > tbody > tr:last-child > td { border-bottom: 0; }
.vname { all: unset; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.vname:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.vname::before { content: "▸"; width: 12px; color: var(--text-3); font-size: 12px; }
.vname[aria-expanded=true]::before { content: "▾"; }
.plus, .dim { color: var(--text-3); }
tr.vdetail > td { padding: 8px 16px 16px; background: var(--bg-alt); white-space: normal; }
.vd-meta { margin: 0; max-width: none; color: var(--text-2); font-size: 13px; }
.vdetail .tablewrap { max-height: 26rem; margin: 8px 0 0; overflow-y: auto; background: var(--bg); }
.vdetail table th, .vdetail table td { font-size: 13px; vertical-align: top; white-space: normal; }
.vdetail td.nw, .vdetail td.num { white-space: nowrap; }
.vdetail td.num { font-variant-numeric: tabular-nums; }
.vdetail .who { color: var(--text-2); }
.vdetail .said { margin-top: 4px; }
.vdetail .said q { display: block; margin-top: 2px; color: var(--text-2); font-style: italic; }
.vnotes { margin-top: 32px; }
.vnotes summary { cursor: pointer; font-weight: 600; }
.vnotes details { margin: 12px 0; }
.how th { width: 14rem; font-weight: 600; white-space: normal; }
@media (max-width: 1099px) { .vstats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .how th { width: 8rem; white-space: normal; } }
@media (max-width: 479px) { .vstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
