.wiki-page {
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background:
    radial-gradient(ellipse at 70% 0%, #1a2848 0%, transparent 50%),
    radial-gradient(ellipse at top, #121820 0%, #060814 55%, #030508 100%);
  color: #e8f0e8;
  font-family: system-ui, sans-serif;
}
.wiki-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(232,163,23,.35);
  background: rgba(0,0,0,.45);
  position: sticky;
  top: 0;
  z-index: 5;
}
.wiki-top .brand {
  font-family: Orbitron, sans-serif;
  color: var(--amber, #e8a317);
  font-weight: 700;
  text-decoration: none;
}
.wiki-top-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiki-top-nav a {
  color: #cde;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
}
.wiki-top-nav a:hover { color: var(--amber, #e8a317); }
.wiki-shell {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 56px);
}
.wiki-toc {
  border-right: 1px solid rgba(232,163,23,.22);
  background: rgba(0,0,0,.28);
  padding: 18px 14px;
}
.wiki-toc h2 {
  margin: 0 0 12px;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a9;
  font-weight: 700;
}
.wiki-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-toc li { margin: 0 0 4px; }
.wiki-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: #cde;
  text-decoration: none;
  font-size: .88rem;
}
.wiki-toc li.active a,
.wiki-toc a:hover {
  background: rgba(232,163,23,.12);
  color: var(--amber, #e8a317);
}
.wiki-main {
  padding: 28px 32px 64px;
}
.wiki-main h1 {
  margin: 0 0 18px;
  font-family: Orbitron, sans-serif;
  color: var(--amber, #e8a317);
  font-size: 1.45rem;
}
.wiki-body {
  line-height: 1.55;
  color: #d8e0e8;
  max-width: 42rem;
  font-size: .95rem;
}
.wiki-body p { margin: 0 0 1em; }
.wiki-body ul { margin: 0 0 1em; padding-left: 1.2em; }
.wiki-body li { margin: 0.25em 0; }
.wiki-body .muted, .muted { color: #89a; }
@media (max-width: 720px) {
  .wiki-shell { grid-template-columns: 1fr; }
  .wiki-toc { border-right: 0; border-bottom: 1px solid rgba(232,163,23,.22); }
}

.wiki-body .wiki-h {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.25rem 0 0.4rem;
  letter-spacing: 0.02em;
  color: #d8e6f4;
}
.wiki-body .wiki-h:first-child { margin-top: 0; }
.wiki-toc li a[href*="res-"],
.wiki-toc li a[href*="/resources"] { opacity: 0.95; }
