/* ============================================================
   GUIDE PAGES — article layout
   ============================================================ */

.guide {
  max-width: 800px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 56px) 20px 88px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: hsl(var(--muted));
  margin-bottom: 26px;
}
.breadcrumb a { color: hsl(var(--muted)); transition: color .2s; }
.breadcrumb a:hover { color: hsl(var(--violet-light)); }
.breadcrumb svg { opacity: .55; }

/* Article header */
.guide-header { margin-bottom: 34px; }
.guide-header .eyebrow { margin-bottom: 14px; }
.guide h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.guide .lead {
  font-size: 1.06rem;
  color: hsl(var(--muted));
  line-height: 1.7;
  border-left: 3px solid hsl(var(--violet) / .6);
  padding-left: 16px;
}

/* Sections */
.guide h2 {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 46px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid hsl(var(--line) / .8);
}
.guide h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-brand);
  margin-right: 10px;
  vertical-align: middle;
}
.guide p { margin-bottom: 15px; color: hsl(var(--foreground) / .92); }

.guide ul, .guide ol { margin: 0 0 18px; padding: 0; }
.guide li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  color: hsl(var(--foreground) / .9);
}
.guide ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--violet-light));
  box-shadow: 0 0 8px hsl(var(--violet) / .8);
}
.guide ol { counter-reset: steps; }
.guide ol li { counter-increment: steps; }
.guide ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: hsl(var(--violet) / .2);
  color: hsl(var(--violet-light));
  font-size: .72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.guide strong { color: hsl(var(--foreground)); }

/* Callouts */
.callout {
  border: 1px solid hsl(var(--line));
  border-left: 3px solid hsl(var(--violet));
  background: hsl(var(--surface) / .8);
  border-radius: 10px;
  padding: 15px 18px;
  margin: 20px 0;
  font-size: .92rem;
  color: hsl(var(--muted));
}
.callout strong { color: hsl(var(--violet-light)); }
.callout-warn { border-left-color: hsl(var(--accent)); }
.callout-warn strong { color: hsl(var(--accent)); }

/* Key tables */
.key-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: .9rem;
}
.key-table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  padding: 8px 12px;
  border-bottom: 1px solid hsl(var(--line));
}
.key-table td {
  padding: 10px 12px;
  border-bottom: 1px solid hsl(var(--line) / .55);
  color: hsl(var(--foreground) / .92);
}
.key-table tr:hover td { background: hsl(var(--surface) / .7); }
.key-table code, .guide code {
  font-family: "Consolas", "Menlo", monospace;
  font-size: .86em;
  background: hsl(var(--surface-light));
  border: 1px solid hsl(var(--line));
  border-radius: 5px;
  padding: 1px 7px;
  color: hsl(var(--violet-light));
  white-space: nowrap;
}

/* Version badge */
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  background: hsl(var(--surface) / .8);
  border: 1px solid hsl(var(--line));
  color: hsl(var(--muted));
}
.version-badge .live-dot { width: 7px; height: 7px; }

/* Related guides */
.related-title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: hsl(var(--muted));
  margin: 54px 0 14px;
}
.related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.related a {
  padding: 14px 16px;
  background: hsl(var(--surface) / .85);
  border: 1px solid hsl(var(--line) / .8);
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 500;
  color: hsl(var(--foreground) / .9);
  transition: transform .2s var(--ease-out), border-color .25s, color .2s;
}
.related a .rel-desc {
  display: block; margin-top: 6px;
  font-size: .82rem; font-weight: 400; color: var(--muted);
  line-height: 1.5;
}
.related a:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--violet) / .55);
  color: hsl(var(--violet-light));
}
