/* How files point at each other. A map, not a letter. */

:root {
  --bg: #0e1116;
  --node: #171c24;
  --line: #334155;
  --text: #e6edf5;
  --mute: #93a0b3;
  --edge: #6ee7b7;
  --node-b: #38bdf8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }

body.area-links {
  background:
    radial-gradient(circle at 10% 0%, #1a2433 0%, transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, sans-serif;
  min-height: 100vh;
}

a { color: var(--node-b); }
a:hover { color: #fff; }

.map {
  width: min(52rem, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 1.1rem 0 2.4rem;
}

.map h1 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.map .lede {
  margin: 0.4rem 0 1.2rem;
  color: var(--mute);
  max-width: 40rem;
}

.chain { display: flex; flex-direction: column; gap: 0; }

.chain-node {
  background: var(--node);
  border: 1px solid var(--line);
  border-left: 3px solid var(--node-b);
  padding: 0.85rem 1rem;
}

.chain-node:nth-child(4n+1) { border-left-color: #fbbf24; }
.chain-node:nth-child(4n+3) { border-left-color: var(--edge); }

.chain-node h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.chain-node .path {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--mute);
  margin: 0 0 0.4rem;
  word-break: break-all;
}
.chain-node p { margin: 0; font-size: 0.92rem; color: #d5deea; }

.chain-arrow {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--edge);
  padding: 0.35rem 0.2rem 0.35rem 1.1rem;
}

.mentions h2 {
  margin: 1.6rem 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); }
.ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.ref-table th, .ref-table td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.6rem;
}
.ref-table th {
  background: #121820;
  color: var(--mute);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ref-table code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}

.foot {
  margin-top: 1.4rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.75rem;
}
