/* ===== WIKI PAGE ===== */
.wiki-page {
  background: #0a0a0a;
  min-height: 100vh;
}

/* Hide dots on wiki */
.sidebar-simple .side-nav {
  display: none;
}

.sidebar-simple {
  justify-content: flex-start;
}

/* ===== BANNER ===== */
.wiki-banner {
  position: relative;
  margin-left: var(--sidebar-width);
  height: 320px;
  overflow: hidden;
}

.wiki-banner-bg {
  position: absolute;
  inset: 0;
}

.wiki-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wiki-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.75) 100%);
}

.wiki-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 50px 28px;
}

.wiki-title-box {
  display: inline-block;
  background: #fff;
  padding: 12px 28px;
  margin-bottom: 14px;
  width: fit-content;
}

.wiki-title-box h1 {
  font-size: 36px;
  font-weight: 900;
  color: #000;
  letter-spacing: -0.5px;
  line-height: 1;
}

.wiki-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.55);
}

.wiki-breadcrumb span {
  color: #fff;
}

/* ===== LAYOUT ===== */
.wiki-layout {
  margin-left: var(--sidebar-width);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 320px);
  background: #0a0a0a;
}

/* Left Menu */
.wiki-menu {
  padding: 48px 0 40px 48px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.wiki-menu h3 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 28px;
}

.wiki-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wiki-menu-item {
  background: transparent;
  border: none;
  text-align: left;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 220px;
}

.wiki-menu-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.wiki-menu-item.active {
  background: #fff;
  color: #000;
}

/* no special separators */
.wiki-menu-item + .wiki-menu-item {
  margin-top: 2px;
}



/* Right Content */
.wiki-content {
  padding: 40px 50px 80px;
  position: relative;
}

.wiki-content-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.copy-link-btn {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 6px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.copy-link-btn:hover { color: #fff; }

/* Guide panels */
.guide-panel {
  display: none;
  opacity: 0;
  transform: translateY(24px);
}

.guide-panel.active {
  display: block;
  animation: guideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes guideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-title {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: #fff;
}

.guide-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  max-width: 560px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.guide-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}

.guide-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Keyboard + Table */
.keyboard-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  align-items: start;
}

.keyboard-wrap {
  background: #111;
  padding: 24px;
}

.keyboard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  user-select: none;
}

.kb-row {
  display: flex;
  gap: 5px;
  justify-content: center;
}

.kb-key {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #555;
  font-size: 10px;
  font-weight: 600;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: default;
  padding: 0 4px;
}

.kb-key.wide { min-width: 48px; }
.kb-key.wider { min-width: 64px; }
.kb-key.space { min-width: 180px; }

.kb-key.active-key {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 16px rgba(255,255,255,0.2);
  cursor: pointer;
}

.kb-key.active-key:hover,
.kb-key.highlight {
  transform: scale(1.1);
  box-shadow: 0 0 24px rgba(255,255,255,0.35);
}

.key-tooltip {
  margin-top: 14px;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: all 0.25s ease;
}

.key-tooltip.show {
  background: #fff;
  color: #000;
  border-color: #fff;
  font-weight: 600;
}

/* Keybinds Table */
.keybinds-table h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}

.keybinds-table table {
  width: 100%;
  border-collapse: collapse;
}

.keybinds-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.35);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.keybinds-table td {
  padding: 9px 12px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.75);
  transition: background 0.2s;
}

.keybinds-table tr:hover td {
  background: rgba(255,255,255,0.04);
}

.keybinds-table kbd {
  display: inline-block;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  min-width: 28px;
  text-align: center;
  border-radius: 6px;
}

/* Commands */
.commands-section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.cmd {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s, transform 0.2s;
}

