/* ==================================================================== DOCS SUB-HEADER ==================================================================== */ .docs-subnav { background: var(--gray-25); border-bottom: 1px solid var(--border-subtle); position: sticky; top: 64px; z-index: 40; } .docs-subnav-inner { max-width: 1440px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 24px; } .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--fg-muted); } .breadcrumb .sep { color: var(--gray-300); } .breadcrumb a { color: var(--fg-muted); } .breadcrumb a:hover { color: var(--brand-500); } .breadcrumb .current { color: var(--gray-900); font-weight: 500; } .docs-search { flex: 1; max-width: 480px; position: relative; } .docs-search input { width: 100%; height: 36px; padding: 0 12px 0 38px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--gray-0); font-family: inherit; font-size: var(--text-sm); color: var(--gray-800); outline: none; transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard); } .docs-search input:focus { border-color: var(--brand-500); box-shadow: var(--ring-focus); } .docs-search input::placeholder { color: var(--fg-subtle); } .docs-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--fg-subtle); } .docs-search .kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--gray-100); border: 1px solid var(--border-default); border-radius: 3px; padding: 2px 6px; font-size: 11px; color: var(--fg-muted); font-family: var(--font-mono); } .docs-version { display: flex; align-items: center; gap: 6px; background: var(--gray-0); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 6px 12px; font-size: var(--text-sm); color: var(--gray-700); } .docs-version .icon { width: 14px; height: 14px; } .docs-version-label { color: var(--fg-subtle); font-size: var(--text-xs); } /* ==================================================================== DOCS LAYOUT (three-column) ==================================================================== */ .docs-layout { max-width: 1440px; margin: 0 auto; padding: 32px; display: grid; grid-template-columns: 240px 1fr 240px; gap: 48px; align-items: start; } /* ==================================================================== LEFT TOC ==================================================================== */ .docs-toc { position: sticky; top: 132px; max-height: calc(100vh - 152px); overflow-y: auto; font-size: var(--text-sm); } .toc-section { margin-bottom: 18px; } .toc-section-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--fg-subtle); text-transform: uppercase; margin: 0 0 10px; padding-left: 12px; } .toc-link { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--gray-700); font-weight: 400; transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard); } .toc-link:hover { background: var(--gray-100); color: var(--brand-900); } .toc-link .toc-num { font-family: var(--font-mono); font-size: 11px; color: var(--fg-subtle); min-width: 16px; font-weight: 500; } .toc-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 500; } .toc-link.active .toc-num { color: var(--brand-500); } /* ==================================================================== MAIN CONTENT ==================================================================== */ .docs-main { min-width: 0; max-width: 760px; } .docs-chapter { padding-bottom: 48px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 48px; } .docs-chapter:last-child { border-bottom: none; margin-bottom: 0; } .docs-main h2 { font-size: var(--text-2xl); font-weight: 600; color: var(--brand-900); margin: 0 0 16px; letter-spacing: 0.02em; scroll-margin-top: 132px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-100); } .docs-main h3 { font-size: var(--text-lg); font-weight: 600; color: var(--gray-900); margin: 32px 0 12px; scroll-margin-top: 132px; } .docs-main p { font-size: var(--text-md); color: var(--gray-700); line-height: 1.75; margin: 0 0 16px; } .docs-main strong { color: var(--brand-900); font-weight: 600; } .docs-main em { color: var(--brand-700); font-style: normal; font-weight: 500; } .docs-main code { font-family: var(--font-mono); font-size: 0.92em; background: var(--gray-100); color: var(--brand-700); padding: 1px 6px; border-radius: var(--radius-sm); } .docs-main a { color: var(--brand-500); font-weight: 500; border-bottom: 1px solid var(--brand-200); } .docs-main a:hover { color: var(--brand-700); border-color: var(--brand-500); } .docs-main ol, .docs-main ul { margin: 0 0 16px; padding-left: 24px; } .docs-main li { font-size: var(--text-md); color: var(--gray-700); line-height: 1.75; margin-bottom: 6px; } .docs-main ol li::marker { color: var(--brand-500); font-weight: 600; } /* Rendered markdown tables */ .docs-main table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: var(--text-sm); background: var(--gray-0); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; } .docs-main th, .docs-main td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); line-height: 1.55; } .docs-main thead th { background: var(--gray-50); font-size: var(--text-xs); font-weight: 600; color: var(--gray-700); letter-spacing: 0.02em; text-transform: uppercase; border-bottom: 1px solid var(--border-default); } .docs-main tbody tr:last-child td { border-bottom: none; } .docs-main tbody tr:hover { background: var(--gray-25); } /* Rendered markdown code blocks */ .docs-main pre { background: var(--gray-25); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px 20px; overflow-x: auto; margin: 16px 0 24px; } .docs-main pre code { background: none; color: var(--gray-800); padding: 0; font-size: var(--text-sm); line-height: 1.6; border-radius: 0; } /* Blockquote → callout-style */ .docs-main blockquote { background: var(--info-50); border-left: 3px solid var(--info-500); border-radius: var(--radius-md); padding: 14px 18px; margin: 16px 0 24px; color: var(--info-700); } .docs-main blockquote p { color: var(--gray-700); margin: 0; font-size: var(--text-sm); line-height: 1.6; } /* ==================================================================== RIGHT RAIL ==================================================================== */ .docs-rail { position: sticky; top: 132px; font-size: var(--text-sm); } .rail-title { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--fg-subtle); text-transform: uppercase; margin: 0 0 12px; } .rail-list { display: flex; flex-direction: column; gap: 2px; list-style: none; padding: 0; margin: 0 0 24px; } .rail-list a { display: block; padding: 5px 10px; border-radius: var(--radius-sm); color: var(--fg-muted); font-size: 13px; border-left: 2px solid transparent; } .rail-list a:hover { color: var(--brand-700); } .rail-list a.active { color: var(--brand-700); border-left-color: var(--brand-500); font-weight: 500; } .rail-actions { padding-top: 16px; border-top: 1px solid var(--border-subtle); display: flex; flex-direction: column; gap: 6px; } .rail-action { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 13px; color: var(--fg-muted); border-radius: var(--radius-sm); cursor: pointer; background: none; border: none; font-family: inherit; width: 100%; text-align: left; } .rail-action:hover { background: var(--gray-50); color: var(--brand-700); } .rail-action .icon { width: 14px; height: 14px; } /* ==================================================================== FEEDBACK WIDGET ==================================================================== */ .docs-feedback { margin-top: 40px; padding: 24px; background: var(--gray-25); border-radius: var(--radius-lg); display: flex; align-items: center; justify-content: space-between; } .feedback-q { font-size: var(--text-md); color: var(--gray-800); } .feedback-actions { display: flex; gap: 8px; } .feedback-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-0); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 6px 14px; font-size: var(--text-sm); color: var(--gray-700); cursor: pointer; font-family: inherit; } .feedback-btn:hover { border-color: var(--brand-500); color: var(--brand-700); } .feedback-btn .icon { width: 14px; height: 14px; } /* ==================================================================== RESPONSIVE ==================================================================== */ @media (max-width: 1200px) { .docs-layout { grid-template-columns: 220px 1fr; gap: 32px; } .docs-rail { display: none; } } @media (max-width: 880px) { .docs-layout { grid-template-columns: 1fr; gap: 24px; padding: 16px; } .docs-toc { position: static; max-height: none; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 16px; margin-bottom: 8px; } .docs-subnav-inner { padding: 10px 16px; } .docs-search { max-width: none; } } @media (max-width: 600px) { .docs-layout { padding: 12px; } .docs-main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .docs-toc { font-size: 13px; } }