/* =====================================================================
   MEGAGEN e-catalog  —  /products/, /products/{line}/, /products/{line}/{product}/

   Tokens are declared on .mg-ec and overridden only inside the dark block,
   scoped to .mg-ec. Nothing here reads a colour that is defined solely in a
   media or [data-theme] block, so the page cannot inherit a half-applied
   palette from a container that reuses these class names.
   ================================================================== */

.mg-ec {
	--ec-ink:        var(--mg-text, #0b1320);
	--ec-head:       var(--mg-heading, #0a1626);
	--ec-muted:      var(--mg-muted, #56677b);
	/*
	 * Deliberately NOT --mg-faint. That token is #8496a8, which is 3.04:1 on
	 * white and 2.85:1 on the surface — fine for a hairline or a decorative
	 * label, but here it carries the English product name under every card, the
	 * stat captions and the breadcrumb trail, which people actually read. Same
	 * hue, dark enough to clear 4.5:1 on paper, surface and surface-2 alike.
	 * Scoped to .mg-ec so nothing else on the site shifts.
	 */
	--ec-faint:      #5e7184;
	--ec-paper:      var(--mg-bg, #fff);
	--ec-surface:    var(--mg-surface, #f5f8fc);
	--ec-surface-2:  var(--mg-surface-2, #eef3f9);
	--ec-line:       var(--mg-border, #e5eaf1);
	--ec-line-2:     var(--mg-border-strong, #d4dce7);
	--ec-accent:     var(--mg-accent, #0067b1);
	--ec-accent-deep:var(--mg-accent-deep, #024e86);
	--ec-accent-soft:var(--mg-accent-soft, #e9f1fa);
	--ec-radius:     var(--mg-r, 14px);
	--ec-radius-lg:  var(--mg-r-lg, 22px);
	--ec-ease:       var(--mg-ease, cubic-bezier(.23,1,.32,1));
	/* shadows carry the accent hue instead of neutral black */
	--ec-shadow:     0 1px 2px rgba(10,38,66,.05), 0 8px 24px -12px rgba(10,38,66,.16);
	--ec-shadow-lg:  0 2px 4px rgba(10,38,66,.06), 0 26px 50px -22px rgba(10,38,66,.28);

	background: var(--ec-paper);
	color: var(--ec-ink);
	display: block;
}

/* The global PDP shell clips horizontal overflow with `hidden`, which turns
   main into a non-scrolling scroll container and disables every sticky child.
   `clip` keeps the safety boundary without stealing sticky positioning. */
html.mg-pdp-html,
html.mg-pdp-html body.mg-ec-body,
.mg-pdp-body main.mg-ec { overflow-x: clip !important; overflow-y: visible !important; }

.mg-ec-wrap {
	width: min(var(--mg-container, 1200px), calc(100% - 2 * clamp(18px, 5vw, 46px)));
	margin-inline: auto;
}

.mg-ec-sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Hero ---------- */

.mg-ec-hero {
	position: relative;
	padding-block: clamp(26px, 5vw, 52px) clamp(30px, 5vw, 56px);
	background:
		radial-gradient(120% 140% at 88% -20%, var(--ec-accent-soft) 0%, transparent 58%),
		var(--ec-surface);
	border-block-end: 1px solid var(--ec-line);
	overflow: hidden;
}

.mg-ec-eyebrow {
	margin: 0 0 10px;
	font-size: var(--mg-fs-sm, .9375rem);
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--ec-accent);
}
.mg-ec-eyebrow a { color: inherit; text-decoration: none; }
.mg-ec-eyebrow a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mg-ec-hero h1 {
	margin: 0 0 14px;
	font-size: var(--mg-fs-2xl, clamp(2rem, 1.2rem + 3vw, 2.85rem));
	line-height: var(--mg-lh-tight, 1.12);
	letter-spacing: -.015em;
	color: var(--ec-head);
	text-wrap: balance;
}

.mg-ec-h1fa {
	display: block;
	margin-block-start: 8px;
	font-size: .48em;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--ec-muted);
}

.mg-ec-lede {
	max-width: 62ch;
	margin: 0;
	font-size: var(--mg-fs-md, 1.125rem);
	line-height: 1.85;
	color: var(--ec-muted);
	text-wrap: pretty;
}

.mg-ec-stats {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(14px, 3vw, 36px);
	margin: clamp(20px, 3vw, 30px) 0 0;
	padding: 0;
	list-style: none;
}
.mg-ec-stats li { display: flex; flex-direction: column; gap: 2px; }
.mg-ec-stats b {
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
	font-weight: 700;
	line-height: 1;
	color: var(--ec-head);
	font-variant-numeric: tabular-nums;
}
.mg-ec-stats span { font-size: var(--mg-fs-sm, .9375rem); color: var(--ec-faint); }

/* ---------- Breadcrumbs ---------- */

.mg-ec-crumbs { margin-block-end: 18px; }
.mg-ec-crumbs ol {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	margin: 0; padding: 0; list-style: none;
	font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-faint);
}
.mg-ec-crumbs li + li::before { content: "‹"; margin-inline-end: 6px; color: var(--ec-line-2); }
.mg-ec-crumbs a { color: var(--ec-muted); text-decoration: none; }
.mg-ec-crumbs a:hover { color: var(--ec-accent); text-decoration: underline; text-underline-offset: 3px; }
.mg-ec-crumbs [aria-current] { color: var(--ec-ink); font-weight: 600; }

/* ---------- Blocks + headings ---------- */

.mg-ec-block { padding-block: clamp(30px, 5vw, 54px); }
.mg-ec-block + .mg-ec-block { border-block-start: 1px solid var(--ec-line); }

.mg-ec-h2 {
	margin: 0 0 6px;
	font-size: var(--mg-fs-xl, 1.75rem);
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--ec-head);
}
.mg-ec-note {
	margin: 0 0 22px;
	max-width: 68ch;
	font-size: var(--mg-fs-sm, .9375rem);
	line-height: 1.8;
	color: var(--ec-muted);
}
.mg-ec-h2 + .mg-ec-linegrid,
.mg-ec-h2 + .mg-ec-grid,
.mg-ec-h2 + .mg-ec-cats { margin-block-start: 22px; }

/* ---------- Search ---------- */

.mg-ec-searchbar {
	display: flex; align-items: center; gap: 10px;
	margin-block-start: clamp(22px, 4vw, 34px);
	padding: 4px 16px;
	background: var(--ec-paper);
	border: 1px solid var(--ec-line-2);
	border-radius: var(--mg-r-pill, 999px);
	box-shadow: var(--ec-shadow);
	transition: border-color .2s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.mg-ec-searchbar:focus-within {
	border-color: var(--ec-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--ec-accent) 16%, transparent), var(--ec-shadow);
}
.mg-ec-searchbar svg { width: 18px; height: 18px; flex: none; color: var(--ec-faint); }
.mg-ec-searchbar input {
	flex: 1 1 auto; min-width: 0;
	padding: 12px 0;
	border: 0; outline: 0; background: none;
	font: inherit; font-size: var(--mg-fs-base, 1rem);
	color: var(--ec-ink);
}
.mg-ec-searchbar input::placeholder { color: var(--ec-faint); }
.mg-ec-searchbar__n {
	flex: none; font-size: var(--mg-fs-xs, .8125rem);
	color: var(--ec-faint); font-variant-numeric: tabular-nums;
}
.mg-ec-searchbar--sm { margin-block-start: 0; padding-inline: 14px; }
.mg-ec-searchbar--sm input { padding-block: 9px; font-size: var(--mg-fs-sm, .9375rem); }

.mg-ec-results { margin-block-start: 14px; }
.mg-ec-results ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.mg-ec-results a {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
	padding: 12px 16px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	color: inherit; text-decoration: none;
	transition: background .18s var(--ec-ease), border-color .18s var(--ec-ease), transform .18s var(--ec-ease);
}
.mg-ec-results a:hover { background: var(--ec-accent-soft); border-color: var(--ec-accent); transform: translateX(-3px); }
.mg-ec-results strong { font-size: var(--mg-fs-base, 1rem); color: var(--ec-head); }
.mg-ec-results em { font-style: normal; font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-faint); }
.mg-ec-results .n { margin-inline-start: auto; font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-accent); font-variant-numeric: tabular-nums; }
.mg-ec-results p { margin: 0; padding: 16px; color: var(--ec-muted); }

/* ---------- Line cards (asymmetric: the mark sits outside the text column) ---------- */

.mg-ec-linegrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
	gap: clamp(12px, 1.6vw, 18px);
}

.mg-ec-linecard {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "mark body" "meta meta";
	gap: 4px 16px;
	padding: clamp(18px, 2.2vw, 24px);
	background: var(--ec-paper);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	color: inherit; text-decoration: none;
	box-shadow: var(--ec-shadow);
	transition: transform .28s var(--ec-ease), box-shadow .28s var(--ec-ease), border-color .28s var(--ec-ease);
}
.mg-ec-linecard:hover {
	transform: translateY(-4px);
	border-color: var(--ec-accent);
	box-shadow: var(--ec-shadow-lg);
}
.mg-ec-linecard__mark {
	grid-area: mark;
	display: grid; place-items: center;
	width: 52px; height: 52px;
	border-radius: 14px;
	background: linear-gradient(150deg, var(--ec-accent), var(--ec-accent-deep));
	color: #fff;
	font-weight: 700; font-size: 1rem; letter-spacing: .02em;
	font-family: var(--mg-font-en, inherit);
}
.mg-ec-linecard__body { grid-area: body; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mg-ec-linecard__body strong { font-size: var(--mg-fs-lg, 1.375rem); line-height: 1.25; color: var(--ec-head); }
.mg-ec-linecard__body em { font-style: normal; font-size: var(--mg-fs-sm, .9375rem); color: var(--ec-muted); }
.mg-ec-linecard__tag { font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-faint); line-height: 1.7; }
.mg-ec-linecard__meta {
	grid-area: meta;
	display: flex; gap: 18px;
	margin-block-start: 14px; padding-block-start: 14px;
	border-block-start: 1px dashed var(--ec-line-2);
	font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-muted);
}
.mg-ec-linecard__meta b { color: var(--ec-accent); font-variant-numeric: tabular-nums; }

/* ---------- Category chips ---------- */

.mg-ec-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mg-ec-chip {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--mg-r-pill, 999px);
	font-size: var(--mg-fs-sm, .9375rem);
	color: var(--ec-ink);
}
.mg-ec-chip b {
	min-width: 22px; padding: 1px 7px;
	background: var(--ec-accent-soft); color: var(--ec-accent-deep);
	border-radius: var(--mg-r-pill, 999px);
	font-size: var(--mg-fs-xs, .8125rem); text-align: center;
	font-variant-numeric: tabular-nums;
}

/* ---------- Category jump nav ---------- */

.mg-ec-jump {
	position: sticky; top: 0; z-index: 5;
	display: flex; gap: 8px;
	margin-block-start: clamp(20px, 3vw, 28px);
	padding-block: 12px;
	overflow-x: auto;
	background: color-mix(in srgb, var(--ec-paper) 88%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-block-end: 1px solid var(--ec-line);
	scrollbar-width: thin;
}
.mg-ec-jump a {
	display: inline-flex; align-items: center; gap: 7px;
	flex: none;
	padding: 8px 14px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--mg-r-pill, 999px);
	font-size: var(--mg-fs-sm, .9375rem);
	color: var(--ec-ink); text-decoration: none;
	white-space: nowrap;
	transition: background .18s var(--ec-ease), border-color .18s var(--ec-ease), color .18s var(--ec-ease);
}
.mg-ec-jump a:hover { background: var(--ec-accent-soft); border-color: var(--ec-accent); color: var(--ec-accent-deep); }
.mg-ec-jump b { color: var(--ec-faint); font-weight: 600; font-variant-numeric: tabular-nums; }
.mg-ec-jump a:hover b { color: var(--ec-accent); }

/* ---------- Product cards ---------- */

.mg-ec-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 258px), 1fr));
	gap: clamp(12px, 1.6vw, 18px);
}

