/* Kurslog MCP Docs — minimal clean docs theme */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1a202c;
  background: #fafbfc;
}

a {
  color: #0e7c66;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

code {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  word-break: break-word;
}

pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}
pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* Header */
.docs-header {
  border-bottom: 1px solid #e2e8f0;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}
.docs-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.docs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #0f172a;
}
.docs-logo:hover { text-decoration: none; }
.docs-logo span { font-size: 16px; }
.docs-locale-switch {
  margin-left: auto;
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 8px;
}
.docs-locale-switch a {
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  border-radius: 4px;
}
.docs-locale-switch a:hover { color: #0e7c66; text-decoration: none; }
.docs-locale-switch a.active {
  background: white;
  color: #0e7c66;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.docs-back {
  font-size: 14px;
  color: #64748b;
}

/* Layout */
.docs-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 32px 24px;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: 14px;
}
.docs-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
  padding: 0 8px;
}
.docs-sidebar nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.docs-sidebar nav li {
  margin: 0;
}
.docs-sidebar nav li a {
  display: block;
  padding: 6px 8px;
  border-radius: 4px;
  color: #475569;
  border-left: 2px solid transparent;
}
.docs-sidebar nav li a:hover {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}
.docs-sidebar nav li.active a {
  background: #ecfdf5;
  color: #0e7c66;
  font-weight: 600;
  border-left-color: #0e7c66;
}

/* Content */
.docs-content {
  min-width: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 48px;
}
.docs-content article > *:first-child { margin-top: 0; }
.docs-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.2;
}
.docs-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin: 36px 0 12px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
.docs-content h2:first-of-type { border-top: none; padding-top: 0; }
.docs-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 24px 0 8px;
}
.docs-content p { margin: 12px 0; }
.docs-content ul, .docs-content ol { padding-left: 24px; margin: 12px 0; }
.docs-content li { margin: 6px 0; }

.docs-content blockquote {
  margin: 16px 0;
  padding: 12px 18px;
  border-left: 4px solid #0e7c66;
  background: #f0fdf4;
  border-radius: 0 6px 6px 0;
  color: #166534;
}
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.docs-content th, .docs-content td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
}
.docs-content th { background: #f8fafc; font-weight: 600; color: #475569; }

.docs-cta {
  background: linear-gradient(135deg, #0e7c66 0%, #14a085 100%);
  color: white;
  padding: 20px 28px;
  border-radius: 10px;
  margin: 24px 0;
}
.docs-cta h3 { color: white; margin: 0 0 6px; }
.docs-cta p { color: rgba(255,255,255,0.92); margin: 0 0 12px; }
.docs-cta a.docs-cta-btn {
  display: inline-block;
  background: white;
  color: #0e7c66 !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
}
.docs-cta a.docs-cta-btn:hover { text-decoration: none; background: #f0fdf4; }

.docs-callout {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 18px;
  border-radius: 0 6px 6px 0;
  margin: 16px 0;
  color: #92400e;
}
.docs-callout strong { color: #78350f; }

/* Cards grid */
.docs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.docs-card {
  display: block;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s;
}
.docs-card:hover {
  border-color: #0e7c66;
  text-decoration: none;
  transform: translateY(-1px);
}
.docs-card h3 { margin: 0 0 6px; color: #0f172a; font-size: 16px; }
.docs-card p { margin: 0; color: #64748b; font-size: 14px; }

/* Page nav (prev/next) */
.docs-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}
.docs-page-nav a {
  display: block;
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
}
.docs-page-nav a:hover { border-color: #0e7c66; text-decoration: none; }
.docs-page-nav-direction {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
}
.docs-page-nav-label {
  display: block;
  font-weight: 600;
  color: #0f172a;
}
.docs-page-next { text-align: right; }

/* Footer */
.docs-footer {
  border-top: 1px solid #e2e8f0;
  background: white;
  margin-top: 60px;
}
.docs-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
}
.docs-footer a { color: #64748b; }

/* Mobile */
@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px;
  }
  .docs-sidebar {
    position: static;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    background: white;
  }
  .docs-content { padding: 28px 22px; }
  .docs-content h1 { font-size: 28px; }
  .docs-content h2 { font-size: 20px; }
  .docs-header-inner { gap: 12px; padding: 10px 16px; }
  .docs-logo span { display: none; }
  .docs-back { display: none; }
}
