/* Shared components for system tutorials and the IPv6 guide. */
.guide-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0 24px;
}
.guide-system-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 15px;
}
.guide-note,
.guide-warning {
  padding: 14px 18px;
  margin: 18px 0;
  background: #f8f9fa;
  border-left: 4px solid #2f80ed;
}
.guide-warning {
  background: #fff8e6;
  border-left-color: #f0ad4e;
}
.guide-section {
  margin-top: 38px;
  scroll-margin-top: 20px;
}
.guide-content {
  overflow-wrap: anywhere;
}
.guide-content pre {
  max-width: 100%;
  padding: 16px;
  overflow-x: auto;
  color: #e9ecef;
  background: #202632;
  border-radius: 8px;
  white-space: pre;
}
.guide-content code {
  overflow-wrap: normal;
}
.guide-table-wrap {
  width: 100%;
  margin: 16px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.guide-table-wrap table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border-collapse: collapse;
}
.guide-table-wrap th,
.guide-table-wrap td {
  padding: 10px 12px;
  border: 1px solid #dee2e6;
  vertical-align: top;
}
.guide-toc {
  padding: 20px 24px;
  margin: 28px 0;
  background: #f8f9fa;
  border-radius: 8px;
}
.guide-toc ol {
  margin-bottom: 0;
  columns: 2;
}
.guide-meta {
  color: #6c757d;
}
.related-guides {
  padding: 24px;
  margin: 40px 0;
  background: #f8f9fa;
  border-radius: 8px;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1rem;
}

.guide-code {
  overflow-wrap: anywhere;
}

.guide-intro {
  font-size: 1.1rem;
}

@media (max-width: 767.98px) {
  .guide-toc ol {
    columns: 1;
  }
  .guide-content {
    min-width: 0;
  }
}

/* Desktop/mobile clients keep their existing article layout.
   Router guides use the base rules and their responsive container. */
.guide-content--client {
  max-width: 940px;
  margin: 0 auto;
}

.guide-content--client > h2 {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.guide-content--client > h3 {
  margin-top: 1.6rem;
}

.guide-content--client > h4 {
  margin-top: 1.25rem;
}

.guide-content--client .guide-img {
  margin: 14px auto 26px;
}

.guide-content--client .guide-note,
.guide-content--client .guide-warning {
  border-radius: 4px;
}

.guide-content--client table {
  margin-bottom: 1.5rem;
}

.guide-content--client li {
  margin-bottom: 0.35rem;
}

.guide-content--client a {
  overflow-wrap: anywhere;
}
