/* Nodariq Docs: sidebar, article, "On this page". Colors come from the site theme in /style.css. */
.dc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 40px; max-width: 1240px; margin: 0 auto; padding: 32px 20px 64px; }
.dc-side { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px; }
.dc-search, .dc-filter { width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-size: 0.95rem; margin-bottom: 18px; }
.dc-search:focus, .dc-filter:focus { outline: 2px solid var(--accent); }
.dc-sec { margin-bottom: 18px; }
.dc-sec b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 6px 10px; }
.dc-sec a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); font-size: 0.95rem; }
.dc-sec a:hover { background: var(--bg-card); color: var(--text); }
.dc-sec a.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.dc-main { min-width: 0; max-width: 760px; }
.dc-main h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 18px; }
.dc-crumb { color: var(--accent); font-weight: 700; font-size: 0.9rem; margin: 0 0 6px; }
.dc-body { font-size: 1.04rem; line-height: 1.7; }
.dc-body h2 { font-size: 1.45rem; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.dc-body p, .dc-body ul, .dc-body ol { margin: 0 0 16px; }
.dc-body li { margin-bottom: 6px; }
.dc-body code { font-size: 0.9em; }
.dc-steps { counter-reset: s; list-style: none; padding: 0; }
.dc-steps li { counter-increment: s; position: relative; padding: 2px 0 10px 42px; }
.dc-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; font-size: 0.9rem; }
.dc-note { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--bg-card); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.dc-note.warn { border-left-color: #d9b56a; }
.dc-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 0.95rem; }
.dc-table th, .dc-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.dc-table th { color: var(--muted); font-weight: 700; }
.dc-cmd { border: 1px solid var(--border); background: var(--bg-card); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.dc-cmd-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.dc-cmd-head code { font-weight: 700; color: var(--accent); background: none; padding: 0; font-size: 1rem; }
.dc-cmd-head span { color: var(--muted); }
.dc-cmd ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.93rem; }
.dc-cmd li { padding: 4px 0; color: var(--muted); }
.dc-cmd li code { color: var(--text); margin-right: 6px; }
.dc-pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.dc-pager a { flex: 1; max-width: 48%; border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; color: var(--text); font-weight: 700; background: var(--bg-card); }
.dc-pager a:hover { border-color: var(--accent); color: var(--text); }
.dc-pager a.nx { text-align: right; margin-left: auto; }
.dc-pager small { display: block; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.dc-toc { position: sticky; top: 84px; align-self: start; font-size: 0.9rem; }
.dc-toc b { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.dc-toc a { display: block; color: var(--muted); padding: 4px 0; }
.dc-toc a:hover { color: var(--accent); }
.dc-menu { display: none; }
@media (max-width: 1100px) { .dc-layout { grid-template-columns: 230px minmax(0, 1fr); } .dc-toc { display: none; } }
@media (max-width: 820px) {
 .dc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 16px; }
 .dc-side { position: static; max-height: none; display: none; margin-bottom: 16px; }
 .dc-side.open { display: block; }
 .dc-menu { display: inline-block; margin-bottom: 18px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
 .dc-pager a { max-width: none; }
}
