/* API integrate page — PVAPins teal theme, modern docs layout */
:root {
  --api-brand: #0B8A7B;
  --api-brand-2: #0AA18E;
  --api-accent: #F4B400;
  --api-ink: #0B1220;
  --api-muted: #475569;
  --api-line: #e2e8f0;
  --api-bg: #f6fbfa;
  --api-card: #ffffff;
  --api-radius: 16px;
  --api-radius-lg: 22px;
  --api-max: 1240px;
  --api-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --api-shadow: 0 18px 50px rgba(11, 138, 123, 0.08);
  --api-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.api-docs-page {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--api-ink);
  line-height: 1.55;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(11, 138, 123, 0.12), transparent 55%),
    radial-gradient(700px 480px at 100% 0%, rgba(244, 180, 0, 0.1), transparent 50%),
    var(--api-bg);
}

/* Do not use color:inherit on .api-docs-btn / .api-docs-pill — it would override their text colors */
.api-docs-page a:not(.api-docs-btn):not(.api-docs-pill) { color: inherit; text-decoration: none; }
.api-docs-page a.api-docs-btn { text-decoration: none; }

/* Beat page-level inherit for in-hero micro links (same specificity as rule above; must follow it) */
.api-docs-page .api-docs-hero .api-docs-micro a {
  color: var(--api-brand);
  font-weight: 600;
}
.api-docs-page .api-docs-hero .api-docs-micro a:hover {
  text-decoration: underline;
}
.api-docs-page .container { max-width: var(--api-max); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

.api-docs-utility {
  border-bottom: 1px solid var(--api-line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}
.api-docs-utility .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
.api-docs-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--api-line);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--api-muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-pill strong { color: var(--api-ink); }
a.api-docs-pill:hover {
  border-color: rgba(11, 138, 123, 0.35);
  color: var(--api-brand);
}

.api-docs-hero { padding: 28px 0 8px; }
.api-docs-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}
.api-docs-hero-card {
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius-lg);
  padding: 24px;
  background: linear-gradient(165deg, #fff 0%, #f8fffe 100%);
  box-shadow: var(--api-shadow);
}
.api-docs-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(11, 138, 123, 0.25);
  background: rgba(11, 138, 123, 0.08);
  color: var(--api-brand);
  font-weight: 800;
  font-size: 13px;
}
.api-docs-hero-card h1 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--api-ink);
}
.api-docs-lead { margin: 0; color: var(--api-muted); font-size: 17px; max-width: 58ch; }
.api-docs-bullets { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.api-docs-bullets li { display: flex; gap: 10px; align-items: flex-start; color: var(--api-ink); }
.api-docs-dot {
  width: 10px; height: 10px; border-radius: 999px; margin-top: 0.45em; flex-shrink: 0;
  background: linear-gradient(135deg, var(--api-brand), var(--api-brand-2));
  box-shadow: 0 0 0 4px rgba(11, 138, 123, 0.15);
}
.api-docs-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.api-docs-micro { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.api-docs-micro a { font-size: 14px; }
.api-docs-hint { margin-top: 14px; color: var(--api-muted); font-size: 14px; }
.api-docs-hint strong { color: var(--api-ink); }

.api-docs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.api-docs-btn:hover { transform: translateY(-1px); }
.api-docs-btn-primary {
  background: linear-gradient(135deg, var(--api-brand), var(--api-brand-2));
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(11, 138, 123, 0.28);
}
.api-docs-btn-primary:hover,
.api-docs-btn-primary:focus-visible {
  color: #fff !important;
}
.api-docs-btn-secondary {
  background: #fff;
  border-color: var(--api-line);
  color: var(--api-ink);
}
.api-docs-btn-ghost {
  background: transparent;
  border-color: var(--api-line);
  color: var(--api-muted);
}

.api-docs-side {
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--api-shadow);
  display: flex;
  flex-direction: column;
}
.api-docs-side-top {
  padding: 18px 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.api-docs-side-top h3 { margin: 0; font-size: 16px; color: var(--api-ink); }
.api-docs-side-top p { margin: 4px 0 0; color: var(--api-muted); font-size: 13px; }
.api-docs-quickstart { padding: 12px 18px 18px; display: grid; gap: 10px; }
.api-docs-qs {
  border: 1px solid var(--api-line);
  background: var(--api-bg);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
}
.api-docs-qs-badge {
  width: 28px; height: 28px; border-radius: 999px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  background: rgba(11, 138, 123, 0.12);
  border: 1px solid rgba(11, 138, 123, 0.25);
  color: var(--api-brand);
  flex-shrink: 0;
}
.api-docs-qs b { display: block; font-size: 14px; color: var(--api-ink); }
.api-docs-qs span { display: block; color: var(--api-muted); font-size: 13px; margin-top: 2px; }

.api-docs-hero-img {
  margin-top: auto;
  border-top: 1px solid var(--api-line);
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(11, 138, 123, 0.15), rgba(244, 180, 0, 0.08));
}
.api-docs-hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0.95;
}
.api-docs-hero-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(246, 251, 250, 0.92) 100%);
}
.api-docs-hero-chip {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  border: 1px solid var(--api-line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 12px 14px;
  z-index: 2;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-hero-chip strong { display: block; font-size: 14px; color: var(--api-ink); }
.api-docs-hero-chip small { display: block; color: var(--api-muted); margin-top: 2px; font-size: 13px; }

.api-docs-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0 48px;
}
.api-docs-aside {
  position: sticky;
  top: 88px;
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-aside-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--api-line);
  background: var(--api-bg);
}
.api-docs-aside-head strong { display: block; font-size: 14px; color: var(--api-ink); }
.api-docs-aside-head span { display: block; color: var(--api-muted); font-size: 12px; margin-top: 2px; }
.api-docs-aside-links { padding: 10px; }
/* 3-class chain beats .api-docs-page a:not(...) inherit rule */
.api-docs-page .api-docs-aside .api-docs-aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  color: var(--api-muted);
  font-weight: 650;
  font-size: 14px;
  border: 1px solid transparent;
}
.api-docs-page .api-docs-aside .api-docs-aside-links a:hover {
  color: var(--api-brand);
  border-color: rgba(11, 138, 123, 0.2);
  background: rgba(11, 138, 123, 0.06);
}
.api-docs-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--api-line);
  background: var(--api-bg);
  color: var(--api-brand);
  white-space: nowrap;
}

