/* ============================================
   Talero Developer Docs — docs.talero.dk
   Layout and typography on top of landing.css
   design tokens. Static site, no build step.
   ============================================ */

/* ── Page shell ── */
.docs-main { padding: 116px 0 96px; min-height: 70vh; }
.docs-layout {
  display: grid; grid-template-columns: 232px minmax(0, 1fr);
  gap: 56px; align-items: start;
}

/* ── Sidebar ── */
.docs-sidebar { position: sticky; top: 100px; }
.docs-sidebar h4 {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--n-400); margin: 24px 0 8px;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar a {
  display: block; padding: 6px 10px; margin-left: -10px;
  font-size: 0.875rem; color: var(--n-600);
  border-radius: var(--r-sm); transition: all var(--t-fast);
}
.docs-sidebar a:hover { color: var(--n-900); background: var(--n-50); }
.docs-sidebar a.active { color: var(--b-600); background: var(--b-50); font-weight: 600; }

/* ── Content typography ── */
.docs-content { max-width: 780px; }
.docs-content .doc-kicker {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-full);
  background: var(--b-50); color: var(--b-600);
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 14px;
}
.docs-content h1 {
  font-size: 2.375rem; font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.12; color: var(--n-950); margin-bottom: 12px;
}
.docs-content .doc-lead {
  font-size: 1.0625rem; color: var(--n-500); line-height: 1.7; margin-bottom: 40px;
}
.docs-content h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--n-950); margin: 52px 0 14px;
  padding-top: 20px; border-top: 1px solid var(--n-100);
}
.docs-content h3 {
  font-size: 1.0625rem; font-weight: 700; color: var(--n-900); margin: 32px 0 10px;
}
.docs-content p { font-size: 0.9375rem; line-height: 1.75; color: var(--n-600); margin-bottom: 14px; }
.docs-content ul, .docs-content ol { padding-left: 22px; margin-bottom: 14px; }
.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }
.docs-content li { font-size: 0.9375rem; line-height: 1.75; color: var(--n-600); margin-bottom: 6px; }
.docs-content a { color: var(--b-600); }
.docs-content a:hover { text-decoration: underline; text-underline-offset: 3px; }
.docs-content strong { color: var(--n-800); }

/* Inline code */
.docs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125em; background: var(--n-100); color: var(--n-800);
  padding: 2px 6px; border-radius: var(--r-sm);
  overflow-wrap: anywhere;
}
.docs-content a code { color: var(--b-600); }

/* Code blocks */
.docs-content pre {
  background: var(--n-950); color: #E6E9EF;
  border-radius: var(--r-lg); padding: 20px 22px;
  margin: 18px 0 24px; overflow-x: auto;
  font-size: 0.8125rem; line-height: 1.65;
}
.docs-content pre code {
  background: none; color: inherit; padding: 0; border-radius: 0;
  font-size: inherit; overflow-wrap: normal; white-space: pre;
}
.code-label {
  display: block; font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--n-400); margin: 18px 0 -10px;
}
.code-label + pre { margin-top: 16px; }

/* Tables */
.docs-content .table-scroll { overflow-x: auto; margin: 18px 0 24px; }
.docs-content table {
  width: 100%; border-collapse: collapse;
  background: var(--n-0); border: 1px solid var(--n-150);
  border-radius: var(--r-lg); overflow: hidden;
  font-size: 0.875rem;
}
.docs-content th {
  text-align: left; padding: 11px 16px; background: var(--n-50);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--n-500); font-weight: 700; border-bottom: 1px solid var(--n-150);
  white-space: nowrap;
}
.docs-content td {
  padding: 11px 16px; color: var(--n-600); border-top: 1px solid var(--n-100);
  vertical-align: top; line-height: 1.6;
}
.docs-content td:first-child { color: var(--n-800); }

/* Callouts */
.callout {
  border: 1px solid var(--n-150); border-left: 3px solid var(--b-500);
  background: var(--n-25); border-radius: var(--r-md);
  padding: 14px 18px; margin: 18px 0 24px;
}
.callout p { margin-bottom: 0; font-size: 0.875rem; }
.callout p + p { margin-top: 8px; }
.callout.warn { border-left-color: #D97706; }

/* HTTP method badge */
.method {
  display: inline-block; min-width: 52px; text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: var(--r-sm); margin-right: 8px;
}
.method.get { background: var(--b-50); color: var(--b-600); }
.method.post { background: var(--s-light); color: var(--success); }
.method.put { background: #FEF3C7; color: #B45309; }
.method.delete { background: #FEE2E2; color: #B91C1C; }

/* Endpoint list rows */
.endpoint-list { list-style: none; padding-left: 0; }
.endpoint-list li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 0;
  padding: 10px 0; border-bottom: 1px solid var(--n-100);
  font-size: 0.875rem;
}
.endpoint-list li:last-child { border-bottom: none; }
.endpoint-list .ep-desc { color: var(--n-500); margin-left: auto; padding-left: 16px; }

/* Changelog entries */
.log-entry { margin-bottom: 56px; }
.log-entry .log-date {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--n-400); margin-bottom: 4px;
}
.log-entry h2 { margin-top: 0; padding-top: 0; border-top: none; }

/* Next-page footer links */
.doc-next {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--n-100);
}
.doc-next a {
  display: inline-block; padding: 10px 18px;
  border: 1.5px solid var(--n-200); border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 600; color: var(--n-700);
  transition: all var(--t-fast);
}
.doc-next a:hover { border-color: var(--b-300); color: var(--b-600); text-decoration: none; }

/* Docs footer has one column fewer than the landing site */
@media (min-width: 1025px) {
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar {
    position: static; display: flex; flex-wrap: wrap; gap: 2px 14px;
    padding-bottom: 16px; border-bottom: 1px solid var(--n-100);
  }
  .docs-sidebar h4 { flex-basis: 100%; margin: 12px 0 4px; }
  .docs-sidebar a { margin-left: 0; }
  .docs-main { padding: 100px 0 72px; }
  .docs-content h1 { font-size: 1.875rem; }
}
