/* ==========================================================================
   Guide – long-form article pages
   ========================================================================== */

.guide {
  padding: 0 0 80px;
}

.guide-body {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.guide-body h2 {
  color: var(--text-main);
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 56px 0 16px;
  scroll-margin-top: 96px;
}

.guide-body p,
.guide-body ol,
.guide-body ul {
  margin: 0 0 16px;
}

.guide-body ol,
.guide-body ul {
  padding-left: 1.5rem;
}

.guide-body li {
  margin: 8px 0;
}

.guide-body strong {
  color: var(--text-main);
}

.guide-body a {
  color: var(--accent-lime);
}

.guide-body a:hover {
  text-decoration: underline;
}

/* Answer-first summary */
.guide-answer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-lime);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.guide-answer ol {
  margin-bottom: 0;
}

/* Table of contents */
.guide-toc {
  margin: 32px 0 0;
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.guide-toc p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-toc ul {
  margin: 0;
  padding-left: 1.25rem;
}

.guide-toc li {
  margin: 4px 0;
}

/* Format comparison table */
.guide-table-wrap {
  overflow-x: auto;
  margin: 0 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.guide-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.guide-table th,
.guide-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-color);
}

.guide-table thead th {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 600;
}

.guide-table tbody th {
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: none;
}

.guide-body .faq-list {
  margin-top: 8px;
}

@media (max-width: 480px) {
  .guide-body {
    font-size: 1rem;
  }

  .guide-body h2 {
    font-size: 1.4rem;
    margin-top: 40px;
  }

  .guide-answer,
  .guide-toc {
    padding: 16px;
  }
}
