/* Wiki hub + network sidebar. Gamer-clear, not a pill pile. */
.wiki-hub-body .wiki-hub {
  --wh-cyan: #00e1fd;
  --wh-purple: #b026ff;
  --wh-gold: #f5c542;
  --wh-rose: #fb7185;
  --wh-emerald: #34d399;
  --wh-ink: #070314;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 0.35rem 4rem;
}

body.wiki-shell-body {
  --wiki-sidebar-w: 16.25rem;
  --wiki-chrome-top: calc(var(--nc-header-h, 5.25rem) + var(--nc-beta-banner-h, 0px));
}

body.wiki-shell-body.nc-beta-surface {
  padding-top: 0;
}

body.wiki-shell-body .nc-header-spacer {
  display: none;
}

.wiki-shell-body .wiki-hub {
  max-width: none;
  margin: 0;
  padding: 0.35rem 1.15rem 3.5rem 1rem;
}

.wiki-shell {
  --wh-cyan: #00e1fd;
  --wh-purple: #b026ff;
  --wh-gold: #f5c542;
  --wiki-sidebar-w: 16.25rem;
  --wiki-chrome-top: calc(var(--nc-header-h, 5.25rem) + var(--nc-beta-banner-h, 0px));
  display: block;
  position: relative;
  padding-top: var(--wiki-chrome-top);
  box-sizing: border-box;
}

.wiki-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid rgba(0, 225, 253, 0.16);
  background: linear-gradient(90deg, rgba(8, 4, 22, 0.96), rgba(12, 6, 28, 0.9));
}

