/* Breach House v3 chart kit (DarkEye edition). Loaded site-wide by templates/header.html after
   static/v3/skin.css, which defines the tokens used here (--bg, --line, --cyan, --mono…).
   Every class is cx-*. One look for every data chart outside the home (hm-*) and All victims
   (av-*), whose charts these rules were lifted from, so the three read as one system:
     cx-bars   ranked bars on one baseline, one hue, the figure right after its bar
     cx-ring   a ring: one hue stepped down by rank with a legend (count + share), or the
               leak status (leaked solid red, pending a dim outline, deleted hatched)
     cx-ch     the per-day line drawn by static/js/leakline.js into a canvas
     cx-tl     server-drawn columns on a zero baseline (per month / week), busiest one in cyan
   Drawn by static/v3/charts.js (bars, rings: they follow Top N / Show % / By Sources) and by
   the macros in templates/_status_dist.html, _v3_rank.html and _v3_timeline.html.
   Radius 0, no glows, no shadows; figures in Space Mono; colour never carries meaning alone. */

/* ---------- the panels: figures side by side inside a card, split by hairlines ---------- */
.cx-mix{display:flex;flex-wrap:wrap;gap:1px;margin:0;padding:0;background:var(--line)}
.cx-mix+.cx-mix,.cx-mix+.cx-vz,.cx-vz+.cx-mix{border-top:1px solid var(--line)}
/* inside a padded card: its own hairline frame */
.cx-mix--in{margin-top:var(--s-3);border:1px solid var(--line)}
.cx-vz{flex:1 1 340px;display:flex;flex-direction:column;gap:var(--s-3);min-width:0;margin:0;padding:clamp(18px,2vw,30px);background:var(--bg-2);container-type:inline-size}
.cx-vz *,.cx-vz *::before,.cx-vz *::after{box-sizing:border-box}
.cx-vz :where(h3,p,ul,ol,dl,dd,figure,table){margin:0}
.cx-vz :where(ul,ol){padding:0;list-style:none}
.cx-vz--wide{flex:1.5 1 420px}
.cx-vz--slim{flex:.8 1 280px}
.cx-vz--full{flex:1 1 100%}
.cx-hd{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 24px}
.cx-vz .cx-h3,.cx-h3{font:700 var(--t-h3)/1.3 var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--text)}
.cx-sum{color:var(--dim);font:400 12px/1.5 var(--mono)}
.cx-def{flex-basis:100%;max-width:68ch;color:var(--dim);font-size:var(--t-sm);line-height:1.6}
.cx-nw{white-space:nowrap}
.cx-nodata{color:var(--dim);font:400 var(--t-data) var(--mono)}
.cx-lbl{font:400 var(--t-lbl)/1.5 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
.cx-num{font-family:var(--mono);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-.04em;line-height:1;color:var(--white)}

/* ---------- chart options (Top N, period, Show %, By Sources): words, not boxes ---------- */
.cx-ctl{display:flex;flex-wrap:wrap;align-items:center;gap:4px 26px;margin:0;padding:0;border:0;background:none}
.cx-ctl label{display:inline-flex;margin:0}
.cx-ctl select{min-height:44px;margin:0;padding:0 20px 0 0;border:0;border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239494a3'/%3E%3C/svg%3E") no-repeat right 2px center;box-shadow:inset 0 -1px 0 var(--dim);outline:0;font:700 12px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--text);cursor:pointer;-webkit-appearance:none;appearance:none}
.cx-ctl select:focus{box-shadow:inset 0 -1px 0 var(--cyan)}
.cx-ctl select option{background:var(--bg-2);color:var(--text);text-transform:none}
.cx-ctl .cx-tg{position:relative;min-height:44px;margin:0;padding:0;border:0;background:none;box-shadow:none;font:700 12px var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--dim);cursor:pointer;transition:color var(--fast)}
.cx-ctl .cx-tg::after{content:"";position:absolute;left:0;right:0;bottom:8px;height:1px;background:currentColor;transform:scaleX(.24);transform-origin:left;transition:transform var(--mid) var(--ease)}
.cx-ctl .cx-tg:hover,.cx-ctl .cx-tg[aria-pressed=true]{background:none;box-shadow:none;color:var(--cyan)}
.cx-ctl .cx-tg:hover::after,.cx-ctl .cx-tg:focus-visible::after,.cx-ctl .cx-tg[aria-pressed=true]::after{transform:scaleX(1)}
.cx-ctl :is(select,.cx-tg):focus-visible{outline:2px solid var(--white);outline-offset:3px}

/* ---------- ranked bars ---------- */
.cx-bars{display:grid;grid-template-columns:fit-content(50%) minmax(0,1fr);column-gap:14px;align-content:start;font:400 var(--t-data)/20px var(--sans);color:var(--text)}
.cx-bars>div{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;padding-block:6px;border-bottom:1px solid var(--line)}
@supports not (grid-template-columns:subgrid){.cx-bars>div{grid-template-columns:42% minmax(0,1fr);column-gap:14px}}
.cx-bars>.cx-nodata{grid-column:1/-1}
.cx-bar-l{display:flex;align-items:center;gap:9px;min-width:0;white-space:nowrap}
.cx-bar-l img{flex:none;width:16px;height:12px;object-fit:cover;outline:1px solid rgba(224,224,230,.16);outline-offset:-1px}
.cx-bar-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.cx-bars a.cx-bar-t{color:inherit;text-decoration:none;transition:color var(--fast)}
.cx-bars a.cx-bar-t:hover{color:var(--cyan)}
.cx-bar-b{display:flex;align-items:center;gap:8px;min-width:0;font:400 12px/20px var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-bar-b i{flex:none;width:calc((100% - var(--cw,5ch) - 8px)*var(--w,0));min-width:2px;height:8px;background:var(--cyan)}
.cx-bar-b b{font-weight:700;color:var(--white)}

/* ---------- rings ---------- */
.cx-db{flex:1 1 auto;display:flex;flex-wrap:wrap;align-items:center;align-content:center;gap:var(--s-3) clamp(20px,6cqi,36px)}
.cx-ring{position:relative;flex:none;width:clamp(124px,28cqi,168px);container-type:inline-size}
.cx-ring svg{display:block;width:100%;height:auto;overflow:visible}
.cx-ring circle{fill:none;stroke-width:14}
.cx-ring .cx-e{stroke:var(--line-2)}
.cx-ring-ct{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;margin:0;padding:0 16%;text-align:center;pointer-events:none}
.cx-ring-ct .cx-num{font-size:15cqi}
.cx-ring-ct .cx-lbl{font-size:11px;line-height:1.3}
/* a distribution: one hue, stepped down by rank (charts.js sets each arc's opacity); "Others" is the quiet rest */
.cx-ring svg.cx-dn{transform:rotate(-90deg)}
.cx-dn circle{stroke:var(--cyan);transition:opacity var(--fast)}
.cx-dn .cx-rest{stroke:var(--line-2)}
.cx-lg{flex:1 1 200px;min-width:0;margin:0;padding:0;list-style:none;font:400 12px/1.4 var(--mono)}
.cx-lg li{display:grid;grid-template-columns:9px minmax(0,1fr) auto 4.5ch;align-items:baseline;column-gap:10px;padding:6px 0;border-bottom:1px solid var(--line);transition:opacity var(--fast)}
.cx-lg li.cx-nodata{display:block;border:0}
.cx-sw{align-self:center;width:9px;height:9px;background:var(--cyan)}
.cx-sw.cx-rest{background:var(--line-2)}
.cx-lg-t{min-width:0;overflow-wrap:anywhere;font-family:var(--sans);font-size:var(--t-data);color:var(--text)}
.cx-lg b{font-weight:700;color:var(--white);font-variant-numeric:tabular-nums;text-align:right}
.cx-lg .cx-pc,.cx-lgt .cx-pc{color:var(--dim);font-variant-numeric:tabular-nums;text-align:right}
.cx-hot .cx-dn circle:not(.on){opacity:.22}
.cx-hot .cx-lg li:not(.on){opacity:.4}
/* the leak status: each part is drawn as its marker in the table beside it */
.cx-ring--st .cx-sl{stroke:var(--red)}
.cx-ring--st .cx-sp,.cx-ring--st .cx-sd{stroke:var(--dim)}
.cx-ring--st .cx-op,.cx-ring--st .cx-od{stroke-width:11}
.cx-ring--st .cx-op{stroke:var(--bg-2)}
.cx-hatch rect{fill:var(--bg-2)}
.cx-hatch path{stroke:var(--dim);stroke-width:2}
.cx-stf{margin:0;container-type:inline-size}
.lcov-card__body{padding:clamp(18px,2vw,30px)}
table.cx-lgt{flex:1 1 200px;width:auto;max-width:40rem;border-collapse:collapse;font:400 13px/1.4 var(--mono)}
table.cx-lgt th,table.cx-lgt td{position:static;border:0;background:none;text-transform:none;letter-spacing:0}
table.cx-lgt th{padding:7px 0;text-align:left;font:inherit;font-weight:400;color:var(--dim)}
table.cx-lgt td{padding:7px 0 7px 16px;text-align:right;font:inherit;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
table.cx-lgt td:nth-child(2){font-weight:700;color:var(--white)}
table.cx-lgt .cx-pc{width:5ch;font-size:12px;font-weight:400}
table.cx-lgt tr,table.cx-lgt tr:hover{background:none;border:0}
table.cx-lgt th.cx-lbl{padding-bottom:4px;font:400 var(--t-lbl)/1.5 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--dim)}
table.cx-lgt .cx-ot td:nth-child(2){font-weight:400;color:var(--text)}
table.cx-lgt tbody+tbody tr:first-child>*{padding-top:14px;border-top:1px solid var(--line)}
table.cx-lgt tbody:has(+tbody) tr:last-child>*{padding-bottom:14px}
@media (hover:hover){
  .cx-stf :is(.cx-ring g g,.cx-lgt tr){transition:opacity var(--fast)}
  .cx-stf:has(.cx-k-l:hover,.cx-s-l:hover) :is(.cx-s-p,.cx-s-d,.cx-k-p,.cx-k-d),.cx-stf:has(.cx-k-p:hover,.cx-s-p:hover) :is(.cx-s-l,.cx-s-d,.cx-k-l,.cx-k-d),.cx-stf:has(.cx-k-d:hover,.cx-s-d:hover) :is(.cx-s-l,.cx-s-p,.cx-k-l,.cx-k-p){opacity:.3}
}

/* status: shape + word, never colour alone */
.cx-st{display:inline-flex;align-items:center;gap:9px;font:400 var(--t-data) var(--mono);white-space:nowrap;text-transform:none;letter-spacing:0}
.cx-st::before{content:"";flex:none;width:9px;height:9px;box-shadow:inset 0 0 0 1.5px currentColor}
.cx-st--pending{color:var(--dim)}
.cx-st--leaked{color:var(--text)}
.cx-st--leaked::before{background:var(--red);box-shadow:none}
.cx-st--deleted{color:var(--dim)}
.cx-st--deleted::before{background:linear-gradient(135deg,transparent 44%,currentColor 44% 56%,transparent 56%)}

/* ---------- the per-day line (leakline.js): 220 px from the first paint ---------- */
.cx-ch{min-height:220px}
.cx-ch canvas{display:block;width:100%;height:220px}

/* ---------- columns on a zero baseline (per month / week / day), drawn on the server ---------- */
.cx-tl .cx-tl-p{position:relative;margin-top:calc(var(--s-3) + 6px)}
.cx-tl svg{display:block;width:100%;height:clamp(96px,11vw,168px);border-bottom:1px solid var(--line-2)}
.cx-tl svg.mx{border-top:1px solid var(--line)}
.cx-tl .cx-tl-y{position:absolute;left:0;bottom:100%;padding-bottom:6px;font:400 12px/1 var(--mono);color:var(--dim)}
.cx-tl rect{fill:var(--line-2);transition:fill var(--fast)}
.cx-tl rect.pk{fill:var(--cyan)}
.cx-tl rect:hover{fill:var(--white)}
.cx-tl .cx-tl-x{display:flex;justify-content:space-between;gap:16px;margin-top:8px;font:400 12px var(--mono);color:var(--dim)}

/* ---------- widths ---------- */
@media (max-width:600px){
  .cx-vz{padding:18px 16px}
  .cx-ctl{column-gap:18px}
  .cx-db{gap:var(--s-3) 20px}
}
@media (prefers-reduced-motion:no-preference){
  .cx-bar-b i{transition:width var(--mid) var(--ease)}
}
@media (forced-colors:active){
  .cx-st::before,.cx-sw{forced-color-adjust:none;background:CanvasText}
  .cx-bar-b i{forced-color-adjust:none;background:Highlight}
  .cx-ring--st .cx-sl,.cx-dn circle,.cx-tl rect{stroke:CanvasText}
  .cx-tl rect{fill:CanvasText}
  .cx-ring--st .cx-sp,.cx-ring--st .cx-sd,.cx-ring .cx-e,.cx-hatch path,.cx-dn .cx-rest{stroke:GrayText}
}


/* ==========================================================================================
   The Breakdown block of the list pages (All victims, breaches, leads, stealer logs), as the
   v3 design draws it: div.cx-bd, a 12-column grid of rank tables (table.cx-rank, each with its
   chart in the caption: bars, or the leak-status ring) and, on the listings, the monthly columns
   beside them; the per-day line under it. Markup: templates/_v3_rank.html (rank, rk_chart) and
   templates/_v3_timeline.html (tm_bars, tm_days). Everything is drawn on the server in its final
   state; charts.js only plays a chart in when it first comes into view.
   Every rule is under .cx-bd or a cx-tm / cx-rk class of its own, and carries the weight to hold
   against the page css' resets of bare table elements.
   ========================================================================================== */
/* margin-top: the design leaves --s-4 under the section head; it collapses with the head's own (smaller) margin */
.cx-bd{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--g);row-gap:var(--s-4);align-items:start;margin-top:var(--s-4)}
.cx-bd *,.cx-bd *::before,.cx-bd *::after,.cx-tm *,.cx-tm *::before{box-sizing:border-box}
.cx-bd>.cx-rank,.cx-bd>.cx-bd-c{grid-column:span 3}
.cx-bd>.cx-bd-t{grid-column:span 6;min-width:0}
.cx-bd--0>.cx-bd-t{grid-column:1/-1}
.cx-bd-c{min-width:0}

/* rank table: name · count · share; a linked row is one hit area and underlines in cyan */
.cx-bd .cx-rank{width:100%;margin:0;border:0;border-collapse:collapse;background:none}
.cx-bd .cx-rank caption{padding:0 0 10px;caption-side:top;text-align:left;border-bottom:1px solid var(--line-2)}
.cx-bd .cx-rank tr{position:relative;border:0;border-bottom:1px solid var(--line);background:none;cursor:default}
.cx-bd .cx-rank tbody tr:hover{background:none}
.cx-bd .cx-rank th,.cx-bd .cx-rank td{padding:9px 0;border:0;background:none;text-align:left;font-weight:400;vertical-align:baseline}
.cx-bd .cx-rank tbody th,.cx-bd .cx-rank tfoot th{padding-right:14px;font:400 var(--t-data) var(--sans);letter-spacing:0;text-transform:none;color:var(--text)}
.cx-bd .cx-rank th a{display:flex;align-items:baseline;gap:10px;color:inherit;text-decoration:none;transition:color var(--fast)}
.cx-bd .cx-rank th a::after{content:"";position:absolute;inset:0}
.cx-bd .cx-rank th>.cx-nm{display:flex;align-items:baseline;gap:10px}
.cx-bd .cx-rank td{text-align:right;font:700 var(--t-data) var(--mono);color:var(--white);font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-bd .cx-rank td.cx-pc{width:52px;font-weight:400;color:var(--dim)}
.cx-bd .cx-rank th .cx-st{font-size:var(--t-data)}
.cx-bd .cx-rank tr:hover th a{color:var(--cyan)}
.cx-bd .cx-rank tr::before{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--cyan);transform:scaleX(0);transform-origin:left;transition:transform var(--mid) var(--ease)}
.cx-bd .cx-rank tr:hover::before,.cx-bd .cx-rank tr:focus-within::before{transform:scaleX(1)}
.cx-bd .cx-rank tr.cx-rk-more th,.cx-bd .cx-rank tr.cx-rk-tail th,.cx-bd .cx-rank tr.cx-rk-more td,.cx-bd .cx-rank tr.cx-rk-tail td{color:var(--dim)}
.cx-bd .cx-rank tr.cx-rk-more td,.cx-bd .cx-rank tr.cx-rk-tail td{font-weight:400}
.cx-bd .cx-rank tfoot th,.cx-bd .cx-rank tfoot td{padding-top:12px;font:400 12px var(--mono);color:var(--dim)}
.cx-bd .cx-rank tfoot tr{border-bottom:0}
.cx-bd .cx-rank caption:has(>.cx-rk-ch){padding-bottom:0;border-bottom:0}
.cx-flag{display:inline-block;flex:none;width:18px;height:auto;aspect-ratio:4/3;margin-right:8px;vertical-align:-2px;object-fit:cover;outline:1px solid rgba(224,224,230,.16);outline-offset:-1px}
.cx-st--none{color:var(--dim)}
.cx-st--none::before{box-shadow:inset 0 0 0 1px var(--line-2)}

/* the chart over a rank's rows, inside its caption */
.cx-rk-ch{display:inline-block;width:100%;vertical-align:top;margin-top:10px;padding:16px 0 24px;border-top:1px solid var(--line-2);font:400 var(--t-lbl)/16px var(--sans);letter-spacing:0;text-transform:none;color:var(--dim)}
.cx-rk-bars .cx-rk-ps{display:grid;grid-template-columns:fit-content(55%) minmax(0,1fr);column-gap:12px}
.cx-rk-bars .cx-rk-ps>div{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:center;padding-block:2px}
@supports not (grid-template-columns:subgrid){
  .cx-rk-bars .cx-rk-ps>div{grid-template-columns:45% minmax(0,1fr);column-gap:12px}
}
.cx-rk-l{display:flex;align-items:center;gap:7px;min-width:0;white-space:nowrap}
.cx-rk-l .cx-flag{width:16px}
.cx-rk-t{min-width:0;overflow:hidden;text-overflow:ellipsis}
.cx-rk-b{display:flex;align-items:center;gap:6px;min-width:0;font:400 var(--t-lbl)/16px var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.cx-rk-b b{font-weight:400}
/* the one rounded mark of the block, as the design has it: the tip of a bar */
.cx-rk-b i{flex:none;width:calc((100% - var(--cw) - 6px)*var(--w));min-width:2px;height:8px;border-radius:0 4px 4px 0!important;background:var(--cyan);transform-origin:left}
.cx-rk-rw{position:relative;width:160px;max-width:100%}
.cx-rk-rw svg{display:block;width:100%;height:auto}
.cx-rk-ring circle{fill:none;stroke-width:14}
.cx-rk-sl{stroke:var(--red)}
.cx-rk-sp,.cx-rk-sd{stroke:var(--dim)}
.cx-rk-sn{stroke:var(--line-2)}
.cx-rk-ring .cx-rk-o,.cx-rk-ring .cx-rk-oh{stroke-width:11}
.cx-rk-ring .cx-rk-on{stroke-width:12}
.cx-rk-o{stroke:var(--bg)}
.cx-rk-hp rect{fill:var(--bg)}
.cx-rk-hp path{stroke:var(--dim);stroke-width:2}
.cx-rk-ring .cx-rk-x{stroke:transparent;stroke-width:26}
.cx-rk-ring .cx-rk-cv{stroke:var(--bg);stroke-width:18;stroke-dasharray:428 430;stroke-dashoffset:-428}
.cx-rk-ct{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;pointer-events:none}
.cx-rk-ct b{font:700 22px/1 var(--mono);color:var(--white)}
.cx-rk-ct b.sm{font-size:17px}
.cx-rk-ct span{font:400 var(--t-lbl)/1 var(--mono);letter-spacing:.1em;text-transform:uppercase}

/* the rows a rank folds, listed under it */
.cx-rank-all{margin-top:12px}
.cx-rank-all summary{position:relative;display:inline-flex;align-items:center;min-height:44px;list-style:none;cursor:pointer;font:700 13px var(--mono);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;color:var(--dim);transition:color var(--fast)}
.cx-rank-all summary::-webkit-details-marker{display:none}
.cx-rank-all summary::after{content:"";position:absolute;left:0;right:0;bottom:11px;height:1px;background:currentColor;transform:scaleX(.24);transform-origin:left;transition:transform var(--mid) var(--ease)}
.cx-rank-all summary:hover,.cx-rank-all[open] summary{color:var(--text)}
.cx-rank-all summary:hover::after,.cx-rank-all summary:focus-visible::after{transform:scaleX(1)}
.cx-rank-all summary:focus-visible{outline:2px solid var(--white);outline-offset:3px}
.cx-rank-all p{margin:4px 0 0;font:400 var(--t-data)/1.8 var(--mono);color:var(--dim);overflow-wrap:anywhere}
.cx-rank-all a{color:var(--text);text-decoration:none;transition:color var(--fast)}
.cx-rank-all a:hover{color:var(--cyan)}

/* the timelines: monthly columns (listings) and the per-day line (victims) */
/* figure.cx-tm / p.cx-tm-n: the element in the selector outweighs the page css' reset of bare figures and paragraphs */
figure.cx-tm{margin:var(--s-5) 0 0;padding:0}
.cx-bd-t figure.cx-tm{margin-top:0}
.cx-tm figcaption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 24px;padding-bottom:10px;border-bottom:1px solid var(--line-2)}
.cx-tm-s{font:400 12px/1.5 var(--mono);color:var(--dim)}
.cx-tm-p{position:relative;margin-top:var(--s-4)}
.cx-tm--line .cx-tm-p{margin-top:var(--s-3)}
.cx-tm svg{display:block;width:100%;height:clamp(96px,11vw,168px);border-bottom:1px solid var(--line-2)}
.cx-tm svg.mx{border-top:1px solid var(--line)}
.cx-tm--line svg{touch-action:pan-y pinch-zoom}
.cx-tm-y{position:absolute;left:0;bottom:100%;padding-bottom:6px;font:400 12px/1 var(--mono);color:var(--dim)}
.cx-tm--bars rect{fill:var(--line-2)}
.cx-tm--bars rect.pk{fill:var(--cyan)}
.cx-tm-a{fill:var(--bg-3)}
.cx-tm-l{fill:none;stroke:var(--cyan);stroke-width:1.25;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.cx-tm-c{display:none;fill:none;stroke:var(--dim);stroke-width:1;vector-effect:non-scaling-stroke}
.cx-tm.on .cx-tm-c{display:inline}
.cx-tm-x{position:relative;display:flex;justify-content:space-between;gap:16px;margin-top:8px;font:400 12px var(--mono);color:var(--dim)}
.cx-tm-o{position:absolute;left:0;top:0;font-weight:400;white-space:nowrap;color:var(--text);visibility:hidden}
.cx-tm.on .cx-tm-x>span{visibility:hidden}
.cx-tm.on .cx-tm-o{visibility:visible}
p.cx-tm-n{max-width:96ch;margin:12px 0 0;font:400 12px/1.6 var(--mono);color:var(--dim)}

@media (pointer:coarse){
  .cx-bd .cx-rank th,.cx-bd .cx-rank td{padding:12px 0}
}
@media (min-width:1101px){
  .cx-bd--1>.cx-rank,.cx-bd--1>.cx-bd-c{grid-column:span 4}
  .cx-bd--1>.cx-bd-t{grid-column:span 8}
}
@media (max-width:1100px){
  .cx-bd>.cx-rank,.cx-bd>.cx-bd-c{grid-column:span 6}
  .cx-bd>.cx-bd-t{grid-column:1/-1}
}
@media (max-width:760px){
  .cx-bd>.cx-rank,.cx-bd>.cx-bd-c{grid-column:1/-1}
}
@media (max-width:600px){
  .cx-rank-all summary{white-space:normal}
}
/* the charts of one grid row share the height of the tallest (bars: 20 px a row; the ring: 160 px),
   so the tables under them start level; a table without a chart leaves the same room */
@media (min-width:761px){
  .cx-bd:has(.cx-rk-n2){--rk-n:2}
  .cx-bd:has(.cx-rk-n3){--rk-n:3}
  .cx-bd:has(.cx-rk-n4){--rk-n:4}
  .cx-bd:has(.cx-rk-n5){--rk-n:5}
  .cx-bd:has(.cx-rk-n6){--rk-n:6}
  .cx-bd:has(.cx-rk-n7){--rk-n:7}
  .cx-bd:has(.cx-rk-n8){--rk-n:8}
  .cx-bd:has(.cx-rk-n9){--rk-n:9}
  .cx-bd:has(.cx-rk-n10){--rk-n:10}
  .cx-bd:has(.cx-rk-n11){--rk-n:11}
  .cx-bd:has(.cx-rk-ring){--rk-r:160px}
  .cx-bd .cx-rk-ch{min-height:calc(max(var(--rk-n,0)*20px,var(--rk-r,0px)) + 41px)}
  .cx-bd .cx-rank caption:not(:has(>.cx-rk-ch)){margin-bottom:min(max(var(--rk-n,0)*20px,var(--rk-r,0px))*1000,max(var(--rk-n,0)*20px,var(--rk-r,0px)) + 40px)}
}
@media (min-width:761px) and (max-width:1100px){
  .cx-bd>*{--rk-n:0;--rk-r:0px}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n2),:has(+* .cx-rk-n2)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n2),:has(+* .cx-rk-n2))+*{--rk-n:2}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n3),:has(+* .cx-rk-n3)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n3),:has(+* .cx-rk-n3))+*{--rk-n:3}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n4),:has(+* .cx-rk-n4)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n4),:has(+* .cx-rk-n4))+*{--rk-n:4}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n5),:has(+* .cx-rk-n5)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n5),:has(+* .cx-rk-n5))+*{--rk-n:5}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n6),:has(+* .cx-rk-n6)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n6),:has(+* .cx-rk-n6))+*{--rk-n:6}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n7),:has(+* .cx-rk-n7)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n7),:has(+* .cx-rk-n7))+*{--rk-n:7}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n8),:has(+* .cx-rk-n8)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n8),:has(+* .cx-rk-n8))+*{--rk-n:8}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n9),:has(+* .cx-rk-n9)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n9),:has(+* .cx-rk-n9))+*{--rk-n:9}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n10),:has(+* .cx-rk-n10)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n10),:has(+* .cx-rk-n10))+*{--rk-n:10}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-n11),:has(+* .cx-rk-n11)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-n11),:has(+* .cx-rk-n11))+*{--rk-n:11}
  .cx-bd>:nth-child(odd):is(:has(.cx-rk-ring),:has(+* .cx-rk-ring)),.cx-bd>:nth-child(odd):is(:has(.cx-rk-ring),:has(+* .cx-rk-ring))+*{--rk-r:160px}
}
/* a bar (or a part of the ring) and its row light up together */
@media (hover:hover){
  .cx-rk-ps>*{transition:opacity var(--fast)}
  .cx-bd .cx-rank:has(.cx-rk-ps>:hover,tbody>tr:hover,tbody>tr :focus-visible) .cx-rk-ps>*{opacity:calc(.3 + .7*var(--on,0))}
  .cx-bd .cx-rank:has(.cx-rk-ps>:hover) tbody>tr::before{transform:scaleX(var(--on,0))}
  .cx-bd .cx-rank:has(.cx-rk-ps>:hover) tbody>tr:not(.cx-rk-more,.cx-rk-tail) th a{color:color-mix(in srgb,var(--cyan) calc(var(--on,0)*100%),var(--text))}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(1):hover,tbody>tr:nth-child(1):hover,tbody>tr:nth-child(1) :focus-visible) :is(.cx-rk-ps>:nth-child(1),tbody>tr:nth-child(1)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(2):hover,tbody>tr:nth-child(2):hover,tbody>tr:nth-child(2) :focus-visible) :is(.cx-rk-ps>:nth-child(2),tbody>tr:nth-child(2)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(3):hover,tbody>tr:nth-child(3):hover,tbody>tr:nth-child(3) :focus-visible) :is(.cx-rk-ps>:nth-child(3),tbody>tr:nth-child(3)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(4):hover,tbody>tr:nth-child(4):hover,tbody>tr:nth-child(4) :focus-visible) :is(.cx-rk-ps>:nth-child(4),tbody>tr:nth-child(4)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(5):hover,tbody>tr:nth-child(5):hover,tbody>tr:nth-child(5) :focus-visible) :is(.cx-rk-ps>:nth-child(5),tbody>tr:nth-child(5)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(6):hover,tbody>tr:nth-child(6):hover,tbody>tr:nth-child(6) :focus-visible) :is(.cx-rk-ps>:nth-child(6),tbody>tr:nth-child(6)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(7):hover,tbody>tr:nth-child(7):hover,tbody>tr:nth-child(7) :focus-visible) :is(.cx-rk-ps>:nth-child(7),tbody>tr:nth-child(7)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(8):hover,tbody>tr:nth-child(8):hover,tbody>tr:nth-child(8) :focus-visible) :is(.cx-rk-ps>:nth-child(8),tbody>tr:nth-child(8)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(9):hover,tbody>tr:nth-child(9):hover,tbody>tr:nth-child(9) :focus-visible) :is(.cx-rk-ps>:nth-child(9),tbody>tr:nth-child(9)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(10):hover,tbody>tr:nth-child(10):hover,tbody>tr:nth-child(10) :focus-visible) :is(.cx-rk-ps>:nth-child(10),tbody>tr:nth-child(10)){--on:1}
  .cx-bd .cx-rank:has(.cx-rk-ps>:nth-child(11):hover,tbody>tr:nth-child(11):hover,tbody>tr:nth-child(11) :focus-visible) :is(.cx-rk-ps>:nth-child(11),tbody>tr:nth-child(11)){--on:1}
}
/* motion: the chart is drawn; charts.js adds .cx-go when it first comes into view, and it plays in */
@keyframes cx-rk-g{from{transform:scaleX(0)}}
@keyframes cx-rk-f{from{opacity:0}}
@keyframes cx-rk-cv{from{stroke-dashoffset:0}}
@media screen and (prefers-reduced-motion:no-preference){
  .cx-go .cx-rk-b i{animation:cx-rk-g .9s var(--ease) .1s both}
  .cx-go .cx-rk-b b{animation:cx-rk-f .3s linear .65s both}
  .cx-go .cx-rk-cv{animation:cx-rk-cv 1.1s var(--ease-io) .15s both}
}
@media (forced-colors:active){
  .cx-rk-b i{forced-color-adjust:none;background:CanvasText}
  .cx-rk-sl,.cx-tm-l{stroke:CanvasText}
  .cx-rk-sp,.cx-rk-sd,.cx-rk-sn,.cx-rk-hp path{stroke:GrayText}
  .cx-rk-o{stroke:Canvas}
  .cx-rk-hp rect{fill:Canvas}
  .cx-rk-ring .cx-rk-cv{display:none}
  .cx-tm--bars rect{fill:CanvasText}
  .cx-bd .cx-rank tr::before{forced-color-adjust:none;background:Highlight}
}
