body.wmgad-enabled {
	--wmgad-violet: var(--wmg-violet, #5b4dff);
	--wmgad-violet-dark: var(--wmg-violet-dark, #4233ed);
	--wmgad-coral: var(--wmg-coral, #ff6e5d);
	--wmgad-cyan: var(--wmg-sky, #12bfe6);
	--wmgad-ink: var(--wmg-ink, #20263a);
	--wmgad-muted: var(--wmg-muted, #616a7f);
	--wmgad-line: var(--wmg-line, #e6e8f0);
	--wmgad-soft: var(--wmg-soft, #f6f7fb);
	--wmgad-white: #fff;
	width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
}

/* Let editorial posts use the wide site grid instead of the theme's narrow post cap. */
.wmgad-enabled .wmg-single.wmg-content-shell {
	max-width: 1280px;
}

.wmgad-enabled .wmg-single .wmg-prose.wmgad-root {
	width: 100%;
	max-width: 1160px;
	min-width: 0;
	color: var(--wmgad-ink);
	font-size: clamp(18px, 1.25vw, 20px);
	line-height: 1.76;
	overflow-wrap: anywhere;
}

.wmgad-enabled .wmgad-root,
.wmgad-enabled .wmgad-root * {
	box-sizing: border-box;
}

.wmgad-root > *,
.wmgad-section > *,
.wmgad-panel > * {
	max-width: 100%;
}

.wmgad-root img,
.wmgad-root iframe,
.wmgad-root video,
.wmgad-root embed,
.wmgad-root object {
	max-width: 100%;
}

.wmgad-canvas {
	position: relative;
	min-width: 0;
}

.wmgad-root p,
.wmgad-root ul,
.wmgad-root ol,
.wmgad-root blockquote,
.wmgad-root pre,
.wmgad-root table {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.wmgad-root p:last-child,
.wmgad-root ul:last-child,
.wmgad-root ol:last-child {
	margin-bottom: 0;
}

.wmgad-root a:not(.wp-block-button__link) {
	color: var(--wmgad-violet-dark);
	font-weight: 720;
	text-decoration-color: rgba(91, 77, 255, .34);
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
	transition: color .18s ease, text-decoration-color .18s ease;
}

.wmgad-root a:not(.wp-block-button__link):hover,
.wmgad-root a:not(.wp-block-button__link):focus-visible {
	color: #0f94b8;
	text-decoration-color: var(--wmgad-cyan);
}

.wmgad-root a:focus-visible {
	border-radius: 3px;
	outline: 3px solid rgba(18, 191, 230, .25);
	outline-offset: 3px;
}

/* The opening copy reads as part of the article, not as another large card. */
.wmgad-intro {
	margin: 0 0 clamp(42px, 6vw, 72px);
	padding: 0 0 clamp(30px, 4vw, 42px);
	border-bottom: 1px solid var(--wmgad-line);
}

.wmgad-intro > p:first-of-type {
	max-width: 52ch;
	color: var(--wmgad-ink);
	font-size: clamp(21px, 2vw, 27px);
	font-weight: 760;
	letter-spacing: -.025em;
	line-height: 1.48;
}

.wmgad-intro > p:not(:first-of-type) {
	color: var(--wmgad-muted);
}

/* Standard H2 sections remain open and wide. */
.wmgad-section {
	position: relative;
	min-width: 0;
	margin: clamp(46px, 7vw, 82px) 0;
	scroll-margin-top: 150px;
}

.wmgad-section--standard,
.wmgad-section--action,
.wmgad-section--warning,
.wmgad-section--faq,
.wmgad-section--sources {
	padding: 0;
	border: 0;
	background: transparent;
}

.wmgad-heading {
	position: relative;
	margin: 0 0 clamp(24px, 3.5vw, 38px) !important;
	padding: 3px 0 3px 20px;
	border-left: 4px solid var(--wmgad-violet);
	color: var(--wmgad-ink);
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 850;
	letter-spacing: -.048em !important;
	line-height: 1.06 !important;
}

.wmgad-heading::after {
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 16px;
	border-radius: 99px;
	background: var(--wmgad-cyan);
	content: '';
}

.wmgad-section h3,
.wmgad-panel h3,
.wmgad-root > h3 {
	margin: 2em 0 .75em;
	color: var(--wmgad-ink);
	font-size: clamp(23px, 2.5vw, 31px);
	font-weight: 820;
	letter-spacing: -.035em !important;
	line-height: 1.18 !important;
}

.wmgad-section h2[id],
.wmgad-section h3[id],
.wmgad-panel h2[id],
.wmgad-panel h3[id] {
	scroll-margin-top: 150px;
}

.wmgad-section > ul:not([class]),
.wmgad-section > ol:not([class]),
.wmgad-intro > ul,
.wmgad-intro > ol {
	padding-left: 1.45em;
	border: 0;
	background: transparent;
}

.wmgad-root li {
	margin: .58em 0;
	padding-left: .25em;
}

.wmgad-root li::marker {
	color: var(--wmgad-violet);
	font-weight: 850;
}

/* Points clés remains useful and distinct, but visually quiet. */
.wmgad-section--key,
.wmgad-panel--key {
	margin: clamp(38px, 6vw, 68px) 0 !important;
	padding: clamp(28px, 4vw, 42px) !important;
	border: 1px solid var(--wmgad-line) !important;
	border-radius: 24px !important;
	background: #f8f9fc !important;
	box-shadow: none !important;
}

.wmgad-section--key .wmgad-heading,
.wmgad-panel--key > h2 {
	margin: 0 0 24px !important;
	padding: 0 !important;
	border: 0 !important;
	color: var(--wmgad-ink) !important;
	font-size: clamp(27px, 3.2vw, 38px) !important;
}

.wmgad-section--key .wmgad-heading::before,
.wmgad-panel--key > h2::before {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 12px;
	border-radius: 50%;
	background: var(--wmgad-cyan);
	content: '';
	vertical-align: .15em;
}

.wmgad-section--key .wmgad-heading::after,
.wmgad-panel--key > h2::after {
	display: none;
}

.wmgad-section--key > ul,
.wmgad-panel--key > ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 !important;
	padding: 0 !important;
	gap: 0 28px;
	border: 0 !important;
	background: transparent !important;
	list-style: none;
}

.wmgad-section--key > ul > li,
.wmgad-panel--key > ul > li {
	position: relative;
	margin: 0;
	padding: 15px 0 15px 34px;
	border: 0;
	border-bottom: 1px solid rgba(32, 38, 58, .1);
	background: transparent;
	font-size: .95em;
	line-height: 1.58;
}

.wmgad-section--key > ul > li::before,
.wmgad-panel--key > ul > li::before {
	position: absolute;
	top: 20px;
	left: 2px;
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	color: #fff;
	background: var(--wmgad-violet);
	content: '✓';
	font-size: 11px;
	font-weight: 900;
}

/* The table of contents is the article's main visual accent. */
.wmgad-section--toc,
.wmgad-panel--toc {
	margin: clamp(42px, 6vw, 72px) 0 !important;
	padding: clamp(30px, 4.5vw, 48px) !important;
	border: 1px solid rgba(255, 255, 255, .16) !important;
	border-radius: 26px !important;
	color: #fff !important;
	background: linear-gradient(135deg, #302778 0%, #5b4dff 64%, #4939df 100%) !important;
	box-shadow: 0 24px 60px rgba(66, 51, 237, .16);
}

.wmgad-section--toc .wmgad-heading,
.wmgad-panel--toc > h2 {
	margin: 0 0 25px !important;
	padding: 0 !important;
	border: 0 !important;
	color: #fff !important;
	font-size: clamp(28px, 3.4vw, 40px) !important;
}

.wmgad-section--toc .wmgad-heading::after,
.wmgad-panel--toc > h2::after {
	width: 64px;
	background: var(--wmgad-cyan);
}

.wmgad-section--toc > ul,
.wmgad-section--toc > ol,
.wmgad-panel--toc > ul,
.wmgad-panel--toc > ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 !important;
	padding: 0 !important;
	gap: 9px;
	border: 0 !important;
	background: transparent !important;
	list-style: none;
}

.wmgad-section--toc li,
.wmgad-panel--toc li {
	margin: 0;
	padding: 0;
}

.wmgad-section--toc a,
.wmgad-panel--toc a {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 60px;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 14px;
	color: #fff !important;
	background: rgba(255, 255, 255, .08);
	font-size: .89em;
	font-weight: 760 !important;
	line-height: 1.4;
	text-decoration: none !important;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.wmgad-section--toc a::before,
.wmgad-panel--toc a::before {
	width: 7px;
	height: 7px;
	margin-right: 11px;
	border-radius: 50%;
	background: var(--wmgad-cyan);
	content: '';
	flex: 0 0 7px;
}

.wmgad-section--toc a:hover,
.wmgad-section--toc a:focus-visible,
.wmgad-panel--toc a:hover,
.wmgad-panel--toc a:focus-visible {
	border-color: rgba(255, 255, 255, .38);
	background: rgba(255, 255, 255, .15);
	transform: translateY(-1px);
}

/* Numbered checks flow as editorial subsections rather than twelve cards. */
.wmgad-section--checks {
	background: transparent;
}

.wmgad-check {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: clamp(30px, 4.5vw, 48px) 0;
	border: 0;
	border-top: 1px solid var(--wmgad-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.wmgad-check::before {
	display: none;
}

.wmgad-check h3 {
	max-width: 31ch;
	margin: 0 0 16px;
	color: var(--wmgad-ink);
	font-size: clamp(25px, 2.8vw, 34px);
}

.wmgad-section--warning .wmgad-heading {
	border-left-color: var(--wmgad-coral);
}

.wmgad-section--warning .wmgad-heading::after {
	background: var(--wmgad-coral);
}

.wmgad-section--action .wmgad-heading {
	border-left-color: var(--wmgad-cyan);
}

.wmgad-faq-item {
	min-width: 0;
	margin: 0;
	padding: 26px 0;
	border: 0;
	border-top: 1px solid var(--wmgad-line);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.wmgad-faq-item h3 {
	position: relative;
	margin: 0 0 11px;
	padding-left: 30px;
	font-size: clamp(21px, 2.2vw, 27px);
}

.wmgad-faq-item h3::before {
	position: absolute;
	top: .05em;
	left: 0;
	color: var(--wmgad-violet);
	content: '?';
	font-size: 1.05em;
	font-weight: 900;
}

.wmgad-section--sources {
	font-size: .92em;
}

.wmgad-section--sources .wmgad-heading {
	font-size: clamp(26px, 3vw, 36px);
}

.wmgad-card-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)) !important;
	gap: 16px !important;
	margin: 30px 0 !important;
}

.wmgad-card-grid > section {
	min-width: 0 !important;
	padding: 24px !important;
	border: 1px solid var(--wmgad-line) !important;
	border-top: 3px solid var(--wmgad-violet) !important;
	border-radius: 16px !important;
	background: #fff !important;
	box-shadow: none;
}

.wmgad-card-grid > section:nth-child(even) {
	border-top-color: var(--wmgad-cyan) !important;
}

.wmgad-card-grid h3 {
	margin: 0 0 10px !important;
	color: var(--wmgad-ink) !important;
	font-size: clamp(20px, 2.2vw, 25px) !important;
}

.wmgad-root blockquote {
	position: relative;
	margin-inline: 0;
	padding: 26px 30px 26px 34px;
	border: 0;
	border-left: 4px solid var(--wmgad-cyan);
	border-radius: 0 14px 14px 0;
	color: var(--wmgad-ink);
	background: #f7fafc;
	font-size: 1.04em;
	font-weight: 650;
}

.wmgad-root code {
	padding: .12em .35em;
	border-radius: 6px;
	color: #493bd6;
	background: #efedff;
	font-size: .88em;
	overflow-wrap: anywhere;
}

.wmgad-root pre {
	max-width: 100%;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 16px;
	color: #edf1ff;
	background: #20263a;
	box-shadow: 0 14px 36px rgba(32, 38, 58, .12);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wmgad-root pre code {
	padding: 0;
	color: inherit;
	background: transparent;
	overflow-wrap: normal;
}

.wmgad-root table {
	display: table;
	width: 100%;
	border: 1px solid var(--wmgad-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.wmgad-root th,
.wmgad-root td {
	padding: 15px 17px;
	border-right: 1px solid var(--wmgad-line);
	border-bottom: 1px solid var(--wmgad-line);
	text-align: left;
	vertical-align: top;
}

.wmgad-root th {
	color: var(--wmgad-violet-dark);
	background: #f4f3fb;
	font-size: .86em;
	font-weight: 820;
}

.wmgad-root tr:last-child td,
.wmgad-root tr:last-child th {
	border-bottom: 0;
}

.wmgad-root tr > :last-child {
	border-right: 0;
}

.wmgad-root img:not(.avatar) {
	height: auto;
	border-radius: 18px;
}

.wmgad-author-box {
	border: 1px solid var(--wmgad-line) !important;
	border-radius: 18px !important;
	background: #f8f9fc !important;
	box-shadow: none !important;
}

.wmgad-disclaimer {
	border: 1px solid var(--wmgad-line) !important;
	border-left: 4px solid var(--wmgad-coral) !important;
	border-radius: 12px !important;
	background: #fcfcfd !important;
}

@media (max-width: 760px) {
	body.wmgad-enabled,
	.wmgad-enabled .wmg-site-main,
	.wmgad-enabled .wmg-single,
	.wmgad-enabled .wmg-prose,
	.wmgad-enabled .wmgad-canvas {
		max-width: 100%;
		overflow-x: hidden;
		overflow-x: clip;
	}

	.wmgad-enabled .wmg-single .wmg-prose.wmgad-root {
		font-size: 17px;
		line-height: 1.72;
	}

	.wmgad-intro {
		margin-bottom: 42px;
		padding-bottom: 28px;
	}

	.wmgad-section {
		margin: 48px 0;
	}

	.wmgad-section--key,
	.wmgad-section--toc,
	.wmgad-panel--key,
	.wmgad-panel--toc {
		padding: 25px 21px !important;
		border-radius: 20px !important;
	}

	.wmgad-heading {
		padding-left: 16px;
		border-left-width: 4px;
		font-size: clamp(28px, 8.5vw, 38px);
	}

	.wmgad-section--key > ul,
	.wmgad-panel--key > ul,
	.wmgad-section--toc > ul,
	.wmgad-section--toc > ol,
	.wmgad-panel--toc > ul,
	.wmgad-panel--toc > ol {
		grid-template-columns: minmax(0, 1fr);
	}

	.wmgad-check {
		padding: 30px 0;
	}

	.wmgad-faq-item {
		padding: 23px 0;
	}

	.wmgad-root table {
		display: block;
		width: 100%;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 480px) {
	.wmgad-section--toc a,
	.wmgad-panel--toc a {
		min-height: 54px;
		padding: 12px 13px;
	}

	.wmgad-section--key > ul > li,
	.wmgad-panel--key > ul > li {
		padding: 14px 0 14px 32px;
	}

	.wmgad-section--key > ul > li::before,
	.wmgad-panel--key > ul > li::before {
		top: 19px;
		left: 1px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wmgad-root *,
	.wmgad-root *::before,
	.wmgad-root *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
