/* ---------- Docs at #/docs: navigation left, the article in the middle, contents on the right ---------- */
.dc { position: relative; display: grid; grid-template-columns: 264px minmax(0, 1fr) 260px; grid-template-rows: 64px auto; min-height: 100vh; background: #000000; color: #ffffff; font-family: 'Geist', 'Helvetica Neue', Arial, sans-serif; }
.dc a { color: #ffffff; text-decoration: none; }
.dc button { font: inherit; color: inherit; }
.dc :is(a, button, input):focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.dc-bl { font-family: 'Manufacturing Consent', 'UnifrakturMaguntia', serif; font-weight: 400; }
.dc-cp { font-family: 'Geist Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: #a3a3a3; }
.dc-grow { flex: 1; }

.dc-top { position: sticky; top: 0; grid-column: 1 / -1; z-index: 4; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; box-sizing: border-box; border-bottom: 1px solid #141414; background: #050505; }
.dc-brand { display: flex; align-items: center; gap: 12px; }
.dc-brand .dc-bl { font-size: 24px; line-height: 1; }
.dc-sigil { display: block; width: 18px; height: 25px; background: url('/mark-white.png') center / contain no-repeat; }
.dc-tag { padding: 3px 8px; border-radius: 6px; border: 1px solid #262626; font-family: 'Geist Mono', monospace; font-size: 12px; color: #a3a3a3; }
.dc-srch { position: relative; display: flex; align-items: center; gap: 10px; width: 360px; height: 38px; margin-left: 40px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1px solid #222222; background: #0a0a0a; color: #a3a3a3; transition: border-color 0.2s; }
.dc-srch:focus-within { border-color: #6b6b6b; }
.dc-srch svg { flex: none; width: 16px; height: 16px; }
.dc-srch input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; background: none; color: #ffffff; font: 400 13px 'Geist', sans-serif; }
.dc-srch input::placeholder { color: #a3a3a3; opacity: 1; }
.dc-srch input::-webkit-search-cancel-button { display: none; }
.dc-res { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 6; padding: 6px; border-radius: 14px; border: 1px solid #262626; background: #0a0a0a; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8); animation: dc-in 0.2s ease both; }
.dc-res button { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.dc-res button[aria-selected='true'] { background: #161616; }
.dc-res b { font-size: 14px; font-weight: 600; }
.dc-res span { font-family: 'Geist Mono', monospace; font-size: 11px; color: #a3a3a3; white-space: nowrap; }
.dc-res p { margin: 0; padding: 10px 12px; font-size: 13px; color: #d4d4d4; }
.dc-kb { display: inline-flex; gap: 4px; vertical-align: middle; }
.dc-srch .dc-kb { margin-left: auto; }
.dc-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 6px; border: 1px solid #333333; border-bottom-width: 2px; background: #0e0e0e; font-family: 'Geist Mono', monospace; font-size: 11px; line-height: 1; color: #e5e5e5; }
.dc-site { font-size: 13px; color: #d4d4d4 !important; margin-right: 18px; }
.dc-ob { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #ffffff; color: #000000 !important; font-size: 13px; font-weight: 600; }

.dc-nav { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); padding: 26px 16px 0 24px; box-sizing: border-box; overflow-y: auto; border-right: 1px solid #141414; background: #030303; }
.dc-ng { margin-bottom: 20px; }
.dc-ng .dc-cp { margin: 0 0 8px 12px; }
.dc-ni { display: flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 10px; color: #bdbdbd !important; font-size: 14px; transition: background 0.2s, color 0.2s; }
.dc-ni:hover { background: #0c0c0c; color: #ffffff !important; }
.dc-ni[aria-current='page'] { background: #ffffff; color: #000000 !important; }

.dc-art { min-width: 0; padding: 44px 64px 80px; box-sizing: border-box; }
.dc-in { animation: dc-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes dc-in { from { opacity: 0; transform: translateY(12px); } }
.dc-crumb { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a3a3a3; }
.dc-h1 { margin: 12px 0 0; font-size: 64px; line-height: 1; }
.dc-lead { max-width: 680px; margin: 18px 0 0; font-size: 18px; line-height: 28px; color: #d4d4d4; }
.dc-h2 { margin: 44px 0 14px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 88px; }
.dc-p { max-width: 700px; margin: 0 0 14px; font-size: 15px; line-height: 25px; color: #d4d4d4; }
.dc-p b { color: #ffffff; font-weight: 600; }
.dc-after { margin-top: 14px; }
.dc-code { padding: 2px 7px; border-radius: 6px; border: 1px solid #1f1f1f; background: #111111; font-family: 'Geist Mono', monospace; font-size: 13px; color: #ffffff; }
.dc-steps { counter-reset: dc-st; margin-top: 22px; }
.dc-step { position: relative; display: flex; gap: 20px; padding: 0 0 26px; }
.dc-step::before { counter-increment: dc-st; content: counter(dc-st); flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 99px; border: 1px solid #3a3a3a; font-family: 'Geist Mono', monospace; font-size: 13px; }
.dc-step::after { content: ''; position: absolute; left: 17px; top: 40px; bottom: 6px; width: 1px; background: #1f1f1f; }
.dc-step:last-child::after { display: none; }
.dc-step b { display: block; margin-top: 6px; font-size: 16px; }
.dc-step span:not(.dc-kbd):not(.dc-kb) { display: block; margin-top: 6px; font-size: 14px; line-height: 24px; color: #bdbdbd; }
.dc-call { display: flex; gap: 14px; max-width: 700px; margin: 22px 0; padding: 16px 18px; box-sizing: border-box; border-radius: 14px; border: 1px solid #262626; background: linear-gradient(135deg, #0d0d0d, #070707); font-size: 14px; line-height: 22px; color: #d4d4d4; }
.dc-call i { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 99px; background: #ffffff; color: #000000; font: 700 12px 'Geist Mono', monospace; }
.dc-bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; margin-top: 10px; }
.dc-bc { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid #1c1c1c; background: #080808; transition: border-color 0.2s, transform 0.2s; }
.dc-bc:hover { border-color: #4a4a4a; transform: translateY(-2px); }
.dc-bi { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #262626; background: #121212; }
.dc-bi svg { width: 18px; height: 18px; }
.dc-bc b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.dc-bc > div > span { display: block; margin-top: 5px; font-size: 13px; line-height: 20px; color: #bdbdbd; }
.dc-tbl { width: 100%; max-width: 760px; margin-top: 6px; border-collapse: collapse; }
.dc-tbl td { padding: 11px 0; border-bottom: 1px solid #141414; font-size: 14px; color: #d4d4d4; vertical-align: middle; }
.dc-tbl td:last-child { text-align: right; white-space: nowrap; }
.dc-tbl tr { cursor: pointer; }
.dc-tbl tr:hover td, .dc-tbl tr[data-on] td { color: #ffffff; }
.dc-tbl tr[data-on] td:first-child { padding-left: 12px; box-shadow: inset 3px 0 0 #ffffff; }
.dc-tbl td button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.dc-keyb { display: flex; flex-direction: column; gap: 6px; max-width: 760px; margin-top: 18px; padding: 16px; box-sizing: border-box; overflow-x: auto; border-radius: 18px; border: 1px solid #1c1c1c; background: #060606; }
.dc-krow { display: flex; gap: 6px; }
.dc-k { flex: none; height: 36px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 7px; border: 1px solid #222222; border-bottom-width: 3px; background: #0c0c0c; color: #a3a3a3; font: 500 11px 'Geist Mono', monospace; transition: all 0.25s; }
.dc-k[data-on] { background: #ffffff; border-color: #ffffff; color: #000000; box-shadow: 0 0 18px rgba(255, 255, 255, 0.35); transform: translateY(2px); }
.dc-scr4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 760px; margin-top: 30px; }
.dc-sc { padding: 16px; border-radius: 14px; border: 1px solid #1c1c1c; background: #080808; }
.dc-frm { height: 86px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 12px; }
.dc-frm span { display: block; border: 1.5px solid #ffffff; border-radius: 4px; }
.dc-sc b { display: block; font-size: 14px; }
.dc-sc em { display: block; margin-top: 4px; font-style: normal; font-family: 'Geist Mono', monospace; font-size: 11px; color: #a3a3a3; }
.dc-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 760px; margin-top: 30px; }
.dc-st { padding: 18px; border-radius: 14px; border: 1px solid #1c1c1c; background: #080808; }
.dc-st b { display: block; font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.dc-st span { display: block; margin-top: 8px; font-size: 13px; color: #bdbdbd; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 760px; }
.dc-chip { height: 30px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid #262626; font-size: 13px; color: #d4d4d4; }
.dc-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 760px; }
.dc-plan { padding: 18px; border-radius: 14px; border: 1px solid #1c1c1c; background: #080808; }
.dc-plan[data-on] { border-color: #ffffff; }
.dc-plan ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 23px; color: #d4d4d4; }
.dc-next { display: flex; justify-content: space-between; gap: 12px; max-width: 760px; margin-top: 56px; padding-top: 24px; border-top: 1px solid #141414; }
.dc-nx { flex: 1; padding: 16px 18px; border-radius: 14px; border: 1px solid #1c1c1c; transition: border-color 0.2s; }
.dc-nx:hover { border-color: #5a5a5a; }
.dc-nx-r { text-align: right; }
.dc-nx b { display: block; margin-top: 6px; font-size: 15px; }

.dc-rail { position: sticky; top: 64px; align-self: start; padding: 44px 28px 0 20px; box-sizing: border-box; }
.dc-otp { margin-top: 12px; }
.dc-otp button { display: block; width: 100%; padding: 5px 0 5px 14px; border: 0; border-left: 1px solid #1c1c1c; background: none; color: #bdbdbd; font-size: 13px; text-align: left; cursor: pointer; }
.dc-otp button:hover, .dc-otp button[aria-current='true'] { color: #ffffff; border-left-color: #ffffff; }
.dc-fb { margin-top: 34px; padding: 16px; border-radius: 14px; border: 1px solid #1c1c1c; background: #070707; }
.dc-fb b { font-size: 14px; font-weight: 600; }
.dc-fbb { display: flex; gap: 8px; margin-top: 12px; }
.dc-fbb button { flex: 1; height: 34px; border-radius: 10px; border: 1px solid #2a2a2a; background: transparent; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.dc-fbb button:hover { border-color: #ffffff; }
.dc-fbb button[aria-pressed='true'] { background: #ffffff; border-color: #ffffff; color: #000000; }
.dc-fb p { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: #d4d4d4; }
.dc-fb p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1179px) {
  .dc { grid-template-columns: 264px minmax(0, 1fr); }
  .dc-rail { display: none; }
}
@media (max-width: 859px) {
  .dc { display: block; }
  .dc-top { padding: 0 16px; gap: 10px; }
  .dc-tag, .dc-site, .dc-srch .dc-kb { display: none; }
  .dc-srch { width: auto; flex: 1; margin-left: 4px; }
  .dc-grow:first-of-type { display: none; }
  .dc-ob { padding: 0 12px; font-size: 12px; }
  .dc-nav { position: static; height: auto; display: flex; gap: 6px; padding: 12px 16px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #141414; }
  .dc-ng { display: contents; }
  .dc-ng .dc-cp { display: none; }
  .dc-ni { flex: none; height: 32px; }
  .dc-art { padding: 28px 16px 60px; }
  .dc-h1 { font-size: 48px; }
  .dc-bgrid, .dc-plans { grid-template-columns: 1fr; }
  .dc-scr4 { grid-template-columns: repeat(2, 1fr); }
  .dc-stat { grid-template-columns: repeat(2, 1fr); }
}

/* API reference uses the same documentation shell as the editor guide. */
.api-doc-body { margin:0; background:#000; color:#fff; color-scheme:dark; }
.api-docs .dc-top { box-sizing:border-box; }
.api-docs .dc-brand { flex:none; }
.api-docs .dc-srch { min-width:140px; }
.api-docs .dc-srch input { width:100%; }
.api-docs .dc-res[hidden] { display:none; }
.api-docs .dc-art { overflow-wrap:anywhere; }
.api-docs .dc-h1 { max-width:650px; }
.api-docs section { scroll-margin-top:88px; }
.api-docs .dc-p a, .api-docs .sd a { text-decoration:underline; text-underline-offset:3px; }
.api-docs .dc-step .sd { display:block; margin-top:6px; font-size:14px; line-height:24px; color:#bdbdbd; }
.api-docs .dc-otp a { display:block; padding:5px 0 5px 14px; border-left:1px solid #1c1c1c; color:#bdbdbd; font-size:13px; line-height:20px; }
.api-docs .dc-otp a:hover, .api-docs .dc-otp a[aria-current="location"] { color:#fff; border-left-color:#fff; }
.api-docs .dc-nav { scrollbar-width:thin; scrollbar-color:#2a2a2a transparent; }
.api-code-box { margin:22px 0; border:1px solid #262626; border-radius:14px; background:#080808; overflow:hidden; }
.api-code-top { min-height:44px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 16px; border-bottom:1px solid #1c1c1c; }
.api-code-top button { border:1px solid #333; border-radius:6px; padding:5px 10px; color:#ddd; background:#111; cursor:pointer; font-size:12px; }
.api-code-top button:hover { border-color:#888; color:#fff; }
.api-code-box pre { margin:0; padding:18px; white-space:pre-wrap; overflow-wrap:anywhere; tab-size:4; font:12px/1.85 'Geist Mono',monospace; color:#d4d4d4; }
.api-table-wrap { width:100%; min-width:0; }
.api-table { table-layout:fixed; }
.api-table th { padding:12px 0; text-align:left; color:#888; font:10px 'Geist Mono',monospace; letter-spacing:.1em; text-transform:uppercase; border-bottom:1px solid #262626; }
.api-table th:first-child { width:45%; }
.api-docs .api-table td { padding:13px 12px 13px 0; vertical-align:top; cursor:default; overflow-wrap:anywhere; line-height:22px; }
.api-docs .api-table td:last-child { text-align:left; white-space:normal; }
.api-table code { font:12px/1.8 'Geist Mono',monospace; }
.api-mobile-nav { display:none; }
.api-copy-status { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:30; margin:0; padding:12px 18px; border:1px solid #333; background:#111; color:#fff; border-radius:12px; font:13px 'Geist',sans-serif; }
.api-copy-status:empty { display:none; }
@media (max-width:859px) {
  .api-docs .dc-top { height:auto; min-height:108px; flex-wrap:wrap; padding:12px 16px; gap:12px; }
  .api-docs .dc-brand { margin-right:auto; }
  .api-docs .dc-srch { flex:1 1 100%; order:3; margin:0; }
  .api-docs .dc-grow { display:none; }
  .api-docs .dc-nav { display:none; }
  .api-mobile-nav { display:block; border-bottom:1px solid #222; padding:0 16px; }
  .api-mobile-nav summary { padding:16px 0; display:flex; justify-content:space-between; cursor:pointer; font-size:13px; }
  .api-mobile-nav[open] { padding-bottom:20px; }
  .api-mobile-nav .dc-ng { display:block; margin-bottom:14px; }
  .api-mobile-nav .dc-cp { display:block; margin:16px 12px 8px; }
  .api-mobile-nav .dc-ni { height:34px; }
  .api-mobile-sections { display:grid; padding:0 12px; gap:14px; font-size:14px; }
  .api-docs section { scroll-margin-top:126px; }
  .api-docs .dc-next { flex-direction:column; }
  .api-docs .dc-nx-r { text-align:left; }
  .api-code-box pre { padding:14px; font-size:11px; }
  .api-table th:first-child { width:46%; }
  .api-table code { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) { .api-docs .dc-in { animation:none; } }
