/**
 * Self-contained presentation for this plugin's two shortcode anchors only.
 * Bootstrap presets use the frontend theme; plugin styling is opt-in or admin-only.
 */
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *) {
	--em-agentic-background: #1f2937;
	--em-agentic-color: #fff;
	--em-agentic-border: #1f2937;
	--em-agentic-hover-background-color: #111827;
	--em-agentic-hover-color: #fff;
	--em-agentic-hover-border-color: #111827;
	align-items: center;
	background-color: var(--em-agentic-background);
	border: 1px solid var(--em-agentic-border);
	border-radius: 8px;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--em-agentic-color);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 16px;
	font-style: normal;
	font-weight: 500;
	gap: 0.45em;
	justify-content: center;
	line-height: 1.5;
	margin: 0;
	max-width: 100%;
	padding: 10px 16px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	vertical-align: middle;
	white-space: normal;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn {
	border-radius: 6px;
	padding: 6px 12px;
}

a.em-agentic-button[data-em-agentic-design="plugin"].em-agentic-button--outline {
	--em-agentic-background: transparent;
	--em-agentic-color: #1f2937;
	--em-agentic-hover-background-color: #1f2937;
	--em-agentic-hover-border-color: #1f2937;
}

a.em-agentic-button[data-em-agentic-design="plugin"].em-agentic-button--soft {
	--em-agentic-background: #f1f5f9;
	--em-agentic-color: #1f2937;
	--em-agentic-border: #f1f5f9;
	--em-agentic-hover-background-color: #e2e8f0;
	--em-agentic-hover-color: #1f2937;
	--em-agentic-hover-border-color: #e2e8f0;
}

a.em-agentic-button[data-em-agentic-design="plugin"].em-agentic-button--pill {
	border-radius: 100px;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-primary,
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-outline-primary,
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-link {
	--em-agentic-background: #0d6efd;
	--em-agentic-border: #0d6efd;
	--em-agentic-hover-background-color: #0a58ca;
	--em-agentic-hover-border-color: #0a58ca;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-secondary,
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-outline-secondary {
	--em-agentic-background: #6c757d;
	--em-agentic-border: #6c757d;
	--em-agentic-hover-background-color: #5c636a;
	--em-agentic-hover-border-color: #5c636a;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-outline-primary {
	--em-agentic-background: transparent;
	--em-agentic-color: #0d6efd;
	--em-agentic-hover-background-color: #0d6efd;
	--em-agentic-hover-border-color: #0d6efd;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-outline-secondary {
	--em-agentic-background: transparent;
	--em-agentic-color: #6c757d;
	--em-agentic-hover-background-color: #6c757d;
	--em-agentic-hover-border-color: #6c757d;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *).btn-link {
	--em-agentic-background: transparent;
	--em-agentic-color: #0d6efd;
	--em-agentic-border: transparent;
	--em-agentic-hover-background-color: transparent;
	--em-agentic-hover-color: #0a58ca;
	--em-agentic-hover-border-color: transparent;
	border-width: 0;
	text-decoration: underline;
}

/* Only the state colors override legacy normal inline color declarations. */
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *):hover,
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *):focus-visible,
a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *)[data-em-agentic-hover="true"] {
	background-color: var(--em-agentic-hover-background-color) !important;
	border-color: var(--em-agentic-hover-border-color) !important;
	color: var(--em-agentic-hover-color) !important;
}

a.em-agentic-button:where([data-em-agentic-design="plugin"], .em-agentic-admin *):focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* Local symbol fallbacks also work without Bootstrap Icons or a font download. */
a.em-agentic-button > .bi::before,
a.em-agentic-text-link > .bi::before {
	content: "▤";
	display: inline-block;
	font-family: system-ui, sans-serif !important;
	font-size: 1em;
	font-style: normal;
	font-weight: 600 !important;
	line-height: 1;
	speak: never;
}

a.em-agentic-button > .bi-filetype-md::before,
a.em-agentic-button > .bi-markdown::before,
a.em-agentic-text-link > .bi-filetype-md::before,
a.em-agentic-text-link > .bi-markdown::before {
	content: "M↓";
}

a.em-agentic-button > .bi-download::before,
a.em-agentic-text-link > .bi-download::before {
	content: "↓";
}

a.em-agentic-button > .bi-code::before,
a.em-agentic-text-link > .bi-code::before {
	content: "</>";
}

/* Genuine text links inherit the site's text-link colors unless explicitly overridden. */
a.em-agentic-text-link {
	background: none;
	border: 0;
	border-radius: 0;
	padding: 0;
	text-decoration: underline;
}

/* Only the opt-in link owns these colors; the theme keeps its focus outline. */
a.em-agentic-text-link[data-em-agentic-link-colors="custom"] {
	color: var(--em-agentic-link-color) !important;
}

a.em-agentic-text-link[data-em-agentic-link-colors="custom"]:hover,
a.em-agentic-text-link[data-em-agentic-link-colors="custom"]:focus-visible,
.em-agentic-admin a.em-agentic-text-link[data-em-agentic-link-colors="custom"][data-em-agentic-hover="true"] {
	color: var(--em-agentic-link-hover-color) !important;
}

.em-agentic-link-group {
	display: inline-block;
	max-width: 100%;
}

.em-agentic-link-description {
	display: block;
	font-size: 0.875em;
	line-height: 1.5;
	margin-top: 0.35em;
}
