.guide-header {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem;
}
.guide-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--meta-blue);
  display: block;
  margin-bottom: 0.85rem;
}
.guide-header h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.guide-header p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 2rem;
}
.article-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}
.article-toolbar .kicker-pill { margin-bottom: 0; }
.markdown-copy {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font: 500 .8125rem/1.2 var(--sans);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.markdown-copy:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.markdown-copy:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.markdown-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.tldr-box {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 1.65rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.tldr-item small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 0.3rem;
}
.tldr-item span {
  font-size: 0.92rem;
  font-weight: 600;
}
.guide-step {
  padding: 3rem 0;
  border-top: 1px solid var(--divider);
}
.step-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--meta-blue);
  display: block;
  margin-bottom: 0.45rem;
}
.guide-step h2 {
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.85rem;
}
.guide-step p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.code-card {
  background: #0b0b0d;
  color: #f5f5f7;
  border-radius: 20px;
  padding: 1.4rem;
  margin-top: 1rem;
}
.code-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  color: #8e8e96;
  font-weight: 600;
}
.copy-pill {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid transparent;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
}
.copy-pill:hover { background: #ffffff; color: #0a0a0b; border-color: #0a0a0b; }
.code-pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #e4e4e7;
  white-space: pre-wrap;
}
.guide-cta {
  margin: 2rem 0 3.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.guide-cta h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 0.3rem;
}
.guide-cta p {
  font-size: 0.92rem;
  color: var(--muted);
}
@media (max-width: 720px) {
.tldr-box { grid-template-columns: 1fr; }

}

.step ul,
.step ol {
  max-width: 65ch;
  margin-top: 1rem;
  padding-left: 1.4rem;
  display: grid;
  gap: .65rem;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-2);
}
.step p strong,
.step li strong {
  color: var(--ink);
  font-weight: 600;
}
.step li code,
.guide-table code {
  font: .88em var(--mono);
  padding: .1em .35em;
  background: var(--plate);
  border-radius: 4px;
  color: var(--ink);
}

.guide-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.55;
  text-align: left;
}
.guide-table th,
.guide-table td {
  padding: .85rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.guide-table thead th {
  background: var(--plate);
  color: var(--ink);
  font-weight: 600;
  font-size: .85rem;
}
.guide-table tbody tr:last-child th,
.guide-table tbody tr:last-child td {
  border-bottom: 0;
}
.guide-table td {
  color: var(--text-2);
}
.guide-table td:first-child,
.guide-table td strong {
  color: var(--ink);
}

@media (max-width: 560px) {
  .step ul,
  .step ol {
    padding-left: 1.2rem;
  }
  .guide-table th,
  .guide-table td {
    padding: .75rem .8rem;
    font-size: .9rem;
  }
}

.guide-figure {
  margin-top: 1.5rem;
}
.guide-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.guide-figure figcaption {
  margin-top: .65rem;
  max-width: 65ch;
  font-family: var(--sans);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--meta);
}