.cmd:hover {
  background: #1a1a1a;
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 24px rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.cmd code {
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.cmd span {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 1100px) {
  .wiki-layout {
    grid-template-columns: 220px 1fr;
  }
  .keyboard-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .wiki-layout {
    grid-template-columns: 1fr;
  }
  .wiki-menu {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 24px 20px;
  }
  .wiki-menu-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .wiki-content {
    padding: 30px 20px 60px;
  }
  .wiki-banner-content {
    padding: 0 20px 20px;
  }
  .wiki-title-box h1 {
    font-size: 28px;
  }
  .kb-key {
    min-width: 26px;
    height: 26px;
    font-size: 9px;
  }
  .kb-key.space { min-width: 120px; }
}


/* modern-page-patch */
.careers-title-box, .wiki-title-box, .vehicles-title-box, .rules-title-box {
  border-radius: 12px;
}
.filter-item, .v-filter-item, .wiki-menu-item {
  border-radius: 10px;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.role-card, .job-card, .guide-panel, .rules-card, .severity-card {
  border-radius: 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.role-card:hover, .job-card:hover, .severity-card:hover {
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35), 0 0 24px rgba(255,255,255,0.04);
  transform: translateY(-3px);
}

/* commands + keyboard rounded */
.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.commands-grid > div,
.cmd-item,
.command-item {
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(16,16,16,0.95);
  padding: 14px 16px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.commands-grid > div:hover,
.cmd-item:hover,
.command-item:hover {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 24px rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.keyboard .key,
.keyboard-key,
.kb .key {
  border-radius: 8px !important;
}
.keyboard-wrap,
.keyboard-panel,
.keyboard {
  border-radius: 16px !important;
}

.wiki-page .search-box {
  border-radius: 14px;
}


/* ===== DOCS-STYLE SIDEBAR ===== */
.wiki-menu-search-wrap {
  margin-bottom: 18px;
}
.wiki-menu-search {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}
.wiki-menu-search:focus {
  border-color: rgba(255,255,255,0.28);
}
.wiki-menu-search::placeholder {
  color: rgba(255,255,255,0.35);
}
.wiki-cat {
  margin-bottom: 10px;
}
.wiki-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-align: left;
}
.wiki-cat-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.04);
}
.wiki-cat-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 14px;
  transform: rotate(0deg);
}
.wiki-cat.open .wiki-cat-chevron {
  transform: rotate(90deg);
}
.wiki-cat-items {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px 6px;
}
.wiki-cat.open .wiki-cat-items {
  display: flex;
}
.wiki-menu-item {
  text-align: left;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.wiki-menu-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.wiki-menu-item.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

/* Job step-by-step */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}
.step-num {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  padding-top: 2px;
}
.guide-step h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}
.guide-step p {
  margin: 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  line-height: 1.5;
}


/* ===== 3-col docs: menu | content | toc ===== */
.wiki-layout {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) 200px !important;
  gap: 0 40px !important;
  align-items: start;
  width: auto !important;
  max-width: none !important;
  margin-left: var(--sidebar-width) !important;
  margin-right: 0 !important;
  padding: 28px 36px 80px 20px !important;
  box-sizing: border-box !important;
}

/* Left menu flush left */
.wiki-menu {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 0 !important;
  margin: 0 !important;
  justify-self: start;
  width: 100%;
  text-align: left !important;
}
.wiki-menu h3 { display: none; }
.wiki-menu-search-wrap {
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
}
.wiki-menu-search {
  width: 100%;
  text-align: left;
}
.wiki-menu-nav {
  text-align: left !important;
  align-items: stretch !important;
}
.wiki-cat-btn {
  justify-content: space-between !important;
  text-align: left !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}
.wiki-cat-items {
  padding-left: 0 !important;
  align-items: stretch !important;
}
.wiki-menu-item {
  text-align: left !important;
  justify-content: flex-start !important;
  padding-left: 12px !important;
}

/* Center content */
.wiki-content {
  min-width: 0;
  max-width: 720px;
  justify-self: start;
  padding: 0 !important;
}
.wiki-content-header[hidden] { display: none !important; }

