/* Documentation: hub, guide pages, callouts, steps, code, tables. Builds on the market design tokens. */
.dc { --dc-night: #0b0b10; --dc-line: rgba(0, 0, 0, .08); --dc-w: 1320px; color: var(--ink); overflow-x: clip; }
.dc-wrap { max-width: var(--dc-w); margin: 0 auto; padding: 0 var(--gutter, 28px); position: relative; z-index: 1; }
.dc h1, .dc h2, .dc h3 { letter-spacing: -.03em; margin: 0; }
.dc-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80; pointer-events: none; }
.dc-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #e8902c); transition: width .1s linear; }

/* hero */
.dc-hero { background: var(--dc-night); color: #fff; position: relative; overflow: hidden; padding: 26px 0 54px; }
.dc-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 80% at 85% -10%, rgba(85, 70, 255, .55), transparent 70%), radial-gradient(40% 60% at 5% 110%, rgba(232, 144, 44, .2), transparent 70%); }
.dc-crumb { display: flex; gap: 10px; font-size: 13px; color: #9a9aa8; margin-bottom: 34px; flex-wrap: wrap; }
.dc-crumb a:hover { color: #fff; } .dc-crumb b { color: #fff; font-weight: 500; }
.dc-hero-row { display: flex; gap: 24px; align-items: flex-start; }
.dc-hero-ico { flex: none; width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #5546ff, #8e7bff); box-shadow: 0 16px 40px rgba(85, 70, 255, .5); color: #fff; }
.dc-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; font-weight: 750; }
.dc-hero p { color: #b9b9c6; max-width: 720px; margin: 14px 0 0; font-size: 1.08rem; line-height: 1.65; }
.dc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.dc-meta span { font-size: 12.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #dcdce6; }
.dc-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; padding-left: 92px; }
.dc-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: transform .15s, box-shadow .15s, background .15s; }
.dc-btn.primary { background: #fff; color: var(--dc-night); } .dc-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(168, 162, 255, .35); }
.dc-btn.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); } .dc-btn.ghost:hover { background: rgba(255, 255, 255, .09); }
.dc-hero.center { text-align: center; padding: 70px 0 84px; }
.dc-hero.center h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); max-width: 860px; margin: 18px auto 0; }
.dc-hero.center p { margin-left: auto; margin-right: auto; }
.dc-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #e6e6ee; }
.dc-hero-find { display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 32px auto 0; height: 58px; padding: 0 22px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #cfcfda; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.dc-hero-find:focus-within { background: rgba(255, 255, 255, .16); border-color: rgba(168, 162, 255, .7); }
.dc-hero-find input { flex: 1; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; outline: none; }
.dc-hero-find input::placeholder { color: #a5a5b6; }

/* hub */
.dc-home { padding: 0 var(--gutter, 28px) 40px; }
.dc-start { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin-top: -42px; padding: 28px 32px; border-radius: 28px; background: #fff; border: 1px solid var(--dc-line); box-shadow: 0 30px 80px rgba(25, 20, 70, .16); position: relative; z-index: 3; transition: transform .2s, box-shadow .2s; }
.dc-start:hover { transform: translateY(-3px); box-shadow: 0 40px 90px rgba(25, 20, 70, .22); }
.dc-start-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #8e7bff); color: #fff; }
.dc-start-copy small { display: block; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.dc-start-copy b { display: block; font-size: 1.4rem; letter-spacing: -.02em; margin: 4px 0; }
.dc-start-copy em { font-style: normal; color: var(--ink-2); line-height: 1.6; display: block; max-width: 720px; }
.dc-start-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-ink); white-space: nowrap; }
.dc-sec-title { margin: 64px 0 24px; } .dc-sec-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); } .dc-sec-title p { color: var(--ink-2); margin: 8px 0 0; }
.dc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dc-gcard { display: flex; flex-direction: column; padding: 28px; border-radius: 26px; background: #fff; border: 1px solid var(--dc-line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dc-gcard:hover { transform: translateY(-5px); box-shadow: 0 28px 70px rgba(25, 20, 70, .14); border-color: rgba(85, 70, 255, .35); }
.gc-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft), #fdf1e2); color: var(--accent-ink); margin-bottom: 20px; }
.dc-gcard b { font-size: 1.25rem; letter-spacing: -.02em; } .dc-gcard p { color: var(--ink-2); line-height: 1.65; margin: 10px 0 18px; font-size: .96rem; }
.gc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; } .gc-meta span { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.gc-go { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-weight: 600; font-size: 14px; color: var(--accent-ink); }
.dc-gcard.soon { background: var(--panel); border-style: dashed; } .dc-gcard.soon:hover { transform: none; box-shadow: none; }
.dc-empty { text-align: center; color: var(--muted); padding: 30px; }
.dc-help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; padding: 34px; border-radius: 28px; background: var(--dc-night); color: #fff; }
.dc-help b { display: block; font-size: 1.1rem; margin-bottom: 8px; } .dc-help p { color: #b9b9c6; line-height: 1.65; margin: 0; } .dc-help a { color: #a8a2ff; text-decoration: underline; }

/* guide layout */
.dc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 220px; gap: clamp(24px, 3.4vw, 56px); padding-top: 40px; padding-bottom: 80px; align-items: start; }
.dc-side, .dc-toc-in { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.dc-find { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--panel-2); color: var(--muted); margin-bottom: 20px; }
.dc-find input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.dc-side-group { margin-bottom: 22px; }
.dc-side-h { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--soft); padding: 0 12px 8px; }
.dc-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.dc-side-link span { display: grid; place-items: center; color: var(--soft); }
.dc-side-link:hover { background: var(--panel-2); color: var(--ink); }
.dc-side-link.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; } .dc-side-link.on span { color: var(--accent); }
.dc-side-cta { display: block; margin-top: 10px; padding: 16px; border-radius: 16px; background: var(--dc-night); color: #fff; } .dc-side-cta b { display: block; font-size: 14px; line-height: 1.35; } .dc-side-cta small { color: #a8a2ff; font-weight: 600; }
.dc-side-toggle { display: none; }
.dc-toc-in { border-left: 1px solid var(--dc-line); padding-left: 18px; }
.dc-toc a { display: block; padding: 6px 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); border-left: 2px solid transparent; margin-left: -20px; padding-left: 18px; transition: color .15s, border-color .15s; }
.dc-toc a:hover { color: var(--ink); } .dc-toc a.on { color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.dc-toc .dc-side-h { padding-left: 0; }
.dc-toc-help { margin-top: 22px; padding: 14px; border-radius: 14px; background: var(--panel); font-size: 13px; } .dc-toc-help b { display: block; margin-bottom: 4px; } .dc-toc-help a { margin: 0; padding: 0; border: 0; color: var(--accent-ink); display: inline; font-size: 13px; }

/* content */
.dc-main { min-width: 0; max-width: 820px; }
.dc-sec { padding: 8px 0 54px; scroll-margin-top: 24px; }
.dc-sec + .dc-sec { border-top: 1px solid var(--dc-line); padding-top: 54px; }
.dc-sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.dc-num { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 9px; font-variant-numeric: tabular-nums; }
.dc-sec h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.15; }
.dc-anchor { margin-left: 10px; color: var(--soft); opacity: 0; font-weight: 500; transition: opacity .15s; } .dc-sec h2:hover .dc-anchor { opacity: 1; }
.dc-lead { font-size: 1.12rem; line-height: 1.7; color: var(--ink-2); margin: 0 0 22px; }
.dc-h3 { font-size: 1.15rem; margin: 30px 0 8px; }
.dc-p { line-height: 1.75; color: var(--ink-2); margin: 0 0 16px; font-size: 1.02rem; }
.dc code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel-2); border: 1px solid var(--dc-line); padding: 2px 7px; border-radius: 7px; color: #3a2fd0; word-break: break-word; }
.dc strong { color: var(--ink); font-weight: 650; }
.dc-p a, .dc-list a, .dc-callout a, .dc-lead a, .dc-card a, .st-body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.dc-list { margin: 0 0 18px; padding-left: 22px; display: grid; gap: 9px; line-height: 1.7; color: var(--ink-2); } .dc-list li::marker { color: var(--accent); }

