/* ─── GUIDE PAGE ─── */
body.guide-page {
  overflow: auto;
  min-height: 100%;
}

.guide-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  color: var(--text2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: color .15s, border-color .15s, background .15s;
}

.guide-back:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

.guide-header {
  text-align: center;
  margin-bottom: 2rem;
}

.guide-logo {
  font-size: 3rem;
  display: block;
  margin-bottom: .5rem;
}

.guide-header h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: .5rem;
}

.guide-lead {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.5;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.guide-toc a {
  color: var(--text2);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color .15s, border-color .15s;
}

.guide-toc a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.guide-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1rem;
}

.guide-section h2 {
  font-size: 1.35rem;
  margin-bottom: .75rem;
  color: var(--accent);
}

.guide-section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 .5rem;
}

.guide-section p,
.guide-section li {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: .75rem;
}

.guide-section ol,
.guide-section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.guide-section code {
  font-family: ui-monospace, monospace;
  font-size: .88em;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1rem .35rem;
}

.guide-note,
.guide-tip {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .92rem;
}

.guide-figure {
  margin: 1.25rem 0;
}

.guide-figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

.guide-figure figcaption {
  text-align: center;
  color: var(--text3);
  font-size: .82rem;
  margin-top: .5rem;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
}

.guide-table th {
  background: var(--surface2);
  color: var(--text2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.guide-table td:first-child {
  white-space: nowrap;
}

.guide-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.guide-footer .btn {
  display: inline-flex;
  text-decoration: none;
}
