/* Only what theme.json cannot express. Keep values on the theme.json custom properties.
   Numbers in comments are design px at 1920 (documentation/analyze-home-2026-11-05.md). */

/* ---------- Header ---------- */
.mg-brand { position: relative; flex-shrink: 0; }
.mg-wordmark { white-space: nowrap; }
.mg-logo img { display: block; width: clamp(44px, 3.2443vw, 62.29px); height: auto; } /* 62.29 x 71.39 */
.mg-wordmark a { text-decoration: none; }
.mg-wordmark a::after { content: ""; position: absolute; inset: 0; } /* logo + name = one home link */
.mg-header__row > .mg-nav { flex: 1 1 auto; margin-top: 1.5em; margin-left: 4.377em; } /* beats .is-layout-flex > :is(*, div) { margin: 0 }. Nav spans x554-1709, items spread (space-between) */ /* nav line box top 27.08 below the logo top */
.mg-nav .wp-block-navigation-item__content { text-decoration: none; white-space: nowrap; } /* a two-word label never breaks */
.mg-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child { margin-right: 0.14em; } /* CONTACT ink ends at 1707.5 */
.mg-nav .wp-block-navigation-item__content:hover,
.mg-nav .current-menu-item > .wp-block-navigation-item__content,
.mg-nav [aria-current="page"] { color: var(--wp--preset--color--orange); }

/* Collapse to the burger below 1280 (WP's own breakpoint is 600). Measured: below ~1250 the 7 caps items no longer
   fit beside the logo ("Private label" / "Brand services" wrapped); 1280 leaves room for a 15px scrollbar. */
@media (max-width: 1279px) {
	.mg-header__row { align-items: center !important; padding-bottom: 12px; }
	.mg-brand { align-items: center !important; }
	.mg-wordmark { margin-top: 0 !important; }
	.mg-header__row > .mg-nav { flex: 0 0 auto; margin-top: 0; margin-left: 0; }
	.mg-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.mg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.mg-nav .wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--wp--preset--color--off-white) !important;
		color: var(--wp--preset--color--navy) !important;
		padding: 24px clamp(16px, 10.833vw, 208px);
	}
	.mg-nav .is-menu-open .wp-block-navigation__container { gap: 1.1em !important; font-size: 20px !important; } /* preset classes are !important */
	.mg-nav .wp-block-navigation__container > .wp-block-navigation-item:last-child { margin-right: 0; }
	.mg-nav .wp-block-navigation__responsive-container-open svg,
	.mg-nav .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
}

/* ---------- Designed line breaks ----------
   Noel breaks many lines by hand; they are <br> in the content (Shift+Enter, always after a space).
   From 1200px up all sizes scale with the viewport, so the breaks hold; below that text flows freely. */
@media (max-width: 1199px) { main br { display: none; } }

