/* ---------- Guide step pages: sticky TOC + prev/next pager ---------- */
.guide-shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.guide-layout { display: grid; grid-template-columns: 230px 1fr; gap: 52px; padding: 3.2rem 0 2.6rem; align-items: start; }

.guide-toc { position: sticky; top: 92px; }
.guide-toc__label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.guide-toc__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; line-height: 1.3; color: var(--text-2); text-decoration: none; margin-bottom: 2px; }
.guide-toc__item .n { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--text-3); }
.guide-toc__item:hover { background: var(--paper-2); color: var(--text); }
.guide-toc__item.active { background: rgba(59,130,246,.09); color: var(--text); font-weight: 600; }
.guide-toc__item.active .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.guide-toc__all { display: block; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: none; }
.guide-toc__all:hover { text-decoration: underline; }

.guide-article.article { max-width: 720px; margin: 0; padding: 0; }
.guide-step-chip { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--accent); background: rgba(59,130,246,.08); border-radius: 999px; padding: 4px 13px; margin-bottom: 16px; }

.guide-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 2.8rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.guide-pager a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.guide-pager a:hover { border-color: var(--accent); background: var(--paper-2); }
.guide-pager .dir { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.guide-pager .t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.guide-pager__next { text-align: right; }
.guide-pager__next .dir { text-align: right; }
.guide-pager__all { grid-column: 1 / -1; text-align: center; }
.guide-pager__all .t { color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; padding-top: 2rem; }
  .guide-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
  .guide-toc__label, .guide-toc__all { display: none; }
  .guide-toc__item { flex-shrink: 0; white-space: nowrap; margin-bottom: 0; }
}
@media (max-width: 560px) {
  .guide-pager { grid-template-columns: 1fr; }
  .guide-pager__next { text-align: left; }
  .guide-pager__next .dir { text-align: left; }
}

/* ---------- Guide hub page (guide.html): numbered step badges in headings ---------- */
.guide-article h2 .ft-num,
.ft-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;background:rgba(59,130,246,.1);color:var(--accent);font-family:var(--mono);font-weight:700;font-size:12px;margin-right:9px;vertical-align:middle}
.guide-article h2{scroll-margin-top:24px}
