/* ============================================================
   VPNDK — deepdoc.css
   Deep guide page: article layout, TOC behavior, prose typography
   ============================================================ */

html {
  scroll-behavior: smooth;
}

.doc-head {
  padding-top: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}

.doc-head h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.018em;
  max-width: 800px;
  margin-bottom: 18px;
}

.doc-head .lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--c-dim);
  max-width: 700px;
}

.doc-section {
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--c-line);
}

.doc-section:last-of-type {
  border-bottom: none;
  padding-bottom: 72px;
}

.doc-section h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.doc-section h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 30px;
  margin-bottom: 14px;
}

.doc-section p {
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--c-dim);
  margin-bottom: 16px;
}

.doc-section p strong {
  color: var(--c-ink);
  font-weight: 700;
}

.doc-section ul,
.doc-section ol {
  margin: 18px 0;
}

.doc-section ul li,
.doc-section ol li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-dim);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
}

.doc-section ul li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-acc);
  opacity: 0.75;
}

.doc-section ol {
  counter-reset: step;
}

.doc-section ol li {
  counter-increment: step;
}

.doc-section ol li::before {
  content: counter(step);
  position: absolute;
  left: 4px;
  top: 2px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c-acc);
  background: var(--tint-acc);
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-section blockquote {
  border-left: 3px solid var(--c-acc);
  background: var(--c-panel);
  border-radius: 0 var(--rad-m) var(--rad-m) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-dim);
}

.doc-section blockquote p:last-child {
  margin-bottom: 0;
}

.doc-section pre {
  background: var(--c-panel2);
  border: 1px solid var(--c-line);
  border-radius: var(--rad-m);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.7;
  max-width: 100%;
}

.doc-section pre code {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--c-ink);
  background: transparent;
  padding: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.doc-section code {
  font-family: var(--ff-mono);
  font-size: 13px;
  color: var(--c-acc);
  background: var(--tint-acc);
  border-radius: 4px;
  padding: 2px 6px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.doc-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dim);
  background: var(--c-panel2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  white-space: nowrap;
}

.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-ink);
  line-height: 1.7;
  vertical-align: top;
}

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

.doc-table tbody tr:hover {
  background: var(--c-panel2);
}

.doc-table.mw-640 {
  min-width: 640px;
}

.doc-table.mw-520 {
  min-width: 520px;
}

.doc-table.mw-420 {
  min-width: 420px;
}

/* Related links block */
.doc-related {
  margin-top: 48px;
  padding: 28px;
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  border-radius: var(--rad-l);
}

.doc-related h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.doc-related ul li {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--c-dim);
  margin-bottom: 10px;
  padding-left: 22px;
  position: relative;
}

.doc-related ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-acc);
  opacity: 0.75;
}

.doc-related ul li a {
  color: var(--c-acc);
  font-weight: 600;
}

.doc-related ul li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .doc-head {
    padding-top: 40px;
    padding-bottom: 24px;
  }

  .doc-head h1 {
    font-size: clamp(28px, 6vw, 38px);
  }

  .doc-head .lead {
    font-size: 15.5px;
  }

  .doc-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .doc-section:last-of-type {
    padding-bottom: 56px;
  }

  .doc-section p {
    font-size: 15px;
  }

  .doc-section ul li,
  .doc-section ol li {
    font-size: 14.5px;
  }

  .doc-table {
    font-size: 13px;
  }

  .doc-table th,
  .doc-table td {
    padding: 10px 12px;
  }

  .doc-related {
    padding: 20px;
  }
}