/* Exchanges (Holo 2, 2026-10-26): the comparison board on /exchanges and the venue instruments on /exchanges/{slug}.
   The plates, instruments, chrome figure, provenance line, pills and table sheen are site.css's; this file styles what
   belongs to these two pages: the coverage and volume bars, the hourly uptime strips, the overlap columns, the gap
   histogram and the "only here" list. Cyan is a read that came back (and the lit part of a bar), magenta a read that
   didn't, lavender the scale; nothing here moves on its own. */

/* page head: the intro on the left, the one chrome figure and its provenance on the right */
.ex-head{align-items:flex-end}
.ex-reading{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:0;text-align:right}
.ex-reading .provenance{justify-content:flex-end}
.page-head .ex-visit{margin:14px 0 0}

.ex-reading .provenance>span+span::before{content:"·";margin-right:10px;color:var(--lavender-text)}
.crumbs a{display:inline-block;padding:8px 0;margin:-8px 0}
#ex-board,#pairs{scroll-margin-top:84px}

/* the list's three instruments */
.ex-instruments{grid-template-columns:repeat(3,minmax(0,1fr))}
.ex-chart,.ex-strip,.ex-cov{width:100%;min-width:0}
.ex-chart svg{display:block;width:100%;height:52px;overflow:visible}
.ex-chart svg.ex-hist{height:40px}
.ex-overlap path{fill:rgba(201,184,255,.38);transition:fill var(--t-fast)}
.ex-overlap path.is-one{fill:var(--cyan)}
.ex-overlap path:hover{fill:var(--lavender)}
.ex-overlap path.is-one:hover{fill:var(--cyan-2)}
.ex-axis{stroke:var(--line-3);stroke-width:1;vector-effect:non-scaling-stroke}
.ex-chart-axis{position:relative;display:block;height:13px;margin-top:7px;font-family:var(--mono);font-size:9.5px;line-height:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--lavender-text)}
.ex-chart-axis>span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.ex-chart-ends{display:flex;justify-content:space-between}
.ex-chart-ends>span{position:static;transform:none}

/* the gap histogram: the centre bin in lavender, the others in the spectral tone, stronger the further out they sit */
.ex-hist path{fill:var(--tone,var(--tone-flat))}
.ex-hist path.is-mid{fill:var(--lavender)}

/* every venue's share of the volume, one segment each, biggest first; the lead (or this venue) lit */
.ex-split{position:relative;display:flex;gap:2px;width:100%;padding-bottom:22px}
.ex-split>span{position:relative;flex:0 1 0;min-width:2px}
.ex-split i{display:block;height:14px;border-radius:2px;background:rgba(201,184,255,.26);transition:background-color var(--t-fast)}
.ex-split>span:hover i{background:rgba(201,184,255,.5)}
.ex-split .lead i,.ex-split .is-this i,.ex-split .lead:hover i,.ex-split .is-this:hover i{background:var(--cyan);box-shadow:0 0 14px -4px var(--cyan-glow)}
.ex-split small{position:absolute;top:21px;left:0;font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;color:var(--lavender-text);white-space:nowrap}
.ex-split .end small{left:auto;right:0}
.ex-split .is-this small{color:var(--cyan)}

/* the hourly uptime strip: 24 cells, oldest on the left. A split cell shows the failed share in magenta at its foot;
   an hour with no read is a low faint tick, so it differs by shape as well as colour. */
.ustrip{display:grid;grid-template-columns:repeat(24,minmax(0,1fr));gap:1px;align-items:end;width:120px;height:16px}
.ustrip>i,.ex-key>i{display:block;height:100%;border-radius:1px}
.u-ok{background:var(--cyan)}
.u-fail{background:var(--magenta)}
.u-part{background:linear-gradient(to top,var(--magenta) 0 max(2px,calc(var(--f,.5) * 100%)),var(--cyan) 0)}
.u-none{background:rgba(201,184,255,.24)}
.ustrip>i.u-none{height:3px}
.ustrip-lg{gap:2px;width:100%;height:30px}
.ustrip-axis{display:flex;justify-content:space-between;margin-top:7px;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--lavender-text)}

/* the comparison board */
.ex-board{margin:28px 0 0}
.ex-table td{vertical-align:top}
.ex-table th:first-child,.ex-table td:first-child{padding-left:16px}
.ex-table th:last-child,.ex-table td:last-child{padding-right:16px}
.ex-name{min-width:180px}
.ex-table th a{display:block;padding:12px 0;margin:-12px 0}
.ex-name .strong{margin-right:6px;font-size:15px}
.ex-name .strong:hover{color:var(--cyan);text-decoration:none}
/* a venue with nothing matched: its zeros step back, so the eye stays on the reason and the failed reads */
.ex-table .is-off td.num{color:var(--muted)}
.ex-meta{display:block;margin-top:5px;font-size:12px;color:var(--muted)}
.ex-code{margin-right:7px;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;color:var(--lavender-text)}
.ex-why{display:block;max-width:28ch;margin-top:4px;font-size:12px;line-height:1.4;color:var(--text-2)}
.ex-fig{display:block;white-space:nowrap}
.ex-sub{display:block;margin-top:4px;font-family:var(--mono);font-size:11px;font-weight:400;color:var(--muted);white-space:nowrap}
/* a hairline track with the value lit: the coins bar dims the coins other venues share and lights the ones only here */
.ex-bar{display:flex;width:96px;max-width:100%;height:4px;margin:7px 0 0 auto;overflow:hidden;border-radius:2px;background:rgba(201,184,255,.12)}
.ex-bar i{display:block;flex:none;height:100%;background:rgba(110,243,255,.4)}
.ex-bar i.only{background:var(--cyan)}
.ex-up{width:150px}
.ex-up .ustrip{margin-top:3px}
.ex-read{font-family:var(--mono);font-size:13.5px;white-space:nowrap}