.api-docs-section { padding: 18px 0; }
.api-docs-section-title {
  font-size: clamp(20px, 2.8vw, 30px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--api-ink);
}
.api-docs-section-sub { margin: 0 0 16px; color: var(--api-muted); max-width: 72ch; font-size: 15px; }
.api-docs-section-sub code, .api-docs-lead code { background: var(--api-bg); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.api-docs-page .api-docs-main .api-docs-section-sub a:not(.api-docs-btn) {
  color: var(--api-brand);
  font-weight: 600;
}
.api-docs-page .api-docs-main .api-docs-section-sub a:not(.api-docs-btn):hover {
  text-decoration: underline;
}

.api-docs-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.api-docs-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.api-docs-card {
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-card-icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(11, 138, 123, 0.12), rgba(10, 161, 142, 0.1));
  border: 1px solid rgba(11, 138, 123, 0.2);
  margin-bottom: 10px;
  font-size: 18px;
}
.api-docs-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--api-ink); }
.api-docs-card p { margin: 0; color: var(--api-muted); font-size: 14px; }

.api-docs-codecard {
  border: 1px solid var(--api-line);
  background: #0f172a;
  border-radius: var(--api-radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.api-docs-codecard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.api-docs-codecard-head strong { font-size: 13px; color: #e2e8f0; }
.api-docs-copybtn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
.api-docs-copybtn:hover { border-color: var(--api-brand-2); color: #fff; }
.api-docs-codecard pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  font-family: var(--api-mono);
  font-size: 12px;
  line-height: 1.5;
  color: #e2e8f0;
  background: transparent;
  white-space: pre;
}

.api-docs-endpoint {
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  background: #fff;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-endpoint-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--api-line);
  background: var(--api-bg);
}
.api-docs-endpoint-head h4 { margin: 0; font-size: 15px; color: var(--api-ink); }
.api-docs-endpoint-meta { color: var(--api-muted); font-size: 12px; margin-top: 4px; }
.api-docs-endpoint-meta code { font-size: 11px; background: #fff; padding: 2px 6px; border-radius: 4px; }
.api-docs-badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.api-docs-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--api-line);
  background: #fff;
  color: var(--api-muted);
}
.api-docs-badge.ok { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.08); color: #15803d; }
.api-docs-badge.warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); color: #b45309; }
.api-docs-badge.auth { border-color: rgba(11, 138, 123, 0.35); background: rgba(11, 138, 123, 0.1); color: var(--api-brand); }
.api-docs-endpoint-body { padding: 14px; }
.api-docs-kv {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--api-line);
  background: var(--api-bg);
  font-size: 13px;
}
.api-docs-kv div:nth-child(odd) { color: var(--api-ink); font-weight: 700; }
.api-docs-kv div:nth-child(even) { color: var(--api-muted); }

