/* ============================================================
   VPNXE Design System — DeepDoc (complete-guide.html)
   ============================================================ */

/* ---------- Article Container ---------- */
.deepdoc-article {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* ---------- Lead Paragraph ---------- */
.deepdoc-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.deepdoc-lead a {
  color: var(--accent-dark);
  font-weight: 700;
  border-bottom: 1px solid var(--accent);
  transition: border-color .15s;
}

.deepdoc-lead a:hover {
  border-bottom-color: transparent;
}

/* ---------- Sections ---------- */
.deepdoc-article > section[id] {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: calc(var(--header-h) + 56px);
}

.deepdoc-article > section[id]:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

.deepdoc-article > section[id] > h2 {
  margin-bottom: 20px;
}

.deepdoc-article h3 {
  margin-top: 32px;
  margin-bottom: 14px;
  font-size: 20px;
}

.deepdoc-article p {
  margin-bottom: 16px;
  line-height: 1.85;
  color: var(--text);
  font-size: 15.5px;
}

.deepdoc-article ul,
.deepdoc-article ol {
  margin: 16px 0 20px;
  padding-left: 24px;
}

.deepdoc-article li {
  margin-bottom: 8px;
  line-height: 1.75;
  color: var(--text);
  font-size: 15px;
}

.deepdoc-article li::marker {
  color: var(--accent);
  font-weight: 700;
}

.deepdoc-article li strong {
  color: var(--text);
}

/* ---------- Inline Links ---------- */
.deepdoc-article a {
  color: var(--accent-dark);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-tint2);
  transition: border-color .15s;
}

.deepdoc-article a:hover {
  border-bottom-color: var(--accent);
}

.deepdoc-article a.btn-main {
  color: var(--lift);
  border-bottom: none;
}

/* ---------- Callout ---------- */
.deepdoc-article .callout {
  margin: 24px 0;
}

/* ---------- Code Blocks ---------- */
.deepdoc-article pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 18px 20px;
  margin: 20px 0;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.deepdoc-article pre code {
  font-family: var(--font-mono);
  color: inherit;
}

.deepdoc-article :not(pre) > code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--accent-dark);
}

/* ---------- Tables ---------- */
.deepdoc-article .table-wrap {
  margin: 24px 0;
}

.deepdoc-article .data-table td,
.deepdoc-article .data-table th {
  font-size: 13.5px;
}

/* ---------- Compare Table ---------- */
.compare-table th,
.compare-table td {
  text-align: center;
}

.compare-table td:first-child,
.compare-table th:first-child {
  text-align: left;
}

/* ---------- Scenario Grid ---------- */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.scenario-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  padding: 20px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s;
}

.scenario-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.scenario-card .scenario-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.scenario-card h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.scenario-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .deepdoc-article {
    padding: 32px 0 64px;
  }

  .deepdoc-article > section[id] {
    margin-top: 40px;
    padding-top: 32px;
  }

  .deepdoc-article p {
    font-size: 14.5px;
  }

  .deepdoc-article h3 {
    font-size: 18px;
  }

  .deepdoc-lead {
    font-size: 15px;
  }

  .scenario-grid {
    grid-template-columns: 1fr;
  }
}