/* Docs-only styles. Everything else (layout, sidebar, tabs, tables, colours) comes from the console's app.css. */
.docs-article { max-width: 860px; margin: 0 auto; padding: 2.25rem 2rem 1rem; width: 100%; line-height: 1.65; color: var(--text); }
.docs-article h1 { font-size: 1.9rem; font-weight: 700; margin: 0 0 1rem; }
.docs-article h2 { font-size: 1.35rem; margin: 2.2rem 0 .7rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); }
.docs-article h3 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
.docs-article p, .docs-article li { font-size: .95rem; }
.docs-article a { color: var(--accent); }
.docs-article img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); margin: .5rem 0; }
.docs-article figure { margin: 1rem 0; }
.docs-article figcaption { font-size: .8rem; color: var(--text2); text-align: center; }
.docs-article code { background: var(--bg2); padding: .12rem .35rem; border-radius: 4px; font-size: .85em; }
.docs-article pre { background: #0f172a; color: #e2e8f0; padding: 1rem 1.1rem; border-radius: var(--radius-sm, 6px); overflow-x: auto; font-size: .83rem; }
.docs-article pre code { background: none; padding: 0; color: inherit; }
.docs-article table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .88rem; display: block; overflow-x: auto; }
.docs-article th, .docs-article td { border: 1px solid var(--border); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.docs-article th { background: var(--bg2); }
.docs-code-title { font-size: .75rem; font-weight: 600; color: var(--text2); margin: 1rem 0 -.5rem; }
.docs-hint { border-left: 4px solid var(--accent); background: var(--bg2); border-radius: var(--radius-sm, 6px); padding: .65rem 1rem; margin: 1.1rem 0; }
.docs-hint > :first-child { margin-top: 0; } .docs-hint > :last-child { margin-bottom: 0; }
.docs-hint--warning { border-color: #f59e0b; } .docs-hint--danger { border-color: #ef4444; } .docs-hint--success { border-color: #22c55e; }
.docs-tabs { margin: 1.2rem 0; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); overflow: hidden; }
.docs-tabs .tabs { display: flex; flex-wrap: wrap; background: var(--bg2); border-bottom: 1px solid var(--border); }
.docs-tabs__panel { display: none; padding: .25rem 1.1rem 1rem; } .docs-tabs__panel.active { display: block; }
.docs-video { position: relative; padding-top: 56.25%; margin: 1.2rem 0; }
.docs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-sm, 6px); }
.docs-pager { display: flex; justify-content: space-between; gap: 1rem; margin: 3rem 0 1rem; }
.docs-pager a { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); padding: .7rem 1rem; text-decoration: none; min-width: 40%; }
.docs-pager a small { color: var(--text2); } .docs-pager__next { margin-left: auto; text-align: right; }
.docs-footer { padding: .9rem 2rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text2); background: var(--bg2); margin-top: auto; }
.docs-footer a { color: var(--text2); }
.docs-search { position: relative; padding: 0 .9rem .6rem; }
.docs-search i { position: absolute; left: 1.6rem; top: .62rem; font-size: .8rem; color: var(--text2); }
.docs-search input { width: 100%; padding: .45rem .6rem .45rem 1.9rem; border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); background: var(--bg2); color: var(--text); font-size: .82rem; }
#docs-results { position: absolute; left: .9rem; right: .9rem; top: 2.5rem; z-index: 50; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm, 6px); max-height: 60vh; overflow: auto; display: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
#docs-results a { display: block; padding: .5rem .7rem; font-size: .8rem; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); }
#docs-results a small { display: block; color: var(--text2); }
.docs-topbar { display: none; }
.docs-backdrop { display: none; }
@media (max-width: 768px) {
  .docs-topbar { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; border-bottom: 1px solid var(--border); background: var(--bg2); font-weight: 600; }
  .docs-topbar button { background: none; border: 0; font-size: 1.2rem; color: var(--text); cursor: pointer; }
  .docs-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 150; }
  .docs-article { padding: 1.2rem 1rem; }
}

/* Home intro video (same clip as the www hero) */
.docs-hero-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: .5rem 0 1rem; border-radius: var(--radius-sm, 6px); background: #0f172a; }
