/* ══════════════════════════════════════════════════════════════════════════
   UPLIST — the sheet (home)
   ─────────────────────────────────────────────────────────────────────────
   The default view is a table, not a card wall. A launchpad paired to stocks
   is a quote sheet, and a quote sheet is read down a column. Cards exist as
   a toggle for the people who want faces.
   ══════════════════════════════════════════════════════════════════════════ */

/* ══ masthead block ══ */
.hero{border-bottom:1px solid var(--rule);background:var(--sheet);position:relative;overflow:hidden}
.hero::before{
  content:'';position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(90% 130% at 82% 0%,var(--pink),transparent 62%);
  opacity:.9
}
:root[data-theme="dark"] .hero::before{opacity:.7}

/* ══ the staircase ══
   Traced from banner.png. Anchored to the bottom-right and sliced, so it runs
   off both edges exactly as it does in the banner instead of sitting politely
   inside a box. Held well below the text: it is a ground, not a picture. */
.hero-steps{
  position:absolute;right:0;bottom:0;
  /* The box is deliberately narrower than the artwork's 1100:793, so `slice`
     crops the LEFT of the staircase and keeps the tall right-hand column
     whole. Crop it the other way and you lose the climb, which is the only
     part worth showing. */
  width:min(52%,640px);height:88%;
  color:var(--brand);opacity:.14;
  pointer-events:none;z-index:0
}
:root[data-theme="dark"] .hero-steps{opacity:.17}
.hero-in{z-index:1}
/* Only the block padding — the shorthand would wipe out `.wrap`'s gutter,
   and below 1380px there is no auto margin left to hide behind. */
.hero-in{
  position:relative;display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:52px;
  padding-top:56px;padding-bottom:44px;align-items:start
}

.kicker{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;
  font-size:10.5px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)
}
.kicker::before{content:'';width:26px;height:1px;background:currentColor}

.hero h1{
  font-size:clamp(34px,5.1vw,60px);line-height:1.02;letter-spacing:-.038em;font-weight:800;
  max-width:15ch;text-wrap:balance
}
.hero h1 em{font-style:normal;color:var(--accent)}
.lede{margin-top:20px;max-width:56ch;font-size:16.5px;line-height:1.62;color:var(--ink-2)}
.hero-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}

/* the three moves, set like a ruled ledger entry */
.moves{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;margin-top:36px;background:var(--rule);border:1px solid var(--rule)}
.mv{background:var(--sheet);padding:15px 16px}
.mv b{display:block;font-family:var(--mono);font-size:11px;color:var(--accent);margin-bottom:7px}
.mv h4{font-size:14px;margin-bottom:5px}
.mv p{font-size:12.5px;line-height:1.5;color:var(--ink-3)}

/* ══ toolbar ══ */
.sheet{padding-top:34px}
.sheet-hd{display:flex;align-items:flex-end;gap:14px;margin-bottom:14px;flex-wrap:wrap}
.sheet-hd h2{font-size:24px;letter-spacing:-.03em}
.sheet-hd .sub{font-size:13px;color:var(--ink-3)}
.sheet-hd .sp{flex:1}

/* ══ table ══ */
.sheet-tbl{border:1px solid var(--rule);border-top:0;background:var(--sheet);overflow-x:auto}
.sheet-tbl .tbl{min-width:1040px}
.sheet-tbl .tbl th:first-child,.sheet-tbl .tbl td:first-child{padding-left:16px}
.sheet-tbl .tbl th:last-child,.sheet-tbl .tbl td:last-child{padding-right:16px}
.rank{font-family:var(--mono);font-size:11.5px;color:var(--ink-4);width:34px}

.tk-cell{display:flex;align-items:center;gap:10px;min-width:0}
.tk-cell .av{width:32px;height:32px;font-size:14px}
.tk-cell .nm{min-width:0}
.tk-cell .nm b{display:block;font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:22ch}
.tk-cell .nm span{font-family:var(--mono);font-size:11px;color:var(--ink-3)}

.pair{display:inline-flex;align-items:center;gap:7px}
.pair b{font-family:var(--mono);font-weight:500;font-size:13px}

/* ══ cards ══ */
.card{
  background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r);
  padding:14px;cursor:pointer;position:relative;
  transition:transform .12s,box-shadow .12s,border-color .12s
}
/* The launch preview is the same card with nothing to click through to. */
.card-static{cursor:default}
.card-static:hover{border-color:var(--rule);box-shadow:none;transform:none}
.card:hover{border-color:var(--ink);box-shadow:var(--press);transform:translate(-1px,-1px)}
.card-hd{display:flex;gap:11px;align-items:flex-start;margin-bottom:12px}
.card-hd .av{width:44px;height:44px;font-size:19px}
.card-hd .nm{flex:1;min-width:0}
.card-hd .nm b{display:block;font-size:15px;font-weight:700;letter-spacing:-.015em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-hd .nm span{font-family:var(--mono);font-size:11.5px;color:var(--ink-3)}
.card-pair{
  display:flex;align-items:center;gap:8px;padding:8px 10px;margin-bottom:12px;
  background:var(--pink);border-radius:2px;font-size:12px
}
:root[data-theme="dark"] .card-pair{background:var(--paper-2)}
.card-pair .lbl{letter-spacing:.1em}
.card-pair b{font-family:var(--mono);font-weight:500}
.card-pair .sp{flex:1}
.card-blurb{font-size:12.5px;line-height:1.5;color:var(--ink-3);margin-bottom:12px;min-height:2.9em;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-ft{display:flex;align-items:center;gap:8px;font-size:11.5px;color:var(--ink-3);border-top:1px solid var(--rule-2);padding-top:10px}
.card-ft .sp{flex:1}

/* ══ pair index (below the sheet) ══ */
.pairs{padding-top:44px}
.pairs-hd{display:flex;align-items:flex-end;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.pairs-hd h2{font-size:21px}
.pairs-hd p{font-size:13px;color:var(--ink-3);flex:1;min-width:220px}
.pair-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:1px;background:var(--rule);border:1px solid var(--rule)}
.pc{background:var(--sheet);padding:12px 13px;cursor:pointer;transition:background .12s}
.pc:hover{background:var(--pink)}
:root[data-theme="dark"] .pc:hover{background:var(--paper-2)}
.pc-top{display:flex;align-items:baseline;gap:7px;margin-bottom:3px}
.pc-top b{font-family:var(--mono);font-weight:500;font-size:14px}
.pc-nm{font-size:11.5px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:7px}

@media (max-width:1000px){
  .hero-in{grid-template-columns:1fr;gap:34px;padding-top:38px;padding-bottom:32px}
  .moves{grid-template-columns:1fr}
}
@media (max-width:640px){
  /* Too narrow for more than one step to be in frame, at which point it stops
     reading as a staircase and starts reading as a stray pink block behind
     the copy. */
  .hero-steps{display:none}
  .hero h1{font-size:clamp(29px,8vw,40px)}
  .lede{font-size:15px}
  .hero-cta .btn{flex:1}
}
