/* ledger.css: the two ledger pages (every-number-we-publish, use-our-data). Only what site.css does not already have. */
.ledger .fact { white-space: normal; }       /* site.css keeps a figure on one line; a rule's clause has to wrap */
.withheld { color: var(--text); border-bottom: 1px dashed var(--muted); font-variant-numeric: tabular-nums; }
.sources { padding-left: var(--s6); }
.sources li { margin-bottom: var(--s2); overflow-wrap: anywhere; }
.faq-item { margin-bottom: var(--s5); }
.faq-item h3 { margin-bottom: var(--s1); }
pre.out { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.55; overflow-x: auto; }
pre.out.sample { margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }

/* jump lists: the no-script filter */
.jumplist { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.jumplist li { margin: 0; }
.ledger-mark { display: block; height: 0; overflow: hidden; scroll-margin-top: calc(var(--topbar-h) + var(--s4)); }
tbody[id] { scroll-margin-top: calc(var(--topbar-h) + var(--s4)); }

/* with scripting off, #only-<status> in the address drops the other rows */
html:not(.js) #only-publishable:target ~ .tablewrap tbody tr:not([data-status="publishable"]),
html:not(.js) #only-held:target ~ .tablewrap tbody tr:not([data-status="held"]),
html:not(.js) #only-disputed:target ~ .tablewrap tbody tr:not([data-status="disputed"]) { display: none; }

/* the table */
.ledger table { min-width: 1240px; }
.ledger td:nth-child(1) { min-width: 8.5rem; }
.ledger td:nth-child(2) { min-width: 10rem; }
.ledger td:nth-child(3) { min-width: 11rem; }
.ledger .vcell { display: block; max-width: 20rem; }
.ledger td:nth-child(6) { min-width: 13rem; }
.ledger td:nth-child(8) { min-width: 9rem; }
.ledger td { font-size: 14.5px; }
.ledger ul.plain, .prose .ledger ul.plain { list-style: none; margin: 0; padding: 0; }
.ledger ul.plain li { margin: 0 0 var(--s1); }
.ledger td:nth-child(6) li, .ledger td:nth-child(7) li, .ledger td:nth-child(8) li { white-space: nowrap; }

/* the script's filter panel */
.ledger-tools { margin: var(--s5) 0; }
.ledger-tools .count { margin: 0; }
.ledger-empty { margin: var(--s4) 0; color: var(--muted); }

/* a phone gets one card per row instead of a sideways scroll */
@media (max-width: 799px) {
  .ledger table { min-width: 0; display: block; }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ledger tbody, .ledger tr { display: block; }
  .ledger tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
  .ledger tbody:last-child tr:last-child { border-bottom: 0; }
  .ledger td { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s3); padding: var(--s1) 0; border: 0; }
  .ledger td::before { content: attr(data-label); color: var(--muted); font-size: 13px; }
  .ledger td { font-size: 14px; min-width: 0 !important; }
  .ledger .vcell { max-width: none; }
  .ledger ul.plain li { overflow-wrap: anywhere; white-space: normal !important; }
  .ledger td .chip { justify-self: start; }
  .ledger tbody tr:hover td { background: none; }
}
