body.guide-page {
  background: #050507;
  color: #f2f3f5;
  padding-top: 56px;
  --bg: #050507;
  --amber: #e8b650;
}
.guide-page .wrap { width: min(1160px, calc(100% - 56px)); }
.guide-page .w-edit { color: #e8b650; }
.guide-page .w-name { color: #f4f5f7; }

.guide { padding: 36px 0 96px; }
.guide-hero { max-width: 720px; display: grid; gap: 14px; margin-bottom: 8px; }
.guide-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.guide-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--text-2); }

.guide-toc {
  position: sticky; top: 56px; z-index: 15;
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  padding: 14px 0 16px; margin: 0 0 8px;
  background: linear-gradient(#050507 75%, rgba(5,5,7,0));
  scrollbar-width: none;
}
.guide-toc::-webkit-scrollbar { display: none; }
.guide-toc a {
  flex: none; font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  background: rgba(255,255,255,0.03);
}
.guide-toc a:hover { color: var(--text); text-decoration: none; border-color: rgba(96,165,250,0.45); }
.guide-toc a.is-on { color: #f4f5f7; border-color: rgba(232,182,80,0.5); background: rgba(232,182,80,0.1); }

.guide-section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px; align-items: start;
  padding: 48px 0 56px; border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}
.guide-copy { display: grid; gap: 14px; align-content: start; }
.guide-copy h2 { font-size: clamp(28px, 3vw, 40px); }
.guide-copy p, .guide-copy li { color: var(--text-2); }
.guide-copy ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.guide-copy b { color: var(--text); font-weight: 650; }
.guide-kicker { display: flex; align-items: center; gap: 10px; color: #e8b650; margin-bottom: 0; }
.guide-kicker i[data-lucide] { width: 18px; height: 18px; }

.guide-shot { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.guide-shot-frame {
  position: relative; width: 100%; min-height: 280px; flex: 1 1 auto;
  border-radius: 16px; background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)),
    #0b0c10;
  border: 1px dashed rgba(255,255,255,0.16);
  overflow: hidden;
}
.guide-shot-frame.has-img { border-style: solid; border-color: rgba(255,255,255,0.08); box-shadow: 0 24px 60px rgba(0,0,0,0.45); }
.guide-shot-frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.guide-shot-frame.has-img img { display: block; }
.guide-shot-empty {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px;
  text-align: center; padding: 24px; color: var(--text-3); font-size: 14px;
}
.guide-shot-frame.has-img .guide-shot-empty { display: none; }
.guide-shot figcaption { font-size: 13px; color: var(--text-3); line-height: 1.45; }

.guide-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-card {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  background: rgba(255,255,255,0.03); display: grid; gap: 6px;
}
.guide-card h3 { font-size: 17px; }
.guide-card p { color: var(--text-2); font-size: 15px; }

.guide-page .credits { padding: 28px 0 8px; border-top: 1px solid var(--line); background: none; scroll-margin-top: 124px; }
.guide-page .credits h2 { margin: 0 0 28px; font-size: clamp(28px, 4vw, 44px); }
.credit-cols { columns: 3; column-gap: 40px; }
@media (max-width: 1000px) { .credit-cols { columns: 2; } }
@media (max-width: 640px) { .credit-cols { columns: 1; } }
.credit { break-inside: avoid; margin-bottom: 32px; }
.credit h3 { margin: 0 0 10px; font-size: 17px; color: #e8b650; }
.credit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.credit li { color: var(--text-2); font-size: 14.5px; line-height: 1.45; padding-left: 16px; position: relative; }
.credit li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; transform: rotate(45deg); background: #c48d34; }
.credit li b, .credit code { color: var(--text); font-weight: 600; }
.credit code { font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

.guide-cta {
  margin-top: 8px; padding: 32px; border-radius: 22px; display: grid; gap: 14px; justify-items: start;
  background: rgba(232,182,80,0.06); border: 1px solid rgba(232,182,80,0.22);
}
.guide-cta .cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .guide-page .wrap { width: calc(100% - 32px); }
  .guide-section { grid-template-columns: 1fr; gap: 22px; padding: 36px 0 40px; }
  .guide-shot-frame { min-height: 0; aspect-ratio: 16 / 10; }
  .guide-pair { grid-template-columns: 1fr; }
  .guide-toc { top: 56px; }
}
