/* /docs: title and three summary cells, then a sticky table of contents beside the sections; a select on phones */

.dc-hero { padding: 80px 48px 64px; display: grid; gap: 14px; }
.dc-hero .lede { max-width: 620px; }
.dc-cards { margin-top: 36px; }
.dc-cards .cell { transition: background .2s var(--ease); }
.dc-cards .cell:hover { background: rgba(240, 227, 222, 0.03); }
.dc-cards .cell:hover h3 { color: var(--or-2); }
.dc-cards .cell .ic { margin-bottom: 10px; color: var(--or); }

.dc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.dc-toc { align-self: stretch; border-right: 1px dashed var(--line); padding: 44px 20px 44px 24px; }
.dc-toc-in { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; display: grid; gap: 1px; scrollbar-width: thin; }
.dc-toc p { margin: 18px 0 6px 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.dc-toc p:first-child { margin-top: 0; }
.dc-toc a { position: relative; display: block; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.3; color: var(--mute); transition: color .15s, background .15s; }
.dc-toc a:hover { color: var(--head); background: rgba(240, 227, 222, 0.04); }
.dc-toc a.on { color: var(--head); background: rgba(255, 94, 31, 0.1); }
.dc-toc a.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--or); }
.dc-jump { display: none; }

.dc-body { padding: 52px 56px 96px; max-width: 880px; }
.dc-sec { scroll-margin-top: 92px; padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px dashed var(--line); }
.dc-sec:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.dc-k { display: block; margin-bottom: 10px; font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--or); }
.dc-body.prose h2 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; }
.dc-body.prose h3 { margin: 36px 0 6px; font-size: 18px; }
.dc-body.prose p, .dc-body.prose li { font-size: 16px; }
.dc-body.prose p + p { margin-top: 14px; }
.dc-body.prose ul { margin: 14px 0 0; }
.dc-body.prose * + .dc-tbl, .dc-body.prose .dc-tbl + p, .dc-body.prose p + ol, .dc-body.prose ol + p { margin-top: 22px; }
.dc-body.prose a.btn { text-decoration: none; }

/* tables in hairline boxes */
.dc-tbl { background: var(--bg); }
.dc-tbl .tbl { font-size: 14.5px; }
.dc-tbl .tbl th { background: var(--bg-1); padding: 12px 16px; }
.dc-tbl .tbl td, .dc-tbl .tbl tbody th { padding: 13px 16px; line-height: 1.5; }
.dc-tbl .tbl tbody th { text-align: left; font: 500 14.5px/1.4 var(--sans); letter-spacing: 0; text-transform: none; color: var(--head); width: 22%; vertical-align: top; }
.dc-tbl .tbl tbody tr:last-child td, .dc-tbl .tbl tbody tr:last-child th { border-bottom: 0; }
.dc-tbl .tbl td:first-child b { white-space: nowrap; }
.dc-tbl .tbl a { color: var(--or-2); }

/* numbered steps */
.dc-body.prose ol.dc-steps { list-style: none; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.dc-steps li { counter-increment: st; position: relative; padding: 12px 16px 12px 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.dc-steps li::before {
  content: counter(st); position: absolute; left: 14px; top: 12px; width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255, 94, 31, 0.14); color: var(--or-2); font: 600 12px/1 var(--mono);
}
.dc-steps b { color: var(--head); font-weight: 500; }

.dc-line { margin-top: 10px; }
.dc-line code { display: inline-block; max-width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #0f0e0e; color: var(--or-3); font-size: 14px; overflow-wrap: anywhere; }

/* questions */
.dc-qsearch { position: relative; display: block; max-width: 420px; margin: 4px 0 8px; }
.dc-qsearch svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.dc-qsearch .input { border-radius: 999px; padding-left: 38px; }
.dc-qsearch .input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.dc-qnone { margin-top: 18px; }
.dc-qgroup { margin-top: 28px; }
.dc-body.prose .dc-qgroup h3 { margin: 0 0 4px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.dc-q { border-bottom: 1px solid var(--line); }
.dc-q summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 0;
  color: var(--head); font-weight: 500; font-size: 16px; line-height: 1.35;
}
.dc-q summary::-webkit-details-marker { display: none; }
.dc-q summary::after {
  content: ''; flex: none; width: 12px; height: 12px; transition: transform .2s var(--ease);
  background: linear-gradient(var(--mute), var(--mute)) center / 12px 1.5px no-repeat, linear-gradient(var(--mute), var(--mute)) center / 1.5px 12px no-repeat;
}
.dc-q[open] summary::after { transform: rotate(45deg); }
.dc-q summary:hover { color: var(--or-2); }
.dc-body.prose .dc-q p { padding: 0 28px 16px 0; font-size: 15.5px; }
.dc-legal { margin-top: 40px; font-size: 14.5px; }

@media (max-width: 1080px) {
  .dc-grid { grid-template-columns: 220px minmax(0, 1fr); }
  .dc-body { padding: 44px 36px 80px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .dc-cards .cell:last-child { grid-column: 1 / -1; border-bottom: 0; }
}
@media (max-width: 900px) {
  .dc-hero { padding: 56px 18px 44px; }
  .dc-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-toc { display: none; }
  .dc-jump {
    display: block; position: sticky; top: 64px; z-index: 20; padding: 10px 18px; background: var(--bg); border-bottom: 1px dashed var(--line);
  }
  .dc-jump select {
    appearance: none; -webkit-appearance: none; min-height: 44px; padding-right: 40px; font-weight: 500;
    background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
    background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
  }
  .dc-body { padding: 36px 18px 72px; }
  .dc-sec { scroll-margin-top: 140px; padding-bottom: 44px; margin-bottom: 44px; }
}
@media (max-width: 640px) {
  .dc-cards { margin-top: 24px; }
  .dc-cards .cell { padding: 20px; }
  .dc-tbl .tbl td, .dc-tbl .tbl tbody th { padding: 12px; }
  .dc-tbl .tbl td:first-child b { white-space: normal; }
  /* comparison tables stack: one block per row, each value under its column name */
  .dc-tbl .tbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dc-tbl .tbl.stack, .dc-tbl .tbl.stack tbody, .dc-tbl .tbl.stack tr { display: block; }
  .dc-tbl .tbl.stack tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .dc-tbl .tbl.stack tr:last-child { border-bottom: 0; }
  .dc-tbl .tbl.stack tbody th { display: block; width: auto; padding: 0 0 8px; border: 0; }
  .dc-tbl .tbl.stack td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 6px 0; border: 0; }
  .dc-tbl .tbl.stack td::before { content: attr(data-l); font: 500 11px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--dim); padding-top: 1px; }
  .dc-body.prose .dc-q p { padding-right: 0; }
}
