/* SPEC-v6 L6 launch-kit pages: /pricing, /partners, /partners/bot, /cards, and the holiday banner on /tape and /reopen.
   Tokens from design/tokens.css (light and dark); no colour literals. */
.lk { max-width: 76ch; padding-top: var(--space-6); }
.lk h2 { font-size: var(--fs-28); font-weight: 800; font-stretch: 75%; margin: var(--space-12) 0 var(--space-3); line-height: 1.15; }
.lk h3 { font-size: var(--fs-20); margin: var(--space-6) 0 var(--space-2); }
.lk p, .lk li, .lk dd { line-height: 1.6; }
.lk p + p { margin-top: var(--space-3); }
.lk ul, .lk ol { padding-left: 1.2em; }
.lk li + li { margin-top: var(--space-2); }
.lk code { font-size: 0.92em; overflow-wrap: anywhere; }
.lk-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: var(--space-3); margin-top: var(--space-6); }
.lk .lk-kpi, .lk .lk-kpi + .lk-kpi { margin: 0; }
.lk-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-4); }
.lk-kpi-num { display: block; font-size: var(--fs-44); font-weight: 800; font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums; }
.lk-kpi-label { display: block; margin-top: var(--space-2); color: var(--text-dim); font-size: var(--fs-14); line-height: 1.4; }
.lk-table-wrap { overflow-x: auto; margin-top: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-m);
  position: relative; max-width: 100%; }   /* POLISH-W6 R2: contains its .sr-only headers (they widened the page) */
.lk-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.lk-table th, .lk-table td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lk-table tr:last-child th, .lk-table tr:last-child td { border-bottom: 0; }
.lk-table thead th { font-size: var(--fs-14); color: var(--text-dim); font-weight: 600; }
.lk-table .num { text-align: right; white-space: nowrap; }
.lk-note { color: var(--text-dim); font-size: var(--fs-14); margin-top: var(--space-2); }
.lk-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.lk-box h2 { margin-top: 0; font-size: var(--fs-20); font-stretch: normal; }
.lk-pill { display: inline-block; padding: 0 var(--space-2); border-radius: 999px; border: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-dim); vertical-align: middle; }
.lk-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-3); margin-top: var(--space-3); padding: 0; list-style: none; }
.lk-packs li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-3) var(--space-4); margin: 0; }
.lk-packs li + li { margin-top: 0; }
.lk-packs b { display: block; }
.lk-packs span { display: block; color: var(--text-dim); font-size: var(--fs-14); line-height: 1.45; margin-top: var(--space-1); }
.lk-bot { font-size: var(--fs-28); font-weight: 800; overflow-wrap: anywhere; }
/* /cards gallery */
.lk-gallery { display: grid; gap: var(--space-6); margin-top: var(--space-6); padding: 0; list-style: none; }
.lk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-4); display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
.lk-card img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--bg); }
.lk-card .lk-thumb img { width: 300px; }
.lk-card figcaption, .lk-thumb p { color: var(--text-dim); font-size: var(--fs-14); margin-top: var(--space-2); }
.lk-card h2 { font-size: var(--fs-20); margin: 0 0 var(--space-2); font-stretch: normal; }
.lk-sample { color: var(--closed); font-weight: 700; }
@media (max-width: 760px) { .lk-card { grid-template-columns: minmax(0, 1fr); } .lk-card .lk-thumb img { width: 100%; max-width: 300px; } }
/* holiday banner (/tape, /reopen) */
.hol-banner { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border: 1px solid var(--closed); border-left-width: 4px; border-radius: var(--radius-m); background: var(--surface); }
.hol-banner p { margin: 0; line-height: 1.5; }
.hol-banner strong { color: var(--text); }
.hol-banner .hol-when { color: var(--text-dim); font-size: var(--fs-14); margin-top: var(--space-1); }
/* scorecard citation layer */
.cite-box { margin-top: var(--space-8); }
.cite-box ul { padding-left: 1.2em; }
.cite-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.lk-card figure { margin: 0; min-width: 0; }
.lk-gallery > li + li { margin-top: 0; }
.lk .lk-packs, .lk .lk-gallery { padding-left: 0; }

