/* Enterprise Docs - Light Theme */
:root {
  --docs-bg: #f8fafc;
  --docs-surface: #ffffff;
  --docs-text: #0f172a;
  --docs-text-muted: #475569;
  --docs-border: #e2e8f0;
  --docs-link: #1d4ed8;
  --docs-link-hover: #1e40af;
  --docs-code-bg: #f1f5f9;
  --docs-code-border: #e2e8f0;
  --docs-radius: 8px;
  --docs-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
* { box-sizing: border-box; }
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; margin: 0; background: var(--docs-bg); color: var(--docs-text); line-height: 1.6; font-size: 15px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 24px; }
.top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.badge { background: var(--docs-text); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.doc { background: var(--docs-surface); border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--docs-shadow); }
.card { background: var(--docs-surface); border: 1px solid var(--docs-border);
  border-radius: var(--docs-radius); padding: 20px; margin-bottom: 12px; box-shadow: var(--docs-shadow); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.meta { color: var(--docs-text-muted); font-size: 14px; }
.empty { color: #64748b; }
a { color: var(--docs-link); text-decoration: none; }
a:hover { color: var(--docs-link-hover); text-decoration: underline; }
h1 { margin: 0; font-size: 1.75rem; font-weight: 600; }
h2, h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-weight: 600; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
p, li { line-height: 1.7; }
code { background: var(--docs-code-bg); border: 1px solid var(--docs-code-border);
  border-radius: 4px; padding: 2px 6px; font-size: 0.9em;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace; }
pre { background: var(--docs-code-bg); border: 1px solid var(--docs-code-border);
  border-radius: var(--docs-radius); padding: 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
pre code { background: none; border: none; padding: 0; }
ul, ol { padding-left: 1.5rem; }
.docs-header { background: var(--docs-surface); border-bottom: 1px solid var(--docs-border); padding: 12px 0; }
.docs-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.docs-header-nav { display: flex; gap: 16px; align-items: center; }
.docs-header-link { font-size: 14px; font-weight: 500; color: var(--docs-text-muted); }
.docs-header-link:hover { color: var(--docs-link); text-decoration: none; }
.docs-logo { font-weight: 600; font-size: 1rem; color: var(--docs-text); }
.docs-logo:hover { color: var(--docs-link); text-decoration: none; }
.docs-main { padding: 32px 0 48px; }
.docs-api-main { padding: 0; }
.docs-api-main rapi-doc { display: block; height: calc(100vh - 57px); width: 100%; }
.docs-card-api .meta { margin: 8px 0 0; }
.docs-filter-wrap { margin-bottom: 24px; }
.docs-filter { width: 100%; max-width: 360px; padding: 10px 14px; border: 1px solid var(--docs-border); border-radius: var(--docs-radius); font-size: 14px; font-family: inherit; }
.docs-filter:focus { outline: 2px solid var(--docs-link); outline-offset: 2px; }
.docs-card-list { display: flex; flex-direction: column; gap: 12px; }
.docs-feature-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; max-width: 1200px; margin: 0 auto; padding: 24px; }
@media (max-width: 768px) { .docs-feature-layout { grid-template-columns: 1fr; } }
.docs-nav { position: sticky; top: 16px; align-self: start; }
.docs-nav-inner { background: var(--docs-surface); border: 1px solid var(--docs-border); border-radius: var(--docs-radius); padding: 16px; box-shadow: var(--docs-shadow); }
.docs-breadcrumb { display: block; margin-bottom: 12px; font-size: 14px; }
.docs-nav-list { list-style: none; padding: 0; margin: 0; }
.docs-nav-list li { margin-bottom: 6px; }
.docs-nav-list a { font-size: 14px; }
.docs-feature-main { min-width: 0; }
.docs-feature-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 24px; }
.doc-section-title { font-size: 1rem; color: var(--docs-text-muted); margin: 0 0 12px; font-weight: 500; }
.docs-app-layout { display: grid; grid-template-columns: 300px 1fr; align-items: start; max-width: 1280px; margin: 0 auto; }
.docs-sidebar { position: sticky; top: 0; align-self: start;
  height: calc(100vh - 57px); overflow-y: auto; padding: 20px 16px;
  background: var(--docs-surface); border-right: 1px solid var(--docs-border); }
.docs-sidebar .docs-filter-wrap { margin-bottom: 16px; }
.docs-sidebar .docs-filter { width: 100%; max-width: none; }
.docs-tree { display: block; }
.docs-tree-group { margin-bottom: 2px; }
.docs-tree-feature { display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 8px 10px; font: inherit; font-weight: 600; color: var(--docs-text);
  cursor: pointer; border-radius: var(--docs-radius); }
.docs-tree-feature:hover { background: var(--docs-code-bg); }
.docs-tree-feature::before { content: "\25B8"; display: inline-block; width: 1em; color: var(--docs-text-muted); transition: transform 0.15s; }
.docs-tree-feature[aria-expanded="true"]::before { transform: rotate(90deg); }
.docs-tree-feature.is-active { color: var(--docs-link); }
.docs-tree-sections { list-style: none; margin: 0 0 6px 1.4em; padding: 0; }
.docs-tree-feature[aria-expanded="false"] + .docs-tree-sections { display: none; }
.docs-tree-sections li { margin: 0; }
.docs-tree-link { display: block; padding: 6px 10px; font-size: 14px; border-radius: var(--docs-radius); color: var(--docs-text-muted); }
.docs-tree-link:hover { background: var(--docs-code-bg); text-decoration: none; }
.docs-tree-link.is-active { background: var(--docs-code-bg); color: var(--docs-link); font-weight: 500; }
.docs-content { min-width: 0; padding: 32px 32px 48px; max-width: 920px; }
.docs-article > h1 { margin-bottom: 16px; }
.docs-empty { color: #64748b; padding: 32px; }
@media (max-width: 768px) {
  .docs-app-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--docs-border); }
  .docs-content { padding: 24px; }
}
