/* /stables/ Stablecoin flow → perp liquidity → OI / funding → positioning (Kai 2026-10-06). */
.sf-market { margin: var(--space-1) 0 var(--space-2); font-size: var(--fs-md); color: var(--text-mid); font-variant-numeric: tabular-nums; }
.sf-market b { color: var(--text); font-weight: 600; }
.sf-depeg { margin: 0 0 var(--space-2); }
.sf-depeg .state-line { margin: 0 0 var(--space-1); }
.sf-alert { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); padding: var(--space-2) var(--space-3); margin-bottom: var(--space-1); border: 1px solid rgba(var(--amber-rgb), .35); border-radius: var(--radius-card); background: rgba(var(--amber-rgb), .06); font-size: var(--fs-xs); color: var(--text-mid); font-variant-numeric: tabular-nums; }
.sf-alert b { color: var(--amber); font-weight: 600; }
.sf-alert .sym { color: var(--text); font-weight: 600; }
.sf-sec { margin-top: var(--sec-gap); }
.sf-sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.sf-sec-head h2 { margin: 0 0 var(--space-1); font-size: var(--fs-lg); font-weight: 600; letter-spacing: var(--ls-title); }
#sfShare { flex: none; margin-left: auto; } /* share keeps the head's right end, empty board or not */
.sf-sec-head > div { min-width: 0; }
.sf-sec-head p { margin: 0; font-size: var(--fs-md); line-height: var(--lh-prose); color: var(--text-mid); max-width: 760px; }
.sf-steps { display: flex; flex-wrap: wrap; gap: var(--space-1); margin: 0; padding: 0; list-style: none; counter-reset: st; }
.sf-steps li { counter-increment: st; font-size: var(--fs-xs); color: var(--text-mid); display: inline-flex; align-items: center; gap: var(--space-1); }
.sf-steps li::before { content: counter(st); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: var(--fs-xs); font-weight: 600; color: var(--bg); background: var(--mint); }
.sf-steps li + li::before { margin-left: 0; }
.sf-steps li:not(:last-child)::after { content: "→"; margin-left: var(--space-1); color: var(--text-dim); }
.sf-venues { display: grid; gap: var(--space-3); }
/* phones: two venue cards, the rest behind the fold button (stable-flow.js venueFold) */
.sf-more { display: none; }
@media (max-width: 767px) {
  .sf-venues:not(.sf-all) > .sf-v:nth-child(n+3) { display: none; }
  .sf-more:not([hidden]) { display: block; }
}
.sf-v { padding: var(--card-pad); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); min-width: 0; }
.sf-v:hover { border-color: var(--border-strong); }
.sf-v-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); margin-bottom: var(--space-2); }
.sf-v-name { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-base); font-weight: 600; }
.sf-v-name small { font-size: var(--fs-xs); font-weight: 400; color: var(--text-dim); }
.sf-v-read { font-size: var(--fs-xs); color: var(--text-mid); }
.sf-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); overflow: hidden; }   /* no frame inside the venue card */
.sf-st { position: relative; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-3); min-width: 0; background: var(--surface-2); }
.sf-st + .sf-st { border-left: 1px solid var(--border); }
.sf-st + .sf-st::before { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: calc(-1 * var(--space-1)); background: var(--surface-2); border-top: 1px solid var(--border); border-right: 1px solid var(--border); transform: rotate(45deg); }
.sf-st-k { font-size: var(--fs-xs); font-weight: 600; color: var(--text-dim); letter-spacing: var(--ls-tag); margin-bottom: var(--space-1); }
.sf-st-big { font-size: var(--fs-xl); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: var(--ls-title); white-space: nowrap; }
.sf-st-big.in { color: var(--gain); }
.sf-st-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-2); margin-top: 3px; font-size: var(--fs-xs); color: var(--text-mid); font-variant-numeric: tabular-nums; }
.sf-st-row span:last-child { color: var(--text); white-space: nowrap; margin-left: auto; text-align: right; } /* a long value (negative funding + pp) drops under its label instead of overlapping it, 2026-10-07 audit at 1024 */
.sf-st-scope { font-size: var(--fs-md); font-weight: 600; color: var(--text-dim); cursor: help; border-bottom: 1px dotted var(--text-dim); }
.sf-na { color: var(--text-dim); cursor: help; border-bottom: 1px dotted var(--text-dim); }
.sf-est { display: inline-block; margin-left: var(--space-1); padding: 0 var(--space-1); border: 1px solid var(--border-strong); border-radius: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--amber); vertical-align: 1px; cursor: help; }
.sf-tbl-wrap { padding: 0; overflow-x: auto; }
.sf-tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.sf-tbl th, .sf-tbl td { padding: var(--space-1) var(--space-3); border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.sf-tbl th { font-size: var(--fs-xs); font-weight: 600; color: var(--text-mid); background: var(--surface-2); }
.sf-tbl th:first-child, .sf-tbl td:first-child, .sf-tbl th:nth-child(2), .sf-tbl td:nth-child(2) { text-align: left; }
.sf-tbl tr:last-child td { border-bottom: 0; }
.sf-tbl td.scope { white-space: normal; text-align: left; color: var(--text-dim); font-size: var(--fs-xs); min-width: 260px; }
.sf-detail > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.sf-detail > summary::-webkit-details-marker { display: none; }
.sf-detail > summary h2 { margin: 0; font-size: var(--fs-lg); font-weight: 600; letter-spacing: var(--ls-title); }
.sf-detail > summary h2::before { content: "＋ "; color: var(--mint); }
.sf-detail[open] > summary h2::before { content: "－ "; }
.sf-detail > summary span { font-size: var(--fs-xs); color: var(--text-dim); }
.sf-detail[open] > summary { margin-bottom: var(--space-3); }
@media (max-width: 860px) {
  .sf-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-st:nth-child(3) { border-left: 0; }
  .sf-st:nth-child(n+3) { border-top: 1px solid var(--border); }
  .sf-st:nth-child(3)::before { display: none; }
}
@media (max-width: 460px) {
  .sf-stages { grid-template-columns: minmax(0, 1fr); }
  .sf-st + .sf-st { border-left: 0; border-top: 1px solid var(--border); }
  .sf-st + .sf-st::before { left: 50%; top: -6px; margin: 0 0 0 calc(-1 * var(--space-1)); transform: rotate(135deg); }
}
.sf-tbl td small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-dim); }

