/* ==========================================================================
   NZVPN Design System · deepdoc.css
   Page-specific styles for handbook.html (protocol & route reference)
   ========================================================================== */

.doc-article {
  max-width: 860px;
  margin: 0 auto;
}

.doc-head {
  padding-top: 48px;
  padding-bottom: 24px;
  text-align: center;
}

.doc-head .eyebrow {
  display: inline-block;
}

.doc-head h1 {
  margin-top: 14px;
}

.doc-head .lead {
  margin-top: 14px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.doc-meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.doc-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.doc-section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--head-h) + 56px);
}

.doc-section h2 {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: clamp(24px, 3vw, 30px);
}

.doc-section h3 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

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

.doc-section ul,
.doc-section ol {
  margin: 12px 0 16px 20px;
}

.doc-section li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.75;
}

.doc-section .callout {
  margin: 20px 0;
}

.doc-section .table-wrap {
  margin: 20px 0;
}

.doc-section .table-wrap .data-table {
  min-width: 720px;
}

.doc-section pre {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-panel);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.doc-section pre code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre;
  overflow-wrap: normal;
}

.doc-link {
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--tint);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}

.doc-link:hover {
  text-decoration-color: var(--accent);
}

.doc-section .line-type {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--tint2);
  color: var(--accent-dark);
  vertical-align: middle;
}

.doc-section .line-type.line-iepl {
  background: var(--tint);
  color: var(--accent-deep);
}

.doc-section .line-type.line-direct {
  background: var(--bg-panel2);
  color: var(--muted);
}

.doc-section .promo-block {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .doc-head {
    padding-top: 32px;
  }

  .doc-section {
    margin-bottom: 40px;
  }

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

@media (max-width: 640px) {
  .doc-head h1 {
    font-size: clamp(28px, 7vw, 34px);
  }

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

  .doc-meta {
    gap: 10px 14px;
  }

  .doc-section h2 {
    font-size: 22px;
  }

  .doc-section h3 {
    font-size: 16.5px;
  }

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