/* Orbistocks docs and legal pages (owner: shell): a sticky side index and long-form prose on the shared ground. */

.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.docs__aside { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 8px; }
.docs__aside a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font: 400 14px/1.3 var(--font-sans); color: var(--muted); border-left: 2px solid transparent; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.docs__aside a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.docs__aside a.is-active { color: var(--text); border-left-color: var(--green); border-radius: 0 8px 8px 0; }
.docs__aside .t-mono { padding: 0 10px 8px; }
.docs__body { min-width: 0; }
@media (max-width: 1023px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs__aside { position: sticky; top: var(--nav-h); z-index: 5; max-height: none; flex-direction: row; gap: 6px; overflow-x: auto; padding: 10px 0; margin: 0 calc(-1 * var(--gutter)); padding-inline: var(--gutter); background: rgba(15, 17, 19, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .docs__aside::-webkit-scrollbar { display: none; }
  .docs__aside .t-mono { display: none; }
  .docs__aside a { flex: none; min-height: 36px; border: 1px solid var(--line-2); border-radius: var(--radius-pill); padding: 0 12px; font-size: 13px; }
  .docs__aside a.is-active { border-color: var(--green); color: var(--text); border-radius: var(--radius-pill); background: var(--green-soft); }
}

/* prose */
.prose { color: var(--text-2); font-size: var(--fs-body); line-height: 1.65; }
.prose > * + * { margin-top: 16px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--font-sans); letter-spacing: -0.015em; color: var(--text); margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2:first-of-type { margin-top: 24px; }
.prose h3 { font: 500 18px/1.3 var(--font-sans); color: var(--text); margin-top: 32px; }
.prose p { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose li::marker { color: var(--dim); }
.prose strong { color: var(--text); font-weight: 500; }
.prose code { white-space: nowrap; }
.prose pre code { white-space: pre; }
.prose .eyebrow { margin-bottom: 8px; }
.prose table { font-size: 14px; }
.prose .table-wrap { margin-top: 20px; }
.prose .notice { margin-top: 20px; }
.prose .t-small { color: var(--muted); }
.prose .kv-list { display: flex; flex-direction: column; gap: 0; padding: 4px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.prose .kv-list .kv { padding: 10px 0; border-bottom: 1px solid var(--line); min-height: 44px; align-items: center; }
.prose .kv-list .kv:last-child { border-bottom: 0; }
.prose dl.kv { margin: 0; }
.docs__hero { padding-bottom: 24px; }
.docs__hero .t-lead { margin-top: 16px; max-width: 56ch; }
.docs__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.legal .prose h2 { font-size: 20px; margin-top: 36px; padding-top: 20px; }
@media (max-width: 767px) { .prose h2 { margin-top: 40px; padding-top: 20px; } }

/* fee table */
.fees td:first-child { color: var(--text); font-weight: 500; }
.fees .is-num { color: var(--green); font-weight: 500; }
.fees .t-dim { font-weight: 400; }

/* faq */
.faq { display: flex; flex-direction: column; }
.faq__item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { margin: 0 0 8px; font: 500 16px/1.35 var(--font-sans); color: var(--text); }
.faq__item p { max-width: 70ch; margin: 0; }

/* limits table: long values (the nine levels) wrap on phones; the owner lists read as plain prose */
.limits .is-num { white-space: normal; color: var(--text); font-weight: 500; }
.limits td:first-child { color: var(--text); font-weight: 500; }
.prose pre { font-size: 12.5px; }
@media (max-width: 639px) {
  .limits tr { display: flex; flex-direction: column; gap: 6px; }
  .limits td, .limits td.is-num { width: 100%; text-align: left; }
  .limits td.is-num { font-size: 14px; }
}
