.docs-wiki {
  --blue: #0774FF;
  --navy: #2D3C58;
  --yellow: #FFC107;
  --ink: #1c2740;
  --muted: #5c6b82;
  --line: #e4e9f2;
  --paper: #f6f8fc;
  max-width: 1350px;
  margin: 148px auto 0;
  padding: 28px 15px 8px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  align-items: start;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  color: var(--ink);
}
body.page-template .vpnsafe-footer { padding-top: 28px; }
.docs-wiki a { color: var(--blue); text-decoration: none; }
.docs-wiki a:hover { text-decoration: underline; }
.docs-wiki .side {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 14px 12px 16px;
}
.docs-wiki .side h2 {
  margin: 4px 8px 10px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.docs-wiki .search { display: flex; gap: 6px; margin: 0 6px 14px; }
.docs-wiki .search input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  min-width: 0;
  background: #fff;
}
.docs-wiki .search button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  width: auto !important;
  min-width: 0;
  flex: 0 0 auto;
}
.docs-wiki .search button:hover { background: var(--yellow); color: var(--navy); }
.docs-wiki .cat-list, .docs-wiki .article-list { list-style: none; margin: 0; padding: 0; }
.docs-wiki .cat-list a, .docs-wiki .article-list a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.docs-wiki .cat-list a:hover, .docs-wiki .article-list a:hover { background: #fff; color: var(--blue); }
.docs-wiki .cat-list a.current { background: #fff; color: var(--blue); box-shadow: inset 3px 0 0 var(--yellow); }
.docs-wiki .cat-list .count { color: var(--muted); font-weight: 500; }
.docs-wiki .crumb { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.docs-wiki .crumb a { color: var(--muted); }
.docs-wiki h1 { font-size: 34px; line-height: 1.2; margin: 0 0 12px; color: var(--navy); }
.docs-wiki .lead { font-size: 18px; color: var(--muted); margin: 0 0 22px; }
.docs-wiki .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.docs-wiki .card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 14px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}
.docs-wiki .card:hover { border-color: var(--blue); text-decoration: none; }
.docs-wiki .card strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.docs-wiki .card span { color: var(--muted); font-size: 13px; }
.docs-wiki .doc-body { font-size: 17px; line-height: 1.65; }
.docs-wiki .doc-body h2, .docs-wiki .doc-body h3 { color: var(--navy); line-height: 1.3; }
.docs-wiki .doc-body .video {
  position: relative;
  max-width: 720px;
  margin: 8px 0 28px;
  aspect-ratio: 16 / 9;
}
.docs-wiki .doc-body .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 12px;
}
.docs-wiki .doc-body img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 12px 0 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.docs-wiki .doc-body pre { background: var(--paper); padding: 12px 14px; border-radius: 10px; overflow: auto; }
.docs-wiki .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.docs-wiki .chips a {
  background: #eaf2ff;
  color: var(--blue);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.docs-wiki .note { color: var(--muted); font-size: 14px; }
@media (max-width: 576px) {
  .docs-wiki { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 860px) {
  .docs-wiki { grid-template-columns: 1fr; margin-top: 92px; }
  .docs-wiki .side { position: static; max-height: none; }
  .docs-wiki h1 { font-size: 28px; }
}