.mg-ec-card {
	display: flex; flex-direction: column;
	background: var(--ec-paper);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	overflow: hidden;
	color: inherit; text-decoration: none;
	transition: transform .28s var(--ec-ease), box-shadow .28s var(--ec-ease), border-color .28s var(--ec-ease);
}
.mg-ec-card:hover {
	transform: translateY(-4px);
	border-color: var(--ec-accent);
	box-shadow: var(--ec-shadow-lg);
}
.mg-ec-card__body {
	display: flex; flex-direction: column; gap: 4px;
	padding: 16px 18px 12px;
	flex: 1 1 auto;
}
.mg-ec-card__body strong { font-size: var(--mg-fs-base, 1rem); line-height: 1.45; color: var(--ec-head); }
.mg-ec-card__body em {
	font-style: normal; font-size: var(--mg-fs-xs, .8125rem);
	color: var(--ec-faint); line-height: 1.6;
}
.mg-ec-card__axes {
	margin-block-start: 4px;
	font-size: var(--mg-fs-xs, .8125rem); line-height: 1.7; color: var(--ec-muted);
	font-variant-numeric: tabular-nums;
}
/* pinned to the bottom so the codes line up across cards of different heights */
.mg-ec-card__codes {
	padding: 10px 18px;
	border-block-start: 1px solid var(--ec-line);
	background: var(--ec-surface);
	font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-muted);
}
.mg-ec-card__codes b { color: var(--ec-accent-deep); font-variant-numeric: tabular-nums; }

/* ---------- Figures ---------- */

.mg-ec-fig {
	display: grid; place-items: center;
	background: var(--ec-surface-2);
	overflow: hidden;
}
.mg-ec-fig img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mg-ec-fig--card { aspect-ratio: 4 / 3; padding: 12px; }
.mg-ec-fig--main { aspect-ratio: 1 / 1; border-radius: var(--ec-radius-lg); padding: clamp(16px, 3vw, 34px); }
.mg-ec-mono {
	display: grid; place-items: center;
	width: 56px; height: 56px;
	border-radius: 16px;
	background: linear-gradient(150deg, var(--ec-accent), var(--ec-accent-deep));
	color: #fff; font-size: 1.4rem; font-weight: 700;
	font-family: var(--mg-font-en, inherit);
	opacity: .92;
}
.mg-ec-fig--main .mg-ec-mono { width: 92px; height: 92px; font-size: 2.2rem; border-radius: 24px; }

/* ---------- Product detail ---------- */

.mg-ec-pdp {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(22px, 4vw, 52px);
	align-items: start;
	padding-block: clamp(6px, 2vw, 18px) clamp(24px, 4vw, 40px);
}
@media (max-width: 860px) { .mg-ec-pdp { grid-template-columns: 1fr; } }

.mg-ec-gal { position: sticky; top: 22px; }
.mg-ec-gal__thumbs {
	display: flex; gap: 8px; margin-block-start: 10px;
	overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin;
}
.mg-ec-gal__thumb {
	flex: none; width: 68px; height: 68px; padding: 5px;
	background: var(--ec-surface-2);
	border: 1px solid var(--ec-line);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color .18s var(--ec-ease), transform .18s var(--ec-ease);
}
.mg-ec-gal__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mg-ec-gal__thumb:hover { transform: translateY(-2px); }
.mg-ec-gal__thumb.is-on { border-color: var(--ec-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ec-accent) 22%, transparent); }

.mg-ec-pdp__info h1 {
	margin: 0 0 4px;
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.5rem);
	line-height: 1.2; letter-spacing: -.015em;
	color: var(--ec-head); text-wrap: balance;
}
.mg-ec-pdp__en {
	margin: 0 0 22px;
	font-size: var(--mg-fs-md, 1.125rem);
	color: var(--ec-muted);
	direction: ltr; text-align: right;
	font-family: var(--mg-font-en, inherit);
}

.mg-ec-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
	gap: 1px;
	margin: 0 0 22px; padding: 0;
	list-style: none;
	background: var(--ec-line);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	overflow: hidden;
}
.mg-ec-facts li {
	display: flex; flex-direction: column; gap: 4px;
	padding: 13px 15px;
	background: var(--ec-paper);
}
.mg-ec-facts span { font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-faint); }
.mg-ec-facts b {
	font-size: var(--mg-fs-md, 1.125rem); color: var(--ec-head);
	font-variant-numeric: tabular-nums;
}

.mg-ec-pdp__sku { margin: 0 0 22px; font-size: var(--mg-fs-sm, .9375rem); color: var(--ec-muted); }
.mg-ec-pdp__sku code,
.mg-ec-table code {
	padding: 2px 8px;
	background: var(--ec-surface-2);
	border: 1px solid var(--ec-line);
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: .92em; letter-spacing: .02em;
	color: var(--ec-head);
	direction: ltr; unicode-bidi: embed;
}

.mg-ec-pdp__act { display: flex; flex-wrap: wrap; gap: 10px; }

.mg-ec-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 22px;
	border: 1px solid var(--ec-line-2);
	border-radius: var(--mg-r-pill, 999px);
	background: var(--ec-paper);
	color: var(--ec-ink); text-decoration: none;
	font-size: var(--mg-fs-sm, .9375rem); font-weight: 600;
	cursor: pointer;
	transition: background .2s var(--ec-ease), border-color .2s var(--ec-ease), transform .12s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.mg-ec-btn:hover { border-color: var(--ec-accent); color: var(--ec-accent-deep); background: var(--ec-accent-soft); }
.mg-ec-btn:active { transform: translateY(1px); }
.mg-ec-btn--primary {
	background: var(--ec-accent); border-color: var(--ec-accent); color: #fff;
	box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--ec-accent) 70%, transparent);
}
.mg-ec-btn--primary:hover { background: var(--ec-accent-deep); border-color: var(--ec-accent-deep); color: #fff; }

/* ---------- Axis filters ---------- */

.mg-ec-tablebar { margin-block: 18px 14px; max-width: 420px; }

.mg-ec-axes { display: grid; gap: 12px; margin-block-end: 20px; }
.mg-ec-axis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mg-ec-axis__label {
	flex: none; min-width: 96px;
	font-size: var(--mg-fs-sm, .9375rem); font-weight: 600; color: var(--ec-muted);
}
.mg-ec-axis__vals { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-ec-pill {
	min-height: 34px; padding: 0 13px;
	background: var(--ec-paper);
	border: 1px solid var(--ec-line-2);
	border-radius: var(--mg-r-pill, 999px);
	font: inherit; font-size: var(--mg-fs-sm, .9375rem);
	color: var(--ec-ink); cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: background .16s var(--ec-ease), border-color .16s var(--ec-ease), color .16s var(--ec-ease), transform .1s var(--ec-ease);
}
.mg-ec-pill:hover { border-color: var(--ec-accent); color: var(--ec-accent-deep); }
.mg-ec-pill:active { transform: translateY(1px); }
.mg-ec-pill.is-on { background: var(--ec-accent); border-color: var(--ec-accent); color: #fff; }
.mg-ec-pill.is-off { opacity: .34; }

/* ---------- Code table ---------- */

.mg-ec-tablewrap {
	overflow-x: auto;
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	background: var(--ec-paper);
	scrollbar-width: thin;
}
.mg-ec-table { width: 100%; border-collapse: collapse; font-size: var(--mg-fs-sm, .9375rem); }
.mg-ec-table th {
	position: sticky; top: 0; z-index: 2;
	padding: 12px 16px;
	background: var(--ec-surface-2);
	border-block-end: 1px solid var(--ec-line-2);
	font-weight: 600; text-align: start; white-space: nowrap;
	color: var(--ec-head);
}
.mg-ec-table td {
	padding: 10px 16px;
	border-block-start: 1px solid var(--ec-line);
	font-variant-numeric: tabular-nums;
	color: var(--ec-ink);
	white-space: nowrap;
}
.mg-ec-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--ec-surface) 55%, transparent); }
.mg-ec-table tbody tr:hover td { background: var(--ec-accent-soft); }
.mg-ec-table td.is-code { display: flex; align-items: center; gap: 8px; }

