/* studio.debyko.com/funding-spreads — the matrix. Tokens from tokens.css; row 26px (--dk-row-h-dense); every pixel is a number, a state or a sort.
   No sign colours (owner, issue 671 Q5): a value is ink; an extreme is only bold with a 2px rule, the highest on top, the lowest below. */
.fs { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; padding-bottom: 32px; }
.fs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 26px; align-items: end; }
.fs-head > * { grid-column: 1; }
.fs-crumbs { margin: 0; }
.fs-crumbs a { color: inherit; text-decoration: none; }
.fs-crumbs a:hover { text-decoration: underline; }
.fs-title { font: 700 30px/1.1 var(--dk-font-display); letter-spacing: -.02em; margin: 0; color: var(--dk-text-primary); }
.fs-method { margin: 0; font: 400 13px/1.55 var(--dk-font-text); color: var(--dk-text-secondary); }
.fs-method a { color: var(--dk-text-accent); }
.fs-head .fs-asof { grid-column: 2; grid-row: 1 / 4; align-self: end; text-align: right; font: 400 11px/1.5 var(--dk-font-mono); color: var(--dk-text-muted); white-space: nowrap; margin: 0; }
.fs-asof b { font-weight: 500; color: var(--dk-text-primary); }
.fs-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fs-filters input, .fs-filters select { height: 30px; padding: 0 10px; border: 1px solid var(--dk-border-strong); border-radius: 0; background: var(--dk-surface-raised); color: var(--dk-text-primary); font: 400 12px/1 var(--dk-font-mono); appearance: none; }
.fs-filters input { width: 220px; }
.fs-filters select { padding-right: 24px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: right 12px top 13px, right 8px top 13px; background-size: 4px 4px; background-repeat: no-repeat; }
.fs-seg { display: inline-flex; border: 1px solid var(--dk-border-strong); }
.fs-seg button { height: 28px; padding: 0 10px; border: 0; background: none; color: var(--dk-text-muted); font: 500 11px/1 var(--dk-font-mono); letter-spacing: .08em; cursor: pointer; }
.fs-seg button[hidden] { display: none; }
.fs-seg button + button { border-left: 1px solid var(--dk-border-hairline); }
.fs-seg button[aria-pressed="true"] { background: var(--dk-surface-invert); color: var(--dk-text-invert); }
.fs-filters .fs-lbl { font: 600 10px/1 var(--dk-font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dk-text-faint); margin-left: 8px; }
.fs-filters .fs-count { margin-left: auto; font: 400 11px/1 var(--dk-font-mono); color: var(--dk-text-muted); }

/* the box the table scrolls in */
.fs-box { position: relative; border: 1px solid var(--dk-border-hairline); background: var(--dk-surface-panel); overflow: auto; max-height: calc(100vh - 230px); min-height: 200px; }
.fs-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font: 400 12px/1 var(--dk-font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--dk-text-primary); }
/* Fixed layout on a wide screen: the browser sizes a column from the first row, not from every cell of up to 300 rows, so a redraw costs rows and not the table.
   The venue columns share what the four left columns leave, and never drop below 48px: past that the box scrolls (--fs-n is the venue count). */
