/* Quantum Vault — documentation page */
.docs-page .nav { position: sticky; }
.docs-page .brand img { width: 30px; height: 30px; }
.docs-nav a.active { color: var(--fog); }
.docs-page .status { text-decoration: none; }

.docs {
  max-width: 1180px; margin: 0 auto; padding: 56px var(--gutter) 96px;
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px);
}
.docs-toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.docs-toc p { color: var(--steel); margin-bottom: 12px; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--edge); }
.docs-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--steel); text-decoration: none; }
.docs-toc a:hover, .docs-toc a.on { color: var(--fog); border-left-color: var(--ion); }

.docs-body { max-width: 76ch; }
.docs-hero { margin-bottom: 56px; }
.docs-hero h1 { font-size: clamp(48px, 7vw, 88px); max-width: 14ch; }
.docs-body section { padding-top: 24px; margin-bottom: 56px; scroll-margin-top: 90px; }
.docs-body h2 { font-size: clamp(34px, 4.4vw, 52px); max-width: none; margin-bottom: 18px; }
.docs-body h3 { font-size: 18px; margin: 28px 0 12px; }
.docs-body p, .docs-body li { color: #B8C2CE; line-height: 1.7; }
.docs-body p + p { margin-top: 14px; }
.docs-body ul { padding-left: 20px; margin: 14px 0; }
.docs-body li { margin: 8px 0; }
.docs-body li::marker { color: var(--ion); }
.docs-body strong { color: var(--fog); font-weight: 600; }
.docs-body a { color: var(--ion); }
.docs-body code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em;
  padding: 2px 6px; border-radius: 5px; background: var(--rock-2); color: var(--fog);
}
.docs-table { overflow-x: auto; border: 1px solid var(--edge); border-radius: 10px; margin: 18px 0; }
.docs-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.docs-table th, .docs-table td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--edge); vertical-align: top; }
.docs-table tr:first-child th, .docs-table tr:first-child td, .docs-table thead th { border-top: 0; }
.docs-table thead th { color: var(--steel); font-weight: 500; font-size: 13px; background: var(--rock); }
.docs-table tbody th { color: var(--steel); font-weight: 500; white-space: nowrap; width: 1%; }
.docs-table td { color: #C9D2DD; }
.docs-table code { word-break: break-all; }

.live-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--edge); border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.live-grid div { padding: 16px 18px; background: var(--rock); }
.live-grid dt { font-size: 13px; color: var(--steel); }
.live-grid dd { margin: 4px 0 0; font: 800 26px var(--display); color: var(--fog); }
.docs-note { font-size: 13px; color: var(--steel) !important; margin-top: 10px; }
.docs-formula { justify-content: flex-start; margin: 20px 0; }
.docs-callout { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--edge); border-left: 2px solid var(--gold); border-radius: 0 10px 10px 0; background: rgba(231, 178, 76, .05); }
.docs-callout h3 { margin-top: 0; }

.docs-body details { border-top: 1px solid var(--edge); padding: 4px 0; }
.docs-body details:last-of-type { border-bottom: 1px solid var(--edge); }
.docs-body summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--fog); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.docs-body summary::-webkit-details-marker { display: none; }
.docs-body summary::after { content: "+"; color: var(--ion); font-size: 20px; line-height: 1; transition: transform .3s; }
.docs-body details[open] summary::after { transform: rotate(45deg); }
.docs-body details p { padding-bottom: 14px; }
.docs-foot { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--edge); }

@media (max-width: 900px) {
  .docs { grid-template-columns: 1fr; }
  .docs-toc { position: static; }
  .docs-toc ol { display: flex; flex-wrap: wrap; gap: 4px 0; border-left: 0; }
  .docs-toc a { padding: 4px 12px 4px 0; border: 0; }
  .docs-page .nav-links.docs-nav { display: flex; }
}
@media (max-width: 560px) {
  .live-grid { grid-template-columns: 1fr; }
  .docs-page .status { display: inline-flex; }
  .docs-nav { gap: 16px; }
}
