/* docs.css — Documentation pages (light-top) */

.plx-docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 64px);
  background: var(--plx-bg-white);
}

.plx-docs-sidebar {
  background: var(--plx-bg-light);
  border-right: 1px solid #E2E8F0;
  padding: 2rem 1.25rem;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.plx-docs-sidebar__section { margin-bottom: 1.75rem; }
.plx-docs-sidebar__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--plx-fg-light-3);
  margin-bottom: 0.625rem;
  padding: 0 0.5rem;
}
.plx-docs-sidebar__link {
  display: block;
  padding: 0.4375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--plx-fg-light-2);
  transition: background 0.15s, color 0.15s;
}
.plx-docs-sidebar__link:hover {
  background: #E2E8F0;
  color: var(--plx-fg-light-1);
}
.plx-docs-sidebar__link.is-active {
  background: rgba(245,158,11,0.1);
  color: #92600A;
  font-weight: 600;
}

.plx-docs-content {
  padding: 3rem 4rem 5rem;
  max-width: 860px;
}

/* Theme-scoped rules for docs content (shared container spec) */
body.plx-page--light-top .plx-docs-content h1 { color: var(--plx-fg-light-1); margin-bottom: 0.75rem; }
body.plx-page--light-top .plx-docs-content h2 {
  color: var(--plx-fg-light-1);
  margin-top: 2.5rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #E2E8F0;
}
body.plx-page--light-top .plx-docs-content h3 {
  color: var(--plx-fg-light-1);
  margin-top: 1.75rem;
  margin-bottom: 0.625rem;
}
body.plx-page--light-top .plx-docs-content p {
  font-size: 0.9375rem;
  color: var(--plx-fg-light-2);
  line-height: 1.75;
  margin-bottom: 1rem;
}
body.plx-page--light-top .plx-docs-content ul,
body.plx-page--light-top .plx-docs-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
body.plx-page--light-top .plx-docs-content li {
  font-size: 0.9375rem;
  color: var(--plx-fg-light-2);
  line-height: 1.7;
  margin-bottom: 0.375rem;
}
body.plx-page--light-top .plx-docs-content code {
  background: var(--plx-bg-light);
  border: 1px solid #E2E8F0;
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--plx-fg-light-1);
}
body.plx-page--light-top .plx-docs-content pre {
  background: var(--plx-bg-dark);
  border: 1px solid var(--plx-border-dark);
  border-radius: var(--plx-radius);
  padding: 1.25rem 1.375rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
body.plx-page--light-top .plx-docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.825rem;
  color: var(--plx-fg-dark-2);
}
body.plx-page--light-top .plx-docs-content a { color: #92600A; text-decoration: underline; }
body.plx-page--light-top .plx-docs-content a:hover { color: var(--plx-fg-light-1); }
body.plx-page--light-top .plx-docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
body.plx-page--light-top .plx-docs-content th,
body.plx-page--light-top .plx-docs-content td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  text-align: left;
  border: 1px solid #E2E8F0;
}
body.plx-page--light-top .plx-docs-content th {
  background: var(--plx-bg-light);
  font-weight: 700;
  color: var(--plx-fg-light-1);
}
body.plx-page--light-top .plx-docs-content td { color: var(--plx-fg-light-2); }

.plx-docs-breadcrumb {
  font-size: 0.8125rem;
  color: var(--plx-fg-light-3);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.plx-docs-breadcrumb a { color: var(--plx-fg-light-3); transition: color 0.15s; }
.plx-docs-breadcrumb a:hover { color: #92600A; }

.plx-docs-callout {
  background: rgba(245,158,11,0.08);
  border-left: 3px solid var(--plx-amber);
  border-radius: 0 var(--plx-radius) var(--plx-radius) 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.plx-docs-callout p { color: var(--plx-fg-light-1); margin-bottom: 0; }

.plx-docs-nav-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid #E2E8F0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.plx-docs-tab {
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plx-fg-light-3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.plx-docs-tab:hover { color: var(--plx-fg-light-1); }
.plx-docs-tab.is-active {
  color: #92600A;
  border-bottom-color: var(--plx-amber);
}
.plx-docs-tab-panel { display: none; }
.plx-docs-tab-panel.is-active { display: block; }

.plx-docs-quicklinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.plx-docs-quicklink {
  background: var(--plx-bg-light);
  border: 1px solid #E2E8F0;
  border-radius: var(--plx-radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.plx-docs-quicklink:hover {
  border-color: var(--plx-amber);
  transform: translateY(-1px);
}
.plx-docs-quicklink__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--plx-fg-light-1);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.plx-docs-quicklink__title i { color: var(--plx-amber); font-size: 0.875rem; }
.plx-docs-quicklink__sub {
  font-size: 0.8125rem;
  color: var(--plx-fg-light-3);
  line-height: 1.5;
}

.plx-api-endpoint {
  background: var(--plx-bg-dark);
  border: 1px solid var(--plx-border-dark);
  border-radius: var(--plx-radius);
  margin-bottom: 2rem;
  overflow: hidden;
}
.plx-api-endpoint__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: var(--plx-bg-dark-alt);
  border-bottom: 1px solid var(--plx-border-dark);
}
.plx-method-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.plx-method-badge--get  { background: rgba(52,211,153,0.15); color: #34D399; }
.plx-method-badge--post { background: rgba(245,158,11,0.15); color: var(--plx-amber); }
.plx-method-badge--del  { background: rgba(248,113,113,0.15); color: #F87171; }
.plx-api-endpoint__path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--plx-fg-dark-1);
}
.plx-api-endpoint__body { padding: 1.25rem; }
.plx-api-endpoint__body p {
  font-size: 0.9rem;
  color: var(--plx-fg-dark-2);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .plx-docs-layout { grid-template-columns: 1fr; }
  .plx-docs-sidebar { position: static; height: auto; }
  .plx-docs-content { padding: 2rem 1.5rem; }
  .plx-docs-quicklinks { grid-template-columns: 1fr; }
}