.api-docs-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  overflow: hidden;
  background: #fff;
  font-size: 14px;
}
.api-docs-compare th, .api-docs-compare td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--api-line);
  text-align: left;
  vertical-align: top;
}
.api-docs-compare th {
  background: var(--api-bg);
  color: var(--api-ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.api-docs-compare tr:last-child td { border-bottom: none; }
.api-docs-page .api-docs-main .api-docs-compare a { color: var(--api-brand); font-weight: 600; }
.api-docs-page .api-docs-main .api-docs-compare a:hover { text-decoration: underline; }

.api-docs-faq { display: grid; gap: 10px; }
.api-docs-faq details {
  border: 1px solid var(--api-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--api-ink);
}
.api-docs-faq summary::-webkit-details-marker { display: none; }
.api-docs-faq details p {
  margin: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--api-line);
  color: var(--api-muted);
  font-size: 14px;
}

.api-docs-cta-banner {
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius-lg);
  padding: 22px;
  background:
    radial-gradient(420px 160px at 12% -20%, rgba(11, 138, 123, 0.12), transparent 70%),
    radial-gradient(380px 170px at 95% 0%, rgba(244, 180, 0, 0.1), transparent 70%),
    #fff;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--api-shadow-sm);
}
.api-docs-cta-banner h2 { margin: 0 0 8px; font-size: 24px; color: var(--api-ink); }
.api-docs-cta-banner p { margin: 0; color: var(--api-muted); font-size: 15px; }
.api-docs-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.api-docs-ref {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--api-line);
}
.api-docs-ref-intro { margin-bottom: 20px; }
.api-docs-legacy-panel {
  background: #fff;
  border-radius: var(--api-radius-lg);
  border: 1px solid var(--api-line);
  overflow: hidden;
  box-shadow: var(--api-shadow);
}
.api-docs-legacy-body { padding: 24px; }

/* ——— Full endpoint reference: expandable cards + tabs (scoped) ——— */
.api-docs-legacy-panel .api-container {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  overflow: visible;
}

/* Tabs */
.api-docs-legacy-panel .api-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--api-line);
  border-bottom: 2px solid var(--api-line);
  margin: 0 0 24px;
  background: var(--api-bg);
  border-radius: var(--api-radius) var(--api-radius) 0 0;
  overflow: hidden;
}
.api-docs-legacy-panel .api-tab {
  flex: 1;
  min-width: 140px;
  padding: 16px 18px;
  text-align: center;
  cursor: pointer;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  color: var(--api-muted);
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.api-docs-legacy-panel .api-tab:hover {
  background: rgba(11, 138, 123, 0.06);
  color: var(--api-ink);
}
.api-docs-legacy-panel .api-tab.active {
  background: #fff;
  color: var(--api-brand);
  box-shadow: inset 0 -3px 0 var(--api-brand);
}
.api-docs-legacy-panel .api-tab svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.api-docs-legacy-panel .tab-content {
  display: none;
  padding-bottom: 8px;
}
.api-docs-legacy-panel .tab-content.active {
  display: block;
}

/* Endpoint accordion cards */
.api-docs-legacy-panel .endpoint-card {
  background: #fff;
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--api-shadow-sm);
  transition: box-shadow 0.2s;
}
.api-docs-legacy-panel .endpoint-card:hover {
  box-shadow: 0 10px 28px rgba(11, 138, 123, 0.1);
}
.api-docs-legacy-panel .endpoint-header {
  background: linear-gradient(180deg, #f8fffe 0%, #f1f5f4 100%);
  padding: 16px 18px;
  border-bottom: 1px solid var(--api-line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.api-docs-legacy-panel .endpoint-header:hover {
  background: #f0fdf9;
}
.api-docs-legacy-panel .endpoint-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--api-ink);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.35;
}
.api-docs-legacy-panel .endpoint-header h5 svg {
  flex-shrink: 0;
  color: var(--api-brand);
}

.api-docs-legacy-panel .method-badge {
  display: inline-block;
  background: var(--api-brand);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-right: 0;
}

.api-docs-legacy-panel .endpoint-body {
  padding: 20px 22px;
  display: none;
  background: #fff;
  border-top: 1px solid var(--api-line);
}
.api-docs-legacy-panel .endpoint-body.active {
  display: block;
}
.api-docs-legacy-panel .endpoint-body h6 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--api-ink);
}
.api-docs-legacy-panel .endpoint-body h6:first-child {
  margin-top: 0;
}
.api-docs-legacy-panel .endpoint-body strong {
  color: var(--api-ink);
}

