/* The developer docs (/api/docs, /api/docs/webhooks, /api/docs/mcp; ARCHITECTURE 48): the bar
   between them, the MCP page's table and setup, and a footer that wraps on a phone. Kept out of
   styles.css, which every PDF carries. */
.dev-bar {
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.dev-bar ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}
.dev-bar li {
  display: inline-flex;
  align-items: center;
}
.dev-bar li + li::before {
  content: "·";
  padding: 0 10px;
  color: var(--muted);
}
.dev-bar a {
  display: inline-block;
  padding: 6px 0;
  color: var(--body);
  text-decoration: none;
}
.dev-bar a:hover {
  color: var(--brand-text);
  text-decoration: underline;
}
.dev-bar a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-text);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.dev-bar a:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: 2px;
}

.dev-tools {
  width: 100%;
}
/* Tool names and scopes stay whole. */
.dev-tools code {
  overflow-wrap: normal;
  white-space: nowrap;
}
.dev-snippet h3 {
  margin-bottom: 0.25rem;
}
.dev-snippet pre code {
  white-space: pre;
}

@media (max-width: 560px) {
  /* On a phone the bar wraps, so a line never starts with a dot: spacing instead. */
  .dev-bar ul {
    gap: 0 18px;
  }
  .dev-bar li + li::before {
    content: none;
  }
  /* The tools table stacks: each tool's name, then what it does, then its scope and writes. */
  .dev-tools thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .dev-tools tbody,
  .dev-tools tr,
  .dev-tools td {
    display: block;
  }
  .help-article .dev-tools {
    overflow-x: visible;
  }
  .dev-tools tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
  }
  .help-article .dev-tools td {
    padding: 0;
    border: 0;
  }
  .dev-tools td:nth-child(3),
  .dev-tools td:nth-child(4) {
    display: inline;
    color: var(--muted);
    font-size: 0.9rem;
  }
  .dev-tools td:nth-child(3)::before {
    content: "Scope: ";
  }
  .dev-tools td:nth-child(4)::before {
    content: " · Changes data: ";
  }
  .mk-footer {
    flex-wrap: wrap;
  }
  .mk-footer-links {
    flex-wrap: wrap;
    gap: 4px 1rem;
  }
}