/* how to read the board */
.ex-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 40px;margin:22px 0 0;font-size:13.5px;line-height:1.5;color:var(--text-2)}
.ex-notes>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px}
.ex-notes dt{padding-top:3px;font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--lavender-text)}
.ex-notes dd{margin:0}
.ex-keys{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px}
.ex-key{display:inline-flex;align-items:flex-end;gap:7px;font-family:var(--mono);font-size:11px;letter-spacing:.04em;color:var(--muted);white-space:nowrap}
.ex-key>i{width:7px;height:13px;flex:none}
.ex-key>i.u-none{height:3px;margin-bottom:2px}

/* the venue page */
.ex-bar-lg{width:100%;height:12px;margin:0;border-radius:3px}
.ex-scale{display:flex;justify-content:space-between;margin-top:8px;font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--lavender-text)}
.ex-only,.ex-pairs{margin:28px 0}
.ex-only-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px;margin:0;padding:4px 16px 6px;list-style:none}
.ex-only-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;border-bottom:1px solid var(--line)}
.ex-only-list a{display:flex;align-items:center;gap:9px;min-width:0;padding:10px 0;font-weight:600;color:var(--text)}
.ex-only-list a:hover{color:var(--cyan);text-decoration:none}
.ex-only-list .coin-logo{width:22px;height:22px}
.ex-only-list .coin-name{max-width:none;min-width:0}
.ex-only-fig{flex:none;font-family:var(--mono);font-size:11.5px;color:var(--muted);white-space:nowrap}
.ex-only-empty{margin:0;padding:16px}
.ex-only .panel-foot{margin:0;padding:10px 16px 14px}
.ex-pairs .table th:first-child,.ex-pairs .table td:first-child{width:1%}
.ex-pairs .table th:first-child,.ex-pairs .table td:first-child{padding-left:16px}
.ex-pairs .table th:last-child,.ex-pairs .table td:last-child{padding-right:16px}

@media (max-width:1100px){.ex-only-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  .ex-reading{align-items:flex-start;text-align:left}
  .ex-reading .provenance{justify-content:flex-start}
  .ex-instruments{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ex-instruments>:last-child{grid-column:1/-1}
  .ex-notes{grid-template-columns:minmax(0,1fr)}
  .ex-up{width:auto}
  .ex-up .ustrip{width:96px}
  .ex-name{min-width:150px}
}
@media (max-width:640px){
  .ex-instruments{grid-template-columns:minmax(0,1fr)}
  /* name, then status and code, then country: every row the same three lines, however long the name */
  .ex-name .strong{display:block;margin:0}
  .ex-name .pill{margin:4px 6px 0 0;padding:1px 6px}
  .ex-meta{display:inline}
  .ex-place{display:block;margin-top:3px}
  #ex-board,#pairs{scroll-margin-top:128px}
  .ex-table th:first-child,.ex-table td:first-child{padding-left:10px}
  .ex-table th:last-child,.ex-table td:last-child{padding-right:10px}
  .ex-name{min-width:0}
  .ex-name .strong{font-size:14px}
  .ex-meta{font-size:11px}
  .ex-why{max-width:16ch}
  .ex-table .ex-bar{width:56px}
  .ex-board .fig-head,.ex-only .fig-head,.ex-pairs .fig-head{flex-wrap:wrap;row-gap:4px}
  .ex-up .ustrip{width:72px;height:14px}
  .ex-notes>div{grid-template-columns:minmax(0,1fr);gap:4px}
  .ex-only-list{grid-template-columns:minmax(0,1fr);padding:2px 12px 6px}
  .ex-pairs .table th:first-child,.ex-pairs .table td:first-child{padding-left:10px}
  .ex-pairs .table th:last-child,.ex-pairs .table td:last-child{padding-right:10px}
}
@media (max-width:480px){.ex-reading .provenance>span:nth-child(3)::before{content:none}}   /* it starts its own line here */
@media (forced-colors:active){
  .u-ok,.ex-bar i.only,.ex-split .lead i,.ex-split .is-this i{background:Highlight}
  .u-fail{background:Mark}
  .u-part{background:linear-gradient(to top,Mark 0 50%,Highlight 0)}
  .u-none,.ex-bar,.ex-split i{background:GrayText}
}
