/**
 * Documentation actions widget styles.
 *
 * Single-line horizontal layout for the sidebar: "Copy as Markdown" button
 * followed by three icon-only links (Open .md / Ask Claude / Ask ChatGPT).
 */
.bh-doc-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: .25rem;
	font-size: .8125rem;
}

.bh-doc-actions__copy,
.bh-doc-actions__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .375rem;
	border: 1px solid #e0e0e8;
	background: #fff;
	color: #1a1a2e;
	border-radius: .375rem;
	padding: .375rem .5rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
	font: inherit;
	white-space: nowrap;
}

.bh-doc-actions__copy {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
}

.bh-doc-actions__label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.bh-doc-actions__copy:hover,
.bh-doc-actions__icon:hover,
.bh-doc-actions__copy:focus-visible,
.bh-doc-actions__icon:focus-visible {
	border-color: #4e21e7;
	color: #4e21e7;
	outline: none;
}

.bh-doc-actions__copy:focus-visible,
.bh-doc-actions__icon:focus-visible {
	box-shadow: 0 0 0 2px rgba(78, 33, 231, .2);
}

.bh-doc-actions__copy[disabled] {
	opacity: .6;
	cursor: progress;
}

.bh-doc-actions__copy.is-copied {
	border-color: #1a8754;
	color: #1a8754;
}

.bh-doc-actions__copy.is-error {
	border-color: #c0392b;
	color: #c0392b;
}

.bh-doc-actions__copy svg,
.bh-doc-actions__icon svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
}

.bh-doc-actions__icon {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	padding: 0;
}

.bh-doc-actions__icon-claude {
	color: #d97757;
}

.bh-doc-actions__icon-claude:hover,
.bh-doc-actions__icon-claude:focus-visible {
	border-color: #d97757;
	color: #d97757;
}

.bh-doc-actions__icon-chatgpt {
	color: #10a37f;
}

.bh-doc-actions__icon-chatgpt:hover,
.bh-doc-actions__icon-chatgpt:focus-visible {
	border-color: #10a37f;
	color: #10a37f;
}

@media (prefers-color-scheme: dark) {
	.bh-doc-actions__copy,
	.bh-doc-actions__icon {
		background: #1f1f2e;
		border-color: #2d2d44;
		color: #f5f5fa;
	}
}