.mg-ec-copy {
	display: grid; place-items: center;
	width: 30px; height: 30px; flex: none;
	background: none; border: 1px solid transparent; border-radius: 8px;
	color: var(--ec-faint); cursor: pointer;
	transition: color .16s var(--ec-ease), background .16s var(--ec-ease), border-color .16s var(--ec-ease);
}
.mg-ec-copy svg { width: 15px; height: 15px; }
.mg-ec-copy:hover { color: var(--ec-accent); background: var(--ec-accent-soft); border-color: var(--ec-line); }
.mg-ec-copy.is-done { color: var(--mg-success, #1f9d63); }

.mg-ec-empty { margin: 0; padding: 26px 18px; text-align: center; color: var(--ec-muted); }

/* ---------- Specs ---------- */

.mg-ec-specs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; max-width: 78ch; }
.mg-ec-specs li {
	position: relative;
	padding: 13px 44px 13px 18px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	line-height: 1.85; color: var(--ec-ink);
}
.mg-ec-specs li::before {
	content: ""; position: absolute; inset-inline-start: 18px; inset-block-start: 22px;
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--ec-accent);
}
.mg-ec-src { margin: 14px 0 0; font-size: var(--mg-fs-xs, .8125rem); color: var(--ec-faint); }

/* ---------- CTA ---------- */

.mg-ec-cta {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 20px;
	margin-block: clamp(30px, 5vw, 54px);
	padding: clamp(22px, 3.4vw, 34px);
	background:
		radial-gradient(120% 180% at 90% 0%, color-mix(in srgb, var(--ec-accent) 12%, transparent) 0%, transparent 60%),
		var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
}
.mg-ec-cta h2 { margin: 0 0 6px; font-size: var(--mg-fs-lg, 1.375rem); color: var(--ec-head); }
.mg-ec-cta p { margin: 0; max-width: 56ch; color: var(--ec-muted); line-height: 1.85; }
.mg-ec-cta__act { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Focus ---------- */

.mg-ec a:focus-visible,
.mg-ec button:focus-visible,
.mg-ec input:focus-visible {
	outline: 3px solid var(--ec-accent);
	outline-offset: 2px;
	border-radius: 6px;
}

/* ---------- Dark ---------- */

[data-theme="dark"] .mg-ec,
body.mg-dark .mg-ec {
	--ec-ink: #e7eef5;
	--ec-head: #f4f8fb;
	--ec-muted: #a6bccd;
	--ec-faint: #7f97ab;
	--ec-paper: #0d1c28;
	--ec-surface: #12242f;
	--ec-surface-2: #172c39;
	--ec-line: #233d4d;
	--ec-line-2: #2f4d60;
	--ec-accent: #4aa8e8;
	--ec-accent-deep: #7cc3f2;
	--ec-accent-soft: #14324a;
	--ec-shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.55);
	--ec-shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 26px 50px -22px rgba(0,0,0,.7);
}
[data-theme="dark"] .mg-ec-linecard__mark,
[data-theme="dark"] .mg-ec-mono,
body.mg-dark .mg-ec-linecard__mark,
body.mg-dark .mg-ec-mono { color: #08131c; }
[data-theme="dark"] .mg-ec-btn--primary,
body.mg-dark .mg-ec-btn--primary { color: #08131c; }
[data-theme="dark"] .mg-ec-btn--primary:hover,
body.mg-dark .mg-ec-btn--primary:hover { color: #08131c; }
[data-theme="dark"] .mg-ec-pill.is-on,
body.mg-dark .mg-ec-pill.is-on { color: #08131c; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.mg-ec * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.mg-ec-linecard:hover, .mg-ec-card:hover { transform: none; }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 640px) {
	.mg-ec-axis__label { min-width: 100%; }
	.mg-ec-cta { flex-direction: column; align-items: stretch; }
	.mg-ec-cta__act .mg-ec-btn { flex: 1 1 auto; }
	.mg-ec-gal { position: static; }
}

/* ---------- Manufacturer's original notes ---------- */

.mg-ec-en { margin-block-start: 18px; max-width: 78ch; }
.mg-ec-en summary {
	cursor: pointer;
	padding: 11px 16px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	font-size: var(--mg-fs-sm, .9375rem);
	color: var(--ec-muted);
	list-style-position: inside;
}
.mg-ec-en summary:hover { color: var(--ec-accent-deep); border-color: var(--ec-line-2); }
.mg-ec-en[open] summary { margin-block-end: 10px; }
.mg-ec-specs--en li {
	text-align: left;
	padding: 12px 18px 12px 44px;
	font-family: var(--mg-font-en, inherit);
	font-size: var(--mg-fs-sm, .9375rem);
	line-height: 1.7;
}
.mg-ec-specs--en li::before { inset-inline-start: auto; left: 18px; }

.mg-ec-note--empty {
	margin: 0;
	padding: 20px 22px;
	background: var(--ec-surface);
	border: 1px dashed var(--ec-line-2);
	border-radius: var(--ec-radius);
	max-width: none;
}

/* ---------- Editable intro ---------- */

.mg-ec-pdp__intro {
	max-width: 62ch;
	margin: 0 0 22px;
	color: var(--ec-muted);
	line-height: 1.9;
}
.mg-ec-pdp__intro p { margin: 0 0 .8em; }
.mg-ec-pdp__intro p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */

.mg-ec-faq__list { display: grid; gap: 10px; max-width: 82ch; }

.mg-ec-faq__item {
	background: var(--ec-paper);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius);
	overflow: hidden;
	transition: border-color .2s var(--ec-ease), box-shadow .2s var(--ec-ease);
}
.mg-ec-faq__item[open] { border-color: var(--ec-line-2); box-shadow: var(--ec-shadow); }

.mg-ec-faq__item summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px 18px;
	cursor: pointer;
	font-weight: 600;
	color: var(--ec-head);
	line-height: 1.7;
	list-style: none;
}
.mg-ec-faq__item summary::-webkit-details-marker { display: none; }
.mg-ec-faq__item summary::after {
	content: "";
	margin-inline-start: auto;
	flex: none;
	width: 9px; height: 9px;
	border-inline-end: 2px solid var(--ec-accent);
	border-block-end: 2px solid var(--ec-accent);
	transform: rotate(45deg);
	transition: transform .24s var(--ec-ease);
}
.mg-ec-faq__item[open] summary::after { transform: rotate(-135deg); }
.mg-ec-faq__item summary:hover { color: var(--ec-accent-deep); }

.mg-ec-faq__a {
	padding: 0 18px 16px;
	color: var(--ec-muted);
	line-height: 1.95;
}
.mg-ec-faq__a p { margin: 0 0 .8em; }
.mg-ec-faq__a p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.mg-ec-faq__item summary::after { transition: none; }
}

/* ---------- Category chips are links, and the jump nav marks the current one ---------- */

a.mg-ec-chip {
	text-decoration: none;
	cursor: pointer;
	transition: background .18s var(--ec-ease), border-color .18s var(--ec-ease),
		color .18s var(--ec-ease), transform .18s var(--ec-ease);
}
a.mg-ec-chip:hover {
	background: var(--ec-accent-soft);
	border-color: var(--ec-accent);
	color: var(--ec-accent-deep);
	transform: translateY(-2px);
}
a.mg-ec-chip:active { transform: translateY(0); }

.mg-ec-jump a.is-on {
	background: var(--ec-accent);
	border-color: var(--ec-accent);
	color: #fff;
}
.mg-ec-jump a.is-on b { color: rgba(255, 255, 255, .92); }

.mg-ec-h2 a { color: inherit; text-decoration: none; }
.mg-ec-h2 a:hover { color: var(--ec-accent); text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
	a.mg-ec-chip:hover { transform: none; }
}

