.doc-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h); padding: 0 16px;
  background: var(--sidebar-bg); border-bottom: 1px solid var(--border);
}
.doc-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.doc-brand-logo {
  height: 56px; width: auto; display: block;
  color: var(--text-muted);
  transition: color .18s ease, transform .18s ease;
  transform-origin: left center;
}
.doc-brand:hover .doc-brand-logo { color: var(--accent); transform: scale(1.06); }
.doc-page-title {
  font-size: .95rem; font-weight: 700; letter-spacing: -.02em; line-height: 1;
  color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column }
main.doc-wrap { flex: 1 0 auto; width: 100%; max-width: 960px; margin: 32px auto 40px; padding: 0 16px }
main.doc-wrap.doc-wrap--narrow { max-width: 720px }

.doc.card { padding: 40px }
.doc h2 { font-size: 1.25rem; margin: 1.1rem 0 .6rem }
.doc h3 { font-size: 1.05rem; margin: 1rem 0 .5rem }
.doc a { text-decoration: underline; text-underline-offset: .12em }
.doc small, .doc .muted { color: var(--text-muted, #6b7280) }

.doc .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .8rem 0 }
.doc table { border-collapse: collapse; width: 100%; margin: .8rem 0; table-layout: auto }
.doc th, .doc td {
  border: 1px solid var(--border, #e5e7eb); padding: .5rem .6rem; vertical-align: top;
  white-space: normal !important; overflow: visible !important; text-overflow: clip !important;
  word-break: break-word; overflow-wrap: anywhere;
}
.doc th { font-weight: 600 }

.doc .disclaimer { border: 1px solid var(--border, #e5e7eb); border-radius: 6px; padding: .8rem 1rem; margin: .8rem 0; background: var(--bg-secondary, #f9fafb); color: #000000 }

.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: .8rem 0 }
.doc dt { font-weight: 600; color: var(--text-muted, #6b7280) }
