/* ============================================================================
 * Company statistics pages (/wayve-statistics). Loaded after marketing.css
 * and news.css: the article frame, charts and method card are News's; this
 * adds the key-statistics grid, the data tables, the contents list and the
 * timeline. Text keeps the article measure (680px); figures and tables get
 * the wider 920px the News charts use.
 * ========================================================================== */

.st-article { --wide: 920px; }

/* Contents */
.st-toc {
  max-width: var(--measure); margin: clamp(26px, 3.5vw, 40px) auto 0;
  padding: 18px 22px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-strong);
}
.st-toc .eyebrow { margin: 0 0 10px; }
.st-toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 28px; font-size: 14.5px; line-height: 1.45; }
.st-toc li { break-inside: avoid; padding: 3px 0; }
.st-toc li::marker { color: var(--up); font-family: var(--mono); font-size: 12px; }
.st-toc a { color: var(--ink2); }
.st-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; }

/* Sections: text at the article measure, figures wider */
.st-body > .st-section { max-width: var(--wide); scroll-margin-top: 90px; }
.st-section > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.st-section > * + * { margin-top: 1.25em; }
.st-section > h2 { margin-top: 0; }
.st-body > .st-section + .st-section { margin-top: clamp(48px, 6vw, 76px); }
.st-section > .nw-chart, .st-section > .st-stats, .st-section > .st-table-wrap,
.st-section > .st-groups, .st-section > .nw-table { max-width: var(--wide); }
.st-section > .st-table-wrap.st-narrow { max-width: var(--measure); }
.st-section > .nw-chart { margin-top: 1.6em; margin-bottom: 0; }
.st-section ul { padding-left: 1.2em; }
.st-section ul li + li { margin-top: .5em; }

/* Source line under every table and chart: as wide as the thing it credits */
.st-src { margin-top: .6em !important; font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.st-section > .st-src { max-width: var(--measure); }
.st-section > .nw-chart + .st-src, .st-section > .st-table-wrap + .st-src,
.st-section > .st-groups + .st-src, .st-section > .nw-table + .st-src { max-width: var(--wide); }
.st-section > .st-table-wrap.st-narrow + .st-src { max-width: var(--measure); }

/* Key statistics */
.st-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-stat {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 16px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px;
  color: var(--ink2); text-decoration: none !important; transition: border-color .15s, transform .15s;
}
.nw-body a.st-stat:hover { background: var(--paper); border-color: var(--ink); transform: translateY(-1px); }
.st-stat:first-child { background: var(--ink); border-color: var(--ink); }
.st-stat:first-child .st-stat-v { color: var(--accent); }
.st-stat:first-child .st-stat-l { color: rgba(243,243,243,.82); }
.nw-body a.st-stat:first-child:hover { background: var(--ink); }
.st-stat-v { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -1.4px; color: var(--ink); }
.st-stat-l { font-size: 14.5px; line-height: 1.4; }
.st-stat-k {
  margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 5px;
  background: var(--up-soft); color: var(--up);
}
.st-k-announced, .st-k-reported { background: var(--bg2); color: var(--dim); }
.st-k-accounts { background: var(--accent-soft); color: var(--ink2); }

/* Tables */
.st-table-wrap { overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--paper); }
.st-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.st-table th, .st-table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.st-table thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .6px; text-transform: uppercase; color: var(--dim);
  font-weight: 600; white-space: normal; vertical-align: bottom; background: var(--panel);
}
.st-table th:first-child, .st-table td:first-child { text-align: left; }
.st-table tbody th { font-weight: 700; color: var(--ink); white-space: normal; min-width: 150px; }
.st-table tbody tr:last-child th, .st-table tbody tr:last-child td { border-bottom: 0; }
.st-table td.st-wrap { white-space: normal; text-align: left; min-width: 200px; color: var(--ink2); }
.st-table thead th.st-wrap { text-align: left; }
.st-table .st-sub { display: block; margin-top: 2px; font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--dim); white-space: normal; }
.st-sub-inline { font-size: 12px; color: var(--dim); }
.st-table .st-total th, .st-table .st-total td { background: var(--panel); border-top: 1px solid var(--line-strong); }

/* Investors by type */
.st-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-group { padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line-strong); }
.st-group h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: -0.2px; }
.st-group ul { list-style: none; margin: 0; padding: 0 !important; font-size: 14px; line-height: 1.35; }
.st-group li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); margin: 0 !important; }
.st-group li:first-child { border-top: 0; }
.st-group li i { color: var(--dim); font-style: normal; font-size: 12.5px; }
.st-group li b { font-family: var(--mono); font-size: 13px; color: var(--ink); }

/* A boxed list (Uber's stake) */
.st-callout { padding: 18px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); font-size: 16px; }
.st-callout .eyebrow { margin: 0 0 8px; }
.st-callout ul { margin: 0; }

/* Timeline */
.st-timeline { list-style: none; padding: 0 0 0 18px; border-left: 2px solid var(--line-strong); }
.st-timeline li { position: relative; padding: 0 0 18px 18px; margin: 0 !important; }
.st-timeline li::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--up);
}
.st-timeline li:first-child::before { background: var(--accent); border-color: var(--ink); }
.st-timeline time { font-family: var(--mono); font-size: 12px; letter-spacing: .4px; text-transform: uppercase; color: var(--up); font-weight: 700; }
.st-timeline p { margin: 2px 0 0; font-size: 16.5px; line-height: 1.55; }

/* Citation box */
.st-cite { margin-bottom: 28px; padding: 18px 22px; border-radius: 14px; background: var(--ink); color: rgba(243,243,243,.82); font-size: 15px; line-height: 1.55; }
.st-cite .eyebrow { color: var(--accent); margin: 0 0 6px; }
.st-cite b { color: var(--bg); }
.st-cite p + p { margin-top: 8px; }
.st-cite-url code { font-family: var(--mono); font-size: 13px; color: var(--accent); word-break: break-all; }

@media (max-width: 1020px) {
  .st-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-toc ol { columns: 1; }
}
@media (max-width: 520px) {
  .st-groups { grid-template-columns: 1fr; }
  .st-stats { gap: 8px; }
  .st-stat { padding: 14px 13px 12px; }
  .st-stat-v { font-size: 24px; letter-spacing: -0.8px; }
  .st-stat-l { font-size: 13px; }
  .st-table { font-size: 13px; }
  .st-table th, .st-table td { padding: 8px 9px; }
}
