/* ─── Docs Page — Content Styles (sidebar handled by app.js) ─── */

/* Content area */
.docs-content {
  overflow-y: auto; padding: 28px 36px; max-width: 900px;
}

/* Welcome screen */
.docs-welcome {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: var(--muted); text-align: center; padding: 40px;
}
.docs-welcome svg { opacity: 0.25; margin-bottom: 16px; }
.docs-welcome h1 { font-size: 1.3rem; font-weight: 800; color: var(--brand-navy); margin: 0 0 8px; }
.docs-welcome p { font-size: 0.9rem; line-height: 1.6; max-width: 400px; }
.docs-welcome-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; width: 100%; max-width: 440px;
}
.docs-welcome-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; text-align: left; cursor: default;
}
.docs-welcome-card h3 {
  font-size: 0.85rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 4px;
}
.docs-welcome-card p {
  font-size: 0.76rem; color: var(--muted); margin: 0; line-height: 1.5;
}

/* ── Content typography ── */
.docs-content h1 { font-size: 1.5rem; font-weight: 900; color: var(--brand-navy); margin: 0 0 8px; }
.docs-content h2 { font-size: 1.15rem; font-weight: 800; color: var(--brand-navy); margin: 32px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-content h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.docs-content h3 { font-size: 0.95rem; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.docs-content p { margin: 0 0 12px; line-height: 1.65; color: var(--ink); font-size: 0.9rem; }
.docs-content ul, .docs-content ol { margin: 0 0 12px; padding-left: 20px; }
.docs-content li { margin: 4px 0; font-size: 0.9rem; line-height: 1.6; }

/* Code blocks */
.docs-content pre {
  background: #1b1f24; color: #e6edf3; border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.55; margin: 0 0 16px;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.docs-content code {
  background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: 1px 5px; font-size: 0.84rem; font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
}
.docs-content pre code { background: none; border: none; padding: 0; }

/* Method badges */
.docs-method {
  display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: 800;
  font-size: 0.75rem; letter-spacing: 0.04em; color: #fff; margin-right: 6px;
}
.docs-method.get { background: #28a745; }
.docs-method.post { background: #0969da; }
.docs-method.patch { background: #bf8700; }
.docs-method.delete { background: #cf222e; }

/* Tables */
.docs-content table {
  width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.85rem;
}
.docs-content th {
  text-align: left; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line);
  font-weight: 700; color: var(--brand-navy); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.docs-content td { padding: 8px 12px; border: 1px solid var(--line); vertical-align: top; }

/* Status badge */
.docs-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.docs-status.ok { background: #dafbe1; color: #116329; }
.docs-status.warn { background: #fff8c5; color: #4d2d00; }
.docs-status.err { background: #ffe2e0; color: #82071e; }

/* Endpoint path */
.docs-path { font-family: 'Cascadia Code', monospace; font-weight: 600; font-size: 0.88rem; color: var(--ink); }

/* Section anchor */
.docs-section { scroll-margin-top: 12px; }

/* Base URL info box */
.docs-base-url {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 16px; margin: 0 0 16px; font-size: 0.85rem;
}
.docs-base-url code { font-size: 0.82rem; }
