/* صفحة الدليل الشامل (/guide) */
.gd-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 12px; padding-bottom: 40px; }
.gd-toc { position: sticky; top: calc(var(--topbar-h, 84px) + 16px); max-height: calc(100vh - var(--topbar-h, 84px) - 32px); overflow-y: auto; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); scrollbar-width: thin; }
.gd-toc nav { display: grid; gap: 2px; }
.gd-toc a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; color: var(--text-muted); font-size: 13.5px; font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.gd-toc a .icon { width: 17px; height: 17px; flex: none; }
.gd-toc a:hover { background: var(--surface-2); color: var(--text-primary); }
.gd-toc a.is-on { background: var(--accent-soft); color: var(--text-primary); }
.gd-toc a.is-on .icon { color: var(--accent); }
.gd-body { display: grid; gap: 22px; min-width: 0; }
.gd-sec { padding: 26px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); scroll-margin-top: calc(var(--topbar-h, 84px) + 18px); }
.gd-sec-h { display: flex; align-items: center; gap: 16px; }
.gd-sec-h h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.gd-sec-h p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.gd-ico { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.gd-ico .icon { width: 26px; height: 26px; }
.gd-where { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.gd-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted); font-size: 12px; font-weight: 700; }
.gd-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.gd-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 14px; }
.gd-card { padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-2); }
.gd-card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 800; }
.gd-card p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }
.gd-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 800; text-decoration: none; }
.gd-link .icon { width: 17px; height: 17px; transition: transform .2s; }
.gd-link:hover .icon { transform: translateX(-4px); }
.gd-faq { display: grid; gap: 10px; margin-top: 18px; }
.gd-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.gd-faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq summary::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; opacity: .6; flex: none; }
.gd-faq details[open] summary::after { transform: rotate(-135deg); }
.gd-faq details p { margin: 0; padding: 0 18px 16px; color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }
@media (max-width: 900px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gd-toc { position: sticky; top: var(--topbar-h, 72px); z-index: 8; max-height: none; overflow: visible; padding: 6px; border-radius: 999px; }
  .gd-toc nav { display: flex; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .gd-toc nav::-webkit-scrollbar { display: none; }
  .gd-toc a { flex: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
  .gd-toc a .icon { display: none; }
  .gd-sec { padding: 20px 16px; }
  .gd-sec-h { align-items: flex-start; }
}

.gd-search { position: relative; max-width: 520px; margin: 22px auto 0; }
.gd-search svg { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }
.gd-search input { width: 100%; box-sizing: border-box; padding: 14px 18px; padding-inline-start: 46px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-primary); font: inherit; font-size: 15px; }
.gd-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gd-empty { padding: 40px 20px; border: 1px dashed var(--border); border-radius: 22px; text-align: center; color: var(--text-muted); }
.gd-toc a[hidden], .gd-sec[hidden], .gd-card[hidden], .gd-faq details[hidden] { display: none; }
