/* SuperDevAI docs. Colour, type and the top bar come from ../landing.css; this file is the docs layout only. */

.docs-body { background: var(--bg); }

.docs-topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.docs-topbar .nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.docs-topbar .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.docs-topbar .brand .docs-tag { margin-left: 4px; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 999px; font: 600 11px/1.4 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.docs-topbar .docs-actions { display: flex; align-items: center; gap: 8px; }
.docs-topbar .docs-actions a.text-link { color: var(--text-2); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.docs-topbar .docs-actions a.text-link:hover { color: var(--text); background: var(--surface-2); }
.docs-theme { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.docs-theme button { background: transparent; border: 0; color: var(--muted); padding: 6px 9px; cursor: pointer; font: 500 12px var(--font); }
.docs-theme button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.docs-menu-btn { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 6px 10px; cursor: pointer; font: 500 13px var(--font); }

.docs-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr) 220px; gap: 40px; max-width: 1320px; margin: 0 auto; padding: 0 24px; }

.docs-sidebar { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow-y: auto; padding: 28px 8px 40px 0; border-right: 1px solid var(--border); }
.docs-search { width: 100%; box-sizing: border-box; margin: 0 0 18px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: 14px var(--font); }
.docs-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.docs-nav-group { margin: 0 0 20px; }
.docs-nav-group h6 { margin: 0 0 6px; padding: 0 10px; font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint, var(--muted)); }
.docs-nav-group a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; line-height: 1.4; }
.docs-nav-group a:hover { background: var(--surface-2); color: var(--text); }
.docs-nav-group a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.docs-nav-empty { padding: 6px 10px; color: var(--muted); font-size: 13px; }
.docs-mobile-links { display: none; }

.docs-main { min-width: 0; padding: 36px 0 80px; }
.docs-breadcrumb { margin: 0 0 14px; font: 500 13px var(--font); color: var(--muted); }
.docs-breadcrumb a { color: var(--muted); text-decoration: none; }
.docs-breadcrumb a:hover { color: var(--text); }

.docs-article { max-width: 760px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.docs-article h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 12px; letter-spacing: -.03em; }
.docs-article .lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.docs-article h2 { font-size: 24px; margin: 44px 0 12px; padding-top: 8px; scroll-margin-top: 84px; }
.docs-article h3 { font-size: 18px; margin: 28px 0 8px; scroll-margin-top: 84px; }
.docs-article p { margin: 0 0 14px; }
.docs-article ul, .docs-article ol { margin: 0 0 16px; padding-left: 22px; }
.docs-article li { margin: 0 0 6px; }
.docs-article a { color: var(--accent-text); }
.docs-article strong { color: var(--text); }
.docs-article code { font: 13.5px var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.docs-article pre { margin: 0 0 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.docs-article pre code { background: none; border: 0; padding: 0; font-size: 13.5px; line-height: 1.6; }
.docs-article kbd { font: 12px var(--mono); padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); color: var(--text); }
.docs-article table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; display: block; overflow-x: auto; }
.docs-article th, .docs-article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs-article th { color: var(--text); font-weight: 600; background: var(--surface); }

.callout { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--warn, #d9a441); }
.callout.good { border-left-color: var(--good, #2fbf8a); }
.callout-title { display: block; margin-bottom: 4px; font-weight: 600; color: var(--text); }

.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps > li { position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps > li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font: 600 13px/26px var(--font); text-align: center; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.doc-card { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text-2) !important; text-decoration: none; transition: border-color .15s, transform .15s; }
.doc-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.doc-card strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 15.5px; }
.doc-card span { font-size: 14px; color: var(--muted); }

.docs-pager { display: flex; justify-content: space-between; gap: 14px; max-width: 760px; margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--border); }
.docs-pager a { flex: 1; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.docs-pager a:hover { border-color: var(--accent); }
.docs-pager a small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.docs-pager a.next { text-align: right; }
.docs-updated { margin-top: 18px; font-size: 13px; color: var(--muted); }

.docs-toc { position: sticky; top: 64px; align-self: start; padding: 36px 0 40px; font-size: 13px; }
.docs-toc h6 { margin: 0 0 8px; font: 600 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint, var(--muted)); }
.docs-toc a { display: block; padding: 4px 0 4px 12px; border-left: 1px solid var(--border); color: var(--muted); text-decoration: none; line-height: 1.4; }
.docs-toc a:hover, .docs-toc a.active { color: var(--text); border-left-color: var(--accent); }

.docs-footer { border-top: 1px solid var(--border); padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.docs-footer a { color: var(--muted); }

@media (max-width: 1100px) {
  .docs-shell { grid-template-columns: 240px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 820px) {
  .docs-shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px; gap: 0; }
  .docs-menu-btn { display: inline-flex; }
  .docs-topbar .docs-actions .hide-sm { display: none; }
  .docs-mobile-links { display: block; border-top: 1px solid var(--border); padding-top: 16px; }
  /* Opens in place above the article: a fixed panel would be positioned against the site styles, not the screen. */
  .docs-sidebar { display: none; position: static; height: auto; overflow: visible; padding: 20px 0 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .docs-sidebar.open { display: block; }
  .docs-main { padding-top: 24px; }
  .docs-pager { flex-direction: column; }
}
@media (max-width: 420px) {
  .docs-topbar .brand .docs-tag { display: none; }
}
