/* ---------- nav active state (mirrors explorer.css's .current) ---------- */

.nav-links a.current,
.nav-mobile a.current {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- guide hero ---------- */

.guide-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 32px 20px;
}

.guide-hero h1 {
  font-size: clamp(28px, 3vw + 12px, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 14px 0 16px;
}

.guide-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0 0 28px;
  max-width: 640px;
}

.guide-hero-sub a { color: var(--accent-ink); text-decoration: underline; }

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 16px 0;
  border-top: 1px solid var(--border-tint-rule);
  border-bottom: 1px solid var(--border-tint-rule);
}

.guide-toc a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
}
.guide-toc a:hover { color: var(--accent-ink); }

/* ---------- guide sections ---------- */

.guide-section { padding-top: 44px; padding-bottom: 44px; }
.guide-section h2 { font-size: 26px; }
.guide-section + .guide-section { border-top: 1px solid var(--border-tint-rule); }

.guide-section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-ink);
}

.guide-step-label {
  font-weight: 700;
  font-size: 15px;
  margin: 26px 0 10px;
}
.guide-step-label:first-of-type { margin-top: 22px; }

.guide-section .code-panel { margin-bottom: 14px; }
.guide-section .code-panel:last-of-type { margin-bottom: 0; }

.guide-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mono-muted);
  line-height: 1.55;
  margin: 12px 0 0;
}

/* ---------- tables ---------- */

.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}

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

.guide-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mono-muted);
  font-weight: 500;
}

.guide-table td:first-child { white-space: nowrap; font-weight: 600; }
.guide-table code { white-space: nowrap; }

.guide-group-heading {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-group-heading:first-of-type { margin-top: 24px; }

.guide-group-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--bg-badge);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ---------- callout ---------- */

.guide-callout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 22px 26px;
}

.guide-callout p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-body);
  margin: 0 0 14px;
}

.guide-callout ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-callout li {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-body);
}

/* ---------- draft banner (legal/trust pages) ---------- */

.draft-banner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 32px;
  background: var(--bg-badge);
  border-bottom: 1px solid var(--border-tint-rule);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-ink);
  line-height: 1.6;
}

.draft-banner strong { font-weight: 700; }

/* ---------- legal page body copy ---------- */

.guide-section h3.legal-heading {
  font-size: 17px;
  font-weight: 700;
  margin: 30px 0 10px;
}
.guide-section h3.legal-heading:first-of-type { margin-top: 6px; }

.guide-section .legal-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--mono-muted);
  margin: -6px 0 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .guide-table { font-size: 13.5px; }
  .guide-table th, .guide-table td { padding: 8px 10px; }
}
