/* bounty — docs page */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 50px; padding-top: 130px; align-items: start; }
.toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 6px; }
.toc::-webkit-scrollbar { width: 6px; }
.toc::-webkit-scrollbar-thumb { background: #1e222c; border-radius: 6px; }
.toc-search { position: relative; display: block; margin-bottom: 16px; }
.toc-search i { position: absolute; left: 14px; top: 13px; font-size: 12px; color: var(--dim); }
.toc-search input {
  width: 100%; height: 40px; padding: 0 40px 0 36px; border-radius: 999px; outline: 0; font: inherit; font-size: 14px; color: #fff;
  border: 1px solid transparent; background: linear-gradient(#0f1219, #0b0e15) padding-box, var(--edge) border-box;
}
.toc-search kbd { position: absolute; right: 12px; top: 10px; font-family: var(--mono); font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
#toc-links { display: grid; gap: 2px; }
#toc-links a { display: flex; align-items: center; gap: 10px; border-radius: 10px; color: #b1bdd8; transition: background .2s, color .2s; }
.toc-l1 { padding: 8px 12px; font-weight: 600; font-size: 14px; margin-top: 4px; }
.toc-l1 i { width: 16px; text-align: center; font-size: 12px; color: #8995af; }
.toc-l2 { padding: 5px 12px 5px 38px; font-size: 13px; }
#toc-links a:hover { color: #fff; background: rgba(255,255,255,.04); }
#toc-links a.on { color: #fff; background: var(--fill) padding-box, var(--edge) border-box; border: 1px solid transparent; }
#toc-links a.on i { color: var(--teal); }
#toc-links a.hidden { display: none; }

.doc { min-width: 0; padding-bottom: 60px; }
.doc-hero h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.doc-hero p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 700px; }
.doc section { padding: 34px 36px; margin-top: 26px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); transition: opacity .3s, filter .3s; scroll-margin-top: 110px; }
.doc section.dim { opacity: .25; filter: grayscale(1); }
.doc h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; color: var(--teal); scroll-margin-top: 110px; }
.doc p { color: #c1d2f6; font-size: 16px; line-height: 1.75; margin-top: 12px; }
.doc a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.doc a:hover { text-decoration-color: var(--teal); }
.doc code { font-family: var(--mono); font-size: 13.5px; color: #eff3fc; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); padding: 1px 7px; border-radius: 7px; cursor: copy; transition: background .2s; }
.doc code.copied { background: rgba(74,222,128,.18); border-color: rgba(74,222,128,.35); }
.steps-list { margin: 16px 0 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps-list li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); color: #d5dcdd; line-height: 1.65; }
.steps-list li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--fill) padding-box, var(--edge) border-box; border: 1px solid transparent; color: #fff; }
.ticks { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: #d5dcdd; line-height: 1.65; }
.ticks li::before { content: '\f058'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--teal); }
.callout { display: flex; gap: 14px; margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); color: #dfe8fb; line-height: 1.65; }
.callout > i { color: var(--teal); margin-top: 4px; }
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 16px; }
.cmd-ex { display: block; line-height: 2; padding: 12px 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); transition: border-color .2s, transform .35s var(--spring); }
.cmd-ex:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.cmd-ex > code { white-space: nowrap; }
.cmd-ex > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 4px; }
.cmd-ex > span code { white-space: nowrap; }
.vars { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.vars td { padding: 8px 10px; color: #c8d1e4; background: var(--card-2); }
.vars td:nth-child(odd) { border-radius: 10px 0 0 10px; width: 1%; white-space: nowrap; }
.vars td:nth-child(even) { border-radius: 0 10px 10px 0; }
.vars td:nth-child(3) { box-shadow: -8px 0 0 var(--card); }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips-row span { padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #e8eefb; background: var(--fill) padding-box, var(--edge) border-box; border: 1px solid transparent; }
.more-link { margin-top: 20px !important; }
details { margin-top: 10px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
summary { cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; color: var(--dim); transition: transform .3s var(--spring); }
details[open] summary::after { transform: rotate(180deg); }
details p { margin: 0 !important; padding: 0 18px 16px; }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 110px; }
  .toc { position: static; max-height: none; }
  #toc-links { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc-l2 { display: none !important; }
  .toc-l1 { margin: 0; padding: 7px 12px; background: var(--card); border: 1px solid var(--line); }
  .doc section { padding: 24px 20px; }
  .vars td:nth-child(3), .vars td:nth-child(4) { display: none; }
}
