/* Ki — Numbers Table. Scoped under .ki-scope .ki-numbers-table.
   Source: Ki Sustainability.html lines 837–893 + CSS 257–272, 327–332. */

.ki-scope .ki-numbers-table { background: #DAE8F5; }

.ki-scope .ki-numbers-table .numbers-head { margin-bottom: 64px; }
.ki-scope .ki-numbers-table .eyebrow-rule {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--ki-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ki-blue-deep); margin-bottom: 28px;
}
.ki-scope .ki-numbers-table .eyebrow-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--ki-rule);
}
.ki-scope .ki-numbers-table .lead-statement {
  font-family: var(--ki-serif); font-weight: 400;
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.18;
  letter-spacing: -0.005em; max-width: 20ch; margin: 0;
}

/* Center the lead statement vertically against the (taller) intro column,
   rather than the shared section-head bottom-alignment. */
.ki-scope .ki-numbers-table .section-head { align-items: center; }

/* Intro split into spaced paragraphs. */
.ki-scope .ki-numbers-table .section-head .right p { margin: 0 0 16px; }
.ki-scope .ki-numbers-table .section-head .right p:last-child { margin-bottom: 0; }

/* ───── Table ───── */
.ki-scope .ki-numbers-table .ntable {
  width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ki-rule);
}
.ki-scope .ki-numbers-table .ntable tr { border-bottom: 1px solid var(--ki-rule); }
.ki-scope .ki-numbers-table .ntable tr:last-child { border-bottom: none; }
.ki-scope .ki-numbers-table .ntable th {
  text-align: left; padding: 22px 28px;
  font-family: var(--ki-sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ki-ink-mute);
}
.ki-scope .ki-numbers-table .ntable thead th { background: #1A2730; color: #fff; font-size: 12px; }
.ki-scope .ki-numbers-table .ntable thead th.col-ki { background: #1B748A; }
.ki-scope .ki-numbers-table .ntable td {
  padding: 22px 28px; vertical-align: top; border-left: 1px solid var(--ki-rule);
}
.ki-scope .ki-numbers-table .ntable td:first-child { border-left: none; }
.ki-scope .ki-numbers-table .ntable .metric {
  font-family: var(--ki-serif); font-size: 18px; color: #000; width: 34%;
}
.ki-scope .ki-numbers-table .ntable .sachet-val {
  font-family: var(--ki-sans); font-size: 14px; color: #7A5A3A;
  line-height: 1.5; width: 33%; background: #F5EFE6;
}
.ki-scope .ki-numbers-table .ntable .ki-val {
  font-family: var(--ki-sans); font-size: 14px; color: #1B748A;
  line-height: 1.5; width: 33%; background: #F5FCFD; font-weight: 500;
}
.ki-scope .ki-numbers-table .ntable .sachet-val strong,
.ki-scope .ki-numbers-table .ntable .ki-val strong {
  display: block; font-family: var(--ki-serif); font-size: 22px;
  font-weight: 400; margin-bottom: 4px;
}
.ki-scope .ki-numbers-table .ntable .sachet-val strong { color: #7A5A3A; }
.ki-scope .ki-numbers-table .ntable .ki-val strong { color: var(--ki-blue); }

.ki-scope .ki-numbers-table .ntable-foot {
  font-family: var(--ki-sans); font-size: 12px; color: var(--ki-ink-mute);
  line-height: 1.6; margin: 24px 0 0; max-width: 90ch;
}

/* responsive stacking — each row becomes a labelled card:
   metric heading, then the sachet value and the Ki value full-width below it.
   The cramped 3-col header is hidden; each value cell carries its column label
   (from data-label) so the comparison stays clear once stacked. */
@media (max-width: 760px) {
  .ki-scope .ki-numbers-table .numbers-head { margin-bottom: 40px; }

  .ki-scope .ki-numbers-table .ntable,
  .ki-scope .ki-numbers-table .ntable tbody,
  .ki-scope .ki-numbers-table .ntable tr,
  .ki-scope .ki-numbers-table .ntable td { display: block; width: 100%; }

  /* hide the multi-column header; per-cell labels replace it when stacked */
  .ki-scope .ki-numbers-table .ntable thead { display: none; }

  /* group each row visually */
  .ki-scope .ki-numbers-table .ntable tr { border-bottom: 6px solid var(--ki-rule); }
  .ki-scope .ki-numbers-table .ntable tr:last-child { border-bottom: none; }

  /* override the desktop 33%/34% widths so cells fill the row */
  .ki-scope .ki-numbers-table .ntable td,
  .ki-scope .ki-numbers-table .ntable .metric,
  .ki-scope .ki-numbers-table .ntable .sachet-val,
  .ki-scope .ki-numbers-table .ntable .ki-val {
    width: 100%; border-left: none; padding: 18px 22px;
  }

  /* metric = section heading band */
  .ki-scope .ki-numbers-table .ntable .metric {
    background: var(--ki-cream);
    border-bottom: 1px solid var(--ki-rule);
    font-size: 17px;
  }

  /* column label above each value */
  .ki-scope .ki-numbers-table .ntable .sachet-val::before,
  .ki-scope .ki-numbers-table .ntable .ki-val::before {
    content: attr(data-label);
    display: block;
    font-family: var(--ki-sans); font-size: 10px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    opacity: 0.7; margin-bottom: 8px;
  }
  /* keep the two values visually distinct (earth vs teal divider) */
  .ki-scope .ki-numbers-table .ntable .ki-val { border-top: 1px solid var(--ki-rule); }
  .ki-scope .ki-numbers-table .ntable .sachet-val strong,
  .ki-scope .ki-numbers-table .ntable .ki-val strong { font-size: 26px; }
}
