/* Per-plugin guide pages (/plugin/{slug}). Reuses the landing.css design tokens
   (--grn, --ink, --bd, --soft, --grn-tint) and the .dark ancestor convention. */

.pg-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px 10px; }

.pg-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: #64748b; padding-top: 26px; }
.pg-breadcrumb a { color: #64748b; text-decoration: none; }
.pg-breadcrumb a:hover { color: var(--grn); }
.pg-breadcrumb span.sep { opacity: .45; }
.dark .pg-breadcrumb, .dark .pg-breadcrumb a { color: #94a3b8; }

.pg-hero { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0 6px; }
.pg-hero-icon { width: 60px; height: 60px; border-radius: 15px; flex: 0 0 60px; overflow: hidden; display: grid; place-items: center; background: var(--grn-tint); color: var(--grn); }
.pg-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.pg-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: rgba(8,160,90,.1); color: var(--grn); }
.pg-h1 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; color: var(--ink); }
.pg-lede { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: #475569; }
.dark .pg-lede { color: #cbd5e1; }

.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.pg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; text-decoration: none; background: var(--grn); color: #fff; transition: background .15s; }
.pg-btn:hover { background: var(--grn-600); }
.pg-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--bd); }
.pg-btn-ghost:hover { border-color: var(--grn); color: var(--grn); }

.pg-section { padding: 30px 0 4px; }
.pg-section h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 0 0 6px; }
.pg-section > p { color: #475569; line-height: 1.6; margin: 0; }
.dark .pg-section > p { color: #cbd5e1; }

.pg-steps { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 14px; }
.pg-steps > li { counter-increment: s; position: relative; padding: 20px 22px 20px 64px; border: 1px solid var(--bd); border-radius: 14px; background: #fff; }
.dark .pg-steps > li { background: var(--soft); }
.pg-steps > li::before { content: counter(s); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--grn); background: var(--grn-tint); }
.pg-steps h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.pg-steps p { margin: 0; color: #475569; line-height: 1.6; font-size: 14.5px; }
.pg-steps p + p { margin-top: 8px; }
.dark .pg-steps p { color: #cbd5e1; }
.pg-steps a { color: var(--grn); text-decoration: none; }
.pg-steps a:hover { text-decoration: underline; }
.pg-steps code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; background: rgba(8,160,90,.09); color: var(--grn-700); padding: 1px 6px; border-radius: 6px; }
.dark .pg-steps code { color: #5eead4; background: rgba(94,234,212,.1); }
.pg-steps pre { margin: 12px 0 0; padding: 14px 16px; border-radius: 10px; background: #0b0f14; color: #e2e8f0; overflow: auto; font-size: 13px; line-height: 1.55; }
.pg-steps pre code { background: none; color: inherit; padding: 0; }

.pg-docnote { margin: 16px 0 0; font-size: 14px; color: #64748b; }
.pg-docnote a { color: var(--grn); text-decoration: none; }
.pg-docnote a:hover { text-decoration: underline; }
.dark .pg-docnote { color: #94a3b8; }

.pg-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.pg-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: #475569; }
.dark .pg-checks li { color: #cbd5e1; }
.pg-checks svg { flex: 0 0 18px; color: var(--grn); margin-top: 1px; }

.pg-faq { margin: 16px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pg-faq details { border: 1px solid var(--bd); border-radius: 12px; background: #fff; }
.dark .pg-faq details { background: var(--soft); }
.pg-faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 15px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; color: var(--grn); font-weight: 700; font-size: 18px; line-height: 1; }
.pg-faq details[open] summary::after { content: '\2013'; }
.pg-faq p { margin: 0; padding: 0 18px 16px; color: #475569; line-height: 1.6; font-size: 14.5px; }
.dark .pg-faq p { color: #cbd5e1; }
.pg-faq a { color: var(--grn); }

.pg-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 0; }
.pg-rel-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--bd); border-radius: 13px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
.dark .pg-rel-card { background: var(--soft); }
.pg-rel-card:hover { border-color: var(--grn); transform: translateY(-2px); }
.pg-rel-ic { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; overflow: hidden; display: grid; place-items: center; background: var(--grn-tint); color: var(--grn); }
.pg-rel-ic img { width: 100%; height: 100%; object-fit: cover; }
.pg-rel-name { font-weight: 700; font-size: 14px; color: var(--ink); }
.pg-rel-tag { font-size: 12px; color: #64748b; }
.dark .pg-rel-tag { color: #94a3b8; }

.pg-cta-wrap { max-width: 860px; margin: 40px auto 0; padding: 0 20px; }

@media (max-width: 640px) {
    .pg-h1 { font-size: 25px; }
    .pg-hero { gap: 14px; }
    .pg-hero-icon { width: 50px; height: 50px; flex-basis: 50px; }
}