/* Right TOC — pin to right edge of layout */
.wiki-toc {
  position: sticky;
  top: 90px;
  justify-self: end;
  width: 100%;
  max-width: 200px;
  padding: 0 !important;
  margin: 0 !important;
}
.wiki-toc-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.wiki-toc-copy {
  width: 100%;
  padding: 10px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background: transparent !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  cursor: pointer;
  text-align: center;
  margin-bottom: 8px;
}
.wiki-toc-copy:hover {
  background: rgba(255,255,255,0.08) !important;
}
.wiki-toc-inner h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
#wikiTocNav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 2px solid rgba(255,255,255,0.12);
  padding-left: 12px;
  margin-bottom: 8px;
}
#wikiTocNav a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.35;
}
#wikiTocNav a:hover { color: #fff; }
.wiki-toc-top {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.wiki-toc-top:hover { color: #fff; }

.guide-article .guide-title {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 900;
}
.guide-title-row { display: none; }

@media (max-width: 1100px) {
  .wiki-layout {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }
  .wiki-toc { display: none !important; }
}
@media (max-width: 800px) {
  .wiki-layout {
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    padding: 20px 16px 60px !important;
  }
  .wiki-menu { position: relative; top: 0; max-height: none; }
}


/* Binds/commands use full content column width */
.wiki-content {
  max-width: none !important;
  width: 100% !important;
}
.guide-article {
  max-width: 720px;
}
.guide-panel:not([data-guide-type="job"]) {
  width: 100%;
  max-width: none;
}
.guide-panel:not([data-guide-type="job"]) .guide-body {
  width: 100%;
  max-width: none;
}
.guide-panel:not([data-guide-type="job"]) .keyboard-section {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr);
  gap: 28px 36px;
  width: 100%;
  align-items: start;
}
.guide-panel:not([data-guide-type="job"]) .commands-section {
  width: 100%;
}
.guide-panel:not([data-guide-type="job"]) .commands-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .guide-panel:not([data-guide-type="job"]) .commands-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .guide-panel:not([data-guide-type="job"]) .keyboard-section {
    grid-template-columns: 1fr;
  }
  .guide-panel:not([data-guide-type="job"]) .commands-grid {
    grid-template-columns: 1fr;
  }
}


/* ===== Pretty article typography (OneX-like) ===== */
.guide-article {
  max-width: 680px;
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
  line-height: 1.7;
}
.guide-article .guide-crumb {
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.38);
}
.guide-article .guide-crumb .crumb-current {
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}
.guide-article .guide-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
}
.guide-article .guide-lead {
  margin: 0 0 36px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.62);
  font-weight: 450;
}
.guide-article h2 {
  margin: 48px 0 16px;
  padding-top: 8px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
  line-height: 1.25;
}
.guide-article h2:first-of-type {
  margin-top: 8px;
}
.guide-article p {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.58);
  font-size: 1.02rem;
  line-height: 1.75;
}
.guide-article p strong,
.guide-article li strong {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
}
.guide-list {
  margin: 0 0 20px;
  padding: 0 0 0 1.15rem;
  list-style: disc;
}
.guide-list li {
  margin: 0 0 10px;
  padding-left: 4px;
  color: rgba(255,255,255,0.58);
  line-height: 1.65;
}
.guide-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  list-style: disc;
}
.guide-note {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.95rem !important;
}
.guide-callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin: 0 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.guide-callout-icon {
  font-size: 1.25rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.guide-callout p {
  margin: 0 !important;
  color: rgba(255,255,255,0.7) !important;
}
.guide-figure {
  margin: 22px 0 28px;
}
.guide-img-ph {
  margin: 0;
  padding: 56px 24px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,0.14);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.04), transparent 55%),
    rgba(255,255,255,0.025);
  text-align: center;
}
.guide-img-ph span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 8px;
}
.guide-img-ph p {
  margin: 0 !important;
  font-size: 0.9rem !important;
  color: rgba(255,255,255,0.4) !important;
  max-width: 420px;
  margin-left: auto !important;
  margin-right: auto !important;
}
.guide-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.guide-tip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.guide-tip span {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}
.guide-tip p {
  margin: 0 !important;
  color: rgba(255,255,255,0.62) !important;
  font-size: 0.98rem !important;
}
