*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1a2332;
  --muted: #64748b;
  --accent: #0d7c72;
  --accent-soft: #e6f5f3;
  --sidebar-width: 16rem;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.docs-sidebar {
  padding: 2rem 1.25rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.docs-brand {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.docs-brand span {
  color: var(--accent);
}

.docs-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.docs-back:hover {
  color: var(--accent);
}

.docs-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.docs-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

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

.docs-nav a.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

.docs-main {
  padding: 2.5rem 3rem 4rem;
  max-width: 48rem;
}

.docs-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.docs-header p {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.docs-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.docs-content h2:first-child {
  margin-top: 0;
}

.docs-content p {
  margin: 0 0 1rem;
  color: #334155;
}

.docs-content h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.docs-content h3:first-child {
  margin-top: 0;
}

.docs-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #334155;
}

.docs-content ol li {
  margin-bottom: 0.35rem;
}

.docs-content ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #334155;
}

.docs-content li {
  margin-bottom: 0.35rem;
}

.docs-notice {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  background: #fffbeb;
  border: 1px solid #f0d68a;
  border-radius: 10px;
}

.docs-notice p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: #5c4a1f;
  line-height: 1.6;
}

.docs-notice p:last-child {
  margin-bottom: 0;
}

.docs-content a {
  color: var(--accent);
  text-decoration: none;
}

.docs-content a:hover {
  text-decoration: underline;
}

.docs-content li {
  margin-bottom: 0.35rem;
}

.docs-content code {
  padding: 0.1em 0.35em;
  font-size: 0.88em;
  font-family: ui-monospace, "Cascadia Code", monospace;
  background: #f1f5f9;
  border-radius: 4px;
}

.docs-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.docs-toc p {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.docs-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.docs-toc a {
  color: var(--accent);
  text-decoration: none;
}

.docs-toc a:hover {
  text-decoration: underline;
}

.docs-placeholder {
  padding: 1.25rem 1.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--accent-soft);
  border: 1px dashed rgba(13, 124, 114, 0.25);
  border-radius: 10px;
}

.docs-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.docs-card {
  display: block;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.docs-card:hover {
  border-color: rgba(13, 124, 114, 0.35);
  box-shadow: 0 4px 20px rgba(26, 35, 50, 0.06);
}

.docs-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.docs-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

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

  .docs-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem;
  }

  .docs-back {
    margin-bottom: 1rem;
  }

  .docs-main {
    padding: 1.5rem 1.25rem 3rem;
  }
}
