/* ============================================
   Synapse Mocking Playground — Design Tokens
   ============================================ */
:root {
  /* Surfaces */
  --bg-0: #07090f;
  --bg-1: #0b111c;
  --bg-2: #111827;
  --bg-3: #161f31;
  --bg-4: #1c2638;

  /* Lines */
  --line-1: #1e293b;
  --line-2: #2a3a55;
  --line-3: #3b4a66;

  /* Text */
  --text-0: #f8fafc;
  --text-1: #e2e8f0;
  --text-2: #a5b4c8;
  --text-3: #6b7794;
  --text-4: #4a5468;

  /* Accents */
  --cyan: #22d3ee;
  --cyan-bright: #67e8f9;
  --cyan-dim: #0e7490;
  --cyan-fog: rgba(34, 211, 238, 0.10);

  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-dim: #92400e;

  --violet: #a78bfa;
  --violet-bright: #c4b5fd;
  --violet-dim: #5b21b6;

  --pink: #f472b6;
  --green: #34d399;
  --red: #f87171;
  --blue: #60a5fa;

  /* Type */
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Shadow */
  --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--line-1);
  --shadow-glow: 0 0 0 1px var(--cyan-dim), 0 0 24px -6px var(--cyan-fog);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-0); }
body {
  font-family: var(--font-sans);
  color: var(--text-1);
  background: var(--bg-0);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100vh;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(167, 139, 250, 0.06), transparent 65%),
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px) 0 0 / 48px 48px;
  pointer-events: none;
  z-index: 0;
}
#root { position: relative; z-index: 1; }

a { color: var(--cyan-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

::selection { background: rgba(34, 211, 238, 0.3); color: var(--text-0); }

code, pre, .mono { font-family: var(--font-mono); }

/* ============================================
   App shell
   ============================================ */
.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-1);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background: var(--bg-1);
  z-index: 0;
}
.brand-mark > span {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--cyan-bright), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-title-row {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-0);
  letter-spacing: -0.01em;
}
.brand-title-sub {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.topbar-spacer { flex: 1; }
.topbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}
.topbar-link:hover {
  color: var(--text-0);
  background: var(--bg-2);
  text-decoration: none;
}
.topbar-link.primary {
  border-color: var(--line-2);
  background: var(--bg-2);
}

/* ============================================
   Tab nav (horizontal)
   ============================================ */
.tabnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 10px 0 0;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 32px;
  position: sticky;
  top: 69px;
  background: rgba(7, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 40;
}
.tabnav-wrap { position: relative; }
.tab {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text-3);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.tab:hover { color: var(--text-1); }
.tab.active {
  color: var(--cyan-bright);
}
.tab.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px 2px 0 0;
}
.tab-idx {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-4);
  font-weight: 600;
}
.tab.active .tab-idx { color: var(--cyan); }

/* ============================================
   Page content
   ============================================ */
.page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hero {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line-1);
  margin-bottom: 40px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--cyan-fog);
  border: 1px solid rgba(34, 211, 238, 0.2);
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text-0);
  margin: 0 0 12px;
  text-wrap: balance;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--cyan-bright), var(--violet-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-2);
  max-width: 720px;
  text-wrap: pretty;
}

/* Sections */
.section {
  margin: 0 0 56px;
}
.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin: 0;
}
.section-sub {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 4px;
}

h3.subsec {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-0);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

/* ============================================
   Cards & panels
   ============================================ */
.card {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}
.card-tight { padding: 16px; }

.panel {
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
}
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-0);
  display: flex;
  align-items: center;
  gap: 10px;
}
.panel-title .sim-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  padding: 3px 8px;
  background: var(--cyan-fog);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 4px;
}
.panel-head-sub {
  font-size: 12px;
  color: var(--text-3);
}
.panel-body { padding: 24px; }

/* ============================================
   Generic UI
   ============================================ */
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  font-size: 13px;
}
.kv dt {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 2px;
}
.kv dd { margin: 0; color: var(--text-1); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 500;
  font-family: var(--font-mono);
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line-1);
  letter-spacing: 0.02em;
}
.pill.cyan { background: var(--cyan-fog); color: var(--cyan-bright); border-color: rgba(34, 211, 238, 0.2); }
.pill.amber { background: rgba(245, 158, 11, 0.1); color: var(--amber-bright); border-color: rgba(245, 158, 11, 0.25); }
.pill.violet { background: rgba(167, 139, 250, 0.1); color: var(--violet-bright); border-color: rgba(167, 139, 250, 0.25); }
.pill.green { background: rgba(52, 211, 153, 0.1); color: var(--green); border-color: rgba(52, 211, 153, 0.25); }
.pill.red { background: rgba(248, 113, 113, 0.1); color: var(--red); border-color: rgba(248, 113, 113, 0.25); }
.pill.blue { background: rgba(96, 165, 250, 0.1); color: var(--blue); border-color: rgba(96, 165, 250, 0.25); }
.pill.pink { background: rgba(244, 114, 182, 0.1); color: var(--pink); border-color: rgba(244, 114, 182, 0.25); }

.btn {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--bg-3); border-color: var(--line-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-primary {
  background: var(--cyan);
  color: var(--bg-0);
  border-color: var(--cyan);
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line-1);
}
.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
  border-color: rgba(248, 113, 113, 0.3);
}

.input, .select, .textarea {
  appearance: none;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-fog);
}
.textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath d='M5 8l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 18px;
}
.label {
  display: block;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
}

