/*
 * MindTech Academy — article content blocks (MindTech block patterns).
 * Loaded on the front end AND in the block editor (add_editor_style), so authors see the real look.
 * Relies on the tokens from mindtech.css on the front end; fallbacks keep the editor readable.
 */

.mt-callout {
	margin-block: 1.6em;
	padding: 18px 20px 18px 56px;
	position: relative;
	border-radius: 14px;
	border: 1px solid var(--mt-line, #e3e8f0);
	background: var(--mt-soft, #f6f8fb);
	color: var(--mt-text, #334155);
}
.mt-callout::before {
	content: "";
	position: absolute;
	left: 18px; top: 19px;
	width: 22px; height: 22px;
	background: currentColor;
	-webkit-mask: var(--mt-callout-icon) no-repeat center / contain;
	mask: var(--mt-callout-icon) no-repeat center / contain;
}
.mt-callout > :first-child { margin-top: 0; }
.mt-callout > :last-child { margin-bottom: 0; }
.mt-callout h3 { margin: 0 0 8px; font-size: 1.1rem; }
.mt-callout ul { margin: 0; padding-left: 1.2em; }

/* Tip — steel blue, lightbulb */
.mt-callout--tip {
	background: #edf2fa;
	border-color: #d3dfef;
	--mt-callout-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%3Cpath d='M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}
.mt-callout--tip::before { color: var(--mt-steel, #1d4f91); }

/* Warning — amber, triangle */
.mt-callout--warning {
	background: #fef6e4;
	border-color: #f3dfb0;
	--mt-callout-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%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}
.mt-callout--warning::before { color: var(--mt-gold-ink, #8a5b00); }

/* Key points — navy, check */
.mt-callout--key {
	background: #fff;
	border: 2px solid var(--mt-navy, #081426);
	--mt-callout-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%3Cpath d='M21.8 10A10 10 0 1 1 17 3.3'/%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3C/svg%3E");
}
.mt-callout--key::before { color: var(--mt-navy, #081426); }

/* Call to action — dark band */
.mt-callout--cta {
	padding: 24px;
	border: 0;
	background: linear-gradient(120deg, var(--mt-navy, #081426), var(--mt-steel-dark, #163e73));
	color: var(--mt-on-dark, #e6edf7);
}
.mt-callout--cta::before { display: none; }
.mt-callout--cta strong { color: #fff; }
.mt-callout--cta .wp-block-buttons { margin-top: 14px; gap: 10px; }
.mt-callout--cta .wp-block-button__link {
	border-radius: 999px;
	padding: 11px 22px;
	background: var(--mt-gold, #f5b841);
	color: var(--mt-navy, #081426);
	font-weight: 600;
	text-decoration: none;
}
.mt-callout--cta .is-style-outline .wp-block-button__link { background: transparent; border: 2px solid rgba(255, 255, 255, .4); color: #fff; }

/* Code label + numbered steps */
.mt-code-label {
	display: inline-block;
	margin: 1.4em 0 -2px !important;
	padding: 4px 12px;
	border-radius: 8px 8px 0 0;
	background: #16305a;
	color: #b9c6da;
	font-family: ui-monospace, Consolas, monospace;
	font-size: .75rem;
}
.mt-code-label + .wp-block-code { margin-top: 0; border-top-left-radius: 0; }
.mt-steps-list { counter-reset: mtsl; list-style: none; padding-left: 0 !important; }
.mt-steps-list > li { counter-increment: mtsl; position: relative; padding-left: 46px; margin-bottom: .9em; }
.mt-steps-list > li::before {
	content: counter(mtsl);
	position: absolute;
	left: 0; top: -2px;
	display: grid; place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--mt-navy, #081426);
	color: var(--mt-gold, #f5b841);
	font-weight: 700;
	font-size: .85rem;
}
