/* ---------------------------------------------------------------------------
   DEVNITE STUDIOS
   ---------------------------------------------------------------------------
   Project      : Kirzen 4.1
   Organization : Devnite Studios
   License      : Proprietary
   Copyright    : © 2026 Devnite Studios. All rights reserved.
   --------------------------------------------------------------------------- */

/* ============================================================================
   DOCS
   Reading, not scanning. Narrow measure, generous line height, and the code
   given enough contrast to be picked out of the prose around it.
   ============================================================================ */

.docs-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ----------------------------------------------------------------------------
   CONTENTS
   ---------------------------------------------------------------------------- */

.docs-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--bg-surface);
}

.docs-nav-label {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-nav a {
  padding: 6px 9px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 11.5px;
  text-decoration: none;
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.docs-nav a:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------------------
   BODY
   ---------------------------------------------------------------------------- */

.docs-body {
  max-width: 720px;
}

.docs-body section {
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.docs-body section:last-child {
  margin-bottom: 0;
}

.docs-body h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.docs-body h3 {
  margin: 26px 0 10px;
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 650;
}

.docs-body p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.docs-body a {
  color: var(--accent-primary);
}

.docs-note {
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-primary);
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.05);
  font-size: 12.5px;
}

/* ----------------------------------------------------------------------------
   CODE
   ---------------------------------------------------------------------------- */

.docs-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-mono, ui-monospace, "SFMono-Regular", Menlo, monospace);
  font-size: 11.5px;
}

.docs-body pre {
  margin: 0 0 16px;
  padding: 15px 17px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
}

.docs-body pre code {
  padding: 0;
  background: none;
  color: #dbdee1;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre;
}

/* A run of names, spaced out enough to be read one at a time. */
.docs-inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-inline-list code {
  background: rgba(255, 255, 255, 0.04);
}

/* ----------------------------------------------------------------------------
   TABLES
   ---------------------------------------------------------------------------- */

.docs-table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
}

.docs-table th {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.docs-table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.65;
  vertical-align: top;
}

.docs-table td:first-child {
  width: 34%;
  white-space: nowrap;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

/* ----------------------------------------------------------------------------
   NARROW SCREENS
   ---------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .docs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .docs-nav-label {
    width: 100%;
    margin-bottom: 4px;
  }

  .docs-table td:first-child {
    width: auto;
    white-space: normal;
  }
}


/* ----------------------------------------------------------------------------
   TWO DIALECTS SIDE BY SIDE
   ---------------------------------------------------------------------------- */

.docs-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.docs-split-label {
  display: block;
  margin-bottom: 7px;
  color: var(--accent-primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.docs-split pre {
  height: calc(100% - 24px);
  margin: 0;
}

.docs-plain-list {
  margin: 0 0 16px;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.docs-plain-list li {
  margin-bottom: 8px;
}

.docs-plain-list strong {
  color: var(--text-primary);
}