/* Code blocks */
.code {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-1);
  overflow-x: auto;
  white-space: pre;
}
.code .k { color: var(--violet-bright); }
.code .s { color: var(--green); }
.code .n { color: var(--amber-bright); }
.code .c { color: var(--text-3); font-style: italic; }
.code .p { color: var(--text-3); }
.code .b { color: var(--cyan-bright); }

/* Inline code */
:not(pre) > code, .ic {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-1);
  color: var(--cyan-bright);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-1);
  color: var(--text-1);
  vertical-align: top;
}
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(255,255,255,0.015); }

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }

.muted { color: var(--text-3); }
.tiny { font-size: 12px; }

/* ============================================
   Toggle / Switch
   ============================================ */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.switch-track {
  width: 32px;
  height: 18px;
  background: var(--bg-3);
  border-radius: 99px;
  position: relative;
  border: 1px solid var(--line-2);
  transition: all 0.2s;
}
.switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: var(--text-2);
  border-radius: 50%;
  transition: all 0.2s;
}
.switch input { display: none; }
.switch.on .switch-track { background: var(--cyan); border-color: var(--cyan); }
.switch.on .switch-thumb { left: 16px; background: var(--bg-0); }

/* Slider */
.slider {
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-3);
  border-radius: 99px;
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 1px var(--cyan);
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-0);
}

/* ============================================
   Specific layouts (graph, pyramid, etc)
   ============================================ */
.pyramid-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .pyramid-wrap { grid-template-columns: 1fr; } }

.pyramid-layer {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 14px 20px;
  margin: 4px auto;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.pyramid-layer:hover {
  border-color: var(--line-3);
  transform: translateX(2px);
}
.pyramid-layer.active {
  background: var(--bg-3);
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 30px -8px rgba(34,211,238,0.4);
}

/* Logs */
.log {
  background: #04060a;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-2);
  max-height: 280px;
  overflow-y: auto;
}
.log-entry { display: flex; gap: 12px; align-items: baseline; padding: 2px 0; }
.log-time { color: var(--text-4); font-size: 10px; flex-shrink: 0; }
.log-tag { font-weight: 600; flex-shrink: 0; }
.log-msg { color: var(--text-1); word-break: break-word; }
.log-tag.send { color: var(--cyan); }
.log-tag.recv { color: var(--violet-bright); }
.log-tag.ok { color: var(--green); }
.log-tag.err { color: var(--red); }
.log-tag.info { color: var(--text-3); }

/* Flow nodes */
.flow-node {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  position: relative;
  transition: all 0.3s;
}
.flow-node.active {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan-dim), 0 0 24px -4px var(--cyan-fog);
  background: var(--bg-3);
}
.flow-node-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 4px;
}
.flow-node-name {
  font-weight: 600;
  color: var(--text-0);
  font-size: 13px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* ============================================
   Doc Modal
   ============================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 40px 32px;
  animation: modal-fade 0.18s ease-out;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-0);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(34, 211, 238, 0.08);
  animation: modal-slide 0.22s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
  flex-shrink: 0;
}
.modal-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.modal-title-row {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-0);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-title-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}
.modal-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.modal-close {
  appearance: none;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.15s;
}
.modal-close:hover {
  background: var(--bg-3);
  color: var(--red);
  border-color: var(--red);
}

.modal-iframe-wrap {
  flex: 1;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.modal-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.modal-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  pointer-events: none;
  background: var(--bg-0);
  transition: opacity 0.25s;
}
.modal-loading.hidden { opacity: 0; pointer-events: none; }

/* Doc preview button on each page */
.doc-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line-1);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.doc-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--cyan-fog), transparent 50%);
  pointer-events: none;
}
.doc-cta-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cyan-fog);
  border: 1px solid rgba(34, 211, 238, 0.2);
  display: grid;
  place-items: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.doc-cta-text {
  position: relative;
  flex: 1;
  min-width: 0;
}
.doc-cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-0);
  margin-bottom: 2px;
}
.doc-cta-sub {
  font-size: 12px;
  color: var(--text-3);
}
.doc-cta-btn {
  position: relative;
  flex-shrink: 0;
}

/* Footer */
.footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line-1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-3);
  font-size: 13px;
}
.footer a { color: var(--text-2); }

/* SVG basics */
.graph-svg { width: 100%; height: 100%; display: block; }
.graph-edge { stroke: var(--line-3); stroke-width: 1.5; }
.graph-edge.highlight { stroke: var(--cyan); stroke-width: 2; }
.graph-node circle { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 1.5; cursor: pointer; transition: all 0.15s; }
.graph-node:hover circle { stroke: var(--cyan); }
.graph-node.selected circle { fill: var(--cyan-fog); stroke: var(--cyan); stroke-width: 2.5; }
.graph-node text { fill: var(--text-1); font-family: var(--font-sans); font-size: 11px; text-anchor: middle; pointer-events: none; user-select: none; }

/* Animations */
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  100% { box-shadow: 0 0 0 14px rgba(34, 211, 238, 0); }
}
.pulse {
  border-radius: 50%;
  animation: pulse-ring 1.4s infinite;
}

@keyframes shimmer-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.shimmer-in { animation: shimmer-in 0.3s ease-out; }

@keyframes blink {
  50% { opacity: 0.3; }
}
.blink { animation: blink 1s infinite; }

/* Doc prose */
.prose p { margin: 0 0 12px; color: var(--text-2); }
.prose strong { color: var(--text-0); font-weight: 600; }
.prose ul { padding-left: 18px; margin: 0 0 12px; color: var(--text-2); }
.prose ul li { margin-bottom: 4px; }
.prose-narrow { max-width: 760px; }