.wiki-nav-open,
.wiki-nav-close {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(0, 225, 253, 0.4);
  border-radius: 0.7rem;
  background: rgba(0, 225, 253, 0.12);
  color: #ecfeff;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}

.wiki-nav-bar__search {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.wiki-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(2, 0, 10, 0.62);
}

.wiki-sidebar {
  z-index: 80;
  box-sizing: border-box;
  left: 0;
  padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  background:
    linear-gradient(180deg, rgba(10, 5, 24, 0.98), rgba(6, 3, 16, 0.98)),
    radial-gradient(ellipse 80% 40% at 0% 0%, rgba(176, 38, 255, 0.16), transparent 50%);
  border-right: 1px solid rgba(0, 225, 253, 0.14);
}

.wiki-sidebar__head {
  padding: 0.75rem 0.75rem 0.5rem 0.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki-sidebar__kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.wiki-sidebar__head strong {
  display: block;
  margin-top: 0.2rem;
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.wiki-nav-close {
  margin-top: 0.65rem;
}

.wiki-sidebar__search {
  padding: 0.55rem 0.7rem 0.3rem 0.1rem;
}

.wiki-sidebar__search input {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(0, 225, 253, 0.22);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.86rem;
  outline: none;
}

.wiki-tree {
  padding: 0.25rem 0.45rem 1.35rem 0.05rem;
}

.wiki-tree__top,
.wiki-tree__link,
.wiki-tree__branch summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 0.55rem;
  cursor: pointer;
}

.wiki-tree__top,
.wiki-tree__branch summary {
  padding: 0.48rem 0.55rem;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.wiki-tree__branch summary {
  list-style: none;
  background: transparent;
  border: 0;
}

.wiki-tree__branch summary::-webkit-details-marker {
  display: none;
}

.wiki-tree__branch summary::after {
  content: "";
  margin-left: auto;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid rgba(0, 225, 253, 0.7);
  border-bottom: 2px solid rgba(0, 225, 253, 0.7);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}

.wiki-tree__branch[open] > summary::after {
  transform: rotate(45deg);
}

.wiki-tree__top i,
.wiki-tree__branch summary i {
  width: 1.05rem;
  color: var(--wh-cyan, #00e1fd);
  opacity: 0.9;
  font-size: 0.82rem;
}

.wiki-tree__branch summary em {
  margin-left: auto;
  margin-right: 0.45rem;
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 197, 66, 0.85);
  font-weight: 800;
}

.wiki-tree__kids {
  margin: 0.1rem 0 0.45rem 0.55rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(0, 225, 253, 0.18);
}

.wiki-tree__link {
  padding: 0.28rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.68);
}

.wiki-tree__top:hover,
.wiki-tree__link:hover,
.wiki-tree__branch summary:hover {
  background: rgba(0, 225, 253, 0.08);
  color: #fff;
}

.wiki-tree__link.is-current,
.wiki-tree__top.is-current {
  color: #041018;
  background: #00e1fd;
  font-weight: 800;
}

.wiki-tree .wiki-tree__branch {
  margin: 0.08rem 0;
}

.wiki-tree .wiki-tree__kids .wiki-tree__branch summary {
  font-size: 0.75rem;
  font-weight: 750;
  color: rgba(233, 213, 255, 0.92);
}

.wiki-tree .wiki-tree__kids .wiki-tree__branch summary i {
  display: none;
}

@media (max-width: 979px) {
  .wiki-sidebar {
    position: fixed;
    top: var(--wiki-chrome-top, 5.25rem);
    left: 0;
    bottom: 0;
    width: min(18.5rem, 88vw);
    overflow: auto;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  }
  body.wiki-nav-open .wiki-sidebar {
    transform: none;
  }
  body.wiki-nav-open {
    overflow: hidden;
  }
}

@media (min-width: 980px) {
  .wiki-shell {
    display: block;
  }
  .wiki-nav-bar,
  .wiki-nav-backdrop,
  .wiki-nav-close {
    display: none;
  }
  .wiki-sidebar {
    position: fixed;
    left: 0;
    top: var(--wiki-chrome-top);
    bottom: 0;
    width: var(--wiki-sidebar-w);
    height: auto;
    overflow: auto;
    z-index: 40;
  }
  .wiki-main {
    min-width: 0;
    margin-left: var(--wiki-sidebar-w);
    box-sizing: border-box;
  }
}

.wiki-hero,
.wh-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1.25rem 1.15rem 1.05rem;
  margin-bottom: 1.1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(0, 225, 253, 0.16);
  background:
    linear-gradient(180deg, rgba(8, 4, 22, 0.2), rgba(5, 2, 12, 0.88)),
    radial-gradient(ellipse 90% 80% at 8% -20%, rgba(176, 38, 255, 0.32), transparent 52%),
    radial-gradient(ellipse 70% 70% at 100% 0%, rgba(0, 225, 253, 0.18), transparent 48%),
    #080416;
}

.wh-hero__glow {
  position: absolute;
  inset: auto -10% -40% 30%;
  height: 12rem;
  background: radial-gradient(closest-side, rgba(0, 225, 253, 0.16), transparent);
  pointer-events: none;
  z-index: 0;
}

.wh-kicker,
.wh-hero h1,
.wh-lead,
.wh-search,
.wh-heute {
  position: relative;
  z-index: 1;
}

.wh-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.wh-hero h1 {
  margin: 0.55rem 0 0.65rem;
  max-width: 22ch;
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  text-wrap: balance;
}

.wh-lead {
  max-width: 36rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.5;
}

.wh-search {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.25rem;
  max-width: 40rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(0, 225, 253, 0.28);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.wh-search i {
  margin-left: 1rem;
  color: var(--wh-cyan);
  opacity: 0.8;
}

.wh-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.85rem 0.85rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.02rem;
  outline: none;
}

.wh-search button {
  margin: 0.35rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041018;
  background: var(--wh-cyan);
  cursor: pointer;
}

.wh-heute {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 1.1rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wh-heute__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wh-gold);
}

.wh-heute ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wh-heute a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.wh-heute a:hover { color: #fff; }

.wh-heute em {
  font-style: normal;
  margin-right: 0.4rem;
  color: var(--wh-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wh-sec { margin-bottom: 1.1rem; }
.wh-sec h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}
.wh-sec p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

.wh-guides-wrap { margin-bottom: 2.25rem; }
.wh-guides {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 0.6rem;
}
.wh-guide {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
}
.wh-guide:hover {
  border-color: rgba(176, 38, 255, 0.35);
  background: rgba(176, 38, 255, 0.07);
}
.wh-guide h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.wh-guide p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.52);
}

.wiki-shell-body .wiki-main > .plugin-content {
  max-width: min(74rem, 100%);
  margin-left: 0;
  margin-right: auto;
  padding-top: 0.85rem;
  padding-bottom: 3rem;
  padding-left: 1rem;
  padding-right: 1.15rem;
}

@media (min-width: 768px) {
  .wiki-shell-body .wiki-main > .plugin-content {
    padding-left: 1.15rem;
    padding-right: 1.5rem;
  }
}
