/* The "Copy link" control in the API reference introduction. The contract writes it as a plain
   <a href=".../llms.txt">Copy link</a>; Scalar's markdown sanitiser strips any authored class, so
   the href is the selector. Mirrors _COPY_LINK_CSS in resia-gateway documentation.py. */
:root {
  --resia-copy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  --resia-copied-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
a[href$="/llms.txt"] {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0.4em 0;
  padding: 0.65em 1.15em;
  border-radius: 8px;
  background: #e08d2e;
  color: #1a1008 !important;
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none !important;
  border: 1px solid #e08d2e;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
/* Backticks inside the link add a <code> element. Scalar gives inline code its own background,
   which is dark in dark mode and hid the chip's dark text. Let the code take the chip's colours. */
a[href$="/llms.txt"] code {
  background: transparent !important;
  border: 0 !important;
  padding: 0;
  color: inherit !important;
}
a[href$="/llms.txt"]::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--resia-copy-icon) center / contain no-repeat;
  mask: var(--resia-copy-icon) center / contain no-repeat;
}
a[href$="/llms.txt"]:hover {
  background: transparent;
  color: #e08d2e !important;
}
/* Held for a moment after a successful copy, so the control reports what it did. */
a[href$="/llms.txt"][data-copied] {
  background: transparent;
  color: #4e9e70 !important;
  border-color: #4e9e70;
}
a[href$="/llms.txt"][data-copied]::before {
  -webkit-mask-image: var(--resia-copied-icon);
  mask-image: var(--resia-copied-icon);
}

/* Scalar's "Copy Page" menu on each guide page lists three chat vendors, fixed in the component
   with no config switch. Each row is a link to the vendor, so the T3 Chat row is hidden by its
   href. ChatGPT, Claude and the MCP install rows stay. */
.scalar-dropdown-item[href^="https://t3.chat"] { display: none; }
