:root {
  color-scheme: dark;
  --bg: #003c68;
  --panel: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --accent: #06cabe;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.75;
}

.docs-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.docs-nav {
  padding: 1.5rem;
  border-right: 1px solid var(--border);
  background: var(--panel);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.docs-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 1rem;
}

.docs-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.docs-nav h1 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.docs-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
  font-weight: 400;
}

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

.docs-nav details > summary > a {
  font-weight: 600;
}

.docs-nav ul ul a {
  font-weight: 400;
}

.docs-nav details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-nav details summary::-webkit-details-marker {
  display: none;
}

.docs-nav details summary::after {
  content: "▾";
  font-size: 0.8rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.docs-nav details.no-arrow summary::after {
  content: "";
}

.docs-nav details[open] summary::after {
  transform: rotate(180deg);
}

.docs-nav ul ul {
  margin-top: 0.5rem;
  margin-left: 1rem;
}

.docs-content {
  padding: 3rem 4rem;
  max-width: 960px;
  font-size: calc(1rem + 1px);
}

.docs-content h2 {
  color: var(--accent);
  margin-top: 0;
}

.docs-content h3 {
  margin-top: 2rem;
}

.docs-content p {
  line-height: 1.85;
  font-weight: 400;
}

.docs-content ul,
.docs-content ol {
  margin-left: 1.5rem;
  line-height: 1.85;
}

.docs-content .docs-highlight {
  background: rgba(6, 202, 190, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1.25rem;
  border-radius: 8px;
}

.docs-subsection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.docs-subsection-grid-2col {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.docs-subsection-card {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.75rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 100px;
}

.docs-subsection-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.docs-subsection-card .card-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.docs-subsection-card .card-subtitle {
  display: block;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.4;
}

.docs-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.docs-pagination a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }
  .docs-nav {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .docs-content {
    padding: 2rem;
  }
}
