/* ============================================================
   RESURRECTION — the Tribvio design language · tokens v4
   The documentary of the tribe, staged at the clubhouse.
   Merge of Resurrection v3 (skeleton) + Clubhouse v3 (blood).
   See DESIGN.md for the governing law.
   Import fonts.css first, then this file.
   ============================================================ */

:root {
  color-scheme: light;

  /* ---- Surfaces ---- */
  --paper:        #faf7f0;   /* the page — warm cream */
  --paper-deep:   #f3eee1;   /* recessed: wells, alt rows, sections */
  --leaf:         #fffdf7;   /* raised surface — cards, plates */

  /* ---- Stocks: printed section papers, FIXED in both modes ---- */
  --stock-night:        #1a1714;  /* the night plate — cover, the Quiet */
  --stock-night-text:   #f5f0e6;
  --stock-night-faint:  #9a958a;
  --stock-night-gold:   #f0b536;  /* gold brightened for dark stock */
  --stock-night-rule:   #3d3933;
  --stock-gold:         #d4992a;  /* the gold plate — the Ledger */
  --stock-gold-text:    #1a1714;
  --stock-gold-faint:   #6b5826;
  --stock-felt:         #175C41;  /* the felt plate — records & games */
  --stock-felt-deep:    #0E3D2B;  /* scoreboard digit cells */
  --stock-felt-text:    #F3EFE2;
  --stock-felt-faint:   #8FB3A2;
  --stock-felt-rule:    #2C6B4E;
  --stock-felt-gold:    #E9C15F;  /* gold lettering on felt */

  /* ---- Ink ---- */
  --ink:          #2a2520;   /* primary text — warm near-black */
  --ink-2:        #6a6358;   /* secondary text */
  --ink-faint:    #837d70;   /* non-essential meta only (3.8:1) */

  /* ---- Rules ---- */
  --rule:         #d8d1c2;   /* hairline, 1px */
  --rule-mid:     #c0b8a6;   /* medium divider */
  --rule-heavy:   #2a2520;   /* chapter rules, 2px — always ink */

  /* ---- The accent (gold, spent like money) ---- */
  --gold:         #c8901e;   /* sealing-wax gold — marks, fills, underlines */
  --gold-ink:     #96690f;   /* gold as TEXT on paper — AA (4.5:1) */
  --gold-deep:    #a67412;   /* hover / pressed */
  --gold-soft:    rgba(200, 144, 30, 0.10);  /* hover wash, subtle fills */
  --settled:      #9a958a;   /* spent stamps, closed accounts */

  /* ---- Status (badges and stamps only — never chrome) ---- */
  --accent-good:  #3E6B4F;   /* resolved, settled — quiet pine */
  --accent-warn:  #c8901e;   /* same as gold — outstanding, attention */
  --stitch:       #A64538;   /* the one red: baseball stitching — verdicts, open debts */

  /* ---- Chart steps (validated: dataviz six-checks, light on paper) ----
     Fixed categorical order felt → gold → saddle (jacket, trim, glove).
     Never cycled, never repainted on filter. More than 3 series folds into
     "Other" or facets. Single-series charts use --chart-series. */
  --chart-1:        #147A4D;
  --chart-2:        #c8901e;
  --chart-3:        #92511F;
  --chart-series:   #c8901e;   /* primary single series on paper */
  --chart-series-2: #a67412;   /* darker variant for hover/annotation */
  --chart-muted:    #d8d1c2;   /* de-emphasized bars / grid */
  --chart-night:    #f0b536;   /* series on the night plate */

  /* ---- Type: four voices, four jobs ---- */
  --serif: "Lora", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --score: "Graduate", "Rockwell", "Courier New", serif;
  --evidence: "Courier Prime", "Courier New", monospace;
  --mono:  "Courier Prime", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Scale ---- */
  --fs-xs:      12px;    /* labels, meta, folios */
  --fs-sm:      13.5px;  /* captions, marginalia */
  --fs-body:    17px;
  --fs-lede:    19px;    /* intro paragraphs */
  --fs-h3:      22px;
  --fs-h2:      28px;
  --fs-h1:      38px;
  --fs-display: clamp(52px, 8vw, 96px);   /* chapter titles, record values */
  --fs-poster:  clamp(72px, 14vw, 200px); /* covers, hero figures, pull quotes */

  --lh-body:    1.55;
  --lh-head:    1.2;
  --lh-tight:   1.04;

  --track-caps:  0.14em;   /* labels, kickers */
  --track-wide:  0.22em;   /* wordmark, stamps, buttons */
  --track-tight: -0.02em;  /* display + poster sizes */

  /* ---- Space (baseline 8) ---- */
  --s1: 4px;   --s2: 8px;   --s3: 16px;  --s4: 24px;
  --s5: 40px;  --s6: 64px;  --s7: 104px;

  /* ---- Measure ---- */
  --measure:       680px;   /* text column */
  --measure-wide:  1080px;  /* posters, plates, tables, charts */
  --gutter:        24px;

  /* ---- Geometry ---- */
  --radius-sm:   8px;    /* small elements: badges, chips, digit cells */
  --radius:      14px;   /* cards, panels, default */
  --radius-lg:   20px;   /* large panels, tome, cover blocks */
  --radius-pill: 999px;  /* pills, buttons, status badges */
  --stamp-rotate: -3deg; /* the ink never lands square */

  /* ---- Motion ---- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);    /* primary — decelerate */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* symmetric */
  --dur-fast:    180ms;   /* hovers, small toggles */
  --dur-med:     400ms;   /* reveals, panel transitions */
  --dur-slow:    800ms;   /* scroll reveals, count-ups */
}