@media (min-width: 701px) {
  .fs-tbl { table-layout: fixed; min-width: calc(404px + var(--fs-n, 0) * 48px); }
}
.fs-tbl caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fs-tbl th, .fs-tbl td { padding: 0 8px; height: 26px; border-bottom: 1px solid var(--dk-border-hairline); white-space: nowrap; text-align: right; background: var(--dk-surface-panel); }
.fs-tbl thead th { position: sticky; z-index: 3; vertical-align: bottom; font: 600 10px/1 var(--dk-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dk-text-faint); border-bottom: 1px solid var(--dk-border-strong); }
.fs-tbl thead tr.fs-grp th { top: 0; height: 22px; text-align: left; color: var(--dk-text-muted); border-bottom-color: var(--dk-border-hairline); }
.fs-tbl thead tr.fs-cols th { top: 22px; height: 96px; }
.fs-tbl th.v { padding: 0 0 8px; min-width: 48px; text-align: center; }
.fs-tbl th.v span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .08em; }
.fs-tbl th button { all: unset; cursor: pointer; }
.fs-tbl th button:hover { color: var(--dk-text-primary); }
.fs-tbl th[aria-sort] button { color: var(--dk-accent); }
.fs-tbl th[aria-sort="descending"] button::after { content: " ↓"; }
/* the sticky left columns */
.fs-tbl .c0, .fs-tbl .c1, .fs-tbl .c2, .fs-tbl .c3 { position: sticky; z-index: 2; }
.fs-tbl thead .c0, .fs-tbl thead .c1, .fs-tbl thead .c2, .fs-tbl thead .c3 { z-index: 4; }
.fs-tbl .c0 { left: 0; width: 128px; min-width: 128px; text-align: left; }
.fs-tbl .c1 { left: 128px; width: 92px; min-width: 92px; }
.fs-tbl .c2 { left: 220px; width: 92px; min-width: 92px; }
.fs-tbl .c3 { left: 312px; width: 92px; min-width: 92px; border-right: 1px solid var(--dk-border-strong); }
.fs-tbl td.c0 { font-weight: 600; }
.fs-tbl td.c0 button { all: unset; cursor: pointer; display: block; width: 100%; }
.fs-tbl td.c0 button:focus-visible { outline: 2px solid var(--dk-accent); outline-offset: 2px; }
.fs-tbl td.c0 button::before { content: "+"; display: inline-block; width: 12px; color: var(--dk-text-faint); }
.fs-tbl tr.is-open td.c0 button::before { content: "−"; color: var(--dk-accent); }
.fs-tbl tr.is-open td.c0 { color: var(--dk-text-accent); }
.fs-tbl td.c1 { font-weight: 600; }
.fs-tbl tbody tr:hover td { background: var(--dk-surface-subtle); }
/* cells */
.fs-tbl td.v { min-width: 48px; padding: 0 6px; text-align: center; cursor: default; }
.fs-tbl td.st { font-size: 8px; letter-spacing: .06em; color: var(--dk-text-faint); line-height: 1.1; white-space: normal; padding: 0 2px; }
.fs-tbl td.dash { color: var(--dk-text-faint); }
.fs-tbl td.hi { font-weight: 700; box-shadow: inset 0 2px 0 0 currentColor; }
.fs-tbl td.lo { font-weight: 700; box-shadow: inset 0 -2px 0 0 currentColor; }
.fs-tbl th.g, .fs-tbl td.g { border-left: 1px solid var(--dk-border-strong); }
.fs-tbl td.muted { color: var(--dk-text-faint); }
/* the expanded line */
.fs-tbl tr.fs-x td { height: 56px; padding: 0; background: var(--dk-surface-subtle); box-shadow: inset 0 1px 0 0 var(--dk-accent); }
.fs-x__line { display: flex; align-items: center; gap: 22px; padding: 0 14px 0 20px; height: 56px; position: sticky; left: 0; width: min(100%, calc(100vw - 66px)); box-sizing: border-box; }
.fs-x__spark { flex: none; width: 320px; height: 36px; border-bottom: 1px solid var(--dk-border-hairline); position: relative; }
.fs-x__spark svg { display: block; width: 100%; height: 100%; }
.fs-x__spark.is-unmeasured { background-image: repeating-linear-gradient(45deg, var(--dk-hatch) 0 1px, transparent 1px 5px); }
.fs-x__spark .fs-x__note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 400 10px/1 var(--dk-font-mono); letter-spacing: .06em; color: var(--dk-text-muted); background: var(--dk-surface-subtle); margin: 8px 40px; text-align: center; }
.fs-x__k { display: flex; flex-direction: column; gap: 5px; }
.fs-x__k span { font: 600 9px/1 var(--dk-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dk-text-faint); }
.fs-x__k b { font: 500 13px/1 var(--dk-font-mono); font-variant-numeric: tabular-nums; color: var(--dk-text-primary); }
.fs-x__k b.acc { color: var(--dk-text-accent); }
.fs-x__meta { margin-left: auto; font: 400 10px/1.5 var(--dk-font-mono); color: var(--dk-text-muted); text-align: right; }
.fs-x__meta a { color: var(--dk-text-accent); }
/* hover card */
.fs-pop { position: fixed; z-index: 50; pointer-events: none; min-width: 200px; padding: 8px 10px; background: var(--dk-surface-raised); border: 1px solid var(--dk-border-strong); box-shadow: var(--dk-shadow-popover); font: 400 11px/1.5 var(--dk-font-mono); color: var(--dk-text-secondary); }
.fs-pop[hidden] { display: none; }
.fs-pop b { display: block; font-weight: 600; color: var(--dk-text-primary); }
.fs-pop .r { display: flex; justify-content: space-between; gap: 18px; }
.fs-pop .r span:last-child { color: var(--dk-text-primary); font-variant-numeric: tabular-nums; }
.fs-pop .r.gap { margin-top: 4px; }
.fs-pop .w { font-weight: 600; letter-spacing: .1em; font-size: 9px; }
.fs-foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 0; font: 400 11px/1.6 var(--dk-font-mono); color: var(--dk-text-faint); }
.fs-foot a { color: var(--dk-text-accent); }
.fs-foot span b { font-weight: 700; color: var(--dk-text-muted); }
.fs-state { padding: 18px 14px; font: 400 12px/1.6 var(--dk-font-mono); color: var(--dk-text-muted); text-align: left; }
.fs-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font: 400 12px/1.6 var(--dk-font-mono); }
.fs-pagination[hidden] { display: none; }
.fs-pagination button { width: 40px; height: 40px; padding: 0; flex-shrink: 0; }
.fs-pagination button:disabled { opacity: .45; cursor: default; }
/* phone: instrument · spread · vs median; a tap opens the venue list as one compact table */
.fs-list { display: none; }
@media (max-width: 700px) {
  .fs { padding-top: 14px; padding-bottom: 22px; gap: 10px; }
  .fs-head { grid-template-columns: 1fr; }
  .fs-head .fs-asof { grid-column: 1; grid-row: auto; text-align: left; white-space: normal; }
  .fs-title { font-size: 22px; }
  .fs-filters input { width: 100%; }
  .fs-filters .fs-count { margin-left: 0; flex-basis: 100%; }
  .fs-tbl thead tr.fs-grp, .fs-tbl th.v, .fs-tbl td.v, .fs-tbl .c2 { display: none; }
  .fs-tbl thead tr.fs-cols th { top: 0; height: 30px; }
  .fs-tbl .c0 { width: auto; min-width: 0; }
  .fs-tbl .c1 { left: auto; position: static; width: 84px; min-width: 84px; }
  .fs-tbl .c3 { left: auto; position: static; width: 84px; min-width: 84px; border-right: 0; }
  .fs-tbl td { height: 34px; }
  .fs-tbl tr.fs-x td { height: auto; white-space: normal; box-shadow: inset 0 1px 0 0 var(--dk-accent); }
  .fs-x__line { height: auto; width: auto; flex-wrap: wrap; gap: 10px 18px; padding: 12px 10px; position: static; }
  .fs-x__spark { width: 100%; }
  .fs-x__meta { margin-left: 0; text-align: left; flex-basis: 100%; }
  .fs-list { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; border-top: 1px solid var(--dk-border-hairline); }
  .fs-list > span { height: 26px; display: flex; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--dk-border-hairline); font: 400 12px/1 var(--dk-font-mono); color: var(--dk-text-primary); }
  .fs-list > span:nth-child(3n+2) { justify-content: flex-end; font-variant-numeric: tabular-nums; }
  .fs-list > span:nth-child(3n) { justify-content: flex-end; font-size: 9px; letter-spacing: .1em; color: var(--dk-text-faint); min-width: 92px; }
  .fs-list .hi, .fs-list .lo { font-weight: 700; }
  .fs-list .hdr { font: 600 9px/1 var(--dk-font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dk-text-faint); height: 22px; }
  .fs-pop { display: none !important; }
}

/* the row's Embed button (embed-panel.js): small, at the right of the instrument cell, faint until the row is under the pointer */
.fs-tbl td.c0 button.fs-embed { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: inline-block; width: auto; padding: 2px 4px;
  font: 500 10px/1 var(--dk-font-mono); color: var(--dk-text-faint); }
.fs-tbl td.c0 button.fs-embed[data-embed]::before { content: none; }
.fs-tbl td.c0 button[data-instrument] { padding-right: 26px; box-sizing: border-box; }
.fs-tbl tbody tr:hover td.c0 button.fs-embed, .fs-tbl td.c0 button.fs-embed:focus-visible { color: var(--dk-text-accent); }