/* By stablecoin table (2026-10-09) */
.sf-assets td .vn-sub { display: block; font-size: var(--fs-xs); color: var(--text-dim); }
.sf-sym { font-weight: 600; }
/* Q5 (Codex QA 2026-10-09): secondary figures were 10 px (browser small); 12 px minimum */
.sf-st small, .sf-st-row small, .sf-alert span { font-size: var(--fs-xs); }
@media (max-width: 720px) { .sf-depeg-sort .chip { min-height: 44px; } }
.sf-depeg-sort { margin: 0 0 var(--space-2); font-size: var(--fs-xs); color: var(--text-mid); display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; }
/* depeg count line with the list folded under it (Kai 2026-10-11 review item 3) */
.sf-depeg-d { margin: 0 0 var(--space-2); border: 1px solid rgba(var(--amber-rgb), .35); border-radius: var(--radius-card); background: rgba(var(--amber-rgb), .06); }
.sf-depeg-d > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-2); padding: var(--space-3) var(--card-pad); cursor: pointer; list-style: none; font-size: var(--fs-base); color: var(--text); }
.sf-depeg-d > summary::-webkit-details-marker { display: none; }
.sf-depeg-d > summary::after { content: "›"; margin-left: auto; color: var(--text-mid); transition: transform .14s; }
.sf-depeg-d[open] > summary::after { transform: rotate(90deg); }
.sf-depeg-n { color: var(--amber); font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-depeg-d[open] { padding-bottom: var(--space-2); }
.sf-depeg-d .sf-depeg-sort, .sf-depeg-d .sf-alert { margin-inline: var(--card-pad); }
.sf-flowsum td:first-child .go { display: inline-flex; align-items: center; gap: var(--space-1); }
.sf-flowsum td .vn-sub { display: block; font-size: var(--fs-xs); color: var(--text-dim); margin-top: 2px; }
.sf-flowsum td.num { font-size: var(--fs-base); font-weight: 600; }
.sf-flowsum td.num .vn-sub { font-weight: 400; }
/* By stablecoin on phones (review item 5): name, supply, 24h, 7d and peg; chains and pools are on each symbol page */
@media (max-width: 560px) {
  .sf-assets th:nth-child(6), .sf-assets td:nth-child(6), .sf-assets th:nth-child(7), .sf-assets td:nth-child(7) { display: none; }
}
.sf-m-only { display: none; }
@media (max-width: 560px) { .sf-m-only { display: block; } }
.sf-depeg-more { margin: var(--space-1) 0 0; font-size: var(--fs-xs); }
