:root {
  --bg: #ffffff;
  --surface: #f8f9fb;
  --border: #e4e7ec;
  --text: #1f2430;
  --text-muted: #667085;
  --accent: #2554c7;
  --accent-soft: #eef2fd;
  --stripe: #fafbfc;
  --sample: #7c8394;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161c;
    --surface: #1b1e26;
    --border: #2a2e38;
    --text: #e7e9ee;
    --text-muted: #9aa1b0;
    --accent: #7fa2ff;
    --accent-soft: #1e2a4a;
    --stripe: #181b22;
    --sample: #8890a0;
  }
}
:root[data-theme="dark"] {
  --bg: #14161c;
  --surface: #1b1e26;
  --border: #2a2e38;
  --text: #e7e9ee;
  --text-muted: #9aa1b0;
  --accent: #7fa2ff;
  --accent-soft: #1e2a4a;
  --stripe: #181b22;
  --sample: #8890a0;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  padding: 2.5rem 2rem 4rem;
}
.wrap { max-width: 980px; margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
h1 {
  font-size: 1.7rem;
  font-weight: 650;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}
.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 62ch;
  line-height: 1.5;
  margin: 0 0 2rem;
}

.table-shell {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 720px;
}
thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
}
tbody td {
  padding: 0.65rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr.stripe { background: var(--stripe); }

tr.group-start td { border-top: 1px solid var(--border); }
tr.group-start:first-child td { border-top: none; }

.entity {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.uses {
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.desc { color: var(--text); line-height: 1.45; }
.sample {
  display: block;
  color: var(--sample);
  font-size: 0.82rem;
  font-style: italic;
  margin-top: 0.15rem;
  line-height: 1.4;
}

.note {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.note strong { color: var(--text); font-weight: 600; }
/* A table wider than the screen scrolls within itself rather than off the edge of the page.
   Without this, on a phone, either the page drags sideways taking the headings with it, or the
   overflowing columns cannot be reached at all. Verified both, at 375px. No desktop effect. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
