/* Static stylesheet for Rep Voice Kit Webhook Reference (/docs/webhooks.html).
   Loaded alongside ../styles.css. No inline styles, no external assets. */

.docs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-layout {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 44px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: 68px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
}

.docs-toc-title {
  margin: 0 0 8px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.docs-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-toc-link {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.docs-toc-link:hover {
  background: var(--bg-hover);
  color: var(--ink);
}

.docs-toc-link.is-active {
  background: var(--blue-bg);
  color: var(--blue-ink);
}

.docs-toc-item-sub .docs-toc-link {
  padding-left: 18px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.docs-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.docs-intro,
.docs-section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 68px;
}

.docs-intro h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.docs-h2,
.docs-h3,
.docs-h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  scroll-margin-top: 72px;
  color: var(--ink);
}

.docs-h2 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.docs-h3 {
  margin: 22px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.docs-h4 {
  margin: 16px 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.docs-anchor {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9em;
  opacity: 0.45;
}

.docs-h2:hover .docs-anchor,
.docs-h3:hover .docs-anchor,
.docs-h4:hover .docs-anchor,
.docs-anchor:focus-visible {
  opacity: 1;
  color: var(--blue-ink);
}

.docs-p {
  margin: 0 0 10px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.58;
}

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

.docs-list {
  margin: 0 0 12px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-secondary);
  font-size: 13.5px;
  line-height: 1.55;
}

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

.docs-list strong,
.docs-p strong {
  color: var(--ink);
  font-weight: 700;
}

.docs-inline-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink);
}

.docs-table-wrap {
  margin: 10px 0 12px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.docs-table th,
.docs-table td {
  text-align: left;
  padding: 8px 11px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table th {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: var(--bg-subtle);
}

.code-block {
  margin: 10px 0 14px;
  border: 1px solid #2C3038;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #1B1D21;
}

.code-block:last-child {
  margin-bottom: 0;
}

.code-block-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: #25282E;
  border-bottom: 1px solid #32363F;
}

.code-block-lang {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #C3C8D2;
}

.copy-code-btn {
  background: #32363F;
  color: #F4F5F7;
  border: 1px solid #454B57;
}

.copy-code-btn:hover:not(:disabled) {
  background: #404551;
}

.docs-code {
  margin: 0;
  padding: 12px 14px;
  background: #1B1D21;
  color: #ECEEF2;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}

.docs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: 1fr;
    padding: 14px 12px 32px;
    gap: 14px;
  }

  .docs-toc {
    position: static;
    max-height: none;
  }

  .docs-intro,
  .docs-section {
    padding: 16px 14px;
  }

  .docs-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