[data-theme="dark"] .mg-ec-jump a.is-on,
body.mg-dark .mg-ec-jump a.is-on { color: #08131c; }
[data-theme="dark"] .mg-ec-jump a.is-on b,
body.mg-dark .mg-ec-jump a.is-on b { color: rgba(8, 19, 28, .7); }

/* =====================================================================
   Room for the floating navigation

   The shared header is a fixed pill over the page, so a catalog page that
   starts at y=0 has its first line hidden underneath it. The hero keeps its
   tinted band running to the top of the viewport and pushes only its content
   down; the product page, which has no hero, pads its first container instead.
   ================================================================== */

.mg-ec-hero { padding-block-start: clamp(104px, 9vw, 132px); }
.mg-ec > .mg-ec-wrap:first-child { padding-block-start: clamp(104px, 9vw, 132px); }

@media (max-width: 600px) {
	.mg-ec-hero,
	.mg-ec > .mg-ec-wrap:first-child { padding-block-start: 92px; }
	body.admin-bar .mg-ec-hero,
	body.admin-bar .mg-ec > .mg-ec-wrap:first-child { padding-block-start: 138px; }
}

/* =====================================================================
   Sticky category rail on a line page
   ================================================================== */

.mg-ec-linelayout {
	display: grid;
	grid-template-columns: 244px minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: start;
	padding-block-start: clamp(18px, 2.5vw, 30px);
}

/* A max-content category row must overflow INSIDE its scroller, not enlarge
   the parent grid and leave products clipped outside a narrow RTL viewport. */
.mg-ec-rail,
.mg-ec-rail__inner,
.mg-ec-rail__nav,
.mg-ec-linemain { min-width: 0; max-width: 100%; }
.mg-ec-swipe-hint { display: none; }

.mg-ec-rail__inner {
	position: sticky;
	top: 104px;
	padding: 16px;
	background: var(--ec-surface);
	border: 1px solid var(--ec-line);
	border-radius: var(--ec-radius-lg);
	max-height: calc(100dvh - 128px);
	overflow-y: auto;
	scrollbar-width: thin;
}

.mg-ec-rail__title {
	margin: 0 0 10px;
	font-size: var(--mg-fs-xs, .8125rem);
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--ec-faint);
}

.mg-ec-rail__nav { display: grid; gap: 2px; }

.mg-ec-rail__nav a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 9px 12px;
	border-radius: var(--mg-r-sm, 8px);
	color: var(--ec-ink);
	text-decoration: none;
	border: 1px solid transparent;
	transition: background .16s var(--ec-ease), color .16s var(--ec-ease), border-color .16s var(--ec-ease);
}
.mg-ec-rail__nav a:hover { background: var(--ec-paper); border-color: var(--ec-line); }
.mg-ec-rail__nav a.is-on {
	background: var(--ec-accent);
	border-color: var(--ec-accent);
	color: #fff;
}

.mg-ec-rail__name { font-size: var(--mg-fs-sm, .9375rem); font-weight: 600; line-height: 1.5; }
.mg-ec-rail__n {
	font-size: var(--mg-fs-xs, .8125rem);
	color: var(--ec-faint);
	font-variant-numeric: tabular-nums;
}
.mg-ec-rail__n b { color: var(--ec-accent-deep); font-weight: 600; }
.mg-ec-rail__nav a.is-on .mg-ec-rail__n,
.mg-ec-rail__nav a.is-on .mg-ec-rail__n b { color: rgba(255, 255, 255, .82); }

.mg-ec-rail__all {
	display: block;
	margin-block-start: 12px;
	padding-block-start: 12px;
	border-block-start: 1px dashed var(--ec-line-2);
	font-size: var(--mg-fs-xs, .8125rem);
	color: var(--ec-muted);
	text-decoration: none;
}
.mg-ec-rail__all:hover { color: var(--ec-accent); }

/* Sections start flush: the rail already separates them visually. */
.mg-ec-linemain > .mg-ec-block:first-child { padding-block-start: 0; }
.mg-ec-linemain .mg-ec-note a { color: var(--ec-accent); text-decoration: none; }
.mg-ec-linemain .mg-ec-note a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Anchor targets must clear the fixed header when jumped to. */
.mg-ec-linemain > .mg-ec-block { scroll-margin-top: 104px; }

