/* Protostar docs: same deep field look as the homepage, tuned for reading. */
.docs-hero { max-width: var(--wrap); margin: 0 auto; padding: 36px 32px 28px; }
.docs-hero h1 { font: 400 clamp(28px, 4vw, 40px)/1.2 var(--display); }
.docs-hero p { margin-top: 10px; color: var(--muted); }
.doc-search, .cmd-filter {
  width: min(560px, 100%); min-height: 48px; margin-top: 22px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(166, 212, 255, 0.16); background: var(--panel); color: var(--text); font: 16px var(--sans);
}
.cmd-filter { min-height: 44px; margin: 6px 0 4px; font-size: 15px; }
.doc-search:focus, .cmd-filter:focus { outline: 2px solid var(--ice); outline-offset: 2px; }

.docs-layout { max-width: var(--wrap); margin: 0 auto; padding: 0 32px 80px; display: flex; align-items: flex-start; gap: 48px; }
.toc { flex: 0 0 220px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.toc summary { list-style: none; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 10px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 4px 0 0; padding: 0; }
.toc a { display: block; padding: 7px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 15px; transition: background-color .15s, color .15s; }
.toc a:hover { background: var(--panel); color: var(--text); }
.toc a[aria-current="true"] { background: var(--raised); color: var(--text); box-shadow: inset 2px 0 0 var(--ice); }

.doc { flex: 1; min-width: 0; max-width: 820px; }
.doc-section { padding: 8px 0 44px; scroll-margin-top: 16px; }
.doc-section + .doc-section { border-top: 1px solid rgba(166, 212, 255, 0.08); padding-top: 36px; }
.doc h2 { position: relative; font: 400 clamp(20px, 2.4vw, 26px)/1.3 var(--display); margin-bottom: 14px; }
.doc h3 { font-size: 18px; font-weight: 600; margin: 26px 0 10px; }
.doc p, .doc li, .doc dd { color: var(--soft); max-width: 70ch; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--ice); }
.anchor { position: absolute; left: -1.1em; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .15s; }
.doc h2:hover .anchor, .anchor:focus { opacity: 1; }
.doc code { font: 500 0.88em var(--mono); color: #DCEBFF; background: rgba(154, 209, 255, 0.09); padding: 1px 6px; border-radius: 5px; }
.q { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(166, 212, 255, 0.4); color: var(--ice); font-size: 11px; font-weight: 600; vertical-align: 2px; }
.steps li::marker { color: var(--ice); font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 12px; border: 1px solid rgba(166, 212, 255, 0.10); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 14px; background: var(--panel); border-bottom: 1px solid rgba(166, 212, 255, 0.10); }
.doc td { padding: 12px 14px; vertical-align: top; color: var(--soft); border-bottom: 1px solid rgba(166, 212, 255, 0.06); }
.doc tr:last-child td { border-bottom: 0; }
.cmds td:first-child { white-space: nowrap; }
.cmds td:last-child { white-space: nowrap; color: var(--muted); font-size: 14px; }
.cmd { color: var(--ice) !important; }
.copy { margin-left: 8px; padding: 2px 8px; min-height: 26px; border-radius: 6px; border: 1px solid rgba(166, 212, 255, 0.18); background: transparent; color: var(--muted); font: 500 12px var(--sans); cursor: pointer; vertical-align: 1px; }
.copy:hover { color: var(--text); border-color: rgba(166, 212, 255, 0.35); }
.copy.is-done { color: var(--on); border-color: rgba(99, 219, 166, 0.5); }
.opts { list-style: none; padding: 0 !important; margin: 8px 0 0 !important; font-size: 14px; }
.opts li { margin: 3px 0; color: var(--muted); }
.opt-type { color: var(--muted); font-size: 13px; }
.opt { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid rgba(166, 212, 255, 0.18); }

.callout { margin: 16px 0; padding: 12px 16px; border-radius: 12px; color: var(--soft); max-width: 70ch;
  background: rgba(154, 209, 255, 0.06); border: 1px solid rgba(154, 209, 255, 0.18); }
.callout strong { color: var(--ice); margin-right: 4px; }
.callout-note { background: rgba(255, 180, 92, 0.06); border-color: rgba(255, 180, 92, 0.25); }
.callout-note strong { color: #FFD9A3; }
.faq dt { font-weight: 600; color: var(--text); margin-top: 18px; }
.faq dd { margin: 6px 0 0; }
.no-results { color: var(--muted); padding: 24px 0; }
.is-hidden { display: none !important; }

@media (max-width: 900px) {
  .docs-hero { padding: 24px 20px 18px; }
  .docs-layout { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 20px 64px; }
  .doc { width: 100%; }
  .toc { position: static; width: 100%; flex: none; max-height: none; border: 1px solid rgba(166, 212, 255, 0.12); border-radius: 12px; padding: 4px; }
  .toc summary { cursor: pointer; padding: 10px 12px; }
  .anchor { display: none; }
  .cmds td:first-child, .cmds td:last-child { white-space: normal; }
}

/* Terms and Privacy pages */
.legal { max-width: 760px; margin: 0 auto; padding: 32px 32px 80px; }
.legal h1 { font: 400 clamp(26px, 3.6vw, 36px)/1.25 var(--display); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 10px 0 28px; }
.legal h2 { font: 600 19px/1.4 var(--sans); margin: 30px 0 10px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--text); }
@media (max-width: 900px) { .legal { padding: 24px 20px 64px; } }
