/* ============================================================ NIBIRU DOCS — COMPONENT STYLES ============================================================ */ /* ====================== TOP NAV ====================== */ .topnav { display: grid; grid-template-columns: 240px 1fr auto; align-items: center; gap: 32px; padding: 0 24px; height: var(--nav-h); background: rgba(11, 4, 16, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); position: relative; z-index: 5; } .theme-light .topnav { background: rgba(250, 246, 236, 0.85); } .topnav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; } .lotus-mark { filter: drop-shadow(0 0 12px rgba(184, 107, 255, 0.35)); } .theme-light .lotus-mark { filter: none; } .topnav-brand-text { line-height: 1.1; } .topnav-brand-name { font-size: 17px; font-weight: 600; color: var(--star); letter-spacing: -0.01em; } .topnav-brand-tag { font-size: 10px; color: var(--muted); letter-spacing: 0.05em; text-transform: lowercase; } .topnav-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 420px; margin: 0 auto; padding: 8px 12px; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 13px; transition: border-color 200ms, background 200ms; } .topnav-search:hover { border-color: var(--line-strong); background: var(--space-3); } .topnav-search span { flex: 1; text-align: left; } .topnav-search kbd { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; background: var(--space-3); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); } .topnav-right { display: flex; align-items: center; gap: 6px; } .topnav-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--star-soft); transition: background 160ms, color 160ms; } .topnav-icon:hover { background: var(--space-2); color: var(--star); } .topnav-locale { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 36px; border-radius: var(--r-md); color: var(--star-soft); font-size: 12px; font-weight: 500; transition: background 160ms; } .topnav-locale:hover { background: var(--space-2); } /* ====================== SIDEBAR ====================== */ .sidebar { width: var(--sidebar-w); padding: 24px 12px 24px 24px; border-right: 1px solid var(--line); background: rgba(11, 4, 16, 0.4); position: relative; height: 100%; overflow-y: auto; } .theme-light .sidebar { background: rgba(250, 246, 236, 0.5); } .sidebar-section { margin-bottom: 16px; } .sidebar-heading { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 6px 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; } .sidebar-heading svg { color: var(--muted-2); } .sidebar-list { list-style: none; padding: 0; margin: 0; } .sidebar-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 13.5px; color: var(--star-soft); text-decoration: none; border-radius: var(--r-md); position: relative; transition: background 140ms, color 140ms; } .sidebar-item:hover { background: var(--space-2); color: var(--star); text-decoration: none; } .sidebar-item.active { background: linear-gradient(90deg, rgba(184, 107, 255, 0.18), rgba(184, 107, 255, 0.04)); color: var(--star); font-weight: 500; } .sidebar-item.active::before { content: ""; position: absolute; left: -24px; top: 50%; width: 3px; height: 18px; background: var(--nebula-mag); box-shadow: 0 0 12px var(--nebula-mag); border-radius: 0 2px 2px 0; transform: translateY(-50%); } .sidebar-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--r-sm); } .sidebar-badge-core { background: rgba(184, 107, 255, 0.15); color: var(--nebula-mag-2); } .sidebar-badge-new { background: rgba(110, 231, 176, 0.15); color: var(--nebula-green); } /* ====================== RIGHT TOC ====================== */ .toc { width: var(--toc-w); padding: 24px 16px 24px 24px; font-size: 13px; } .toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; } .toc-list { list-style: none; padding: 0; margin: 0 0 24px; border-left: 1px solid var(--line); } .toc-item a { display: block; padding: 5px 12px; color: var(--star-soft); text-decoration: none; font-size: 13px; margin-left: -1px; border-left: 2px solid transparent; transition: color 140ms, border-color 140ms; } .toc-item a:hover { color: var(--star); text-decoration: none; } .toc-item a.active { color: var(--nebula-mag); border-left-color: var(--nebula-mag); } .toc-level-2 a { padding-left: 24px; font-size: 12.5px; color: var(--muted); } .toc-level-2 a:hover { color: var(--star-soft); } .toc-edit a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .toc-edit a:hover { color: var(--star); text-decoration: none; } /* ====================== PAGE HEADER ====================== */ .page-header { margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); } .breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 16px; } .breadcrumbs a { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; text-decoration: none; } .breadcrumbs a:last-child { color: var(--star); } .breadcrumb-sep { color: var(--muted-2); } .page-title { font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; color: var(--star); margin: 0 0 12px; } .page-summary { font-size: var(--fs-lg); color: var(--star-soft); line-height: 1.55; margin: 0 0 16px; max-width: 60ch; } .page-meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; } .page-meta-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--nebula-green); box-shadow: 0 0 8px var(--nebula-green); } /* ====================== PROSE ====================== */ .prose { font-size: var(--fs-md); line-height: 1.7; color: var(--star-soft); } .prose h2 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; color: var(--star); margin: 40px 0 16px; scroll-margin-top: 80px; position: relative; } .prose h2::before { content: ""; display: block; width: 24px; height: 1px; background: linear-gradient(90deg, var(--nebula-mag), transparent); margin-bottom: 12px; } .prose h3 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.015em; color: var(--star); margin: 32px 0 12px; } .prose p { margin: 0 0 16px; } .prose strong { color: var(--star); font-weight: 600; } .prose em { color: var(--nebula-mag-2); font-style: normal; } .theme-light .prose em { color: var(--nebula-mag); } .prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; } .prose li { margin-bottom: 6px; } .prose ul li::marker { color: var(--nebula-mag); } .prose blockquote { border-left: 2px solid var(--nebula-mag); padding: 4px 0 4px 16px; margin: 16px 0; font-style: italic; color: var(--star-soft); background: linear-gradient(90deg, rgba(184, 107, 255, 0.05), transparent 60%); } .prose code:not(pre code) { font-family: var(--font-mono); font-size: 0.86em; background: var(--space-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; color: var(--nebula-mag-2); } .theme-light .prose code:not(pre code) { color: var(--nebula-mag); } /* ====================== CODE BLOCK ====================== */ .codeblock { background: #0a0210; border: 1px solid var(--line); border-radius: var(--r-lg); margin: 20px 0; overflow: hidden; position: relative; } .codeblock::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(184, 107, 255, 0.04), transparent 40%); pointer-events: none; } .theme-light .codeblock { background: #1a0c2e; } .codeblock-header { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid rgba(244, 238, 219, 0.06); background: rgba(0, 0, 0, 0.3); position: relative; z-index: 1; } .codeblock-dots { display: flex; gap: 6px; } .codeblock-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 238, 219, 0.15); } .codeblock-dots span:nth-child(1) { background: rgba(255, 122, 184, 0.5); } .codeblock-dots span:nth-child(2) { background: rgba(255, 181, 116, 0.5); } .codeblock-dots span:nth-child(3) { background: rgba(110, 231, 176, 0.5); } .codeblock-filename { font-family: var(--font-mono); font-size: 11px; color: rgba(244, 238, 219, 0.7); flex: 1; } .codeblock-lang { font-family: var(--font-mono); font-size: 10px; color: var(--nebula-mag); text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 7px; border: 1px solid rgba(184, 107, 255, 0.3); border-radius: var(--r-sm); } .codeblock-copy { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: rgba(244, 238, 219, 0.6); padding: 3px 8px; border-radius: var(--r-sm); transition: color 140ms, background 140ms; } .codeblock-copy:hover { color: rgba(244, 238, 219, 0.9); background: rgba(244, 238, 219, 0.06); } .codeblock-pre { padding: 16px 20px; margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: rgba(244, 238, 219, 0.85); overflow-x: auto; position: relative; z-index: 1; } .codeblock-line { white-space: pre; min-height: 1.7em; } .codeblock-ln { display: inline-block; width: 28px; color: var(--muted-2); text-align: right; margin-right: 16px; user-select: none; } /* Syntax tokens */ .tk-kw { color: #ff7ab8; } /* keyword — rose */ .tk-cn { color: #ffb574; } /* class/type — amber */ .tk-fn { color: #6ad9ff; } /* function — cyan */ .tk-var { color: #d8a8ff; } /* variable — magenta */ .tk-str { color: #6ee7b0; } /* string — green */ .tk-num { color: #ffb574; } /* number — amber */ .tk-ns { color: rgba(244, 238, 219, 0.55); } /* namespace — muted */ .tk-cm { color: rgba(244, 238, 219, 0.4); font-style: italic; } /* ====================== CALLOUTS ====================== */ .callout { display: flex; gap: 14px; padding: 14px 18px; border-radius: var(--r-md); margin: 20px 0; border: 1px solid; position: relative; overflow: hidden; } .callout::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 0% 0%, currentColor 0%, transparent 70%); opacity: 0.05; pointer-events: none; } .callout-glyph { flex-shrink: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; filter: drop-shadow(0 0 6px currentColor); margin-top: 1px; } .callout-body { flex: 1; } .callout-title { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 4px; color: currentColor; } .callout-content { font-size: var(--fs-base); color: var(--star-soft); line-height: 1.55; } .callout-content :is(p):last-child { margin-bottom: 0; } .callout-content code { background: rgba(255, 255, 255, 0.06); padding: 1px 5px; border-radius: 3px; font-family: var(--font-mono); font-size: 0.86em; } .callout-note { color: var(--note-fg); background: var(--note-bg); border-color: var(--note-border); } .callout-tip { color: var(--tip-fg); background: var(--tip-bg); border-color: var(--tip-border); } .callout-warning { color: var(--warn-fg); background: var(--warn-bg); border-color: var(--warn-border); } .callout-danger { color: var(--danger-fg);background: var(--danger-bg);border-color: var(--danger-border); } /* ====================== TABLE ====================== */ .doc-table-wrap { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; } .doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .doc-table thead { background: var(--space-2); } .doc-table th { text-align: left; padding: 10px 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); } .doc-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--star-soft); } .doc-table tbody tr:last-child td { border-bottom: none; } .doc-table tbody tr:hover { background: rgba(184, 107, 255, 0.04); } .doc-table td:first-child { color: var(--star); font-weight: 500; white-space: nowrap; } .doc-table code { font-family: var(--font-mono); font-size: 0.86em; background: var(--space-2); padding: 1px 5px; border-radius: 3px; color: var(--nebula-mag-2); } .theme-light .doc-table code { color: var(--nebula-mag); } /* ====================== TABS ====================== */ .tabs { margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; } .tabs-list { display: flex; background: var(--space-2); border-bottom: 1px solid var(--line); padding: 4px; gap: 4px; } .tabs-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: var(--r-md); transition: color 140ms, background 140ms; } .tabs-trigger:hover { color: var(--star-soft); } .tabs-trigger.active { color: var(--star); background: var(--space-3); box-shadow: 0 1px 0 rgba(184, 107, 255, 0.3) inset, var(--shadow-sm); } .tabs-icon { display: inline-flex; opacity: 0.7; } .tabs-panel { background: transparent; } .tabs-panel .codeblock { margin: 0; border: none; border-radius: 0; } /* ====================== API BLOCK ====================== */ .api-block { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(180deg, var(--space-2), transparent); } .api-signature { font-family: var(--font-mono); font-size: 14px; padding: 10px 14px; background: rgba(0, 0, 0, 0.3); border-radius: var(--r-md); border: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; white-space: nowrap; } .theme-light .api-signature { background: rgba(26, 19, 48, 0.06); } .api-paren, .api-comma, .api-colon, .api-arrow { color: rgba(244, 238, 219, 0.5); } .theme-light .api-paren, .theme-light .api-comma, .theme-light .api-colon, .theme-light .api-arrow { color: rgba(26, 19, 48, 0.5); } .api-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; } .api-params { list-style: none; padding: 0; margin: 0 0 18px; } .api-param { padding: 10px 0; border-bottom: 1px dashed var(--line); } .api-param:last-child { border-bottom: none; } .api-param-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; } .api-param-name { font-family: var(--font-mono); font-size: 13px; color: var(--nebula-mag-2); font-weight: 500; } .theme-light .api-param-name { color: var(--nebula-mag); } .api-param-type { font-family: var(--font-mono); font-size: 11px; color: var(--nebula-amber); padding: 2px 6px; background: rgba(255, 181, 116, 0.08); border-radius: 3px; } .api-param-required { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--danger-fg); padding: 2px 6px; background: var(--danger-bg); border-radius: 3px; } .api-param-default { font-family: var(--font-mono); font-size: 11px; color: var(--muted); } .api-param-default code { color: var(--star-soft); font-size: inherit; } .api-param-desc { font-size: 13.5px; color: var(--star-soft); line-height: 1.55; } .api-returns { font-family: var(--font-mono); font-size: 13px; } .api-returns-desc { font-family: var(--font-sans); color: var(--star-soft); } /* ====================== CARDS ====================== */ .card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; } .feature-card { display: block; padding: 18px; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: border-color 200ms, transform 200ms, background 200ms; } .feature-card:hover { border-color: var(--line-glow); transform: translateY(-2px); text-decoration: none; background: var(--space-3); } .feature-card-icon { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--star); } .feature-card-title { font-size: 15px; font-weight: 600; color: var(--star); margin-bottom: 4px; letter-spacing: -0.01em; } .feature-card-desc { font-size: 13px; color: var(--star-soft); line-height: 1.5; } .feature-card-arrow { position: absolute; top: 16px; right: 16px; color: var(--muted); opacity: 0; transform: translate(-4px, 4px); transition: opacity 200ms, transform 200ms; } .feature-card:hover .feature-card-arrow { opacity: 1; transform: translate(0, 0); color: var(--nebula-mag); } /* ====================== SEARCH MODAL ====================== */ .search-modal { width: 580px; background: var(--space-2); border: 1px solid var(--line-strong); border-radius: var(--r-xl); box-shadow: var(--shadow-lg), 0 0 60px rgba(184, 107, 255, 0.1); overflow: hidden; } .search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); } .search-icon { color: var(--muted); flex-shrink: 0; } .search-input { flex: 1; background: none; border: none; outline: none; font-family: var(--font-sans); font-size: 16px; color: var(--star); } .search-input::placeholder { color: var(--muted); } .search-kbd { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); } .search-section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 12px 18px 6px; } .search-recent-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 8px; } .search-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--space-3); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12px; color: var(--star-soft); transition: background 140ms; } .search-chip:hover { background: var(--plum-2); } .search-results { max-height: 360px; overflow-y: auto; padding-bottom: 8px; } .search-result { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 18px; text-align: left; border-left: 2px solid transparent; } .search-result.active { background: rgba(184, 107, 255, 0.08); border-left-color: var(--nebula-mag); } .search-result-kind { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; flex-shrink: 0; } .kind-page { background: rgba(184, 107, 255, 0.15); color: var(--nebula-mag-2); } .kind-section { background: rgba(106, 217, 255, 0.15); color: var(--nebula-cyan); } .kind-api { background: rgba(255, 181, 116, 0.15); color: var(--nebula-amber); } .theme-light .kind-page { color: var(--nebula-mag); } .search-result-body { flex: 1; min-width: 0; } .search-result-title { font-size: 13.5px; color: var(--star); font-weight: 500; display: flex; align-items: center; gap: 6px; } .search-result-title mark { background: rgba(184, 107, 255, 0.3); color: var(--star); padding: 0; } .search-result-section { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: normal; } .search-result-sep { color: var(--muted-2); font-size: 11px; } .search-result-excerpt { font-size: 12.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .search-result-go { color: var(--muted); flex-shrink: 0; } .search-result.active .search-result-go { color: var(--nebula-mag); } .search-footer { display: flex; align-items: center; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,0.2); font-size: 11px; color: var(--muted); } .theme-light .search-footer { background: rgba(26, 19, 48, 0.04); } .search-footer kbd { font-family: var(--font-mono); font-size: 10px; padding: 1px 5px; border: 1px solid var(--line); border-radius: 3px; margin-right: 4px; } .search-credit { margin-left: auto; color: var(--muted-2); } .search-credit strong { color: var(--star-soft); font-weight: 500; } /* ====================== FAB ====================== */ .fab-wrap { position: relative; display: inline-block; } .fab { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--nebula-mag), #ff7ab8); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px -8px rgba(184, 107, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; position: relative; transition: transform 180ms; } .fab::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(184, 107, 255, 0.3); animation: fab-pulse 2.4s ease-out infinite; } .fab:hover { transform: scale(1.06); } @keyframes fab-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.4); opacity: 0; } } .fab-tooltip { position: absolute; right: 64px; top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 6px 12px; background: var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--r-md); font-size: 12px; color: var(--star); box-shadow: var(--shadow-md); } .fab-tooltip::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--space-3); border-right: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); } /* ====================== PAGINATION ====================== */ .page-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); } .page-nav-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--star-soft); text-decoration: none; background: var(--space-2); transition: border-color 200ms, transform 200ms, background 200ms; } .page-nav-link:hover { border-color: var(--line-glow); background: var(--space-3); text-decoration: none; color: var(--star); } .page-nav-prev { justify-content: flex-start; } .page-nav-next { justify-content: flex-end; text-align: right; } .page-nav-stack { display: flex; flex-direction: column; gap: 2px; } .page-nav-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); } .page-nav-title { font-size: 14px; font-weight: 500; color: var(--star); } .page-nav-link svg { color: var(--muted); transition: color 200ms, transform 200ms; } .page-nav-link:hover svg { color: var(--nebula-mag); } .page-nav-prev:hover svg { transform: translateX(-3px); } .page-nav-next:hover svg { transform: translateX(3px); } /* ====================== MOBILE DRAWER ====================== */ .mobile-drawer { width: 320px; height: 640px; background: var(--space); border: 1px solid var(--line); border-radius: var(--r-xl); display: flex; flex-direction: column; overflow: hidden; } .mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); } .mobile-drawer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--star); } .mobile-drawer-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--star-soft); } .mobile-drawer-close:hover { background: var(--space-2); color: var(--star); } .mobile-drawer-search { display: flex; align-items: center; gap: 10px; margin: 12px 18px; padding: 10px 14px; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); font-size: 13px; } .mobile-drawer-search span { flex: 1; text-align: left; } .mobile-drawer-search kbd { font-family: var(--font-mono); font-size: 10px; padding: 2px 5px; background: var(--space-3); border: 1px solid var(--line); border-radius: 3px; } .mobile-drawer .sidebar { flex: 1; width: 100%; border-right: none; background: transparent; padding: 8px 12px 16px 18px; } .mobile-drawer-footer { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); } .mobile-drawer-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--space-2); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 12px; color: var(--star-soft); text-decoration: none; } .mobile-drawer-pill:hover { background: var(--space-3); text-decoration: none; } /* ====================== 404 ====================== */ .not-found { text-align: center; padding: 48px 32px; max-width: 520px; margin: 0 auto; } .not-found-orbit { width: 100%; height: 200px; margin-bottom: 24px; } .not-found-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nebula-cyan); margin-bottom: 12px; } .not-found-title { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.02em; color: var(--star); margin: 0 0 12px; } .not-found-desc { font-size: var(--fs-md); color: var(--star-soft); line-height: 1.6; margin: 0 0 24px; } .not-found-actions { display: flex; justify-content: center; gap: 10px; } .btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--r-md); font-size: 13px; font-weight: 500; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 160ms, border-color 160ms, color 160ms; } .btn-primary { background: var(--nebula-mag); color: white; } .btn-primary:hover { background: var(--nebula-mag-2); text-decoration: none; color: white; } .theme-light .btn-primary:hover { color: white; } .btn-ghost { border-color: var(--line-strong); color: var(--star-soft); } .btn-ghost:hover { border-color: var(--nebula-mag); color: var(--star); text-decoration: none; } /* ====================== FULL PAGE PREVIEW LAYOUT ====================== */ .docs-page-preview { display: grid; grid-template-columns: var(--sidebar-w) 1fr var(--toc-w); height: 800px; background: var(--space); } .docs-page-preview-content { padding: 32px 48px; overflow-y: auto; border-right: 1px solid var(--line); max-width: var(--content-max); width: 100%; justify-self: center; } .docs-page-preview-shell { display: flex; flex-direction: column; height: 100%; } .docs-page-preview-body { flex: 1; display: grid; grid-template-columns: var(--sidebar-w) 1fr var(--toc-w); overflow: hidden; min-height: 0; } /* Generic "frame" wrapper used in artboards */ .docs-frame-pad { padding: 32px; background: var(--space); min-height: 100%; }