/* ============ LAMPLIGHT (secondary dark mode) ============
   Not an inversion — the same room after dark. Warm, low,
   reading-lamp values. Never the default. Stocks stay fixed. */
:root[data-mode="lamplight"] {
  color-scheme: dark;
  --paper:        #1a1714;
  --paper-deep:   #232019;
  --leaf:         #2a2620;
  --ink:          #f5f0e6;
  --ink-2:        #c3bdb0;
  --ink-faint:    #9a958a;
  --rule:         #3d3933;
  --rule-mid:     #4d483f;
  --rule-heavy:   #f5f0e6;
  --gold:         #f0b536;   /* brightened for dark surface */
  --gold-ink:     #f0b536;
  --gold-deep:    #d4992a;
  --gold-soft:    rgba(240, 181, 54, 0.12);
  --settled:      #9a958a;
  --accent-good:  #6F927C;
  --stitch:       #C66255;
  /* Chart steps (validated: dataviz six-checks, dark on night) */
  --chart-1:        #34996B;
  --chart-2:        #BD8A26;
  --chart-3:        #A0522D;
  --chart-series:   #f0b536;
  --chart-series-2: #d4992a;
  --chart-muted:    #3d3933;
}

/* ============ Base plate ============ */
.resurrection {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.resurrection ::selection { background: var(--gold); color: var(--paper); }

/* ============ Stocks: printed section papers ============ */
/* Fixed colors in both modes — a page printed on dark stock stays dark at noon */
.stock-night {
  background: var(--stock-night);
  color: var(--stock-night-text);
}
.stock-night .kicker, .stock-night .lbl { color: var(--stock-night-gold); }
.stock-night .ink-2, .stock-night .lede { color: var(--stock-night-faint); }
.stock-night ::selection { background: var(--stock-night-gold); color: var(--stock-night); }

.stock-gold {
  background: var(--stock-gold);
  color: var(--stock-gold-text);
}
.stock-gold .kicker, .stock-gold .lbl { color: var(--stock-gold-faint); }
.stock-gold .ink-2, .stock-gold .lede { color: var(--stock-gold-faint); }
.stock-gold ::selection { background: var(--stock-gold-text); color: var(--stock-gold); }

/* The felt plate — records, games, the scoreboard chapter */
.stock-felt {
  background: var(--stock-felt);
  color: var(--stock-felt-text);
}
.stock-felt .kicker, .stock-felt .lbl { color: var(--stock-felt-gold); }
.stock-felt .ink-2, .stock-felt .lede { color: var(--stock-felt-faint); }
.stock-felt ::selection { background: var(--stock-felt-gold); color: var(--stock-felt); }

.stock-deep { background: var(--paper-deep); }

/* ============ Labels & kickers ============ */
/* Labels: small caps sans — the workhorse metadata voice */
.lbl {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
}
/* Kicker: the chapter eyebrow — gold, sans, uppercase */
.kicker {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-ink);
  font-weight: 600;
}

/* Figures that align (tables, stat spreads, folios) */
.fig { font-variant-numeric: lining-nums tabular-nums; }

/* ============ Surfaces ============ */
/* Card — the workhorse container */
.card {
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.card:hover {
  border-color: var(--rule-mid);
  box-shadow: 0 2px 12px rgba(42, 37, 32, 0.06);
}

/* Panel — larger, more structural than a card */
.panel {
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--s5);
}

/* ============ Rules ============ */
.rule       { border: 0; border-top: 1px solid var(--rule); }
.rule-mid   { border: 0; border-top: 1px solid var(--rule-mid); }
.rule-heavy { border: 0; border-top: 2px solid var(--rule-heavy); }