@media (max-width: 900px) {
	/* The rail becomes a horizontal scroller pinned under the header. */
	.mg-ec-linelayout { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mg-ec-rail__inner {
		position: sticky;
		top: 68px;
		z-index: 6;
		max-height: none;
		overflow: visible;
		padding: 10px;
		border-radius: var(--ec-radius);
		background: color-mix(in srgb, var(--ec-surface) 94%, transparent);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
	}
	.mg-ec-rail__title, .mg-ec-rail__all { display: none; }
	.mg-ec-rail__nav {
		width: 100%;
		grid-auto-flow: column;
		grid-auto-columns: max-content;
		gap: 6px;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x pan-y pinch-zoom;
		padding-block: 2px 8px;
		scrollbar-width: thin;
	}
	.mg-ec-rail__nav a { white-space: nowrap; border-color: var(--ec-line); background: var(--ec-paper); min-height: 44px; justify-content: center; }
	.mg-ec-rail__n { display: none; }
	.mg-ec-linemain > .mg-ec-block { scroll-margin-top: 132px; }
}

@media (max-width: 767px) {
	.mg-ec-linemain .mg-ec-grid[data-mg-ec-scroll-row] {
		width: 100%;
		min-width: 0;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(82%, 320px);
		overflow-x: auto;
		overflow-y: hidden;
		padding: 3px 2px 14px;
		scroll-snap-type: x proximity;
		scroll-padding-inline: 2px;
		scrollbar-width: thin;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x pan-y pinch-zoom;
	}
	.mg-ec-linemain [data-mg-ec-scroll-row] > .mg-ec-card {
		min-width: 0;
		scroll-snap-align: start;
	}
	.mg-ec-linemain [data-mg-ec-scroll-row] .mg-ec-card__body { overflow-wrap: anywhere; }
	.mg-ec-swipe-hint { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; color: var(--ec-muted); font-size: .8125rem; line-height: 1.7; }
}
.mg-ec [data-mg-ec-scroll-row]:focus-visible,
.mg-ec-rail__nav:focus-visible { outline: 2px solid var(--ec-accent); outline-offset: 2px; }

[data-theme="dark"] .mg-ec-rail__nav a.is-on,
body.mg-dark .mg-ec-rail__nav a.is-on { color: #08131c; }
[data-theme="dark"] .mg-ec-rail__nav a.is-on .mg-ec-rail__n,
[data-theme="dark"] .mg-ec-rail__nav a.is-on .mg-ec-rail__n b,
body.mg-dark .mg-ec-rail__nav a.is-on .mg-ec-rail__n,
body.mg-dark .mg-ec-rail__nav a.is-on .mg-ec-rail__n b { color: rgba(8, 19, 28, .72); }

/* =====================================================================
   2026 product experience — visual catalog, interactive product stage
   ================================================================== */

.mg-ec-hero--index {
	padding-block: clamp(104px, 9vw, 132px) clamp(52px, 7vw, 92px);
	background:
		radial-gradient(circle at 18% 22%, rgba(22, 116, 198, .18), transparent 30%),
		linear-gradient(135deg, #06111f 0%, #0a1d30 54%, #07131f 100%);
	border-block-end: 0;
	color: #fff;
}
.mg-ec-hero--index::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 92%);
	mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 92%);
}
.mg-ec-hero__grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr);
	gap: clamp(32px, 6vw, 88px);
	align-items: center;
}
.mg-ec-hero__copy { position: relative; z-index: 2; }
.mg-ec-hero--index .mg-ec-crumbs a,
.mg-ec-hero--index .mg-ec-crumbs ol { color: rgba(255,255,255,.68); }
.mg-ec-hero--index .mg-ec-crumbs [aria-current] { color: #fff; }
.mg-ec-hero--index .mg-ec-eyebrow { color: #65baff; letter-spacing: .12em; }
.mg-ec-hero--index h1 {
	max-width: 13ch;
	font-size: clamp(2.85rem, 1.9rem + 3.25vw, 5.2rem);
	line-height: 1.06;
	letter-spacing: -.04em;
	color: #fff;
}
.mg-ec-hero--index h1 span { color: #72c2ff; }
.mg-ec-hero--index .mg-ec-lede { max-width: 52ch; color: rgba(239,247,255,.76); }
.mg-ec-hero--index .mg-ec-stats { gap: 0; }
.mg-ec-hero--index .mg-ec-stats li { min-width: 112px; padding-inline: 18px; border-inline-start: 1px solid rgba(255,255,255,.16); }
.mg-ec-hero--index .mg-ec-stats li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.mg-ec-hero--index .mg-ec-stats b { color: #fff; }
.mg-ec-hero--index .mg-ec-stats span { color: rgba(255,255,255,.58); }
.mg-ec-searchbar--hero {
	margin-block-start: 28px;
	background: rgba(255,255,255,.09);
	border-color: rgba(255,255,255,.2);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 22px 50px -28px rgba(0,0,0,.8);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.mg-ec-searchbar--hero svg,
.mg-ec-searchbar--hero input,
.mg-ec-searchbar--hero .mg-ec-searchbar__n { color: #fff; }
.mg-ec-searchbar--hero input::placeholder { color: rgba(255,255,255,.56); }

.mg-ec-hero--line { background: linear-gradient(135deg, var(--ec-surface) 0%, var(--ec-surface-2) 100%); }
.mg-ec-linehero { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.72fr); gap: clamp(28px,6vw,86px); align-items: center; }
.mg-ec-linehero__visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 360px;
	color: inherit;
	text-decoration: none;
	perspective: 800px;
}
.mg-ec-linehero__visual img { position: relative; z-index: 1; width: auto; height: 300px; max-width: 72%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(10,38,66,.24)); transition: transform .55s var(--ec-ease); }
.mg-ec-linehero__visual:hover img { transform: translateY(-8px) rotateY(-7deg) scale(1.035); }
.mg-ec-linehero__orbit { position: absolute; width: min(90%,390px); aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--ec-accent) 22%, transparent); border-radius: 50%; }
.mg-ec-linehero__orbit::before,
.mg-ec-linehero__orbit::after { content: ""; position: absolute; inset: 12%; border: 1px dashed color-mix(in srgb, var(--ec-accent) 23%, transparent); border-radius: inherit; }
.mg-ec-linehero__orbit::after { inset: 36%; background: var(--ec-accent); border: 0; box-shadow: 0 0 26px color-mix(in srgb, var(--ec-accent) 42%, transparent); }
.mg-ec-linehero__label { position: absolute; z-index: 2; inset-inline-end: 0; inset-block-end: 16px; display: flex; flex-direction: column; gap: 3px; padding: 12px 15px; border: 1px solid var(--ec-line); border-radius: 12px; background: color-mix(in srgb, var(--ec-paper) 84%, transparent); box-shadow: var(--ec-shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mg-ec-linehero__label b { color: var(--ec-head); font-size: .9rem; }
.mg-ec-linehero__label small { color: var(--ec-accent); }

/* The stage uses authentic raster product renders. Perspective and pointer
   movement create depth without pretending that a measured CAD model exists. */
.mg-ec-stage {
	--stage-rx: -3deg;
	--stage-ry: 0deg;
	position: relative;
	min-height: clamp(500px, 58vw, 680px);
	isolation: isolate;
	touch-action: pan-y;
}
.mg-ec-stage__scene {
	position: absolute;
	inset: 12px 7% 88px;
	display: grid;
	place-items: center;
	perspective: 1100px;
	outline: 0;
}
.mg-ec-stage__scene:focus-visible { border-radius: 26px; box-shadow: 0 0 0 3px #79c8ff; }
.mg-ec-stage__halo {
	position: absolute;
	inset: 12% 10% 18%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(41,145,230,.28), rgba(7,19,31,0) 66%);
	filter: blur(8px);
}
.mg-ec-stage__item {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transform: rotateX(var(--stage-rx)) rotateY(var(--stage-ry)) translate3d(0, 18px, -80px) scale(.91);
	transform-style: preserve-3d;
	transition: opacity .45s var(--ec-ease), transform .65s var(--ec-ease), visibility .45s;
}
.mg-ec-stage__item.is-active { opacity: 1; visibility: visible; transform: rotateX(var(--stage-rx)) rotateY(var(--stage-ry)) translate3d(0, 0, 0) scale(1); }
.mg-ec-stage__item img {
	width: auto;
	height: min(58vh, 540px);
	max-width: 82%;
	object-fit: contain;
	filter: drop-shadow(0 38px 36px rgba(0,0,0,.5));
	user-select: none;
	-webkit-user-drag: none;
}
.mg-ec-stage__item figcaption {
	position: absolute;
	inset-inline-end: 0;
	inset-block-end: 22px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	padding: 12px 16px;
	background: rgba(5,17,29,.62);
	border: 1px solid rgba(255,255,255,.14);
	border-radius: 12px;
	color: #fff;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transform: translateZ(46px);
}
.mg-ec-stage__item figcaption b { font: 700 1rem/1.2 var(--mg-font-en, inherit); }
.mg-ec-stage__item figcaption span { margin-block-start: 4px; color: rgba(255,255,255,.62); font-size: .75rem; }
.mg-ec-stage__axis { position: absolute; inset-block: 5% 18%; inset-inline-start: 50%; width: 1px; background: linear-gradient(transparent, #1687df 18%, #7dcbff 50%, #1687df 82%, transparent); box-shadow: 0 0 14px #1687df; opacity: .72; }
.mg-ec-stage__axis span { position: absolute; inset-block-start: 50%; inset-inline-start: 50%; width: 18px; height: 18px; border: 2px solid #8ad2ff; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 8px rgba(22,135,223,.16), 0 0 18px #1687df; }
.mg-ec-stage__tabs {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 26px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-block-start: 1px solid rgba(255,255,255,.14);
}
.mg-ec-stage__tabs button {
	position: relative;
	padding: 18px 10px 12px;
	border: 0;
	background: transparent;
	color: rgba(255,255,255,.54);
	font: 600 .86rem/1.25 var(--mg-font-en, inherit);
	cursor: pointer;
	transition: color .24s ease, background .24s ease;
}
.mg-ec-stage__tabs button span { display: block; margin-block-end: 5px; font: 500 .65rem/1 var(--mg-font-en, inherit); color: rgba(255,255,255,.34); }
.mg-ec-stage__tabs button::after { content: ""; position: absolute; inset-block-start: -1px; inset-inline: 18%; height: 2px; background: #52b5ff; transform: scaleX(0); transition: transform .35s var(--ec-ease); }
.mg-ec-stage__tabs button:hover,
.mg-ec-stage__tabs button.is-active { color: #fff; background: rgba(255,255,255,.035); }
.mg-ec-stage__tabs button.is-active::after { transform: scaleX(1); }
.mg-ec-stage__hint { position: absolute; inset-inline-start: 0; inset-block-end: -12px; margin: 0; color: rgba(255,255,255,.44); font-size: .72rem; }
.mg-ec-stage__hint span { margin-inline-end: 5px; color: #65baff; }

.mg-ec-results:not([hidden]) { margin-block: 22px 0; }
.mg-ec-sectionhead { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1fr); gap: clamp(24px,5vw,84px); align-items: end; margin-block-end: 30px; }
.mg-ec-sectionhead > p { margin: 0; max-width: 58ch; color: var(--ec-muted); line-height: 1.9; }
.mg-ec-kicker { margin: 0 0 8px; color: var(--ec-accent); font: 700 .7rem/1.2 var(--mg-font-en, inherit); letter-spacing: .16em; }

.mg-ec-block--systems { padding-block-start: clamp(58px, 8vw, 104px); }
.mg-ec-linegrid { grid-template-columns: repeat(12, 1fr); gap: 14px; }
.mg-ec-linecard {
	grid-column: span 4;
	grid-template-columns: 128px minmax(0,1fr);
	grid-template-areas: "visual body" "visual meta";
	min-height: 246px;
	padding: 0;
	overflow: hidden;
	box-shadow: none;
}
.mg-ec-linecard:nth-child(1),
.mg-ec-linecard:nth-child(2) { grid-column: span 6; min-height: 310px; grid-template-columns: minmax(180px, .9fr) minmax(0,1.1fr); }
.mg-ec-linecard__visual {
	grid-area: visual;
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	background: radial-gradient(circle at 50% 38%, #fff 0%, var(--ec-surface-2) 72%);
	overflow: hidden;
}
.mg-ec-linecard__visual::after { content: ""; position: absolute; inset-inline: 18%; inset-block-end: 14%; height: 12px; border-radius: 50%; background: rgba(10,22,38,.2); filter: blur(10px); }
.mg-ec-linecard__visual img { position: relative; z-index: 1; width: 76%; height: 78%; object-fit: contain; transition: transform .55s var(--ec-ease), filter .55s var(--ec-ease); filter: drop-shadow(0 16px 12px rgba(12,30,48,.2)); }
.mg-ec-linecard:hover .mg-ec-linecard__visual img { transform: translateY(-7px) rotate(-2deg) scale(1.04); filter: drop-shadow(0 25px 18px rgba(12,30,48,.28)); }
.mg-ec-linecard__body { align-self: end; padding: 24px 20px 8px; }
.mg-ec-linecard__index { color: var(--ec-accent); font: 700 .68rem/1 var(--mg-font-en, inherit); letter-spacing: .1em; }
.mg-ec-linecard__meta { align-self: start; padding: 12px 20px 22px; margin: 0; border: 0; }
.mg-ec-linecard__mark { width: 70px; height: 70px; }

.mg-ec-block--categories { padding-block: clamp(54px, 8vw, 92px); }
.mg-ec-catgroups { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ec-line); border-radius: var(--ec-radius-lg); overflow: hidden; }
.mg-ec-catgroup { padding: clamp(20px, 2.4vw, 32px); background: var(--ec-paper); }
.mg-ec-catgroup + .mg-ec-catgroup { border-inline-start: 1px solid var(--ec-line); }
.mg-ec-catgroup h3 { margin: 0 0 18px; color: var(--ec-head); font-size: 1rem; }
.mg-ec-catgroup ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mg-ec-catgroup a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; color: var(--ec-muted); text-decoration: none; border-block-end: 1px solid color-mix(in srgb, var(--ec-line) 70%, transparent); transition: color .18s ease, padding .18s ease; }
.mg-ec-catgroup a:hover { color: var(--ec-accent); padding-inline-start: 5px; }
.mg-ec-catgroup b { display: grid; place-items: center; min-width: 28px; height: 28px; padding-inline: 6px; border-radius: 50%; background: var(--ec-surface); color: var(--ec-faint); font-size: .72rem; font-variant-numeric: tabular-nums; }

/* Scroll study: a lazy procedural model explains structure without claiming
   CAD accuracy. Content remains readable and the real AnyRidge render is the
   default/fallback until WebGL has initialised. */
.mg-ec-scrolllab {
	--lab-progress: 0;
	position: relative;
	height: 250vh;
	min-height: 1500px;
	margin-block: clamp(72px, 10vw, 142px);
	background: #06111d;
	color: #fff;
	border-radius: 16px;
}
.mg-ec-scrolllab::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 24% 40%, rgba(21,128,207,.22), transparent 34%),
		linear-gradient(120deg, rgba(255,255,255,.035), transparent 42%);
	pointer-events: none;
}
.mg-ec-scrolllab__sticky {
	position: sticky;
	top: 74px;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
	min-height: calc(100vh - 74px);
	max-height: 920px;
	align-items: stretch;
	overflow: hidden;
	border-radius: 16px;
}
.mg-ec-scrolllab__visual {
	position: relative;
	min-height: 620px;
	overflow: hidden;
	isolation: isolate;
}
.mg-ec-scrolllab__visual::after {
	content: "";
	position: absolute;
	inset: 10% 14%;
	border: 1px solid rgba(95,190,255,.18);
	border-radius: 50%;
	box-shadow: inset 0 0 80px rgba(31,145,224,.08), 0 0 70px rgba(31,145,224,.06);
	transform: scale(calc(.78 + (var(--lab-progress) * .24))) rotate(calc(var(--lab-progress) * 20deg));
	pointer-events: none;
}
.mg-ec-scrolllab__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(89,177,239,.075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(89,177,239,.075) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(circle at 50% 48%, #000 0, transparent 72%);
	opacity: .66;
	transform: perspective(700px) rotateX(67deg) translateY(calc(18% - (var(--lab-progress) * 6%))) scale(1.55);
	transform-origin: 50% 74%;
}
.mg-ec-scrolllab canvas,
.mg-ec-scrolllab__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.mg-ec-scrolllab canvas { z-index: 2; opacity: 0; transition: opacity .5s var(--ec-ease); }
.mg-ec-scrolllab.is-webgl canvas { opacity: 1; }
.mg-ec-scrolllab__fallback {
	z-index: 1;
	padding: 10% 18% 12%;
	object-fit: contain;
	filter: drop-shadow(0 32px 34px rgba(0,0,0,.48));
	transition: opacity .45s ease, transform .7s var(--ec-ease);
	transform: translateY(calc(var(--lab-progress) * -3%)) rotate(calc(-3deg + (var(--lab-progress) * 6deg)));
}
.mg-ec-scrolllab.is-webgl .mg-ec-scrolllab__fallback { opacity: 0; }
.mg-ec-scrolllab__scan {
	position: absolute;
	z-index: 3;
	inset-inline: 12%;
	inset-block-start: calc(12% + (var(--lab-progress) * 67%));
	height: 1px;
	background: linear-gradient(90deg, transparent, #48b8ff 18%, #d5f3ff 50%, #48b8ff 82%, transparent);
	box-shadow: 0 0 15px rgba(72,184,255,.88), 0 12px 28px rgba(42,154,233,.2);
	opacity: calc(.9 - (var(--lab-progress) * .38));
	pointer-events: none;
}
.mg-ec-scrolllab__mode {
	position: absolute;
	z-index: 4;
	inset-inline-start: 28px;
	inset-block-start: 26px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: rgba(225,242,255,.68);
	font-size: .72rem;
}
.mg-ec-scrolllab__mode span { width: 7px; height: 7px; border-radius: 50%; background: #43b8ff; box-shadow: 0 0 14px #43b8ff; }
.mg-ec-scrolllab__meter {
	position: absolute;
	z-index: 4;
	inset-inline-start: 30px;
	inset-block-end: 28px;
	width: 120px;
	height: 2px;
	background: rgba(255,255,255,.13);
}
.mg-ec-scrolllab__meter span { display: block; width: calc(var(--lab-progress) * 100%); height: 100%; background: #4ebcff; box-shadow: 0 0 10px rgba(78,188,255,.8); }
.mg-ec-scrolllab__story {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 5vw, 82px);
	background: linear-gradient(90deg, rgba(6,17,29,.7), rgba(6,17,29,.97) 25%);
	border-inline-start: 1px solid rgba(255,255,255,.09);
}
.mg-ec-scrolllab__story header { max-width: 560px; }
.mg-ec-scrolllab__story h2 {
	margin: 10px 0 18px;
	max-width: 10ch;
	color: #fff;
	font-size: clamp(2.2rem, 4.5vw, 4.8rem);
	line-height: 1.2;
	letter-spacing: -.025em;
	text-wrap: balance;
}
.mg-ec-scrolllab__story header > p:last-child { margin: 0; max-width: 55ch; color: rgba(225,239,249,.66); line-height: 1.95; }
.mg-ec-scrolllab__steps { display: grid; gap: 0; margin: clamp(30px, 5vh, 56px) 0 30px; padding: 0; list-style: none; }
.mg-ec-scrolllab__steps li {
	position: relative;
	display: grid;
	grid-template-columns: 96px minmax(0,1fr);
	gap: 3px 20px;
	padding: 17px 0;
	border-block-start: 1px solid rgba(255,255,255,.12);
	opacity: .32;
	transition: opacity .3s ease, transform .4s var(--ec-ease);
}
.mg-ec-scrolllab__steps li::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: -1px; width: 0; height: 2px; background: #4db8ff; transition: width .45s var(--ec-ease); }
.mg-ec-scrolllab__steps li.is-active { opacity: 1; transform: translateX(-5px); }
.mg-ec-scrolllab__steps li.is-active::after { width: 76px; }
.mg-ec-scrolllab__steps span { grid-row: 1 / 3; color: #5fc1ff; font-size: .76rem; font-weight: 700; }
.mg-ec-scrolllab__steps strong { color: #fff; font-size: 1rem; }
.mg-ec-scrolllab__steps p { margin: 4px 0 0; color: rgba(223,238,248,.64); font-size: .8rem; line-height: 1.75; }
.mg-ec-scrolllab__story > .mg-ec-btn { align-self: flex-start; background: #0b75c9; color: #fff; border-color: transparent; }

/* Editorial image constellation: varied ratios avoid another uniform card grid. */
.mg-ec-galleryrail { padding-block: clamp(46px, 8vw, 96px); content-visibility: auto; contain-intrinsic-size: 900px; }
.mg-ec-galleryrail__track { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 12px; }
.mg-ec-galleryrail__item { position: relative; grid-column: span 3; overflow: hidden; border-radius: 12px; color: #fff; text-decoration: none; background: #071421; }
.mg-ec-galleryrail__item--tall { grid-column: span 4; grid-row: span 2; }
.mg-ec-galleryrail__item--wide { grid-column: span 5; }
.mg-ec-galleryrail__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ec-ease), filter .5s ease; }
.mg-ec-galleryrail__item:nth-child(-n+2) img,
.mg-ec-galleryrail__item:nth-child(4) img { object-fit: contain; padding: 9%; background: radial-gradient(circle at 50% 35%, #edf5fb, #c8d5df); }
.mg-ec-galleryrail__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 46%, rgba(3,12,20,.88)); pointer-events: none; }
.mg-ec-galleryrail__item:hover img { transform: scale(1.045); filter: saturate(1.06) contrast(1.03); }
.mg-ec-galleryrail__item span { position: absolute; z-index: 2; inset-inline: 18px; inset-block-end: 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mg-ec-galleryrail__item b { font: 700 .95rem/1.2 var(--mg-font-en, inherit); }
.mg-ec-galleryrail__item small { color: rgba(255,255,255,.68); }

/* Product detail: the imported views gain the same restrained depth control. */
.mg-ec-gal__main[data-mg-ec-product-stage],
.mg-ec-gal__main { perspective: 900px; }
.mg-ec-gal__main .mg-ec-fig--main { width: 100%; max-height: 560px; }
.mg-ec-gal__main .mg-ec-fig--main img { width: 100% !important; height: 100% !important; max-height: 500px; object-fit: contain !important; }
.mg-ec-gal__main .mg-ec-fig--main { transform: rotateX(var(--product-rx, 0deg)) rotateY(var(--product-ry, 0deg)); transform-style: preserve-3d; transition: transform .18s ease-out; }

.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .72s var(--ec-ease), transform .72s var(--ec-ease); }
.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
	.mg-ec-hero__grid { grid-template-columns: minmax(0,1fr) minmax(340px,.85fr); gap: 24px; }
	.mg-ec-stage { min-height: 530px; }
	.mg-ec-linecard { grid-column: span 6; }
	.mg-ec-linecard:nth-child(1), .mg-ec-linecard:nth-child(2) { grid-column: span 6; grid-template-columns: 150px 1fr; }
	.mg-ec-catgroups { grid-template-columns: repeat(2,1fr); }
	.mg-ec-catgroup:nth-child(3) { border-inline-start: 0; border-block-start: 1px solid var(--ec-line); }
	.mg-ec-catgroup:nth-child(4) { border-block-start: 1px solid var(--ec-line); }
	.mg-ec-scrolllab__sticky { grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); }
	.mg-ec-scrolllab__story { padding: 36px; }
	.mg-ec-galleryrail__item { grid-column: span 4; }
	.mg-ec-galleryrail__item--tall { grid-column: span 5; }
	.mg-ec-galleryrail__item--wide { grid-column: span 7; }
}

@media (max-width: 760px) {
	.mg-ec-hero--index { padding-block-start: 88px; }
	.mg-ec-hero__grid { grid-template-columns: 1fr; }
	.mg-ec-hero--index h1 { max-width: none; font-size: clamp(2.55rem, 12vw, 4.3rem); }
	.mg-ec-stage { min-height: 510px; }
	.mg-ec-stage__scene { inset: 0 4% 86px; }
	.mg-ec-stage__item img { height: 390px; max-width: 78%; }
	.mg-ec-stage__item figcaption { inset-inline-end: 4px; inset-block-end: 16px; }
	.mg-ec-stage__hint { display: none; }
	.mg-ec-sectionhead { grid-template-columns: 1fr; gap: 10px; align-items: start; }
	.mg-ec-linehero { grid-template-columns: 1fr; }
	.mg-ec-linehero__visual { min-height: 310px; }
	.mg-ec-linehero__visual img { height: 250px; }
	.mg-ec-gal__main .mg-ec-fig--main { aspect-ratio: 4 / 3; max-height: 330px; }
	.mg-ec-gal__main .mg-ec-fig--main img { max-height: 280px; }
	.mg-ec-linegrid { display: grid; grid-template-columns: 1fr; }
	.mg-ec-linecard,
	.mg-ec-linecard:nth-child(1),
	.mg-ec-linecard:nth-child(2) { grid-column: auto; grid-template-columns: minmax(112px, 34%) minmax(0,1fr); min-height: 224px; }
	.mg-ec-linecard__body { padding: 20px 16px 6px; }
	.mg-ec-linecard__meta { padding: 10px 16px 18px; gap: 10px; flex-wrap: wrap; }
	.mg-ec-catgroups { grid-template-columns: 1fr; }
	.mg-ec-catgroup + .mg-ec-catgroup { border-inline-start: 0; border-block-start: 1px solid var(--ec-line); }
	.mg-ec-scrolllab { height: 230vh; min-height: 1320px; margin-inline: -14px; border-radius: 0; }
	.mg-ec-scrolllab__sticky { top: 72px; grid-template-columns: 1fr; grid-template-rows: minmax(300px, 45vh) minmax(0,1fr); min-height: calc(100vh - 72px); border-radius: 0; }
	.mg-ec-scrolllab__visual { min-height: 0; }
	.mg-ec-scrolllab__story { justify-content: flex-start; padding: 24px 20px 28px; border-inline-start: 0; border-block-start: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, rgba(6,17,29,.88), #06111d 18%); }
	.mg-ec-scrolllab__story h2 { max-width: 12ch; margin-block: 5px 10px; font-size: clamp(1.85rem, 8.8vw, 2.75rem); }
	.mg-ec-scrolllab__story header > p:last-child { font-size: .78rem; line-height: 1.75; }
	.mg-ec-scrolllab__steps { margin-block: 18px 16px; }
	.mg-ec-scrolllab__steps li { grid-template-columns: 74px 1fr; padding: 11px 0; }
	.mg-ec-scrolllab__steps p { display: none; }
	.mg-ec-scrolllab__mode { inset-inline-start: 16px; inset-block-start: 14px; }
	.mg-ec-scrolllab__meter { inset-inline-start: 18px; inset-block-end: 14px; }
	.mg-ec-galleryrail__track { display: flex; gap: 10px; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.mg-ec-galleryrail__track::-webkit-scrollbar { display: none; }
	.mg-ec-galleryrail__item,
	.mg-ec-galleryrail__item--tall,
	.mg-ec-galleryrail__item--wide { flex: 0 0 min(78vw, 320px); height: 330px; scroll-snap-align: center; }
}

@media (max-width: 420px) {
	.mg-ec-hero--index .mg-ec-stats li { min-width: 92px; padding-inline: 12px; }
	.mg-ec-stage { min-height: 450px; }
	.mg-ec-stage__item img { height: 330px; }
	.mg-ec-stage__tabs button { padding-inline: 4px; font-size: .72rem; }
	.mg-ec-linecard,
	.mg-ec-linecard:nth-child(1),
	.mg-ec-linecard:nth-child(2) { grid-template-columns: 104px minmax(0,1fr); }
}

[data-theme="dark"] .mg-ec-linecard__visual,
body.mg-dark .mg-ec-linecard__visual { background: radial-gradient(circle at 50% 38%, #17283a 0%, #0a1724 76%); }
[data-theme="dark"] .mg-ec-catgroup,
body.mg-dark .mg-ec-catgroup { background: var(--ec-paper); }

@media (prefers-reduced-motion: reduce) {
	.mg-ec-stage__item,
	.mg-ec-linecard__visual img,
	.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal] { transition: none; transform: none; }
	.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal] { opacity: 1; }
	.mg-ec-scrolllab { height: auto; min-height: 0; }
	.mg-ec-scrolllab__sticky { position: relative; top: auto; min-height: 760px; }
	.mg-ec-scrolllab__steps li { opacity: .72; transform: none; }
	.mg-ec-scrolllab__steps li:first-child { opacity: 1; }
	.mg-ec-scrolllab__fallback,
	.mg-ec-galleryrail__item img,
	.mg-ec-scrolllab__visual::after { transition: none; transform: none; }
}

/* Managed catalog: real product photography, compact proportions. */
.mg-ec-hero--managed { padding-block: 106px 42px; }
.mg-ec-hero--managed .mg-ec-hero__grid { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: 48px; align-items: center; }
.mg-ec-hero--managed h1 { max-width: none; font-size: clamp(2rem,4vw,3.15rem); line-height: 1.4; letter-spacing: -.025em; }
.mg-ec-hero--managed .mg-ec-lede { max-width: 46ch; font-size: 1rem; line-height: 1.95; }
.mg-ec-catalog-count { color: #bacbd8; font-size: .85rem; margin-block: 18px 0; }
.mg-ec-stage--compact { min-height: 400px; border-radius: 20px; box-shadow: none; }
.mg-ec-stage--compact .mg-ec-stage__scene { inset: 14px 4% 66px; }
.mg-ec-stage--compact .mg-ec-stage__item img { height: 285px; width: 85%; max-width: 100%; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,.13)); }
.mg-ec-stage--compact::after { display: none; }
.mg-ec-stage--compact .mg-ec-stage__tabs { inset-inline: 12px; bottom: 12px; gap: 4px; }
.mg-ec-stage--compact .mg-ec-stage__tabs button { min-height: 44px; padding: 8px; font-size: .8rem; }
.mg-ec-managed-section { padding-block: 48px; border-block-end: 1px solid var(--ec-line); scroll-margin-top: 90px; }
.mg-ec-managed-copy { min-width: 0; }
.mg-ec-managed-copy h2 { margin: 0 0 12px; font-size: clamp(1.5rem,2.5vw,2rem); line-height: 1.5; color: var(--ec-head); }
.mg-ec-managed-text { max-width: 65ch; color: var(--ec-muted); font-size: .95rem; line-height: 1.95; }
.mg-ec-managed-text p { margin: 0 0 16px; }
.mg-ec-familycards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-block-start: 24px; }
.mg-ec-familycard { display: flex; flex-direction: column; gap: 18px; padding: 22px; border: 1px solid var(--ec-line); border-radius: 16px; background: var(--ec-surface); color: var(--ec-ink); text-decoration: none; transition: border-color .25s, transform .25s; }
.mg-ec-familycard:hover { border-color: var(--ec-accent); transform: translateY(-3px); }
.mg-ec-familycard:focus-visible { outline: 3px solid var(--ec-accent); outline-offset: 4px; }
.mg-ec-familycard__image { display: grid; grid-template-rows: minmax(0,1fr); place-items: center; height: 170px; overflow: hidden; }
.mg-ec-familycards--primary .mg-ec-familycard__image { height: 230px; }
.mg-ec .mg-ec-familycard__image img { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.mg-ec-familycard h3 { font-size: 1.2rem; line-height: 1.5; margin: 0 0 6px; color: var(--ec-head); }
.mg-ec-familycard p { margin: 0 0 12px; color: var(--ec-muted); font-size: .875rem; line-height: 1.8; }
.mg-ec-familycard span { color: var(--ec-accent); font-size: .85rem; }
.mg-ec-other-title { margin-block: 36px 0; font-size: 1.1rem; color: var(--ec-head); }
.mg-ec-managed-section--detail,
.mg-ec-managed-section--custom:has(.mg-ec-detail-photo) { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); align-items: center; gap: 48px; }
.mg-ec-detail-photo { padding: 24px; border-radius: 20px; background: var(--ec-surface); }
.mg-ec .mg-ec-detail-photo img { display: block; width: 100%; height: 300px; object-fit: contain; }
.mg-ec-managed-section--detail:not(:has(.mg-ec-detail-photo)) { display: block; }
.mg-ec-galleryrail__track--managed { display: flex; overflow-x: auto; gap: 16px; padding-block: 8px 16px; margin-block-start: 20px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mg-ec-galleryrail__track--managed .mg-ec-galleryrail__item { flex: 0 0 250px; height: 290px; scroll-snap-align: start; border-radius: 16px; background: #102536; }
.mg-ec-galleryrail__track--managed .mg-ec-galleryrail__item img { object-fit: contain; padding: 24px 24px 66px; opacity: 1; }
.mg-ec-galleryrail__track--managed .mg-ec-galleryrail__item b { color: #fff; font-size: 1rem; }
.mg-ec-category-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 24px; list-style: none; margin: 20px 0 0; padding: 0; }
.mg-ec-category-list li { min-width: 0; border-block-end: 1px solid var(--ec-line); }
.mg-ec-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; min-height: 48px; color: var(--ec-ink); text-decoration: none; font-size: .9rem; }
.mg-ec-category-list a:hover { color: var(--ec-accent); }
.mg-ec-category-list span { color: var(--ec-muted); font-size: .8rem; }
.mg-ec-managed-section--cta { margin-block: 20px 44px; padding: 32px; background: var(--ec-surface); border: 1px solid var(--ec-line); border-radius: 20px; }
@media (max-width: 760px) {
	.mg-ec-hero--managed { padding-block: 88px 26px; }
	.mg-ec-hero--managed .mg-ec-hero__grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
	.mg-ec-hero--managed h1 { font-size: 2rem; }
	.mg-ec-stage--compact { min-height: 320px; }
	.mg-ec-stage--compact .mg-ec-stage__item img { height: 225px; }
	.mg-ec-stage--compact .mg-ec-stage__tabs button { font-size: .7rem; padding-inline: 3px; overflow-wrap: anywhere; }
	.mg-ec-managed-section { padding-block: 32px; }
	.mg-ec-familycards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
	.mg-ec-familycard { padding: 16px; }
	.mg-ec-familycard__image, .mg-ec-familycards--primary .mg-ec-familycard__image { height: 170px; }
	.mg-ec-familycard h3 { font-size: 1rem; overflow-wrap: anywhere; }
	.mg-ec-managed-section--detail, .mg-ec-managed-section--custom:has(.mg-ec-detail-photo) { grid-template-columns: minmax(0,1fr); gap: 24px; }
	.mg-ec .mg-ec-detail-photo img { height: 210px; }
	.mg-ec-category-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
	.mg-ec-galleryrail__track--managed { margin-inline: 0; padding-inline: 0; }
	.mg-ec-managed-section--cta { padding: 24px; }
}
@media (max-width: 380px) {
	.mg-ec-familycards { grid-template-columns: minmax(0,1fr); }
	.mg-ec-category-list { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.mg-ec-familycard { transition: none; transform: none; }
}

/* Restored catalog art direction; controls remain driven by the layout editor. */
.mg-ec-hero--restored { padding-block: 110px 48px; }
.mg-ec-hero--restored h1 { font-size: clamp(2.2rem,4.6vw,3.8rem); max-width: 14ch; line-height: 1.5; letter-spacing: -.025em; }
.mg-ec-hero--restored .mg-ec-hero__grid { gap: 48px; align-items: center; }
.mg-ec-stage--refined { min-height: 510px; }
.mg-ec-stage--refined .mg-ec-stage__item img { height: 340px; max-width: 78%; }
.mg-ec-stage--refined .mg-ec-stage__scene { z-index: 1; }
.mg-ec-stage--refined .mg-ec-stage__axis { inset-inline-start: 22%; opacity: .45; }
.mg-ec-stage--refined .mg-ec-stage__tabs { z-index: 2; }
.mg-ec-stage--refined .mg-ec-stage__tabs button { color: #b5c9d8; min-height: 48px; }
.mg-ec-stage--refined .mg-ec-stage__tabs .is-active { color: #fff; }
.mg-ec-stage--refined figcaption b { color: #fff; }
.mg-ec-stage--refined figcaption span { color: #bfd1dd; }
.mg-ec-linegrid--restored { margin-block-start: 28px; }
.mg-ec-linegrid--restored .mg-ec-linecard { grid-column: span 4; grid-template-columns: minmax(105px,.8fr) minmax(0,1.2fr); min-height: 250px; border-radius: 14px; }
.mg-ec-linegrid--featured .mg-ec-linecard { grid-template-columns: minmax(0,1fr); grid-template-areas: "visual" "body" "meta"; grid-template-rows: 240px auto auto; }
.mg-ec-linegrid--featured .mg-ec-linecard__visual { min-height: 0; }
.mg-ec-linegrid--restored .mg-ec-linecard__visual img { height: 190px; max-height: 100%; width: 82%; object-fit: contain; }
.mg-ec-linegrid--featured .mg-ec-linecard__visual img { height: 205px; }
.mg-ec-linegrid--restored .mg-ec-linecard__body { min-width: 0; padding: 20px 20px 8px; }
.mg-ec-linegrid--restored .mg-ec-linecard__body strong { font-size: 1.15rem; overflow-wrap: anywhere; }
.mg-ec-linegrid--restored .mg-ec-linecard__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--ec-accent); }
.mg-ec-scrolllab--refined { height: 135vh; min-height: 780px; margin-block: 64px; }
.mg-ec-scrolllab--refined .mg-ec-scrolllab__sticky { min-height: 520px; height: min(70vh,640px); top: 86px; }
.mg-ec-scrolllab--refined .mg-ec-scrolllab__visual { min-height: 0; }
.mg-ec .mg-ec-scrolllab--refined .mg-ec-scrolllab__fallback { height: 100%; max-height: 520px; padding: 80px 22%; object-fit: contain; }
.mg-ec-scrolllab--refined .mg-ec-scrolllab__story { padding: 40px; }
.mg-ec-scrolllab--refined .mg-ec-scrolllab__story h2 { max-width: none; font-size: clamp(1.8rem,3vw,2.6rem); line-height: 1.5; }
.mg-ec-study-text { color: #c5d5e1; font-size: 1rem; line-height: 2; margin-block-end: 24px; }
.mg-ec-study-text p { color: inherit; }
.mg-ec-galleryrail__track--restored { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); grid-auto-rows: 210px; gap: 14px; margin-block-start: 28px; }
.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item { grid-column: span 4; }
.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item:first-child { grid-row: span 2; }
.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item:nth-child(4) { grid-column: span 5; }
.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item:nth-child(5) { grid-column: span 3; }
.mg-ec .mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item img { height: 100%; width: 100%; object-fit: contain; padding: 24px 20px 52px; background: #edf2f6; }
.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item b { color: #fff; }
.mg-ec .mg-ec-linehero__visual img { height: 240px; max-height: 240px; object-fit: contain; }
.mg-ec-linehero__visual { min-height: 310px; }
.mg-ec-gal__main .mg-ec-fig--main { height: 380px; max-height: 380px; aspect-ratio: auto; grid-template-rows: minmax(0,1fr); padding: 32px; }
.mg-ec-pdp__media, .mg-ec-pdp__info { min-width: 0; }
.mg-ec-gal__main .mg-ec-fig--main img { height: 300px !important; max-height: 100%; width: 100% !important; object-fit: contain !important; }
.mg-ec .mg-ec-gal__thumb img { height: 100%; min-height: 0; object-fit: contain; }
.mg-ec .mg-ec-fig--card { grid-template-rows: minmax(0,1fr); }
.mg-ec .mg-ec-fig--card img { height: 100%; min-height: 0; object-fit: contain; }
.mg-ec-managed-section--categories .mg-ec-catgroups { margin-block-start: 28px; }
.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal] { opacity: 1; transform: none; transition: none; }
.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal].is-visible { animation: mg-ec-enter .65s var(--ec-ease) both; }
@keyframes mg-ec-enter { from { opacity: .65; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 1020px) {
	.mg-ec-linegrid--restored:not(.mg-ec-linegrid--featured) .mg-ec-linecard { grid-column: span 6; }
}
@media (max-width: 760px) {
	.mg-ec-hero--restored { padding-block: 92px 28px; }
	.mg-ec-hero--restored .mg-ec-hero__grid { gap: 22px; }
	.mg-ec-hero--restored h1 { font-size: 2.25rem; max-width: 16ch; }
	.mg-ec-stage--refined { min-height: 360px; }
	.mg-ec-stage--refined .mg-ec-stage__item img { height: 240px; }
	.mg-ec-stage--refined figcaption { padding: 8px 10px; bottom: 0; }
	.mg-ec-stage--refined figcaption b { font-size: .8rem; }
	.mg-ec-stage--refined figcaption span { font-size: .7rem; }
	.mg-ec-stage--refined .mg-ec-stage__tabs button { font-size: .7rem; padding-inline: 4px; }
	.mg-ec-linegrid--restored { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
	.mg-ec-linegrid--restored .mg-ec-linecard,
	.mg-ec-linegrid--restored:not(.mg-ec-linegrid--featured) .mg-ec-linecard { grid-column: auto; grid-template-columns: minmax(0,1fr); grid-template-areas: "visual" "body" "meta"; grid-template-rows: 170px auto auto; min-height: 0; }
	.mg-ec-linegrid--restored .mg-ec-linecard__visual img { height: 145px; }
	.mg-ec-linegrid--featured .mg-ec-linecard:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); grid-template-areas: "visual body" "visual meta"; grid-template-rows: auto auto; min-height: 220px; }
	.mg-ec-linegrid--restored .mg-ec-linecard__body { padding: 14px 12px 4px; }
	.mg-ec-linegrid--restored .mg-ec-linecard__body strong { font-size: .95rem; }
	.mg-ec-linegrid--restored .mg-ec-linecard__meta { padding: 10px 12px 16px; }
	.mg-ec-scrolllab--refined { height: auto; min-height: 0; margin: 36px 0; border-radius: 14px; }
	.mg-ec-scrolllab--refined .mg-ec-scrolllab__sticky { position: relative; top: 0; height: auto; min-height: 0; max-height: none; grid-template-columns: 1fr; grid-template-rows: 290px auto; }
	.mg-ec .mg-ec-scrolllab--refined .mg-ec-scrolllab__fallback { padding: 30px 22%; }
	.mg-ec-scrolllab--refined .mg-ec-scrolllab__story { padding: 24px; }
	.mg-ec-galleryrail__track--restored { display: flex; overflow-x: auto; margin-inline: 0; padding-inline: 0; scroll-snap-type: x proximity; }
	.mg-ec-galleryrail__track--restored .mg-ec-galleryrail__item { flex: 0 0 78%; height: 280px; }
	.mg-ec .mg-ec-linehero__visual img { height: 200px; max-height: 200px; }
	.mg-ec-linehero__visual { min-height: 260px; }
	.mg-ec-gal__main .mg-ec-fig--main { height: 290px; max-height: 290px; padding: 24px; }
	.mg-ec-gal__main .mg-ec-fig--main img { height: 230px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.mg-ec[data-mg-ec-enhanced] [data-mg-ec-reveal].is-visible { animation: none; }
	.mg-ec-scrolllab--refined { height: auto; min-height: 0; }
	.mg-ec-scrolllab--refined .mg-ec-scrolllab__sticky { position: relative; top: 0; }
	.mg-ec-scrolllab--refined .mg-ec-scrolllab__fallback { transform: none; }
}