/* ---------- Home cards ---------- */
.wp-block-columns.mg-cards { max-width: 90.6%; } /* row is 1362.62 of 1504 */
.mg-card { position: relative; height: 100%; box-sizing: border-box; }
.mg-cta a { text-decoration: none; }
.mg-cta a { white-space: nowrap; } /* keep the arrow with the label */
@media (max-width: 379px) { .mg-cta { font-size: 15px !important; } }
.mg-cta a::before { content: ""; position: absolute; inset: 0; border-radius: 21.8px; } /* whole card clickable */
.mg-cta a::after { /* arrow 47.64 x 27.38, 23.8 after the text, centred on the caps */
	content: "";
	display: inline-block;
	width: 1.64em;
	height: 0.9425em;
	margin-left: 0.82em;
	vertical-align: -0.08em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.64 27.38'%3E%3Cpath d='M0 10.39h23.89V0l23.75 13.69-23.75 13.69V16.99H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.64 27.38'%3E%3Cpath d='M0 10.39h23.89V0l23.75 13.69-23.75 13.69V16.99H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	transition: transform .2s ease;
}
.mg-card:hover .mg-cta a::after,
.mg-cta a:focus-visible::after { transform: translateX(6px); }
.mg-cta a:focus-visible { outline: none; }
.mg-cta a:focus-visible::before { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- Stats row ---------- */
.mg-stats > p { margin-block: 0; white-space: nowrap; }

@media (max-width: 1199px) {
	.mg-stats { flex-direction: column; align-items: flex-start !important; gap: 10px !important; }
	.mg-stats > p { white-space: normal; }
	.mg-stats > .mg-stat-sep { display: none; }
}
@media (max-width: 1023px) {
	.wp-block-columns.mg-cards { max-width: none; flex-wrap: wrap !important; }
	.wp-block-columns.mg-cards > .wp-block-column { flex-basis: 100% !important; }
	.mg-card { min-height: 160px !important; }
}

/* ---------- Card grids (Wholesale, International, Private label, Brand services) ---------- */
.mg-tile { box-sizing: border-box; }
@media (min-width: 782px) { .mg-tile { padding-bottom: clamp(18px, 1.25vw, 24px) !important; } } /* text never touches the bottom edge; the design's min-height still sets the size where the text is shorter */
.mg-tile > * { margin-block: 0; }
@media (max-width: 1199px) {
	.mg-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.mg-tile { min-height: 0 !important; padding-bottom: 32px !important; padding-right: var(--wp--preset--spacing--card-b-x) !important; }
}
@media (max-width: 1023px) {
	.mg-grid-3 { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 781px) {
	.mg-grid-4 { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ---------- Stat pills (Private label) ---------- */
.mg-pill > p { margin: 0; text-align: center; }
@media (max-width: 1199px) { .mg-pill { padding: 16px 12px; } }

/* ---------- About: text + photo (only the left column of Noel's collage shows, as in the PDF's clip) ---------- */
.wp-block-columns.mg-about-cols > .wp-block-column { flex-shrink: 0; }
.mg-about-photo img { object-position: left center; }
@media (max-width: 781px) {
	.wp-block-columns.mg-about-cols > .wp-block-column { flex-shrink: 1; }
	.mg-about-photo { max-width: 420px; }
}

/* ---------- Contact cards: caps label with an underline (2.835 thick, 24.6 below the baseline) ---------- */
.mg-cta-line a {
	text-decoration: underline;
	text-decoration-thickness: 0.0976em;
	text-underline-offset: 0.845em;
	text-decoration-skip-ink: none;
	white-space: nowrap;
}
.mg-cta-line a::before { content: ""; position: absolute; inset: 0; border-radius: 21.8px; } /* whole card clickable */
.mg-cta-line a:focus-visible { outline: none; }
.mg-cta-line a:focus-visible::before { outline: 3px solid currentColor; outline-offset: 3px; }
.mg-card:has(.mg-cta-line) { position: relative; }

/* ---------- Footer ---------- */
.wp-site-blocks > footer { margin-block-start: 0; } /* no root block gap: measured from Contact */
.mg-footer a { text-decoration: none; }
.mg-footer a:hover, .mg-footer a:focus-visible { text-decoration: underline; }
.mg-footer-list { list-style: none; padding-left: 0; margin: 0; }
.mg-footer-list li { margin: 0; }
@media (max-width: 599px) {
	.mg-footer__cols { flex-direction: column; gap: 16px !important; }
	.mg-footer__cols > * { flex-basis: auto !important; width: auto !important; }
}

/* ---------- 404: the arrow link outside a card ---------- */
.mg-cta--plain { position: relative; display: inline-block; } /* keeps the link's ::before hit area on the link itself */

/* ---------- Long-form text (privacy, terms): readable line length ---------- */
.mg-prose { max-width: 46em; }

/* ---------- Supplier enquiry page: the sheet's navy band lines up with the form (mgbrands-core, 1000px) ---------- */
.mg-sheet-band { max-width: 1000px !important; box-sizing: border-box; }
.mg-sheet-band > * { margin-block: 0; }

/* =====================================================================================================
   V2 (Noel, 2026-11-08). documentation/analyze-design-v2-2026-11-08.md. Design px at 1920 in comments.
   ===================================================================================================== */

/* ---------- Arrow button (Home x2, Wholesale, Contact x2): 85.4 tall, r 16.3, text inset 38.5, arrow 35.6 x 20.5
   right-aligned 24.6 from the edge. Core Button block; colours/size/radius are block attributes. ---------- */
.mg-btn .wp-block-button__link {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: clamp(56px, 4.4479vw, 85.4px);
	padding: 0 clamp(16px, 4.0625vw, 78px) clamp(4px, 0.5208vw, 10px) clamp(18px, 2.0052vw, 38.5px); /* right = 24.6 + arrow + gap; bottom lifts the text like Noel's */
	line-height: 1.2;
	font-weight: var(--wp--custom--weight--medium);
	letter-spacing: calc(0.048em + var(--wp--custom--tracking--adjust-medium)); /* Noel's buttons are tracked about +50 (measured: 22px over "Become a Partner") */
	text-align: left;
	text-decoration: none;
	white-space: nowrap;
}
.mg-btn .wp-block-button__link::after {
	content: "";
	position: absolute;
	right: clamp(12px, 1.2813vw, 24.6px);
	top: 50%;
	width: 1.1484em; /* 35.6 / 31 */
	height: 0.6613em; /* 20.5 / 31 */
	margin-top: -0.3713em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.64 27.38'%3E%3Cpath d='M0 10.39h23.89V0l23.75 13.69-23.75 13.69V16.99H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 47.64 27.38'%3E%3Cpath d='M0 10.39h23.89V0l23.75 13.69-23.75 13.69V16.99H0z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	transition: transform .2s ease;
}
.mg-btn .wp-block-button__link:hover::after, .mg-btn .wp-block-button__link:focus-visible::after { transform: translateX(6px); }
.mg-btn .wp-block-button__link:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.mg-btn--w460 { width: clamp(240px, 23.9896vw, 460.6px); }

/* Home: the two buttons share the stats box width (412.8 + 23 + 434.0 = 869.8) */
.mg-btns--home { flex-wrap: nowrap !important; gap: clamp(12px, 1.1979vw, 23px) !important; }
.mg-btns--home > .mg-btn:first-child { flex: 0 0 47.46%; }
.mg-btns--home > .mg-btn:last-child { flex: 0 0 49.9%; }

/* ---------- Hero: text + photo (Home, International, Private label) ---------- */
.wp-block-columns.mg-hero { flex-wrap: nowrap; }
/* gaps here, not in blockGap: WordPress drops clamp() gaps on Columns (it printed 24px) */
.wp-block-columns.mg-hero--home { gap: clamp(24px, 2.0729vw, 39.8px); }
.wp-block-columns.mg-hero--international { gap: clamp(24px, 2.2396vw, 43px); }
.wp-block-columns.mg-hero--private-label { gap: clamp(24px, 2.0833vw, 40px); }
.mg-hero__media { margin-left: auto; } /* photos end on the right content edge */
.mg-hero__text > :first-child { margin-top: 0; }
.mg-hero-photo { margin-bottom: 0; }
.mg-hero-photo img { display: block; width: 100%; height: auto; }
/* Home: Noel placed the photo at 671 x 744 (x 1069, y 215) and clipped it to 596 x 735 (x 1117), which is a tighter
   crop than object-fit: cover gives, so the image is sized and shifted inside a clipping figure. */
@media (min-width: 1200px) {
	.mg-hero-photo--home { overflow: hidden; aspect-ratio: 596 / 735; }
	.mg-hero-photo--home img { width: 112.58% !important; max-width: none; height: auto !important; aspect-ratio: auto !important; margin-left: -8.054%; object-fit: fill !important; }
}
.mg-hero-photo--international img { object-position: 100% 50%; } /* cropped from the left */
.mg-hero__media:has(.mg-hero-photo--international) { padding-right: clamp(0px, 0.2083vw, 4px); } /* photo ends at 1708 */

/* ---------- Home stats box: white, 869.8 x 110.1, r 21; icons and two 2.835 navy rules at x 497.3 / 786.9 ---------- */
.mg-statbox {
	box-sizing: border-box;
	align-items: center !important;
	height: clamp(84px, 5.7344vw, 110.1px);
	padding-left: clamp(16px, 2.7969vw, 53.7px);
	gap: 0 !important;
}
.mg-stat { position: relative; align-items: center !important; height: 100%; gap: 0 !important; flex-shrink: 0; }
.mg-stat--1 { width: clamp(150px, 12.3021vw, 236.2px); }
.mg-stat--2 { width: clamp(180px, 15.0833vw, 289.6px); padding-left: clamp(12px, 1.8021vw, 34.6px); box-sizing: border-box; }
.mg-stat--3 { padding-left: clamp(12px, 1.6875vw, 32.4px); }
.mg-stat--2::before, .mg-stat--3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20.9%;   /* rule 863.1-930.7 in a 840.1-950.2 box */
	height: 61.4%;
	width: 2.835px;
	background: var(--wp--preset--color--navy);
}
.mg-stat__icon { margin: 0 !important; flex-shrink: 0; }
.mg-stat__icon img { display: block; height: auto; }
.mg-stat--1 .mg-stat__icon img { width: clamp(44px, 4.0313vw, 77.4px); }
.mg-stat--2 .mg-stat__icon img { width: clamp(40px, 3.6302vw, 69.7px); }
.mg-stat--3 .mg-stat__icon img { width: clamp(48px, 4.4323vw, 85.1px); }
.mg-stat--1 .mg-stat__text { margin-left: clamp(8px, 1.1198vw, 21.5px); }
.mg-stat--2 .mg-stat__text { margin-left: clamp(8px, 1.2604vw, 24.2px); }
.mg-stat--3 .mg-stat__text { margin-left: clamp(6px, 0.4583vw, 8.8px); }
.mg-stat__text > p { margin: 0; white-space: nowrap; }
.mg-stat__big { font-weight: var(--wp--custom--weight--black); line-height: 1; letter-spacing: var(--wp--custom--tracking--adjust-black); }
.mg-stat__big sup { font-size: 0.583em; vertical-align: 0.571em; line-height: 0; } /* Noel's latest V2 (19:17): 18.28px Black, baseline 10.44 above, right after the + */
.mg-stat__small { line-height: 1.2; margin-top: 0.14em !important; letter-spacing: -0.01em; }
.mg-footnote { letter-spacing: 0.052em; }

/* ---------- Wholesale: lead + "Submit Your Catalogue" (460.6 x 85.4, right-aligned, top 442.3) ---------- */
.mg-lead-row { gap: 24px !important; }
.mg-lead-row > .mg-lead { margin: 0; }
.mg-lead-row > .mg-btns--catalogue { flex-shrink: 0; margin-top: clamp(-12.6px, -0.6563vw, 0px); } /* beats .is-layout-flex > * { margin: 0 } */

.mg-btns--stack { gap: clamp(16px, 1.3958vw, 26.8px) !important; }

/* ---------- Contact: stacked buttons + facility photo with caption; on desktop the photo column runs down
   beside the footer columns (Noel's V2), so it gives back its extra height and main's end padding shrinks. ---------- */
.wp-block-columns.mg-contact-cols { justify-content: space-between; }
.mg-contact-cols__media { margin-left: auto; }
.mg-contact-photo { margin-bottom: 0; }
.mg-contact-photo img { display: block; width: 100%; height: auto; }
.mg-contact-photo figcaption {
	margin: clamp(10px, 0.8177vw, 15.7px) 0 0;
	text-align: right;
	font-size: var(--wp--preset--font-size--footer);
	font-weight: var(--wp--custom--weight--medium);
	letter-spacing: 0.04em;
	line-height: 1.2;
}
@media (min-width: 1200px) {
	.wp-block-post-content > .has-lead-m-font-size { max-width: none !important; margin-right: -1.2vw !important; } /* Noel's 2nd line runs to 1722.8, past the 1712 content edge */
	.wp-block-columns.mg-contact-cols { margin-bottom: -11.224vw; } /* photo column 413.1 tall vs buttons 197.6 */
	main:has(.mg-contact-cols) { padding-bottom: 1.6406vw !important; } /* footer's first line at 760.5 */
	body:has(.mg-contact-cols) .mg-footer__legal { margin-top: 1.6979vw !important; } /* V2 Contact: copyright at 962 (25.5 closer than V1) */
	.wp-block-columns.mg-contact-cols, .mg-contact-cols__media { position: relative; z-index: 1; pointer-events: none; }
	.mg-contact-cols__btns, .mg-contact-cols__media figure { pointer-events: auto; }
}

/* ---------- V2 below 1200: stack the hero, let the buttons breathe ---------- */
@media (max-width: 1199px) {
	.wp-block-columns.mg-hero, .wp-block-columns.mg-contact-cols { flex-wrap: wrap !important; }
	.wp-block-columns.mg-hero > .wp-block-column, .wp-block-columns.mg-contact-cols > .wp-block-column { flex-basis: 100% !important; }
	.mg-hero-photo { max-width: 640px; }
	.mg-hero-photo img { aspect-ratio: 16 / 10 !important; }
	.mg-contact-cols__media { margin-left: 0; max-width: 640px; }
	.mg-lead-row { flex-wrap: wrap !important; }
	.mg-lead-row > .mg-btns--catalogue { margin-top: 0; }
	.mg-statbox { height: auto; padding: 16px 20px; flex-wrap: wrap !important; row-gap: 12px !important; }
	.mg-stat--1, .mg-stat--2 { width: auto; }
	.mg-stat { padding-right: 20px; }
}

/* =====================================================================================================
   Mobile one-page (V2 page 8), below 782px. Measured from Noel's artboard: 975pt wide = the phone width, so
   1pt = 100vw / 975 (0.4px on a 390px phone). Every box, gap, radius and position below is his number in pt
   times --u. Text uses his size too, with a floor where his literal size is unreadable (card text 8.7px,
   labels 5.6-8px): body >= 12px, labels >= 10px. The same rules style the standalone pages on phones.
   documentation/report-mobile-measure-2026-11-08.md.
   ===================================================================================================== */
.mg-m-sections { display: none; }
.mg-m-section { scroll-margin-top: 12px; }
.mg-m-section:focus { outline: none; }

@media (max-width: 781px) {
	:root { --u: min(calc(100vw / 975), 0.6px); } /* 1pt of Noel's artboard; capped at a large phone (585px) so tablets get wider content, not giant type */
	body { --wp--style--root--padding-left: calc(50.4 * var(--u)); --wp--style--root--padding-right: calc(54.8 * var(--u)); } /* Noel's text and cards start at 50.4pt; his stats box and buttons end at 920.2pt */
	.mg-m-sections { display: block; }
	.mg-m-sections { margin-block-start: 0 !important; } /* main's 24px block gap stacked on top of the section spacing */
	.mg-m-section > :first-child { margin-top: 0 !important; } /* grid items keep their margins: the eyebrow sat 10px low */
	/* Line breaks as on Noel's artboard: each heading/intro gets the text width that breaks it at his words
	   (measured: between his longest line and that line plus the next word, in the stand-in font; tools/measure-mobile.mjs) */
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--home) :is(h1, .mg-m-title) { max-width: calc(858.5 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-lead-row) :is(h1, .mg-m-title) { max-width: calc(797.5 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--international) :is(h1, .mg-m-title) { max-width: calc(711.8 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--private-label) :is(h1, .mg-m-title) { max-width: calc(846 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-grid-4):not(:has(.mg-hero)) :is(h1, .mg-m-title) { max-width: calc(800 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-about-cols) :is(h1, .mg-m-title) { max-width: calc(800 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-contact-cols) :is(h1, .mg-m-title) { max-width: calc(737.5 * var(--u)) !important; }

	/* Header: no cyan top bar on Noel's mobile; logo 77.8pt wide, wordmark 35.8pt, burger 40pt wide */
	.mg-header { border-top-width: 0 !important; padding-top: calc(44 * var(--u)) !important; }
	.mg-logo img { width: calc(77.8 * var(--u)); min-width: 28px; }
	.mg-wordmark { font-size: max(14px, calc(35.8 * var(--u))) !important; }
	.mg-brand { gap: calc(26.4 * var(--u)) !important; } /* logo right 130 -> wordmark 156.4 */
	/* Burger: Noel's three navy bars, 40.2 x 2.835pt, 14.35pt apart, top bar at 60.7pt, right edge on the gutter.
	   Drawn in CSS (WordPress's icon has two bars); the button keeps a 44px tap target around them. */
	.mg-nav .wp-block-navigation__responsive-container-open {
		box-sizing: content-box;
		width: calc(40.2 * var(--u)); height: calc(31.55 * var(--u));
		padding: 14px 0 14px 20px !important;
		align-self: flex-start;
		margin-top: calc(16.7 * var(--u) - 14px) !important;
		background:
			linear-gradient(var(--wp--preset--color--navy), var(--wp--preset--color--navy)) right 0 top 14px / calc(40.2 * var(--u)) calc(2.835 * var(--u)) no-repeat,
			linear-gradient(var(--wp--preset--color--navy), var(--wp--preset--color--navy)) right 0 top calc(14px + 14.35 * var(--u)) / calc(40.2 * var(--u)) calc(2.835 * var(--u)) no-repeat,
			linear-gradient(var(--wp--preset--color--navy), var(--wp--preset--color--navy)) right 0 top calc(14px + 28.7 * var(--u)) / calc(40.2 * var(--u)) calc(2.835 * var(--u)) no-repeat;
	}
	.mg-nav .wp-block-navigation__responsive-container-open svg { display: none; }
	.mg-header__row { align-items: flex-start !important; }
	main.wp-block-group { padding-top: calc(2 * var(--u)) !important; } /* first H1 baseline at 305.9pt */

	/* Each page / section is a 2-column grid: full-width blocks, 2-up tiles. Wrappers dissolve. */
	.wp-block-post-content, .mg-m-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: calc(19.8 * var(--u)); row-gap: 0; align-items: start; }
	.wp-block-post-content > *, .mg-m-section > * { grid-column: 1 / -1; margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
	:is(.wp-block-post-content, .mg-m-section) :is(p, h1, h2, h3, figure, .wp-block-buttons, .wp-block-group) { margin-bottom: 0; } /* grid items don't collapse margins */
	:is(.wp-block-post-content, .mg-m-section) :is(.mg-hero, .mg-hero__text, .mg-hero__media, .mg-lead-row, .mg-contact-cols, .mg-contact-cols__btns, .mg-contact-cols__media, .mg-grid-3, .mg-grid-4, .mg-about-cols, .mg-about-cols > .wp-block-column) { display: contents; }
	:is(.wp-block-post-content, .mg-m-section) :is(.mg-hero__text, .mg-hero__media, .mg-lead-row, .mg-contact-cols__btns, .mg-contact-cols__media, .mg-about-cols > .wp-block-column) > * { grid-column: 1 / -1; margin-left: 0 !important; margin-right: 0 !important; }
	.mg-m-section { margin-top: calc(51 * var(--u)); } /* 74pt from the last card to the next eyebrow's baseline */
	.mg-m-sections > .mg-m-section:first-child { margin-top: calc(37.3 * var(--u)); } /* after Home's footnote: 67pt baseline to baseline */

	/* Heading block: eyebrow 20.2pt, H1 109pt (line 109), lead 35pt (line 42); */
	.mg-eyebrow { font-size: max(12px, calc(32.5 * var(--u))) !important; line-height: 1.2 !important; }
	main h1, .mg-m-title { font-size: calc(109 * var(--u)) !important; line-height: 1 !important; margin-top: calc(16.8 * var(--u)) !important; }
	.mg-m-title { font-weight: 700; letter-spacing: calc(-0.003em + var(--wp--custom--tracking--adjust-bold)); }
	.mg-lead { font-size: max(15px, calc(40 * var(--u))) !important; line-height: 1.3 !important; margin-top: calc(25.3 * var(--u)) !important; }
	/* Private label, About, Contact: H1 84.8pt (line 91.6), lead 27pt (line 32.4) */
	:is(.wp-block-post-content, .mg-m-section):is(:has(.mg-hero--private-label), :has(.mg-about-cols), :has(.mg-contact-cols)) :is(h1, .mg-m-title) { font-size: calc(84.8 * var(--u)) !important; line-height: 1.08 !important; }
	:is(.wp-block-post-content, .mg-m-section):is(:has(.mg-hero--private-label), :has(.mg-about-cols), :has(.mg-contact-cols)) :is(.mg-lead, .mg-about-cols p) { font-size: max(15px, calc(40 * var(--u))) !important; line-height: 1.3 !important; } /* Noel 9 Nov: same size as the other intros (was his 27pt) */
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--private-label) .mg-lead { margin-top: calc(11.6 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-contact-cols) .mg-lead { margin-top: calc(24.9 * var(--u)) !important; }
	.mg-about-cols p { margin-top: calc(24 * var(--u)) !important; }
	.mg-about-cols p:first-child { margin-top: calc(17.2 * var(--u)) !important; }

	/* Cards A (Wholesale, International): 423.7 x 323.1, r 24.8, gap 19.8; number 28.7 @ +55.5, title 37.4 @ +116, text 21.8 @ +213.3, inset 40.2 */
	.mg-tile { grid-column: auto !important; order: 1; box-sizing: border-box; margin-top: calc(19.8 * var(--u)) !important; min-height: calc(323.1 * var(--u)) !important; padding: calc(27.9 * var(--u)) calc(12 * var(--u)) calc(30 * var(--u)) calc(40.2 * var(--u)) !important; border-radius: calc(24.8 * var(--u)) !important; }
	.mg-tile .mg-tile__num { font-size: max(14px, calc(37.5 * var(--u))) !important; line-height: 1.2 !important; }
	.mg-tile :is(h2, h3) { font-size: max(15px, calc(40 * var(--u))) !important; line-height: 1.094 !important; margin-top: calc(19.7 * var(--u)) !important; }
	.mg-tile :is(h2, h3) br { display: inline; }
	@media (max-width: 379px) { .mg-tile :is(h2, h3) { font-size: 14px !important; } } /* keeps "Exclusive Amazon / brand partnerships" at 2 lines on 360px phones */ /* Noel 9 Nov: "Wholesale / supply" in 2 lines: card titles keep his breaks on phones */
	.mg-tile p:not(.mg-tile__num) { font-size: max(14px, calc(37.5 * var(--u))) !important; line-height: 1.3 !important; margin-top: calc(24 * var(--u)) !important; }
	.mg-grid-3 > .mg-tile:nth-child(-n+2), .mg-grid-4 > .mg-tile:nth-child(-n+2) { margin-top: calc(30.1 * var(--u)) !important; } /* lead to cards */
	/* Cards B (Private label, Brand services): 420.3 x 433.1, r 37.6, gap 24.5; number + title 37.6, text 28.5 */
	.mg-grid-4 { column-gap: calc(24.5 * var(--u)); }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-grid-4) { column-gap: calc(24.5 * var(--u)); }
	.mg-grid-4 > .mg-tile { min-height: calc(433.1 * var(--u)) !important; border-radius: calc(37.6 * var(--u)) !important; padding: calc(43 * var(--u)) calc(24 * var(--u)) calc(30 * var(--u)) calc(51.4 * var(--u)) !important; margin-top: calc(20.9 * var(--u)) !important; }
	.mg-grid-4 > .mg-tile .mg-tile__num { font-size: max(14px, calc(37.6 * var(--u))) !important; }
	.mg-grid-4 > .mg-tile :is(h2, h3) { font-size: max(15px, calc(40 * var(--u))) !important; line-height: 1.229 !important; margin-top: calc(8 * var(--u)) !important; } /* his breaks: "Product review / & sourcing", "commercial deal" on one line */
	.mg-grid-4 > .mg-tile p:not(.mg-tile__num) { font-size: max(14px, calc(37.5 * var(--u))) !important; margin-top: calc(14 * var(--u)) !important; }

	/* Home: buttons 412.8 / 434 x 85.4 (gap 23, r 16.3), caps 21.7pt; stats box 869.8 x 110.1 (r 21) = the desktop box at 0.4 */
	.mg-btns--home { margin-top: calc(31.8 * var(--u)) !important; gap: calc(23 * var(--u)) !important; }
	.mg-btns--home > .mg-btn:first-child { flex: 0 0 47.46% !important; }
	.mg-btns--home > .mg-btn:last-child { flex: 0 0 49.9% !important; }
	.mg-btns--home .wp-block-button__link { min-height: calc(85.4 * var(--u)); padding: 0 calc(60 * var(--u)) 0 calc(38.5 * var(--u)); font-size: max(9px, calc(21.7 * var(--u))) !important; text-transform: uppercase; letter-spacing: 0.06em; border-radius: calc(16.3 * var(--u)) !important; }
	.mg-btns--home .wp-block-button__link::after { right: calc(24.6 * var(--u)); width: calc(35.6 * var(--u)); height: calc(20.5 * var(--u)); margin-top: calc(-10.25 * var(--u)); }
	.mg-statbox { height: calc(110.1 * var(--u)) !important; margin-top: calc(30.6 * var(--u)) !important; padding: 0 0 0 calc(53.7 * var(--u)) !important; border-radius: calc(21 * var(--u)) !important; justify-content: flex-start; flex-wrap: nowrap !important; }
	@media (max-width: 379px) { .mg-statbox { padding-left: calc(30 * var(--u)) !important; } .mg-stat--1, .mg-stat--2 { min-width: 0; } .mg-stat--2, .mg-stat--3 { padding-left: 7px !important; } }
	.mg-stat { padding: 0 !important; }
	.mg-stat--1 { width: auto !important; min-width: calc(236.2 * var(--u)); padding-right: 6px !important; }
	.mg-stat--2 { width: auto !important; min-width: calc(289.6 * var(--u)); padding-left: calc(34.6 * var(--u)) !important; padding-right: 6px !important; } /* min-width = Noel's spacing; grows if the floored text needs it */
	.mg-stat--3 { padding-left: calc(32.4 * var(--u)) !important; }
	.mg-stat--2::before, .mg-stat--3::before { width: max(1px, calc(2.835 * var(--u))); }
	.mg-stat--1 .mg-stat__icon img { width: calc(77.4 * var(--u)); }
	.mg-stat--2 .mg-stat__icon img { width: calc(69.7 * var(--u)); }
	.mg-stat--3 .mg-stat__icon img { width: calc(85.1 * var(--u)); }
	.mg-stat--1 .mg-stat__text { margin-left: calc(21.5 * var(--u)) !important; }
	.mg-stat--2 .mg-stat__text { margin-left: calc(24.2 * var(--u)) !important; }
	.mg-stat--3 .mg-stat__text { margin-left: calc(8.8 * var(--u)) !important; }
	.mg-stat__big { font-size: calc(31.36 * var(--u)) !important; }
	.mg-stat__small { font-size: max(8px, calc(17.77 * var(--u))) !important; letter-spacing: 0; }
	/* Photo 865 x 535 (Noel's crop of the portrait photo: from 34% down), then the footnote */
	.mg-hero-photo--home { order: 2; margin-top: calc(32 * var(--u)) !important; }
	.mg-hero-photo--home img { aspect-ratio: 865 / 535 !important; object-position: 0 77% !important; }
	.mg-footnote { order: 3; font-size: max(12px, calc(30 * var(--u))) !important; margin-top: calc(12 * var(--u)) !important; }

	/* Photos */
	.mg-hero-photo { max-width: none !important; }
	.mg-hero-photo img { width: 100%; height: auto !important; object-fit: cover !important; }
	.mg-m-sections img, .wp-block-post-content img { contain-intrinsic-size: none; } /* WordPress's sizes=auto intrinsic 3000x1500 */
	/* Private label: 865 x 530, from 56% down, after the lead */
	.mg-hero-photo--private-label { margin-top: calc(28 * var(--u)) !important; }
	.mg-hero-photo--private-label img { aspect-ratio: 865 / 530 !important; object-position: 0 56% !important; }
	/* International: the photo is the 4th tile (423.7 x 323.1, r 24.8) */
	.mg-hero-photo--international { grid-column: auto !important; order: 2; margin-top: calc(19.8 * var(--u)) !important; align-self: stretch; position: relative; min-height: calc(323.1 * var(--u)); }
	.mg-hero-photo--international img { position: absolute; inset: 0; width: 100%; height: 100% !important; aspect-ratio: auto !important; border-radius: calc(24.8 * var(--u)); }

	/* Wholesale: "Submit Your Catalogue" is the 4th tile: title 37.4pt at +56 (inset 38), arrow 31.9 x 18.3 at top 37, right 36 */
	.mg-btns--catalogue { order: 2; grid-column: auto !important; margin-top: calc(19.8 * var(--u)) !important; display: flex; align-self: stretch; }
	.mg-btns--catalogue .mg-btn { width: 100%; }
	.mg-btns--catalogue .wp-block-button__link { height: 100%; min-height: calc(323.1 * var(--u)); align-items: flex-start; padding: calc(22 * var(--u)) calc(80 * var(--u)) calc(22 * var(--u)) calc(38.1 * var(--u)); font-size: max(15px, calc(40 * var(--u))) !important; font-weight: var(--wp--custom--weight--black); white-space: normal; line-height: 1.094; border-radius: calc(24.8 * var(--u)) !important; letter-spacing: var(--wp--custom--tracking--adjust-black); }
	.mg-btns--catalogue .wp-block-button__link::after { top: calc(37 * var(--u)); margin-top: 0; right: calc(36.4 * var(--u)); width: calc(31.9 * var(--u)); height: calc(18.3 * var(--u)); }

	/* About: the photo full width (865 x 1163.5, the collage's left column), 34.8pt after the text */
	.mg-about-photo { max-width: none !important; margin-top: calc(34.8 * var(--u)) !important; }
	.mg-about-photo img { width: 100%; height: auto !important; }

	/* Contact: photo 865 wide (natural shape), caption 14pt left, then buttons 460.6 x 85.4 (gap 27.6), text 31pt */
	.mg-contact-photo { order: 1; margin-top: calc(31 * var(--u)) !important; }
	.mg-contact-photo figcaption { text-align: left; font-size: max(12px, calc(32.5 * var(--u))) !important; margin-top: calc(14 * var(--u)) !important; }
	.mg-btns--stack { order: 2; margin-top: calc(28 * var(--u)) !important; gap: calc(27.6 * var(--u)) !important; }
	.mg-btn--w460 { width: calc(460.6 * var(--u)); }
	.mg-btns--stack .mg-btn--w460 { width: calc(640 * var(--u)); } /* 14px labels (Noel 9 Nov) need more room than his 460.6pt */
	.mg-btns--stack .wp-block-button__link { min-height: calc(85.4 * var(--u)); padding: 0 calc(78 * var(--u)) 0 calc(38.5 * var(--u)); font-size: max(15px, calc(40 * var(--u))) !important; border-radius: calc(16.3 * var(--u)) !important; }
	.mg-btns--stack .wp-block-button__link::after { right: calc(24.5 * var(--u)); width: calc(35.6 * var(--u)); height: calc(20.5 * var(--u)); margin-top: calc(-10.25 * var(--u)); }

	/* Footer: two columns side by side (x 53.9 / 424.2), 14pt lines every 35.8pt; legal line 10pt */
	main.wp-block-group { padding-bottom: 0 !important; }
	.mg-footer { padding-top: calc(40.5 * var(--u)) !important; } /* last button to the first footer baseline: 66.5pt */
	.mg-footer__cols { flex-direction: row !important; gap: 0 !important; }
	.mg-footer__cols > * { flex: 0 0 calc(370.3 * var(--u)) !important; width: auto !important; }
	.mg-footer-list { font-size: max(14px, calc(35 * var(--u))) !important; line-height: 26px !important; } /* links at least 24px tall (tap targets) */
	.mg-footer__legal { margin-top: calc(22 * var(--u)) !important; }
	.mg-footer__legal, .mg-footer__links { font-size: max(12px, calc(30 * var(--u))) !important; line-height: 1.4 !important; }
}

/* Mobile readability (Karol, 2026-11-09): Noel's PDF puts the Home buttons (caps 8.7px) and the stats labels
   (7.1px) side by side at sizes nobody can read on a phone. Readable sizes don't fit side by side, so:
   buttons stack full width at 16px (sentence case, as on desktop); each stat stacks icon over text. */
@media (max-width: 781px) {
	.mg-btns--home { flex-direction: column !important; flex-wrap: nowrap !important; gap: 10px !important; }
	.mg-btns--home > .mg-btn:first-child, .mg-btns--home > .mg-btn:last-child { flex: none !important; width: 100%; }
	.mg-btns--home .wp-block-button__link { min-height: 50px; padding: 0 52px 0 18px; font-size: max(15px, calc(40 * var(--u))) !important; text-transform: none; letter-spacing: calc(0.02em + var(--wp--custom--tracking--adjust-medium)); border-radius: 12px !important; }
	.mg-btns--home .wp-block-button__link::after { right: 18px; width: 23px; height: 13px; margin-top: -6.5px; }

	.mg-statbox { height: auto !important; padding: 14px 6px !important; justify-content: space-around; align-items: stretch !important; }
	.mg-stat, .mg-stat--1, .mg-stat--2, .mg-stat--3 { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; padding: 0 4px !important; flex-direction: column !important; align-items: center !important; text-align: center; }
	.mg-stat--2::before, .mg-stat--3::before { top: 12%; height: 76%; width: 1.5px; }
	.mg-stat--1 .mg-stat__icon img, .mg-stat--2 .mg-stat__icon img, .mg-stat--3 .mg-stat__icon img { width: auto; height: 30px; }
	.mg-stat--1 .mg-stat__text, .mg-stat--2 .mg-stat__text, .mg-stat--3 .mg-stat__text { margin: 8px 0 0 !important; }
	.mg-stat__big { font-size: max(16px, calc(42 * var(--u))) !important; }
	.mg-stat__small { font-size: max(11px, calc(30 * var(--u))) !important; margin-top: 3px !important; white-space: nowrap; }
}
@media (max-width: 379px) { .mg-stat__small { font-size: 10px !important; } }

/* Mobile minimum text size 15px (Karol, 2026-11-09: "people complain it's too small"). Applies to every piece of
   text on phones, including labels, footnote, caption, stats, footer and legal lines. Longer lines simply wrap. */
@media (max-width: 781px) {
	.mg-wordmark { font-size: 15px !important; }
	.mg-eyebrow { font-size: 15px !important; line-height: 1.3 !important; }
	.mg-footnote, .mg-contact-photo figcaption { font-size: 15px !important; line-height: 1.35 !important; }
	.mg-tile .mg-tile__num, .mg-grid-4 > .mg-tile .mg-tile__num { font-size: max(15px, calc(37.5 * var(--u))) !important; }
	.mg-tile p:not(.mg-tile__num), .mg-grid-4 > .mg-tile p:not(.mg-tile__num) { font-size: max(15px, calc(37.5 * var(--u))) !important; }
	.mg-tile :is(h2, h3) { font-size: max(16px, calc(40 * var(--u))) !important; }
	.mg-stat__small { font-size: 15px !important; white-space: normal; line-height: 1.15; }
	.mg-stat__big { font-size: max(17px, calc(44 * var(--u))) !important; }
	.mg-footer-list { font-size: 15px !important; line-height: 28px !important; }
	.mg-footer__legal, .mg-footer__links { font-size: 15px !important; line-height: 1.4 !important; }
	.mg-btns--catalogue .wp-block-button__link { font-size: max(16px, calc(40 * var(--u))) !important; }
	.mg-footer__cols > * { flex: 1 1 50% !important; }
}
@media (max-width: 379px) { .mg-stat__small { font-size: 15px !important; } .mg-tile :is(h2, h3) { font-size: 15px !important; } }
@media (max-width: 781px) { .mg-sheet-band p { font-size: max(15px, 1em) !important; } }
@media (max-width: 781px) { .mg-stat__text > .mg-stat__small { white-space: normal !important; } }
@media (max-width: 379px) { .mg-tile { padding-left: 12px !important; padding-right: 8px !important; } }

/* Noel, 2026-11-09 evening (design/feedback-2026-11-09/round3): smaller small print, medium not bold, equal boxes.
   His explicit request overrides the 15px phone minimum for the small print (footer, legal, caption, footnote). */
:root:root .mg-footnote, :root:root .mg-stat__small, .mg-contact-photo figcaption, .mg-footer, .mg-footer * { font-weight: var(--wp--custom--weight--medium) !important; } /* "medium font not bold", desktop too */
@media (max-width: 781px) {
	/* the orange tile is exactly the white card's box, text and arrow at the top */
	.mg-btns--catalogue { align-items: stretch !important; }
	.mg-btns--catalogue .mg-btn { height: auto !important; display: flex; }
	.mg-btns--catalogue .wp-block-button__link { flex: 1; height: auto !important; min-height: 0; }
	/* black text in the boxes smaller; boxes equal (same height per row in CSS, per section via onepage.js) */
	.mg-tile p:not(.mg-tile__num), .mg-grid-4 > .mg-tile p:not(.mg-tile__num) { font-size: max(13px, calc(32.5 * var(--u))) !important; line-height: 1.3 !important; }
	.mg-tile, .mg-hero-photo--international { align-self: stretch !important; }
	/* footer smaller; copyright line and below smaller still */
	.mg-footer-list { font-size: 13px !important; line-height: 26px !important; }
	.mg-footer__legal, .mg-footer__links { font-size: 11px !important; line-height: 1.45 !important; }
	/* photo caption and footnote a lot smaller */
	.mg-contact-photo figcaption { font-size: 11px !important; }
	.mg-footnote { font-size: 11px !important; }
}

/* Noel, 2026-11-09 22:05 (design/feedback-2026-11-09/round4): closer to his mobile artboard.
   Wordmark bigger; blue labels smaller on all sections; intros at his size (35pt = 14px at 390) with his line
   breaks; stats box back to his one-row layout at his sizes; footnote smaller. */
@media (max-width: 781px) {
	.mg-wordmark { font-size: 17px !important; }
	.mg-eyebrow { font-size: 11px !important; line-height: 1.3 !important; }
	.mg-lead, :is(.wp-block-post-content, .mg-m-section) :is(.mg-lead, .mg-about-cols p) { font-size: calc(35 * var(--u)) !important; line-height: 1.2 !important; }
	/* his text flow (widths measured with the real font for his line breaks at this size) */
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--home) .mg-lead { max-width: calc(847.1 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-lead-row) .mg-lead { max-width: calc(855.9 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-hero--international) .mg-lead { max-width: calc(736.6 * var(--u)) !important; }
	:is(.wp-block-post-content, .mg-m-section):has(.mg-grid-4):not(:has(.mg-hero)) .mg-lead { max-width: calc(841.1 * var(--u)) !important; }
	/* stats box: his row (box 869.8 x 110.1pt, icons beside the text, his sizes) */
	.mg-statbox { height: calc(110.1 * var(--u)) !important; padding: 0 0 0 calc(53.7 * var(--u)) !important; align-items: center !important; justify-content: flex-start !important; flex-wrap: nowrap !important; }
	.mg-stat, .mg-stat--1, .mg-stat--2, .mg-stat--3 { flex: none !important; flex-direction: row !important; align-items: center !important; text-align: left; padding: 0 !important; min-width: 0 !important; height: 100%; }
	.mg-stat--1 { width: calc(236.2 * var(--u)) !important; }
	.mg-stat--2 { width: calc(289.6 * var(--u)) !important; padding-left: calc(34.6 * var(--u)) !important; }
	.mg-stat--3 { width: auto !important; padding-left: calc(32.4 * var(--u)) !important; }
	.mg-stat--2::before, .mg-stat--3::before { top: 20.9%; height: 61.4%; width: max(1px, calc(2.835 * var(--u))); }
	.mg-stat--1 .mg-stat__icon img { width: calc(77.4 * var(--u)) !important; height: auto !important; }
	.mg-stat--2 .mg-stat__icon img { width: calc(69.7 * var(--u)) !important; height: auto !important; }
	.mg-stat--3 .mg-stat__icon img { width: calc(85.1 * var(--u)) !important; height: auto !important; }
	.mg-stat--1 .mg-stat__text { margin: 0 0 0 calc(21.5 * var(--u)) !important; }
	.mg-stat--2 .mg-stat__text { margin: 0 0 0 calc(24.2 * var(--u)) !important; }
	.mg-stat--3 .mg-stat__text { margin: 0 0 0 calc(8.8 * var(--u)) !important; }
	.mg-stat__big { font-size: calc(31.36 * var(--u)) !important; }
	.mg-stat__text > .mg-stat__small, .mg-stat__small { font-size: calc(17.77 * var(--u)) !important; white-space: nowrap !important; margin-top: 0.14em !important; line-height: 1.2; }
	.mg-footnote { font-size: 9px !important; }
}
@media (max-width: 379px) { .mg-statbox { padding-left: calc(53.7 * var(--u)) !important; } .mg-stat--2, .mg-stat--3 { padding-left: calc(30 * var(--u)) !important; } }