/* ============ Links ============ */
.resurrection a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}
.resurrection a:hover { color: var(--gold-deep); }

/* ============ Focus ============ */
.resurrection :focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ============ Buttons ============ */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 28px;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.btn:hover {
  background: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 144, 30, 0.25);
}
.btn:active { transform: translateY(0); }

/* Gold variant — the primary CTA */
.btn-gold {
  background: var(--gold);
  color: var(--paper);
}
.btn-gold:hover {
  background: var(--gold-deep);
  box-shadow: 0 4px 20px rgba(200, 144, 30, 0.35);
}

/* Ghost variant — secondary actions */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule-mid);
}
.btn-ghost:hover {
  background: var(--paper-deep);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: none;
  transform: translateY(-1px);
}

/* ============ Status badges ============ */
.badge {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  white-space: nowrap;
  display: inline-block;
}
.badge-gold {
  color: var(--gold-ink);
  border: 1px solid var(--gold-deep);
}
.badge-open {
  color: var(--paper);
  background: var(--gold);
}
.badge-good {
  color: var(--paper);
  background: var(--accent-good);
}
.badge-bad {
  color: var(--paper);
  background: var(--stitch);
}
.badge-settled {
  color: var(--ink-faint);
  border: 1px solid var(--rule-mid);
}

/* ============ The stamp — verdicts land in ink ============ */
/* The ledger's cheekiest gesture: Graduate caps, double-ruled, rotated.
   Ledger verdicts and curation decisions only — never navigation. */
.stamp {
  display: inline-block;
  font-family: var(--score);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--gold-ink);
  border: 2px double var(--gold-ink);
  padding: 3px 10px;
  transform: rotate(var(--stamp-rotate));
  border-radius: 3px;
}
.stamp.bad { color: var(--stitch); border-color: var(--stitch); }
.stamp.settled { color: var(--settled); border-color: var(--settled); }

/* ============ The stitch — the baseball seam, used sparingly ============ */
/* A red double-dashed divider: the Ledger chapter's opening rule and the
   seam under a settled account. Two places per document, no more. */
.stitch {
  border: 0;
  border-top: 2px dashed var(--stitch);
  position: relative;
  margin: var(--s3) 0;
}
.stitch::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 3px;
  border-top: 2px dashed var(--stitch);
  opacity: 0.45;
}

/* ============ The patch — chenille letter, member identity ============ */
.patch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius-pill);
  background: var(--stock-felt);
  color: var(--stock-felt-gold);
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 3px var(--stock-felt), inset 0 0 0 4px var(--stock-felt-gold);
  font-family: var(--score);
  font-size: 15px;
}
/* Year patch — the jacket's era chip */
.patch-year {
  display: inline-block;
  font-family: var(--score);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-caps);
  color: var(--stock-felt-gold);
  background: var(--stock-felt);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
}

/* ============ Pinstripe — the home flannel, hero wells only ============ */
.pinstripe {
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px, transparent 11px,
    rgba(42, 37, 32, 0.05) 11px, rgba(42, 37, 32, 0.05) 12px);
}

/* ============ The scoreboard — the chapter's hero fact ============ */
/* Graduate digits in felt-deep cells; pairs with the count-up motion:
   digits count up in their cells on reveal. One per chapter. */
.scoreboard { display: inline-flex; gap: 6px; }
.scoreboard .digit {
  font-family: var(--score);
  font-size: var(--fs-poster);
  line-height: 1;
  color: var(--stock-felt-text);
  background: var(--stock-felt-deep);
  border-radius: var(--radius-sm);
  padding: 0.08em 0.12em;
  min-width: 0.9em;
  text-align: center;
  font-variant-numeric: lining-nums tabular-nums;
}
.scoreboard .digit.sep {
  background: none;
  color: var(--stock-felt-gold);
  min-width: auto;
  padding: 0.08em 0;
}
.scoreboard-label {
  font-family: var(--score);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--stock-felt-gold);
  margin-top: var(--s2);
}

/* ============ Evidence transcript ============ */
/* Chat-structured, typewriter-set: the layout is a conversation, the
   voice is a receipt. If it's typewritten, the tribe said it. */
.deposition {
  font-size: 14px;
  line-height: 1.6;
  background: var(--paper-deep);
  border-radius: var(--radius);
  padding: var(--s4);
  margin: var(--s3) 0;
}
.deposition .line {
  display: block;
  font-family: var(--evidence);
  padding: 6px var(--s3);
  border-radius: var(--radius-sm);
  background: var(--leaf);
  margin-bottom: var(--s2);
  max-width: 85%;
}
.deposition .line:last-child { margin-bottom: 0; }
.deposition .speaker {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold-ink);
  display: block;
  letter-spacing: var(--track-caps);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.deposition .ref {
  float: right;
  font-size: 11px;
  color: var(--ink-faint);
  font-family: var(--evidence);
}

