/* /features/mcp/api-access: giving your own AI agent an API key. The prompt box
   and the risk callout. Shared feature-page styles
   come from feature-page.css. */

/* A coloured edge is never rounded: square on the stripe side. */
.api-access-risk {
  background: #fff8e1;
  border-left: 4px solid var(--yellow);
  border-radius: 0 12px 12px 0;
  padding: 20px 25px;
  margin: 20px 0;
}

.api-access-risk p {
  margin: 0 0 10px;
}

.api-access-risk p:last-child {
  margin-bottom: 0;
}

.api-access-prompt {
  position: relative;
  margin: 20px 0;
  background: var(--primary);
  border-radius: 14px;
  padding: 20px 24px;
}

.api-access-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.api-access-prompt .api-access-prompt-label {
  margin: 0;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-access-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: var(--primary);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.api-access-copy:hover {
  filter: brightness(1.05);
}

.api-access-prompt pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.65;
  font-family: inherit;
}

@media (max-width: 768px) {
  .api-access-prompt {
    padding: 18px;
  }
}
