/* ── Developer Portal ────────────────────────────────────────────── */

/* Header */
.dev-header {
  background: #111111;
  color: #fff;
  padding: 2rem 2rem 1.75rem;
  border-bottom: 1px solid #333333;
}
.dev-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.dev-header__home {
  display: inline-block;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: .4rem 1rem;
  border-radius: 3px;
  margin-bottom: .75rem;
  transition: background .15s, border-color .15s;
}
.dev-header__home:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); color: #fff; }
.dev-header__title { font-size: 1.75rem; font-weight: 700; margin-bottom: .25rem; font-family: "Libre Baskerville", Georgia, "Times New Roman", serif; }
.dev-header__sub   { font-size: .95rem; opacity: .7; }

.dev-header__badges { display: flex; gap: .5rem; align-items: center; }
.badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge--green { background: #22543d; color: #9ae6b4; }
.badge--blue  { background: #1a365d; color: #bfdbfe; }
.badge--grey  { background: #2d3748; color: #cbd5e0; }

/* Layout */
.dev-layout {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* Left nav */
.dev-nav {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
}
.dev-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.dev-nav__section {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999999;
  padding: .75rem 0 .3rem .75rem;
  margin-top: .25rem;
}
.dev-nav a {
  display: block;
  padding: .35rem .75rem;
  font-size: .85rem;
  color: #555555;
  text-decoration: none;
  border-radius: 3px;
  border-left: 2px solid transparent;
}
.dev-nav a:hover {
  background: #f7f7f5;
  color: #111111;
  border-left-color: #111111;
}

/* Main content */
.dev-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

/* Sections */
.doc-section {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e2e2e2;
  padding: 1.75rem 2rem;
  margin-bottom: 1.25rem;
  scroll-margin-top: 1.5rem;
}
.doc-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #121212;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid #111111;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
}
.doc-section h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #666666;
  margin: 1.25rem 0 .6rem;
}
.doc-section p { font-size: .93rem; color: #444444; line-height: 1.65; margin-bottom: .5rem; }
.doc-section ul { padding-left: 1.25rem; font-size: .93rem; color: #444444; line-height: 1.8; }
.doc-section a { color: #326891; }

/* Endpoint header pill */
.endpoint-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.method {
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.method--get  { background: #c6f6d5; color: #22543d; }
.method--post { background: #e8edf3; color: #1a365d; }
.endpoint-path {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #121212;
}

/* Code blocks */
.code-block {
  background: #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
  margin: .75rem 0;
}
.code-block__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999999;
  background: #2a2a2a;
  padding: .35rem .9rem;
}
.code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  color: #e8e8e8;
  font-size: .83rem;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

/* Inline code */
code {
  background: #f0f0f0;
  color: #333333;
  padding: .1em .35em;
  border-radius: 3px;
  font-size: .85em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.code-block pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* Tables */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  margin: .5rem 0;
}
.doc-table th {
  text-align: left;
  padding: .55rem .75rem;
  background: #f7f7f5;
  border-bottom: 2px solid #333333;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #555555;
  font-weight: 700;
}
.doc-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #ededed;
  color: #444444;
  vertical-align: top;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table tr:hover td { background: #f7f7f5; }

/* Info boxes */
.info-box {
  background: #f7f7f5;
  border: 1px solid #e2e2e2;
  border-radius: 4px;
  padding: .75rem 1rem;
  font-size: .88rem;
  color: #444444;
  margin: .75rem 0;
}
.info-box--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #78350f;
}

/* Responsive */
@media (max-width: 768px) {
  .dev-nav { display: none; }
  .doc-section { padding: 1.25rem 1rem; }
}
