/* ============================================================================
   Malum Bot paneli -- Kullanım Kılavuzu stilleri
   panel.css tokenlarını kullanır (--card, --line, --acc, --dim ...).
   ========================================================================== */

.guide { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 16px; align-items: start; }
.guide-side {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; position: sticky; top: 18px; max-height: calc(100vh - 40px);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.guide-side .search { width: 100%; }
.guide-toc { overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 2px; }
.guide-cat-t {
  font-size: 10.5px; letter-spacing: .1em; font-weight: 700; color: var(--acc2);
  text-transform: uppercase; padding: 2px 8px;
}
.guide-toc .nav { padding: 6px 10px; font-size: 12.5px; border-radius: 6px; }
.guide-toc .nav.on { background: var(--acc-bg); color: #fff; }
.guide-toc .nav .k { margin-left: auto; font-size: 10.5px; color: var(--dim2); }
.guide-empty { padding: 10px 8px; color: var(--dim); font-size: 12px; }

.guide-main { min-width: 0; }
.guide-main .ch .grow { flex-grow: 1; }
.guide-main .ch .ver {
  font-size: 11px; color: var(--dim); border: 1px solid var(--line2);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.guide-body { display: block; padding: 20px 24px 26px; max-width: 900px; }
.guide-body h2 {
  margin: 0 0 12px; font-size: 19px; font-weight: 650; letter-spacing: -.01em;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.guide-body h3 { margin: 24px 0 8px; font-size: 14.5px; font-weight: 600; color: var(--acc2); }
.guide-body h4 { margin: 18px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.guide-body p { margin: 9px 0; color: var(--fg2); line-height: 1.65; }
.guide-body ul, .guide-body ol { margin: 8px 0 12px; padding-left: 22px; color: var(--fg2); }
.guide-body li { margin: 5px 0; line-height: 1.6; }
.guide-body b, .guide-body strong { color: var(--fg); font-weight: 600; }
.guide-body code, .guide-body .mono {
  font-family: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  font-size: 12px; background: #26262e; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; color: var(--acc2);
}
.guide-body a { color: var(--acc2); text-decoration: none; border-bottom: 1px dashed #5a4fa8; cursor: pointer; }
.guide-body a:hover { color: #fff; border-bottom-color: var(--acc2); }

.guide-body table.gt {
  width: 100%; border-collapse: collapse; margin: 10px 0 16px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  font-size: 12.5px;
}
.guide-body table.gt th {
  text-align: left; background: #202027; color: var(--dim);
  font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 11px; border-bottom: 1px solid var(--line); font-weight: 600;
}
.guide-body table.gt td {
  padding: 8px 11px; border-bottom: 1px solid var(--row); color: var(--fg2);
  vertical-align: top; line-height: 1.55;
}
.guide-body table.gt tr:last-child td { border-bottom: 0; }
.guide-body table.gt td:first-child { color: var(--fg); white-space: nowrap; }

.guide-body .note, .guide-body .warn {
  margin: 14px 0; padding: 10px 13px; border-radius: 8px; font-size: 12.5px;
  line-height: 1.6; color: var(--fg2);
}
.guide-body .note { background: var(--acc-bg); border: 1px solid #36305c; }
.guide-body .warn { background: var(--warn-bg); border: 1px solid #5a4a2a; color: #f0c98a; }
.guide-body .note b, .guide-body .warn b { color: #fff; }

.guide-foot {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px 16px;
  border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px;
}
.guide-foot .grow { flex-grow: 1; }

@media (max-width: 980px) {
  .guide { grid-template-columns: 1fr; }
  .guide-side { position: static; max-height: none; }
  .guide-toc { max-height: 220px; }
}
