/* Keep snippet actions attached to their code without using page CTA styles. */
#jq-examples .code-snippet {
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}
#jq-examples .code-snippet-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .75rem;
}
#jq-examples .code-snippet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
#jq-examples .code-snippet-actions button {
  padding: 3px 6px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}
#jq-examples .code-snippet-actions button:hover {
  background: var(--line);
  color: var(--ink);
}
#jq-examples .code-snippet-actions button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
#jq-examples .code-snippet pre {
  margin: 0;
  padding: 16px;
}

#jq-examples .code-snippet-actions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#jq-examples .code-snippet-actions svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#jq-examples .code-snippet-actions .copy-tick,
#jq-examples .code-snippet-actions [data-copied] .copy-icon {
  display: none;
}
#jq-examples .code-snippet-actions [data-copied] .copy-tick {
  display: block;
}
