.guide-page {
  min-height: 100dvh;
  background: var(--bg);
}

.guide-banner {
  background: var(--afenet-blue);
  padding: 1.5rem 1rem;
  text-align: center;
}

.guide-banner .brand-logo {
  margin: 0 auto;
  height: 56px;
}

.guide-banner h1 {
  margin: 0.75rem 0 0.25rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.guide-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
  font-size: 0.95rem;
}

.guide-toolbar {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  align-items: center;
}

.guide-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.guide-toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--afenet-blue);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 1;
}

.guide-toc a {
  color: var(--afenet-blue);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(29, 66, 138, 0.06);
}

.guide-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--afenet-blue);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--afenet-blue-light);
}

.guide-section h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

.guide-section p,
.guide-section li {
  color: var(--text);
  font-size: 0.95rem;
}

.guide-section ul,
.guide-section ol {
  margin: 0.5rem 0;
  padding-left: 1.35rem;
}

.guide-callout {
  background: var(--afenet-blue-light);
  border-left: 4px solid var(--afenet-blue);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
}

.guide-callout--warn {
  background: #fef3c7;
  border-left-color: var(--warning);
}

.guide-callout--danger {
  background: #fee2e2;
  border-left-color: var(--danger);
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.guide-table th,
.guide-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  background: var(--afenet-blue-light);
  color: var(--afenet-blue);
  font-weight: 600;
}

.guide-table code {
  font-size: 0.85em;
  color: var(--afenet-blue);
}

.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-steps li {
  counter-increment: step;
  padding: 0.65rem 0 0.65rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.guide-steps li:last-child {
  border-bottom: none;
}

.guide-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--afenet-blue);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .guide-toc ol {
    columns: 2;
  }
}

@media (max-width: 520px) {
  .guide-table {
    font-size: 0.8rem;
  }

  .guide-table th,
  .guide-table td {
    padding: 0.4rem;
  }
}