/* steps */
.dc-steps { counter-reset: s; list-style: none; padding: 0; margin: 6px 0 24px; position: relative; }
.dc-steps::before { content: ''; position: absolute; left: 17px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), rgba(85, 70, 255, .08)); }
.dc-steps > li { counter-increment: s; position: relative; padding: 0 0 26px 58px; }
.dc-steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 6px var(--bg, #fbfbfd), 0 8px 20px rgba(85, 70, 255, .35); }
.st-body b { display: block; font-size: 1.06rem; letter-spacing: -.01em; margin-bottom: 4px; }
.st-body p { margin: 0 0 10px; line-height: 1.7; color: var(--ink-2); }

/* code */
.dc-code { border-radius: 16px; overflow: hidden; background: #0f0f17; margin: 12px 0 22px; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 16px 40px rgba(15, 15, 30, .22); }
.dc-code-bar { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px 9px 16px; background: #181823; color: #8d8da0; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.dc-code-bar button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .08); color: #d5d5e2; padding: 6px 11px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; } .dc-code-bar button:hover { background: rgba(255, 255, 255, .16); } .dc-code-bar button.done { background: #1f7a4f; color: #fff; }
.dc-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; } .dc-code code { background: none; border: 0; padding: 0; color: #e8e8f2; font-size: 13.5px; line-height: 1.7; white-space: pre; word-break: normal; }

/* callouts */
.dc-callout { display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; margin: 22px 0; border: 1px solid; }
.dc-callout .ci { flex: none; margin-top: 1px; } .dc-callout b { display: block; margin-bottom: 4px; font-size: 1rem; } .dc-callout p { margin: 0; line-height: 1.65; font-size: .97rem; }
.dc-callout.note { background: #eef4ff; border-color: #cfe0ff; color: #1d3e7a; } .dc-callout.note .ci { color: #2f6fe0; }
.dc-callout.tip { background: #eefbf4; border-color: #c4ecd5; color: #145a3a; } .dc-callout.tip .ci { color: #1f9a62; }
.dc-callout.warn { background: #fff6e8; border-color: #f6dcae; color: #7a4a0c; } .dc-callout.warn .ci { color: #d98a1a; }
.dc-callout code { background: rgba(255, 255, 255, .7); }

/* checklist */
.dc-check { list-style: none; margin: 4px 0 22px; padding: 0; display: grid; gap: 8px; }
.dc-check label { display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--dc-line); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; line-height: 1.6; color: var(--ink-2); }
.dc-check label:hover { border-color: rgba(85, 70, 255, .4); }
.dc-check input { position: absolute; opacity: 0; pointer-events: none; }
.dc-check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c9c9d6; display: grid; place-items: center; color: transparent; margin-top: 1px; transition: all .15s; }
.dc-check input:checked + .box { background: var(--accent); border-color: var(--accent); color: #fff; }
.dc-check input:checked ~ .txt { color: var(--soft); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .2); }
.dc-check input:focus-visible + .box { outline: 3px solid rgba(85, 70, 255, .35); outline-offset: 2px; }

/* tables + cards */
.dc-table { overflow-x: auto; margin: 10px 0 24px; border-radius: 16px; border: 1px solid var(--dc-line); background: #fff; }
.dc-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dc-table th { text-align: left; padding: 13px 18px; background: #12121a; color: #fff; font-weight: 600; font-size: .85rem; letter-spacing: .03em; white-space: nowrap; }
.dc-table td { padding: 14px 18px; border-top: 1px solid var(--dc-line); vertical-align: top; line-height: 1.6; color: var(--ink-2); }
.dc-table tbody tr:first-child td { border-top: 0; } .dc-table td[data-first] { font-weight: 600; color: var(--ink); } .dc-table tbody tr:hover td { background: #fafaff; }
.dc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0 22px; }
.dc-card { padding: 20px; border-radius: 18px; border: 1px solid var(--dc-line); background: #fff; } .dc-card b { display: block; margin-bottom: 6px; font-size: 1.02rem; } .dc-card p { margin: 0; color: var(--ink-2); line-height: 1.65; font-size: .95rem; }
.dc-guides { display: grid; gap: 10px; margin: 10px 0 22px; }
.dc-guides a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--dc-line); background: #fff; transition: transform .15s, border-color .15s, box-shadow .15s; }
.dc-guides a:hover { transform: translateX(4px); border-color: rgba(85, 70, 255, .4); box-shadow: 0 14px 36px rgba(25, 20, 70, .1); }
.dc-guides .gi { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); } .dc-guides b { display: block; } .dc-guides small { color: var(--muted); line-height: 1.5; } .dc-guides i { color: var(--accent); }

/* prev / next */
.dc-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.dc-pn a { display: block; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--dc-line); background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dc-pn a:hover { border-color: rgba(85, 70, 255, .45); box-shadow: 0 16px 40px rgba(25, 20, 70, .1); transform: translateY(-2px); }
.dc-pn small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); font-weight: 700; } .dc-pn b { font-size: 1.05rem; }
.dc-pn .next { text-align: right; grid-column: 2; }

@media (max-width: 1180px) { .dc-layout { grid-template-columns: 230px minmax(0, 1fr); } .dc-toc { display: none; } }
@media (max-width: 900px) {
  .dc-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .dc-side { position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); max-height: none; background: #fff; z-index: 90; padding: 24px 18px; transform: translateX(-102%); transition: transform .25s; box-shadow: 0 0 80px rgba(0, 0, 0, .3); }
  .dc-side.open { transform: none; }
  .dc-side-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--dc-line); background: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; justify-self: start; }
  .dc-hero-actions { padding-left: 0; } .dc-grid { grid-template-columns: 1fr 1fr; } .dc-help { grid-template-columns: 1fr; }
  .dc-start { grid-template-columns: auto 1fr; } .dc-start-go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dc-hero-row { flex-direction: column; gap: 16px; } .dc-grid, .dc-cards, .dc-pn { grid-template-columns: 1fr; } .dc-pn .next { grid-column: 1; }
  .dc-start { padding: 22px; margin-top: -30px; } .dc-sec-head { flex-direction: column; gap: 8px; } .dc-steps > li { padding-left: 50px; }
  .dc-table th, .dc-table td { padding: 11px 12px; } .dc-hero.center { padding: 52px 0 70px; }
}
html.dc-lock { overflow: hidden; }
@media print { .dc-side, .dc-toc, .dc-progress, .dc-side-toggle, .dc-hero-actions, .dc-code-bar button { display: none !important; } .dc-layout { display: block; } }
.dc-toc { align-self: stretch; }
