/* ---------- Documentation page (page-docs.php) ---------- */
.docs__hero { padding-bottom: 8px; }
.docs__lead { margin-top: 14px; max-width: 760px; color: var(--muted); font-size: 18px; line-height: 2; }
.docs__count { display: inline-block; margin-inline-start: 10px; padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--gold-light); }
.docs__search { display: flex; align-items: center; gap: 12px; max-width: 640px; margin-top: 26px; padding: 0 20px; height: 56px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--muted); transition: border-color 0.3s, box-shadow 0.3s; }
.docs__search:focus-within { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.docs__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.docs__search input::placeholder { color: var(--dim); }
.docs__layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding-top: 44px; padding-bottom: 96px; align-items: start; }
.docs__nav { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100dvh - var(--header-h) - 40px); overflow-y: auto; padding-inline-end: 6px; }
.docs__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs__nav li[hidden] { display: none; }
.docs__nav a { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; color: var(--muted); font-size: 15px; transition: background 0.25s, color 0.25s; }
.docs__nav a:hover { color: var(--text); background: var(--surface); }
.docs__nav a.is-active { color: var(--gold-light); background: var(--surface-2); box-shadow: inset -3px 0 0 var(--gold); }
.docs__content { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.docs__section { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(20, 20, 24, 0.55)); scroll-margin-top: calc(var(--header-h) + 20px); }
.docs__section[hidden], .docs__article[hidden] { display: none; }
.docs__section-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.docs__section-head h2 { margin: 0; font-size: 28px; line-height: 1.5; color: var(--text); }
.docs__section-head p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }
.docs__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--gold-light); }
.docs__icon .icon { width: 26px; height: 26px; }
.docs__article { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 20px); }
.docs__article h3 { position: relative; margin: 0 0 12px; font-size: 21px; line-height: 1.7; color: var(--gold-light); }
.docs__anchor { position: absolute; inset-inline-start: -26px; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity 0.2s; }
.docs__article:hover .docs__anchor, .docs__anchor:focus-visible { opacity: 1; }
.docs__body { font-size: 17px; line-height: 2.1; color: rgba(245, 240, 230, 0.88); }
.docs__body > * + * { margin-top: 0.9em; }
.docs__body ul, .docs__body ol { padding-inline-start: 1.5em; }
.docs__body ul { list-style: none; }
.docs__body ul li { position: relative; }
.docs__body ul li::before { content: ""; position: absolute; inset-inline-start: -1.15em; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.docs__body ol { list-style: persian; }
.docs__body ol li::marker { color: var(--gold); font-weight: 800; }
.docs__body li + li { margin-top: 0.35em; }
.docs__body strong { color: var(--text); }
.docs__body code { padding: 1px 8px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold-light); font-size: 0.88em; }
.docs-note { padding: 14px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); border-inline-start: 4px solid var(--gold); background: rgba(214, 178, 98, 0.07); color: var(--text); font-size: 16px; line-height: 2; }
.docs__empty { padding: 40px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.docs__empty[hidden] { display: none; }
.docs__empty a { color: var(--gold-light); text-decoration: underline; }
.docs__cta { margin-top: 12px; padding: 36px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); background: radial-gradient(120% 140% at 50% 0%, rgba(214, 178, 98, 0.16), transparent 60%), var(--surface); }
.docs__cta h2 { margin: 0 0 8px; font-size: 26px; }
.docs__cta p { margin: 0 auto 22px; max-width: 520px; color: var(--muted); }
@media (max-width: 980px) {
	.docs__layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
	.docs__nav { position: sticky; top: calc(var(--header-h) - 2px); z-index: 5; max-height: none; margin-inline: -16px; padding: 10px 16px; overflow-x: auto; overflow-y: hidden; background: rgba(10, 10, 12, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
	.docs__nav ul { flex-direction: row; gap: 6px; width: max-content; }
	.docs__nav a { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; }
	.docs__nav a.is-active { box-shadow: none; border-color: var(--gold); }
	.docs__section { padding: 22px 18px; }
	.docs__section-head h2 { font-size: 23px; }
	.docs__icon { width: 46px; height: 46px; }
	.docs__body { font-size: 16px; }
	.docs__anchor { display: none; }
}
