/* =============================================================
   ARK LABS — DOCS STYLES
   Sidebar navigation + docs content layout.
   Extends base.css tokens. Used on /developers/docs/ and children.
   ============================================================= */

/* ---- Docs shell: hero slimmed down, layout grid ---- */
.docs-hero {
  padding: 48px 60px 36px;
  background: var(--light-blue);
  border-bottom: 1px solid var(--border);
}
.docs-hero-inner { max-width: 1280px; margin: 0 auto; }
.docs-hero h1 {
  font-size: 2.2em; font-weight: 800; line-height: 1.15;
  letter-spacing: -0.6px; color: var(--navy); margin-bottom: 8px;
}
.docs-hero p {
  font-size: 1em; color: var(--steel); line-height: 1.6; max-width: 720px;
}

/* ---- Grid: sidebar + content ---- */
.docs-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  padding: 48px 60px 96px;
  background: var(--white);
}

/* ---- Sidebar ---- */
.docs-sidebar {
  position: sticky; top: 84px; align-self: start;
  max-height: calc(100vh - 96px); overflow-y: auto;
  padding-right: 12px;
}
.docs-sidebar-title {
  font-size: 0.72em; font-weight: 700; color: var(--navy);
  text-transform: uppercase; letter-spacing: 1.6px;
  margin-bottom: 12px; padding-left: 12px;
}
.docs-nav { list-style: none; padding: 0; margin: 0; }
.docs-nav li { margin: 0; }
.docs-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 0.9em; font-weight: 500; color: var(--steel);
  text-decoration: none; transition: background 0.15s, color 0.15s;
  border-left: 2px solid transparent;
}
.docs-nav a:hover { background: var(--light-blue); color: var(--navy); }
.docs-nav a.is-active {
  background: var(--cyan-light); color: var(--cyan-dark);
  font-weight: 600; border-left-color: var(--cyan);
}
.docs-nav-group + .docs-nav-group { margin-top: 24px; }

/* ---- Content column ---- */
.docs-content { min-width: 0; }
.docs-content h1 {
  font-size: 2em; font-weight: 800; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.4px; margin-bottom: 10px;
}
.docs-content h2 {
  font-size: 1.4em; font-weight: 700; color: var(--navy);
  line-height: 1.3; margin: 48px 0 14px; letter-spacing: -0.2px;
  padding-top: 8px; border-top: 1px solid var(--border-light);
}
.docs-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 28px; }
.docs-content h3 {
  font-size: 1.1em; font-weight: 700; color: var(--navy);
  margin: 28px 0 10px;
}
.docs-content h4 {
  font-size: 0.95em; font-weight: 700; color: var(--navy-alt);
  margin: 22px 0 8px;
}
.docs-content p {
  font-size: 1em; color: var(--navy-alt); line-height: 1.7;
  margin-bottom: 14px;
}
.docs-content .lead {
  font-size: 1.1em; color: var(--steel); line-height: 1.6;
  margin-bottom: 24px;
}
.docs-content ul, .docs-content ol {
  margin: 0 0 16px 22px; color: var(--navy-alt);
  line-height: 1.7; font-size: 1em;
}
.docs-content li { margin-bottom: 6px; }
.docs-content li code { font-size: 0.9em; }
.docs-content a {
  color: var(--cyan-dark); text-decoration: none;
  border-bottom: 1px solid rgba(0,144,192,0.25);
  transition: border-color 0.15s;
}
.docs-content a:hover { border-bottom-color: var(--cyan-dark); }
.docs-content strong { color: var(--navy); font-weight: 700; }

/* ---- Inline code + code blocks ---- */
.docs-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em; background: var(--light-blue);
  color: var(--navy-deep); padding: 2px 6px; border-radius: 4px;
  border: 1px solid var(--border);
}
.docs-content pre {
  background: var(--navy-deep); color: #E8F1F8;
  border-radius: 12px; padding: 20px 22px;
  overflow-x: auto; margin: 18px 0 24px;
  font-size: 0.86em; line-height: 1.6;
  border: 1px solid var(--navy);
  box-shadow: 0 8px 24px rgba(12,35,64,0.08);
}
.docs-content pre code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  background: transparent; color: inherit;
  padding: 0; border: 0; border-radius: 0; font-size: 1em;
}
.docs-content .code-label {
  display: inline-block; font-size: 0.72em; font-weight: 700;
  color: var(--cyan); text-transform: uppercase; letter-spacing: 1.4px;
  margin-bottom: -10px; margin-left: 4px;
}

/* ---- Callout / note box ---- */
.docs-note {
  background: var(--cyan-light); border-left: 3px solid var(--cyan);
  border-radius: 8px; padding: 14px 18px;
  margin: 18px 0 22px; color: var(--navy-alt);
  font-size: 0.95em; line-height: 1.6;
}
.docs-note strong { color: var(--navy); }

.docs-warning {
  background: var(--amber-light); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 14px 18px;
  margin: 18px 0 22px; color: #7A4A07;
  font-size: 0.95em; line-height: 1.6;
}

/* ---- Parameter / limitation list (used on intro) ---- */
.docs-param-list {
  list-style: none; margin: 0 0 18px; padding: 0;
  border: 1px solid var(--border-light); border-radius: 10px;
  overflow: hidden;
}
.docs-param-list li {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  font-size: 0.95em; color: var(--navy-alt); line-height: 1.55;
  margin: 0;
}
.docs-param-list li:last-child { border-bottom: 0; }
.docs-param-list li code {
  font-weight: 600; color: var(--cyan-dark);
  background: var(--white); border-color: var(--border);
}

/* ---- Prev / next footer ---- */
.docs-pager {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; gap: 16px;
}
.docs-pager a {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 20px; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none;
  min-width: 180px; transition: border-color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--border);
}
.docs-pager a:hover { border-color: var(--cyan); background: var(--light-blue); }
.docs-pager .pager-label {
  font-size: 0.72em; font-weight: 700; color: var(--steel);
  text-transform: uppercase; letter-spacing: 1.4px;
}
.docs-pager .pager-title {
  font-size: 1em; font-weight: 700; color: var(--navy);
}
.docs-pager .pager-next { text-align: right; margin-left: auto; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .docs-hero { padding: 40px 24px 28px; }
  .docs-layout {
    grid-template-columns: 1fr; gap: 32px;
    padding: 32px 24px 72px;
  }
  .docs-sidebar {
    position: static; max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px; padding-right: 0;
  }
  .docs-nav {
    display: flex; flex-wrap: wrap; gap: 4px;
  }
  .docs-nav a { padding: 6px 12px; border-left: 0; border-radius: 20px; }
  .docs-nav a.is-active { border-left: 0; }
  .docs-nav-group + .docs-nav-group { margin-top: 12px; }
  .docs-pager { flex-direction: column; }
  .docs-pager .pager-next { margin-left: 0; text-align: left; }
}