.api-docs-legacy-panel .code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--api-mono);
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.api-docs-legacy-panel .code-block code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

.api-docs-legacy-panel .parameter-help {
  background: rgba(244, 180, 0, 0.12);
  border: 1px solid rgba(244, 180, 0, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--api-ink);
}
.api-docs-legacy-panel .parameter-help code {
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}

.api-docs-legacy-panel .error-list {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--api-ink);
}
.api-docs-legacy-panel .error-list strong {
  color: #b91c1c;
}
.api-docs-legacy-panel .error-list ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}
.api-docs-legacy-panel .error-list li {
  margin-bottom: 6px;
  line-height: 1.45;
}
.api-docs-legacy-panel .error-list code {
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Info-style callout (inline blue box in markup) */
.api-docs-legacy-panel .parameter-help[style*="d1ecf1"],
.api-docs-legacy-panel .parameter-help[style*="#d1ecf1"] {
  background: rgba(11, 138, 123, 0.08) !important;
  border-color: rgba(11, 138, 123, 0.28) !important;
}

/* CTA buttons inside reference (if re-added) */
.api-docs-legacy-panel .login-cta {
  background: linear-gradient(135deg, var(--api-brand) 0%, var(--api-brand-2) 100%);
  border-radius: var(--api-radius);
  color: #fff;
  padding: 24px;
  text-align: center;
  margin: 24px 0 0;
}
.api-docs-legacy-panel .login-cta h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.api-docs-legacy-panel .login-cta p {
  margin: 0 0 16px;
  opacity: 0.95;
  font-size: 15px;
}
.api-docs-legacy-panel .btn-register {
  display: inline-block;
  background: #fff;
  color: var(--api-brand);
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  margin: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s, color 0.15s;
}
.api-docs-legacy-panel .btn-register:hover {
  color: var(--api-brand-2);
  transform: translateY(-1px);
}
.api-docs-legacy-panel .btn-login {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  margin: 6px;
  transition: background 0.15s;
}
.api-docs-legacy-panel .btn-login:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.api-docs-sticky-m {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--api-line);
  border-radius: var(--api-radius);
  padding: 10px;
  backdrop-filter: blur(10px);
  box-shadow: var(--api-shadow);
  gap: 10px;
}
.api-docs-sticky-m .api-docs-btn { flex: 1; padding: 12px 14px; }

@media (max-width: 1060px) {
  .api-docs-hero-grid { grid-template-columns: 1fr; }
  .api-docs-split { grid-template-columns: 1fr; }
  .api-docs-aside { position: relative; top: auto; }
  .api-docs-grid3 { grid-template-columns: 1fr 1fr; }
  .api-docs-cta-banner { grid-template-columns: 1fr; }
  .api-docs-cta-actions { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .api-docs-grid3, .api-docs-grid2 { grid-template-columns: 1fr; }
  .api-docs-kv { grid-template-columns: 1fr; }
  .api-docs-sticky-m { display: flex; }
  body.api-docs-page { padding-bottom: 88px; }
}