/* ============ Folio (sticky running head) ============ */
.folio {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow var(--dur-med) var(--ease-out);
}
.folio.scrolled { box-shadow: 0 1px 12px rgba(42, 37, 32, 0.08); }
.folio-in {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: var(--s3) var(--s4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
}
.folio .wordmark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  font-size: 14px;
  color: var(--ink);
}
.folio .wordmark .dot { color: var(--gold); }

/* ============ Wordmark (standalone) ============ */
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: var(--track-wide);
  font-size: 14px;
  color: var(--ink);
}
.wordmark .dot { color: var(--gold); }

/* ============ Dropzone / deposit slot ============ */
.dropzone {
  border: 1px dashed var(--rule-mid);
  border-radius: var(--radius-lg);
  background: var(--leaf);
  padding: var(--s5) var(--s4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.dropzone:hover, .dropzone.dragging {
  border-color: var(--gold);
  background: var(--gold-soft);
}

/* ============ Stat tiles ============ */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s3);
}
.tile {
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
}
.tile .tile-num {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: var(--track-tight);
}
.tile .tile-lbl {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.on {
  opacity: 1;
  transform: none;
}

/* ============ Chart wrapper ============ */
.chartwrap {
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4) var(--s4);
}

/* ============ Era cards ============ */
.eras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s3);
}
.era-card {
  background: var(--leaf);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
  transition: border-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.era-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.era-card .era-year {
  font-family: var(--score);
  font-size: var(--fs-xs);
  letter-spacing: var(--track-caps);
  color: var(--gold-ink);
}
.era-card h3 {
  font-size: 21px;
  font-weight: 500;
  margin: var(--s2) 0 6px;
  line-height: var(--lh-head);
}
.era-card p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: var(--lh-body);
}

/* ============ Lineage timeline ============ */
.lineage {
  border-left: 1px solid var(--rule-mid);
  padding-left: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.lineage .ln-node { position: relative; }
.lineage .ln-node::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--s5) - 5px);
  top: 9px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--rule-mid);
  transition: background var(--dur-fast) var(--ease-out);
}
.lineage .ln-node.current::before { background: var(--gold); }
.lineage .ln-node:hover::before { background: var(--gold-deep); }
.lineage .ln-name {
  font-size: 19px;
  line-height: var(--lh-head);
}
.lineage .ln-date {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--ink-faint);
  margin-top: 2px;
}
.lineage .ln-node.current .ln-name { color: var(--gold); }

/* ============ Ledger rows ============ */
.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  border-bottom: 1px solid var(--rule);
  padding: var(--s4) var(--s1);
  flex-wrap: wrap;
}
.ledger-row .l-what { font-size: 18px; line-height: var(--lh-head); }
.ledger-row .l-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 2px;
}
/* Dot leader — the scorecard idiom for ledger and record lines */
.leader {
  flex: 1;
  border-bottom: 2px dotted var(--rule-mid);
  transform: translateY(-5px);
  min-width: var(--s4);
}

/* ============ Record rows ============ */
.rec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  align-items: baseline;
  padding: var(--s4) var(--s1);
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.rec-row .r-k {
  color: var(--ink-2);
  font-size: 16.5px;
}
.rec-row .r-v {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  text-align: right;
}
.rec-row .r-v span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: var(--fs-sm);
}

/* ============ Comeback pull quote ============ */
.comeback {
  border-left: 3px solid var(--gold);
  padding: var(--s2) 0 var(--s2) var(--s5);
  margin-top: var(--s5);
}
.comeback .cb-msg {
  font-size: clamp(22px, 3.5vw, 32px);
  font-style: italic;
  line-height: var(--lh-head);
}
.comeback .cb-meta {
  font-family: var(--sans);
  color: var(--ink-faint);
  font-size: 13.5px;
  margin-top: var(--s3);
}

/* ============ Processing counters ============ */
.proc-counter { text-align: center; }
.proc-counter .num {
  font-family: var(--sans);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--track-tight);
}
.proc-counter .lbl {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: var(--track-caps);
  margin-top: 4px;
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .resurrection *,
  .resurrection *::before,
  .resurrection *::after {
    transition: none !important;
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 620px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .eras { grid-template-columns: 1fr; }
  .panel { padding: var(--s4); }
  .lineage { padding-left: var(--s4); }
  .lineage .ln-node::before { left: calc(-1 * var(--s4) - 5px); }
  .rec-row { flex-direction: column; align-items: flex-start; }
  .rec-row .r-v { text-align: left; }
}
