/* Top Value Leaks — every selector scoped under .lk */

.lk{ padding-bottom: 48px; }

/* ---------- totals strip ---------- */
.lk-strip{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.lk-stat{
  background: var(--bg-1);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 6px;
  min-width: 0;
  border: 0;
  border-radius: 0;
}
.lk-stat span{
  font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 700;
}
.lk-stat b{ font-size: 24px; letter-spacing: -.022em; color: var(--ink); }
.lk-stat small{ font-size: 11px; color: var(--ink-3); }
.lk-stat-cap b{ color: var(--brand-deep); }
.lk-stat-rev b{ color: var(--neg-ink); }

/* the basis behind a figure, one press away */
.lk-stat .lk-note{ display: none; }
.lk-stat.is-on .lk-note{
  display: block; max-width: 26ch;
  font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 400;
  color: var(--ink-3); line-height: 1.45;
}
.lk-na{ color: var(--ink-4); }

/* ---------- sections ---------- */
.lk-sec{ margin-top: 38px; }
.lk-sec-h{
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px;
}
.lk-sec-h h2{ margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.lk-sec-h span{ font-size: 11.5px; color: var(--ink-3); }

/* ---------- grid cells ---------- */
.lk .gd-scroll{ overflow-x: auto; }
.lk .gd-table{ width: 100%; border-collapse: collapse; }
.lk .gd-a-right{ text-align: right; }
.lk .gd-n{ font-variant-numeric: tabular-nums; }

.lk-name{ display: flex; align-items: flex-start; gap: 8px; }
.lk-name > i{ width: 3px; align-self: stretch; min-height: 22px; border-radius: 2px; flex: 0 0 auto; }
.lk-name b{ display: block; font-weight: 600; font-size: 12.5px; color: var(--ink); }
.lk-name small{ display: block; margin-top: 2px; font-size: 11px; color: var(--ink-3); line-height: 1.45; }

.lk-kind{
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.lk-kind::before{ content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.lk-kind-cap{ color: var(--brand-deep); background: var(--brand-tint); border: 1px solid var(--brand-soft); }
.lk-kind-rev{ color: var(--neg-ink); background: var(--neg-tint); border: 1px solid var(--neg-line); }

.lk-effort{ display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.lk-effort-dots{ display: inline-flex; gap: 2px; }
.lk-effort-dots i{ width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.lk-effort-dots i.on{ background: var(--ink-3); }
.lk-effort-txt{ font-size: 11.5px; color: var(--ink-2); }

/* ---------- evidence switcher ---------- */
.lk-ev-pills{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lk-pill{
  font-size: 11.5px; color: var(--ink-2); background: var(--bg-1);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px;
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.lk-pill:hover{ color: var(--ink); background: var(--bg-2); }
.lk-pill.is-on{
  color: var(--brand-dark); background: var(--brand-tint);
  border-color: var(--brand-soft); font-weight: 600;
}
.lk-pill-all{ font-weight: 600; }
.lk-ev-note{ margin: 0 0 14px; font-size: 11.5px; color: var(--ink-3); }
.lk-ev-body{ min-height: 40px; }

@media (max-width: 1100px){
  .lk-strip{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px){
  .lk-strip{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lk #lkMain tbody td, .lk #lkComps tbody td{
  white-space: normal; vertical-align: top; padding-top: 9px; padding-bottom: 9px;
}
.lk .gd .badge, .lk .gd .lk-kind, .lk .gd .mono{ white-space: nowrap; }
.lk .gd-barwrap{ white-space: nowrap; }


/* ---------- live affordance ----------
   One quiet cue across all five views: anything that opens or filters
   something carries a pointer, a hover lift, a focus ring, and — where it
   drills — a chevron that fades in before the pointer arrives. */
.lk .is-live{
  position: relative; cursor: pointer; text-align: left;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.lk .is-live:hover{ background: var(--bg-2); border-color: var(--brand-soft); box-shadow: var(--shadow-1); }
.lk .is-live:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
.lk .is-live::after{
  content: '\203A'; position: absolute; right: 12px; top: 12px;
  font-size: 15px; line-height: 1; color: var(--brand);
  opacity: 0; transform: translateX(-3px); pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.lk .is-live:hover::after, .lk .is-live:focus-visible::after{ opacity: .75; transform: translateX(0); }
.lk .is-live.is-on{ border-color: var(--brand); background: var(--brand-tint); }

/* chips, badges and figures — the same cue without the chevron */
.lk .is-live-chip{
  cursor: pointer;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.lk .is-live-chip:hover{ border-color: var(--brand-soft); box-shadow: 0 0 0 2px var(--brand-tint); }
.lk .is-live-chip:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
.lk .is-live-chip.is-on{ border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint-2); }

/* chart marks brighten and take a stroke on hover */
.lk .is-live-mark{
  cursor: pointer; border: 0; padding: 0;
  transition: filter .16s var(--ease), box-shadow .16s var(--ease);
}
.lk .is-live-mark:hover{ filter: saturate(1.12) brightness(1.06); box-shadow: 0 0 0 2px var(--brand-tint-2); }
.lk .is-live-mark:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .lk .is-live, .lk .is-live-chip, .lk .is-live-mark, .lk .is-live::after{ transition: none; }
}
