/* TRENCH CRAWLER: what BlockZero's stylesheet (bz.css, cloned straight) does not have: the crawler mark, the Pulse canvas behind the
   stream, the "now reading" card, trade rows with coin logos, the ladder list, the how-it-works canvas. Same tokens, same fonts. */
:root { --up: #13795B; --down: var(--verm-t); }
.brand .mk-img { height: 20px; width: auto; image-rendering: pixelated; flex: none; }
.nav a[aria-current]::after { transform: none; }

.bc .plate canvas.pulse { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bc .plate video { position: absolute; inset: 0; z-index: 1; background: #000; }
.bc .ov .g { max-width: 100%; }

/* now reading */
.now { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); display: grid; gap: 7px; }
.now-c { display: flex; gap: 10px; align-items: center; min-width: 0; }
.now-c img { width: 34px; height: 34px; flex: none; object-fit: cover; background: var(--bone-3); }
.now-c > div { display: grid; gap: 3px; min-width: 0; }
.now-c b { font: 900 17px/1 var(--f-wd); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-c span { font: 400 11px/1.35 var(--f-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* trade rows (the right column) */
.lrow .gl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lrow .gl img { width: 18px; height: 18px; flex: none; object-fit: cover; background: var(--bone-3); }
.lrow .gl .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pn { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn.up { color: var(--up); } .pn.dn { color: var(--down); }
.lrow .ls a { color: var(--ink); }
.lrow .pp { padding: 1px 4px; background: var(--ink); color: var(--bone); letter-spacing: .1em; }
.lrow.zero { cursor: default; }
.lsteps { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.lsteps li { display: grid; gap: 3px; padding-left: 26px; position: relative; counter-increment: s; }
.lsteps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; font: 500 10px/1 var(--f-mono); color: var(--verm-t); }
.lsteps b { font: 900 13px/1.1 var(--f-wd); }
.lsteps span { font: 400 12px/1.4 var(--f-sans); color: var(--ink-2); }

/* the ladder section (dark) */
.rungs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.rungs li { position: relative; min-height: 132px; padding: 12px 12px 10px; background: var(--carbon-2); border: 1px solid var(--cline-2); display: flex; flex-direction: column; gap: 6px; }
.rungs li .n { font: 500 11px/1 var(--f-mono); color: rgba(241, 238, 230, .5); }
.rungs li .n em { font-style: normal; color: var(--verm); }
.rungs li b { font: 900 17px/1.05 var(--f-wd); color: var(--bone); letter-spacing: -.01em; }
.rungs li .by { margin-top: auto; font: 400 11px/1.4 var(--f-mono); color: rgba(241, 238, 230, .55); }
.rungs li.lit { background: var(--verm); border-color: var(--verm); }
.rungs li.lit .n, .rungs li.lit .n em, .rungs li.lit b, .rungs li.lit .by { color: var(--ink); }
.rungs li.next { border-color: var(--bone); }

/* how it works: the crawler at work, drawn */
.how-art { aspect-ratio: 16 / 9; background: var(--carbon); border: 1px solid var(--line); }
.how-art canvas { width: 100%; height: 100%; display: block; }
.tbl { overflow-x: auto; }
.pt td.why { white-space: normal; min-width: 200px; max-width: 320px; color: var(--ink-2); }
.pt td .coin { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.pt td .coin img { width: 20px; height: 20px; object-fit: cover; background: var(--bone-3); }
.pt td a { color: var(--ink); }
.pt tr.paper td:first-child::after { content: 'paper'; margin-left: 8px; padding: 1px 4px; background: var(--ink); color: var(--bone); font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; vertical-align: 2px; }
.empty-row td { padding: 26px 0; color: var(--ink-3); font: 400 12px/1.4 var(--f-mono); white-space: normal; }

.foot .big canvas.foot-crawl { width: 100%; height: auto; aspect-ratio: 22 / 16; max-height: 300px; justify-self: end; image-rendering: pixelated; }
.preview-tag { display: inline-block; margin-left: 8px; padding: 2px 6px; background: var(--ink); color: var(--bone); font: 500 9.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; vertical-align: 3px; }

/* the simple pages (trades, ledger) */
.page { padding: clamp(28px, 4vw, 64px) var(--m) 40px; }
.page h1 { margin: 10px 0 0; font: 900 clamp(38px, 4.4vw, 84px)/.92 var(--f-wd); letter-spacing: -.03em; }
.page .lead { margin: 16px 0 28px; max-width: 46em; font: 500 clamp(15px, 1.1vw, 18px)/1.45 var(--f-sans); color: var(--ink-2); }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-bottom: 28px; }
.kv > div { padding: 14px 18px 12px; border-left: 1px solid var(--line); }
.kv > div:first-child { padding-left: 0; border-left: 0; }
.kv b { display: block; margin-top: 6px; font: 900 24px/1 var(--f-wd); font-variant-numeric: tabular-nums; }
.kv .s { display: block; margin-top: 5px; font: 400 12px/1.4 var(--f-sans); color: var(--ink-2); }

@media (max-width: 1100px) { .rungs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rungs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rungs li { min-height: 104px; }
  .kv { grid-template-columns: 1fr 1fr; } .kv > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .foot .big canvas.foot-crawl { max-height: 160px; justify-self: start; }
}

/* the desk number stays on one line (0.981 SOL wrapped in the 11-12 shot) */
.life [data-desk-sol] { white-space: nowrap; font-size: clamp(34px, 3vw, 58px); }

/* holding now (Rayan on X 11-13: "see what the bot holds"): the open bags above the trades, live P&L */
.hold { margin-bottom: 14px; }
.hlist { display: grid; }
.hrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.hrow img { width: 22px; height: 22px; object-fit: cover; background: var(--bone-3); }
.hrow .s { font: 600 13px/1.2 var(--f-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hrow .m { grid-column: 2 / 4; font: 400 10.5px/1.2 var(--f-mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lf-k dd small { display: block; margin-top: 4px; font: 400 10.5px/1.2 var(--f-mono); color: var(--ink-3); letter-spacing: 0; }
/* it learns */
.learn { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.lessons, .lchanges { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.lessons li, .lchanges li { padding: 14px 0; border-bottom: 1px solid var(--line-2); font: 500 16px/1.45 var(--f-sans); color: var(--ink); }
.lchanges li { font: 400 13px/1.5 var(--f-mono); color: var(--ink-2); }
.lessons li .t, .lchanges li .t { display: block; margin-bottom: 4px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--verm-t); }
.lessons li.empty, .lchanges li.empty { color: var(--ink-3); font: 400 13px/1.45 var(--f-mono); }
@media (max-width: 1100px) { .learn { grid-template-columns: 1fr; } }

/* CLICKY LAYOUT (owner 11-16: "change the website layout a bit, keep the same style and vibe"): the first screen mirrored on desktop
   (trades + holdings left, stream centre, the desk + name right) and the fees strip as a dark band. Phone stays stacked. */
@media (min-width: 1101px) {
  .hero { grid-template-columns: minmax(0, 1fr) var(--bcw) var(--copyw); }
  .h-side { grid-column: 1; padding-left: 0; padding-right: 20px; }
  .h-main { grid-column: 2; }
  .h-copy { grid-column: 3; padding-right: 0; padding-left: clamp(20px, 2.4vw, 44px); }
}
.h-strip { background: var(--carbon); color: var(--bone); border-top: 0; margin-top: 18px; padding: 4px 22px 12px; }
.h-strip > div { border-left-color: var(--cline); }
.h-strip > div:first-child { padding-left: 0; }
.h-strip h2 { color: var(--bone); }
.h-strip h2 em { color: var(--verm); }
.h-strip .s { color: rgba(241, 238, 230, .68); }
.h-strip .lbl { color: rgba(241, 238, 230, .5); }
.h-strip .big { color: var(--bone); }
.h-strip .ticks i { background: rgba(241, 238, 230, .16); }
.h-strip .ticks i.on { background: var(--verm); }

/* SCROLLBARS (owner rule: never the stock grey bar with arrows). Chrome / Edge / Safari: thin, rounded, no buttons, in the page's
   own ink on paper and bone on the dark bands. The standard scrollbar-width / -color is set for Firefox only: from Chrome 121 it
   would switch these rules off and bring the Windows bar back (that was the bar on the trades list, 11-16). */
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track, *::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(18, 19, 22, .26); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(18, 19, 22, .44); }
*::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.dark ::-webkit-scrollbar-thumb, .h-strip ::-webkit-scrollbar-thumb, .bc ::-webkit-scrollbar-thumb { background: rgba(241, 238, 230, .24); }
.dark ::-webkit-scrollbar-thumb:hover, .h-strip ::-webkit-scrollbar-thumb:hover, .bc ::-webkit-scrollbar-thumb:hover { background: rgba(241, 238, 230, .42); }
.blist::-webkit-scrollbar { display: none; }
@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: rgba(18, 19, 22, .26) transparent; }
  .dark *, .h-strip *, .bc * { scrollbar-color: rgba(241, 238, 230, .24) transparent; }
  .blist { scrollbar-width: none; }
}
