/* Stocks (/stocks, /stocks/<TICKER>). Builds on patents.css + congress.css; only the differences are here. */
.st-tbl tr.link { cursor: pointer; }
.st-tbl tr.link:hover td { background: var(--panel); }
.chg.up { color: #4ade80; } .chg.down { color: #f87171; }
.st-page h1 .tk { font: 700 .55em var(--mono); color: var(--muted); vertical-align: middle; margin-left: 6px; }
.st-page section { margin: 0 0 30px; scroll-margin-top: 70px; }
.st-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0; }
.st-jump a { padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); text-decoration: none; }
.st-jump a:hover { border-color: var(--muted); }
.tv-box { height: 420px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.tv-box.tall { height: 560px; }
.tv-box iframe.tv { width: 100%; height: 100%; border: 0; display: block; }
.tv-note { margin-top: 8px; }
details.more { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
details.more > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
details.more[open] { padding-bottom: 12px; }
.st-key { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 14px; }
.st-key th { text-align: left; font-weight: 500; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.st-key td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.st-key td.num { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.st-chart .tb { margin-bottom: 10px; }
.st-bars { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-bottom: 22px; position: relative; }
.st-bars .col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.st-bars .col .b { background: #6b737d; border-radius: 3px 3px 0 0; display: block; }
.st-bars .col.on .b, .st-bars .col:hover .b { background: #ff8a1f; }
.st-bars .col .x { position: absolute; bottom: -20px; left: 0; right: 0; font: 600 .62rem var(--mono); color: var(--muted); text-align: center; white-space: nowrap; overflow: hidden; }
.st-bars.neg .col { justify-content: center; }
.st-bars.neg .col .b { margin-bottom: auto; margin-top: 50%; transform: translateY(-100%); }
.st-bars.neg .col.n .b { transform: none; background: #8a3b3b; border-radius: 0 0 3px 3px; }
.tm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.tm-facts dt { color: var(--muted); font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.tm-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .tv-box { height: 360px; } .tv-box.tall { height: 480px; }
  .st-bars .col .x { font-size: .52rem; }
  .st-key td.small { display: none; }
}
@media (max-width: 520px) { .tm-facts { grid-template-columns: 1fr; gap: 2px; } .tm-facts dd { margin-bottom: 8px; } }
main.st .cg-charts .rk { grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 70px; text-decoration: none; color: var(--text); }
main.st .cg-charts .rk-track b { white-space: nowrap; }
@media (max-width: 760px) { main.st .cg-charts .rk { grid-template-columns: 120px minmax(0, 1fr) 56px; } }
