.theme-docs { --td-accent: #a98bff; padding: 124px 0 96px; color: var(--text, #ececf4); }
.td-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); max-width: 1260px; margin: auto; padding: 0 32px; gap: 60px; }
.td-sidebar { position: sticky; top: 100px; align-self: start; max-height: calc(100vh - 124px); overflow: auto; }
.td-docs-home { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 750; text-decoration: none; }
.td-mark { display: grid; place-items: center; width: 34px; height: 34px; color: var(--td-accent); background: #8b5cf618; border: 1px solid #8b5cf638; border-radius: 9px; font: 700 13px var(--mono, monospace); }
.td-sidebar-label, .td-eyebrow { color: var(--td-accent); font: 700 10px var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; }
.td-sidebar-label { margin: 30px 0 12px; color: var(--faint); }
.td-sidebar nav { display: grid; gap: 3px; }
.td-sidebar nav a { color: var(--muted); font-size: 12px; line-height: 1.5; padding: 7px 10px; border-left: 1px solid var(--line-strong); text-decoration: none; }
.td-sidebar nav a:hover, .td-sidebar nav a:focus-visible { color: var(--text); border-color: var(--td-accent); background: #8b5cf60e; }
.td-download-small { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding: 12px; border: 1px solid #8b5cf650; border-radius: 8px; color: var(--td-accent); text-decoration: none; font-size: 12px; font-weight: 700; }
.td-sidebar-note { margin-top: 16px; color: var(--faint); font-size: 11px; line-height: 1.9; }
.td-content { min-width: 0; }
.td-breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 28px; }
.td-breadcrumb a { color: var(--td-accent); text-decoration: none; }
.td-hero .td-eyebrow { margin-bottom: 16px; }
.td-hero h1 { font-family: var(--display, 'Instrument Sans', sans-serif); font-size: clamp(40px, 5vw, 66px); line-height: 1.06; letter-spacing: -.05em; font-weight: 750; margin: 0; }
.td-lead { max-width: 670px; color: var(--muted); font-size: 17px; line-height: 1.8; margin: 24px 0 0; }
.td-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.td-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--text); background: var(--bg-2); text-decoration: none; font-size: 13px; font-weight: 700; }
.td-button:hover { border-color: var(--td-accent); }
.td-button-primary { color: #fff; background: #7654cf; border-color: #9777ed; }
.td-facts { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line-strong); }
.td-facts span { color: var(--faint); font-size: 11px; }
.td-section { padding-top: 54px; scroll-margin-top: 90px; }
.td-section > .td-eyebrow { margin: 0 0 12px; }
.td-section h2 { color: var(--text); font-size: clamp(25px, 3vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; margin: 0 0 20px; }
.td-section h3 { color: var(--text); font-size: 19px; line-height: 1.4; margin: 30px 0 12px; }
.td-section p, .td-section li { color: var(--muted); font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.td-section p { margin: 14px 0; }
.td-section strong, .td-section b { color: var(--text); font-weight: 700; }
.td-section ul, .td-section ol { padding-left: 22px; margin: 20px 0; }
.td-section li { margin: 11px 0; padding-left: 4px; }
.td-steps li::marker { color: var(--td-accent); font-weight: 700; }
.td-section code { font-family: var(--mono, monospace); font-size: .86em; color: #cdbaff; background: #8b5cf610; border: 1px solid #8b5cf61d; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.td-note { margin: 24px 0; padding: 18px 20px; border: 1px solid #8b5cf638; border-left: 3px solid #9777ed; border-radius: 8px; background: #8b5cf60b; color: var(--muted); font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
.td-note strong { color: var(--text); }
.td-code { margin: 22px 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #101016; }
.td-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #ffffff0d; background: #ffffff03; }
.td-code-bar span { min-width: 0; color: var(--muted); font: 11px var(--mono, monospace); overflow-wrap: anywhere; }
.td-code-bar button { flex: none; padding: 5px 10px; border: 1px solid #ffffff20; border-radius: 5px; color: #d5c5ff; background: #ffffff06; font: 600 11px var(--font, sans-serif); cursor: pointer; }
.td-code-bar button:hover { border-color: var(--td-accent); }
.td-code pre { max-height: 480px; overflow: auto; margin: 0; padding: 20px; white-space: pre; tab-size: 2; }
.td-code pre code { display: block; font: 12px/1.9 var(--mono, monospace); background: none; padding: 0; border: 0; color: #d3d5e2; overflow-wrap: normal; }
.td-table-wrap { width: 100%; overflow-x: auto; margin: 22px 0; border: 1px solid var(--line-strong); border-radius: 9px; }
.td-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.td-table-wrap th { color: var(--text); background: #ffffff04; font-size: 11px; font-weight: 700; padding: 13px 16px; }
.td-table-wrap td { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 13px 16px; vertical-align: top; border-top: 1px solid var(--line-strong); overflow-wrap: anywhere; }
.td-table-wrap th:first-child, .td-table-wrap td:first-child { width: 32%; }
.td-source-list { display: grid; gap: 10px; margin-top: 24px; }
.td-source-list details { min-width: 0; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; }
.td-source-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; cursor: pointer; color: var(--text); font: 12px var(--mono, monospace); overflow-wrap: anywhere; }
.td-source-list summary::before { content: '+'; color: var(--td-accent); }
.td-source-list details[open] summary::before { content: '−'; }
.td-source-list summary > span:first-child { flex: 1; min-width: 0; }
.td-source-list .td-code { margin: 0; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; }
.td-file-type { color: var(--faint); font-size: 10px; }
.td-next { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 24px; border: 1px solid #8b5cf638; border-radius: 10px; background: #8b5cf60b; }
.td-next h3 { margin: 0; }.td-next p { margin: 6px 0 0; }.td-next .td-button { flex: none; }
.td-copy-status { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: calc(100vw - 32px); width: max-content; padding: 12px 18px; border-radius: 8px; color: #f4edff; background: #33234f; box-shadow: 0 6px 28px #0006; font-size: 12px; line-height: 1.6; }
.td-copy-status:empty { display: none; }
@media (max-width: 1050px) { .td-layout { gap: 32px; grid-template-columns: 195px minmax(0, 1fr); } }
@media (max-width: 760px) {
    .theme-docs { padding-top: 104px; }.td-layout { grid-template-columns: minmax(0, 1fr); padding: 0 20px; gap: 32px; }
    .td-sidebar { position: static; max-height: none; padding: 18px; border: 1px solid var(--line-strong); border-radius: 10px; }
    .td-sidebar-label { margin-top: 18px; }.td-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
    .td-sidebar nav a { font-size: 11px; padding: 7px; }.td-sidebar-note { display: none; }.td-download-small { margin-top: 16px; }
    .td-hero h1 { font-size: 42px; }.td-lead { font-size: 15px; }.td-section { padding-top: 40px; }
    .td-code pre { padding: 14px; }.td-code pre code { font-size: 11px; }.td-code-bar { padding: 10px 12px; }
    .td-table-wrap td, .td-table-wrap th { padding: 11px; }.td-table-wrap td { font-size: 11px; }
    .td-table-wrap th:first-child, .td-table-wrap td:first-child { width: 36%; }.td-next { align-items: start; flex-direction: column; }
}