/* FIXES-W6 fix-launch: /macro, /earnings, /funding, call landing pages */
.w6 .w6-h3 { font-size: var(--fs-20); margin: 0; font-stretch: normal; }
.w6 .w6-h4 { font-size: var(--fs-16, 1rem); margin: var(--space-4) 0 0; color: var(--text-dim); }
.w6 .w6-print + .w6-print { margin-top: var(--space-4); }
.w6 .w6-empty { color: var(--text-dim); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius-m); padding: var(--space-4); }
.w6 .w6-trade { font-weight: 700; white-space: nowrap; }
.w6 .up { color: var(--up); } .w6 .down { color: var(--down); }
.w6-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--space-4); }
.w6-two h2 { margin-top: var(--space-6); }
.w6-cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-top: var(--space-4); }
.w6-addbot { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-4); margin-top: var(--space-6); }
.w6-addbot b { display: block; font-size: var(--fs-20); }
.w6-live { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.w6-cta .g4-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.lk.w6 { max-width: 64rem; }

/* POLISH-W6 R10: the tape benchmark row under a group's reopen calls; V6-3 context line */
.lk-bench th, .lk-bench td { color: var(--text-dim); border-top: 1px dashed var(--line); }
.w6-context { margin-top: .25rem; }

/* POLISH-W6 R2 / V6-12: /earnings and /funding tables stack at phone width: one card per row, every value labelled,
   nothing hidden and no sideways scroll (the market name and Trade on the first line). */
.w6-two > * { min-width: 0; }
@media (max-width: 640px) {
  .lk-table.w6-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lk-table.w6-stack, .lk-table.w6-stack tbody { display: block; }
  .lk-table.w6-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--space-3);
    padding: var(--space-3); border-bottom: 1px solid var(--line); }
  .lk-table.w6-stack tr:last-child { border-bottom: 0; }
  .lk-table.w6-stack th, .lk-table.w6-stack td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; }
  .lk-table.w6-stack th[scope="row"] { grid-column: 1; grid-row: 1; font-size: var(--fs-16, 1rem); }
  .lk-table.w6-stack td.w6-act { grid-column: 2; grid-row: 1; text-align: right; }
  .lk-table.w6-stack td[data-label] { grid-column: 1 / -1; position: relative; padding-left: 9.5em; }
  .lk-table.w6-stack td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 0.1em;
    width: 9em; color: var(--text-dim); font-size: var(--fs-14); }
  .lk-table.w6-stack td:empty { display: none; }
}

/* polish-last: /partners uses the desktop width. Prose keeps a readable measure (≤ 72ch); the pack grids, the presets
   table and the two-column blocks (rules | how to add; terms | worked example) use the rest. One column under 1024px. */
.lk.lk-wide { max-width: none; }
.lk-wide > p, .lk-wide > ul:not(.lk-packs), .lk-wide > ol, .lk-wide .lk-cols > section > :is(p, ul, ol) { max-width: 72ch; }
.lk-wide .lk-packs { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.lk-wide .lk-h3-wide { margin-top: var(--space-8); }
.lk-toc { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-4); font-size: var(--fs-14); }
.lk-cols { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-12); }
.lk-cols > * { min-width: 0; }
.lk-cols > .lk-box { align-self: start; }
@media (min-width: 1024px) {
  .lk-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lk-cols--terms { grid-template-columns: minmax(0, 72ch) minmax(18rem, 1fr); }
  .lk-cols > .lk-box { margin-top: var(--space-12); position: sticky; top: var(--space-6); }
}
/* growth8 (SPEC-v8 R1): the referral ladder table on /partners */
.lk-ladder { border-collapse: collapse; margin: var(--space-2) 0; font-size: var(--fs-14); min-width: min(100%, 22rem); }
.lk-ladder th, .lk-ladder td { text-align: left; padding: 6px 14px 6px 0; border-bottom: 1px solid var(--line); }
.lk-ladder thead th { color: var(--text-dim); font-weight: 600; font-size: var(--fs-12); }

/* redesign10: the same dense type scale as the board */
.lk { max-width: 100ch; padding-top: var(--space-3); font-size: var(--fs-14); }
.lk h2 { font-size: var(--fs-16); font-weight: 700; font-stretch: 100%; margin: var(--space-8) 0 var(--space-2); line-height: 1.25; }
.lk-box { border-radius: var(--radius-s); padding: 10px 12px; margin-top: var(--space-3); }
.lk-box h2 { font-size: var(--fs-14); }
.lk-kpi-num { font-size: 1.75rem; font-stretch: 87.5%; }
