/*
 * Local additions on top of the Shirone theme, loaded once through
 * shirones/config/FooterConfig.html. Keep this file small: anything the
 * theme can do through shirones/config/ belongs there instead.
 */

/* The injected <link> is the only child of the footer slot; keep the slot from adding space. */
.m3-blog-footer__custom:has(> link:only-child) {
	display: none;
}

/*
 * Shirone keeps code on the mono role only. This blog also wants Chinese inside
 * code (comments, sample output) on Konbaku CJK instead of a system fallback.
 */
pre,
code,
kbd,
samp,
.expressive-code,
.expressive-code *,
.mermaid code {
	font-family: var(--m3e-font-mono-family), var(--font-cjk), var(--m3e-font-mono-fallback) !important;
}

/* Raw HTML blocks used inside Markdown posts (see style-guide.md). */
.markdown-content :is(.embedded-hero, .note-callout, .command-card) {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid var(--line-divider);
	border-radius: 0.75rem;
	background: var(--surface-container-low);
}

.markdown-content .embedded-hero {
	text-align: center;
}

.markdown-content .embedded-hero h2 {
	margin: 0.5rem 0;
	font-size: 1.875rem;
	font-weight: 700;
}

.markdown-content .embedded-hero .eyebrow {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-transform: uppercase;
	color: var(--primary);
}

.markdown-content :is(.inline-actions, .provider-badges) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.markdown-content .provider-badges kbd {
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--line-divider);
	border-radius: 0.375rem;
	background: var(--surface-container);
	font-size: 0.75rem;
}

.markdown-content .note-callout {
	border-left: 4px solid var(--primary);
}

.markdown-content .note-callout.warning {
	border-left-color: #f59e0b;
}

.markdown-content .command-card {
	border-style: dashed;
}
