* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1b1b1f;
  --bg-soft: #202127;
  --bg-alt: #24252a;
  --border: #2e2e32;
  --text: #ffffffde;
  --text-2: #ffffffaa;
  --text-3: #ffffff66;
  --green: #42b883;
  --green-dim: rgba(66,184,131,.15);
  --brand: #f0c040;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}



/* ─── NAVBAR ─── */
.vp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 27, 31, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.vp-nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
.round-flag-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
  flex-shrink: 0;
}
.vp-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.vp-nav-link {
  text-decoration: none;
  color: var(--text-2);
  font-size: .85rem;
  font-weight: 500;
  transition: color .15s;
  cursor: pointer;
}
.vp-nav-link:hover { color: var(--text); }
.vp-nav-link.active { color: var(--green); }
.vp-nav-link i { font-size: .78rem; }
.ext-icon { font-size: .6rem !important; margin-left: 2px; opacity: .6; }

/* ─── CONTENT AREA ─── */
.vp-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ─── SEARCH INPUT ─── */
.search-wrapper {
  position: relative;
  margin: 20px 0 28px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  font-size: .85rem;
}
#cmd-search {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px 10px 38px;
  color: var(--text);
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#cmd-search:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(66, 184, 131, 0.2);
}

/* ─── HEADINGS (1:1 RynZen style) ─── */
.vp-h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.vp-h1 i { color: #ffffff !important; margin-right: 8px; font-size: 1.3rem; }

.vp-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.vp-h2 i { color: #ffffff !important; margin-right: 8px; font-size: 1rem; }

.vp-h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 10px;
}
.vp-h3 i { color: #ffffff !important; margin-right: 6px; font-size: .95rem; }

.vp-subtitle {
  font-size: .92rem;
  color: var(--text-2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.vp-text {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

.vp-link {
  color: var(--green);
  text-decoration: none;
}
.vp-link:hover {
  text-decoration: underline;
}

/* ─── TABLES (1:1 RynZen match with outer border and vertical column split) ─── */
.vp-table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.vp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}

.vp-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
}

.vp-table th:last-child {
  border-right: none;
}

.vp-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}

.vp-table td:last-child {
  border-right: none;
}

.vp-table tr:last-child td {
  border-bottom: none;
}

.vp-table tbody tr {
  transition: background .12s;
}

.vp-table tbody tr:hover {
  background: var(--bg-alt);
}

/* Command code tags */
.cmd-tag {
  display: inline-block;
  background: var(--green-dim);
  color: var(--green);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .84rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.cmd-tag:hover {
  border-color: var(--green);
  background: rgba(66,184,131,.25);
  box-shadow: 0 0 10px rgba(66, 184, 131, 0.2);
}

/* 4-col options table */
.vp-table-4col th:nth-child(1) { width: 18%; }
.vp-table-4col th:nth-child(2) { width: 14%; }
.vp-table-4col th:nth-child(3) { width: 14%; }
.vp-table-4col th:nth-child(4) { width: 54%; }

.vp-table-4col code, code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .84rem;
  color: var(--green);
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* ─── CODE BLOCK (usage box) ─── */
.vp-code-block {
  background: #161618;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: .88rem;
  color: var(--text);
  position: relative;
  margin-bottom: 16px;
}
.vp-line-num {
  color: var(--text-3);
  font-size: .8rem;
  user-select: none;
}
.vp-lang-tag {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .7rem;
  color: var(--text-3);
  user-select: none;
}

/* ─── BACK BUTTON ─── */
.vp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: .84rem;
  padding: 6px 14px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: color .15s, border-color .15s;
  font-family: inherit;
}
.vp-back:hover { color: var(--green); border-color: var(--green); }

/* ─── LISTS & CALLOUTS ─── */
.info-heading {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 8px;
}
.info-list, .vp-ul, .vp-ol {
  color: var(--text-2);
  font-size: .88rem;
  margin-bottom: 16px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vp-cmd-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vp-cmd-list li {
  font-size: .88rem;
  color: var(--text-2);
}

.vp-tip {
  background: rgba(66, 184, 131, 0.08);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: .88rem;
  color: var(--text-2);
}

/* ─── FOOTER ─── */
.vp-footer {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: .78rem;
  color: var(--text-3);
}

.req-yes { color: var(--green) !important; }
.req-no { color: #ef4444 !important; }

/* ─── RESPONSIVE MOBILE FIXES ─── */
@media (max-width: 640px) {
  .vp-nav-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .vp-nav-brand {
    font-size: 0.85rem;
    gap: 6px;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .round-flag-icon {
    width: 18px;
    height: 18px;
  }

  .vp-nav-links {
    gap: 8px;
    flex-shrink: 0;
  }

  .vp-nav-link {
    font-size: 0.76rem;
    padding: 2px 4px;
    white-space: nowrap;
  }

  .vp-nav-link i {
    font-size: 0.72rem;
  }

  .ext-icon {
    display: none !important;
  }

  .vp-content {
    padding: 20px 14px 60px;
  }

  .vp-h1 {
    font-size: 1.35rem;
  }

  .vp-h2 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
  }

  .vp-subtitle {
    font-size: 0.85rem;
  }

  .vp-code-block {
    font-size: 0.8rem;
    padding: 10px 12px;
  }
}

@media (max-width: 400px) {
  .vp-nav-brand span {
    font-size: 0.8rem;
  }

  .vp-nav-links {
    gap: 6px;
  }

  .vp-nav-link {
    font-size: 0.72rem;
  }
}

